var IE6=navigator.appVersion.indexOf("MSIE 6")!=-1&&navigator.appVersion.indexOf("MSIE 6")<10;var tm;var stop_scroll=true;function start_scroll(_id,direction){if(stop_scroll)return;_root=document.getElementById(_id).getElementsByTagName("span")[0];max_shift=_root.parentNode.offsetWidth-_root.offsetWidth+2;if(_root.offset==0&&direction==1)return;if(_root.offset<max_shift&&direction==0)return;_root.offset+=(direction?10:-10);_root.style.marginLeft=_root.offset+"px";if(_root.offset<max_shift||_root.offset==0){stop_scroll=false;return;}
delay=(document.all&&!window.opera?40:25);tm=setTimeout("start_scroll('"+_id+"',"+direction+")",delay);}
if(IE6)
window.onscroll=function(){document.getElementById("footer").style.top=Number(document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById("footer").clientHeight)+"px";}
addEvent(window,"load",function(){_("main").style.minHeight=_("contents").offsetHeight+205+"px"})
var ie=(document.all&&!window.opera?1:0);function init_bookmark(_id,count){sum=0;sum2=0;bcount=count;_root=document.getElementById(_id);if(_root==null)return;_root.setAttribute("cur_field","d_0");_root.cur_field=0;objs=_root.getElementsByTagName("a");objs[0].className="act";for(i=0;i<objs.length;i++){objs[i].id=_root.id+"_a_"+i;objs[i].name=i;objs[i].href=i+1;objs[i].onclick=function(){_root=this.parentNode.parentNode;document.getElementById(_root.id+"_a_"+_root.cur_field).className="";this.className="act";document.getElementById(_root.id+"_fld_"+_root.cur_field).style.display="none";if(!ie)document.getElementById(_root.id+"_fld_"+this.name).className="field complete";document.getElementById(_root.id+"_fld_"+this.name).style.display="block";_root.cur_field=this.name;return false;}
sum+=objs[i].offsetWidth+1;if(count&&count==i+1)
if(sum<100)count++;else sum2=sum;}
if(!ie)document.getElementById(_root.id+"_fld_"+_root.cur_field).className="field complete";document.getElementById(_root.id+"_fld_"+_root.cur_field).style.display="block";_img1=document.getElementById(_root.id+"_img1");_img2=document.getElementById(_root.id+"_img2");if(sum2<sum&&bcount<objs.length){_fst=_root.getElementsByTagName("span")[0];_fst.setAttribute("offset",0);_fst.offset=0;_img1.className=_img2.className="arr";_img1.name=_img2.name=_root.id;_img1.onmouseover=function(){stop_scroll=false;start_scroll(this.name,1)}
_img1.onmouseout=function(){stop_scroll=true;}
_img2.onmouseover=function(){stop_scroll=false;start_scroll(this.name,0)}
_img2.onmouseout=function(){stop_scroll=true;}
_img2.style.marginLeft=Number(sum2+4)+"px";}
else _img1.style.display=_img2.style.display="none";objs[0].parentNode.style.width=sum+"px";if(sum2){objs[0].parentNode.parentNode.style.width=sum2+"px";for(i=0;i<objs.length;i++)
document.getElementById(_root.id+"_fld_"+objs[i].name).style.width=sum2-11+"px";}}
function set_width(_cblock,fix){_cblock=document.getElementById(_cblock);var blockquote=_cblock.parentNode.parentNode.parentNode;var title=blockquote.getElementsByTagName("span")[0];_cblock.className="cc fl";var w=_cblock.offsetWidth>title.offsetWidth?_cblock.offsetWidth:title.offsetWidth;blockquote.style.width=Number(w+36)+"px";_cblock.className="cc";}
function set_width_manual(_cblock,_forcedWidth)
{var _cblock;_cblock=document.getElementById(_cblock);_cblock.className="cc fl";_cblock.parentNode.parentNode.parentNode.style.width=(_forcedWidth?(_forcedWidth+48):Number(_cblock.offsetWidth+34))+"px";_cblock.className="cc";}
function close_dialog(_sender_name){_obj=document.getElementById(_sender_name);_obj.parentNode.parentNode.parentNode.style.visibility="hidden";}
function show_dialog(_id,pos){_dialog=_(_id).parentNode.parentNode.parentNode;set_width(_id);if(pos!="center")pos_dialog_by_cursor(_id);else pos_dialog_by_center(_id);_dialog.style.visibility="visible";return false;}
function pos_dialog_by_cursor(_obj){_dialog=_(_obj).parentNode.parentNode.parentNode;_max_left=document.body.offsetWidth-_dialog.offsetWidth-20;_left=Number(coord.x+5);_top=Number(coord.y+5);if((document.documentElement.clientHeight<coord.y-document.documentElement.scrollTop+_dialog.offsetHeight)&&(coord.y-30>=_dialog.offsetHeight))
_top-=_dialog.offsetHeight+60;_dialog.style.left=(_max_left>_left?_left:_max_left)+"px";_dialog.style.top=_top+"px";}
function pos_dialog_by_center(_obj){_obj=_(_obj).parentNode.parentNode.parentNode;_scrTop=document.documentElement.scrollTop;if(ie)document.body.style.overflow="hidden";_t=Math.round((document.body.offsetHeight/2)-_obj.offsetHeight+110+_scrTop);_l=Math.round((document.body.offsetWidth/2-_obj.offsetWidth+40));_obj.style.top=_t+"px";_obj.style.left=_l+"px";if(ie){document.body.style.overflow="visible";window.scrollTo(0,_scrTop);}}
function init_dialogs(){objs=document.getElementById("dialog").getElementsByTagName("blockquote");for(i=0;i<objs.length;i++){set_width(objs[i].getElementsByTagName("div")[5].id);init_move_obj(objs[i]);}
objs=document.getElementById("dialog").getElementsByTagName("a");for(i=0;i<objs.length;i++)
if(objs[i].parentNode.parentNode.parentNode.className=="top"){objs[i].href="close";objs[i].onclick=function(){this.parentNode.parentNode.parentNode.parentNode.style.visibility="hidden";return false;}}}
var cur;function hblock_exec(block,op){if(cur&&cur.id!=""){cur.style.display="none";document.getElementById("but_"+cur.id).className="";}
document.getElementById(block).style.display=(op?"block":"none");document.getElementById("but_"+block).className=(op?"act":"");cur=document.getElementById(block);return false;}
function copy2Clipboard(text_block){if(document.body.createTextRange){var BodyRange=document.body.createTextRange();BodyRange.moveToElementText(text_block);BodyRange.execCommand('Copy');}else{alert(_MENU_COPY_LINK_DO_NOT_WORK_);}
return false;}
function add_shadow(name,path){if(path==null)path="";document.write("<style> ."+name+" {");if(document.all&&!window.opera){if(/MSIE (5\.5)|[6789]/.test(navigator.userAgent)&&navigator.platform=="Win32"){document.write("filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='imgs/"+path+name+".png', sizingMethod='crop');");}}
else if(document.getElementById){document.write("background:url('imgs/"+path+name+".png') no-repeat;");}
document.write("}</style>");}
function CheckAZ09Only(str){re=/^[a-zA-Z0-9\-_]+$/;if(!str.match(re)){return false;}
return true;}
function CheckMail(str){re=/^[a-zA-Z0-9\-_\.]+@[a-zA-Z0-9\-_\.]+\.[a-zA-Z0-9]+?$/;if(!str.match(re)){return false;}
return true;}
function CheckValues(form,name){for(i=0;i<form.elements.length;i++){var str=form.elements[i].name;if(str.indexOf(name+'[')==0){if(form.elements[i].value==""){return false;}else{return true;}}}
return true;}
function CollectValues(form,name){count=0;for(i=0;i<form.elements.length;i++){var str=form.elements[i].name;if(str.indexOf(name+'[')==0)
count++;}
arr=new Array(count);for(i=0;i<form.elements.length;i++){var str=form.elements[i].name;if(str.indexOf(name+'[')==0){ind=str.substring(str.indexOf('[')+1,str.indexOf(']'));arr[ind]=form.elements[i];}}
return arr;}
function GetRadioValue(form,name){for(i=0;i<form.elements.length;i++){var str=form.elements[i].name;if(str==name){if(form.elements[i].checked==true){return form.elements[i].value;}}}
return null;}
function UserSubmitForm(){form=document.getElementById('userform');for(i=0;i<form.elements.length;i++){var str=form.elements[i].name;if(str.indexOf('!')==0){if(form.elements[i].type=="checkbox"){if(!form.elements[i].checked){alert(_PAGE_FORM_REQUEIRED_NOT_ENTERED_);return false;}}
else if(form.elements[i].type=="radio"){ok=0;el=form.elements[i].name;for(j=0;j<form.elements[el].length;j++){if(form.elements[el][j].checked){ok=1;break;}}
if(!ok){alert(_PAGE_FORM_REQUEIRED_NOT_ENTERED_);return false;}}
else if(form.elements[i].value==""){alert(_PAGE_FORM_REQUEIRED_NOT_ENTERED_);return false;}}}
return true;}
function RegisterLang(id){_lang=(navigator.language?navigator.language:navigator.userLanguage);JsHttpRequest.query('module.php',{module:id,lang:_lang},function(responseJS,responseText){},true);}
function _(_id){if(document.getElementById&&document.getElementById(_id))return document.getElementById(_id);else return null;}
function addEvent(parent,ev,func){if(parent.attachEvent)parent.attachEvent('on'+ev,func);else parent.addEventListener(ev,func,true);}
function init_wysiwyg_icons(root){root=(root&&root.tagName)?root:document;objs=root.getElementsByTagName("*");for(i=0;i<objs.length;i++){if(objs[i].getAttribute("wi"))
{var t;(objs[i].insertBefore(t=document.createElement("i"),objs[i].firstChild)).className="wi wi_"+objs[i].getAttribute("wi");t.innerHTML="&nbsp;";}
if(objs[i].ondblclick)
objs[i].onmouseup=function(e){but=(window.event?event.button:e.button);if((window.event&&but!=1)||(!window.event&&but==2)){this.ondblclick()}}}
initPNG(document);}
function initPNG(root){if(!IE6)return false;var all=root.getElementsByTagName("*");var src;for(var i in all){if(all[i].currentStyle&&all[i].currentStyle["backgroundAttachment"]!="fixed"){var src=all[i].tagName.toLowerCase()=="img"?all[i].src:all[i].currentStyle["backgroundImage"];if(!(/\.png/i).test(src))continue;if(all[i].tagName.toLowerCase()=="img"){all[i].style.width=all[i].offsetWidth;all[i].style.height=all[i].offsetHeight;all[i].src=IMGS_PATH+"dot.gif";}
else src=src.replace(/url\(\"(.*)\"\)$/i,"$1");var sizing=all[i].currentStyle["backgroundRepeat"]=="no-repeat"?"crop":"scale";all[i].style["filter"]="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"',sizingMethod="+sizing+")";all[i].style["backgroundImage"]="none";all[i].style["backgroundPosition"]="-1000px -1000px";}}}
function JsHttpRequest(){this._construct()}
(function(){var COUNT=0;var PENDING={};var CACHE={};JsHttpRequest.dataReady=function(id,text,js){var undef;var th=PENDING[id];delete PENDING[id];if(th){delete th._xmlReq;if(th.caching&&th.hash)CACHE[th.hash]=[text,js];th._dataReady(text,js);}else if(th!==false){throw"JsHttpRequest.dataReady(): unknown pending id: "+id;}}
JsHttpRequest.query=function(url,content,onready,nocache){var req=new JsHttpRequest();req.caching=!nocache;req.onreadystatechange=function(){if(req.readyState==4){onready(req.responseJS,req.responseText);}}
req.open(null,url,true);req.send(content);},JsHttpRequest.prototype={onreadystatechange:null,readyState:0,responseText:null,responseXML:null,status:200,statusText:"OK",responseJS:null,session_name:"PHPSESSID",caching:false,loader:null,_span:null,_id:null,_xmlReq:null,_openArg:null,_reqHeaders:null,_maxUrlLen:2000,dummy:function(){},abort:function(){if(this._xmlReq){this._xmlReq.abort();this._xmlReq=null;}
this._cleanupScript();this._changeReadyState(4,true);},open:function(method,url,asyncFlag,username,password){var sid=this._getSid();if(sid)url+=(url.indexOf('?')>=0?'&':'?')+this.session_name+"="+this.escape(sid);this._openArg={method:(method||'').toUpperCase(),url:url,asyncFlag:asyncFlag,username:username!=null?username:'',password:password!=null?password:''};this._id=null;this._xmlReq=null;this._reqHeaders=[];this._changeReadyState(1,true);return true;},send:function(content){this._changeReadyState(1,true);var id=(new Date().getTime())+""+COUNT++;var url=this._openArg.url;var queryText=[];var queryElem=[];if(!this._hash2query(content,null,queryText,queryElem))return;var loader=(this.loader||'').toLowerCase();var method=this._openArg.method;var xmlReq=null;if(queryElem.length&&!loader){loader='form';}else{xmlReq=this._obtainXmlReq(id,url)}
var fullGetUrl=url+(url.indexOf('?')>=0?'&':'?')+queryText.join('&');this.hash=null;if(this.caching&&!queryElem.length){this.hash=fullGetUrl;if(CACHE[this.hash]){var c=CACHE[this.hash];this._dataReady(c[0],c[1]);return false;}}
var canSetHeaders=xmlReq&&(window.ActiveXObject||xmlReq.setRequestHeader);if(!loader){if(xmlReq){loader='xml';switch(method){case"POST":if(!canSetHeaders){loader='form';}
break;case"GET":break;default:if(canSetHeaders){method='POST';}else{if(fullGetUrl.length>this._maxUrlLen){method='POST';loader='form';}else{method='GET';}}}}else{loader='script';switch(method){case"POST":loader='form';break;case"GET":break;default:if(fullGetUrl.length>this._maxUrlLen){method='POST';loader='form';}else{method='GET';}}}}else if(!method){switch(loader){case'form':method='POST';break;case'script':method='GET';break;default:if(canSetHeaders){method='POST';}else{method='GET';}}}
var requestBody=null;if(method=='GET'){url=fullGetUrl;if(url.length>this._maxUrlLen)return this._error('Cannot use so long query (URL is '+url.length+' byte(s) length) with GET request.');}else if(method=='POST'){requestBody=queryText.join('&');}else{return this._error('Unknown method: '+method+'. Only GET and POST are supported.');}
url=url+(url.indexOf('?')>=0?'&':'?')+'JsHttpRequest='+id+'-'+loader;PENDING[id]=this;switch(loader){case'xml':if(!xmlReq)return this._error('Cannot use XMLHttpRequest or ActiveX loader: not supported');if(method=="POST"&&!canSetHeaders)return this._error('Cannot use XMLHttpRequest loader or ActiveX loader, POST method: headers setting is not supported');if(queryElem.length)return this._error('Cannot use XMLHttpRequest loader: direct form elements using and uploading are not implemented');this._xmlReq=xmlReq;var a=this._openArg;this._xmlReq.open(method,url,a.asyncFlag,a.username,a.password);if(canSetHeaders){for(var i=0;i<this._reqHeaders.length;i++)
this._xmlReq.setRequestHeader(this._reqHeaders[i][0],this._reqHeaders[i][1]);this._xmlReq.setRequestHeader('Content-Type','application/octet-stream');}
return this._xmlReq.send(requestBody);case'script':if(method!='GET')return this._error('Cannot use SCRIPT loader: it supports only GET method');if(queryElem.length)return this._error('Cannot use SCRIPT loader: direct form elements using and uploading are not implemented');this._obtainScript(id,url);return true;case'form':if(!this._obtainForm(id,url,method,queryText,queryElem))return null;return true;default:return this._error('Unknown loader: '+loader);}},getAllResponseHeaders:function(){if(this._xmlReq)return this._xmlReq.getAllResponseHeaders();return'';},getResponseHeader:function(label){if(this._xmlReq)return this._xmlReq.getResponseHeader(label);return'';},setRequestHeader:function(label,value){this._reqHeaders[this._reqHeaders.length]=[label,value];},_construct:function(){},_dataReady:function(text,js){with(this){if(text!==null||js!==null){status=4;responseText=responseXML=text;responseJS=js;}else{status=500;responseText=responseXML=responseJS=null;}
_changeReadyState(2);_changeReadyState(3);_changeReadyState(4);_cleanupScript();}},_error:function(msg){throw(window.Error?new Error(msg):msg);},_obtainXmlReq:function(id,url){var p=url.match(new RegExp('^[a-z]+://(.*)','i'));if(p){var curHost=document.location.host.toLowerCase();if(p[1].substring(0,curHost.length).toLowerCase()==curHost){url=p[1].substring(curHost.length,p[1].length);}else{return null;}}
var req=null;if(window.XMLHttpRequest){try{req=new XMLHttpRequest()}catch(e){}}else if(window.ActiveXObject){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}
if(!req)try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}}
if(req){var th=this;req.onreadystatechange=function(){if(req.readyState==4){req.onreadystatechange=th.dummy;th.status=null;try{th.status=req.status;th.responseText=req.responseText;}catch(e){}
if(!th.status)return;var funcRequestBody=null;try{eval('funcRequestBody = function() {\n'+th.responseText+'\n}');}catch(e){return th._error("JavaScript code generated by backend is invalid!\n"+th.responseText)}
funcRequestBody();}};this._id=id;}
return req;},_obtainScript:function(id,href){with(document){var span=createElement('SPAN');span.style.display='none';body.insertBefore(span,body.lastChild);span.innerHTML='Text for stupid IE.<s'+'cript></'+'script>';setTimeout(function(){var s=span.getElementsByTagName('script')[0];s.language='JavaScript';if(s.setAttribute)s.setAttribute('src',href);else s.src=href;},10);this._id=id;this._span=span;}},_obtainForm:function(id,url,method,queryText,queryElem){if(method=='GET'){queryText=url.split('?',2)[1].split('&');url=url.split('?',2)[0];}
var div=document.createElement('DIV');div.id='jshr_d_'+id;div.style.position='absolute';div.style.visibility='hidden';div.innerHTML='<form enctype="multipart/form-data"></form>'+'<iframe src="javascript:\'\'" name="jshr_i_'+id+'" style="width:0px; height:0px; overflow:hidden; border:none"></iframe>';var form=div.getElementsByTagName('FORM')[0];var iframe=div.getElementsByTagName('IFRAME')[0];if(queryElem.length){form=queryElem[0][1].form;var foundFile=false;for(var i=0;i<queryElem.length;i++){var e=queryElem[i][1];if(!e.form){return this._error('Element "'+e.name+'" do not belongs to any form!');}
if(e.form!=form){return this._error('Element "'+e.name+'" belongs to different form. All elements must belong to the same form!');}
foundFile=foundFile||(e.tagName.toLowerCase()=='input'&&(e.type||'').toLowerCase()=='file');}
var et="multipart/form-data";if(form.enctype!=et&&foundFile){return this._error('Attribute "enctype" of elements\' form must be "'+et+'" (for IE), "'+form.enctype+'" given.');}}
for(var i=0;i<form.elements.length;i++){var e=form.elements[i];if(e.name!=null){e.jshrSaveName=e.name;e.name='';}}
var tmpE=[];for(var i=0;i<queryText.length;i++){var pair=queryText[i].split('=',2);var e=document.createElement('INPUT');e.type='hidden';e.name=unescape(pair[0]);e.value=pair[1]!=null?unescape(pair[1]):'';form.appendChild(e);tmpE[tmpE.length]=e;}
for(var i=0;i<queryElem.length;i++)queryElem[i][1].name=queryElem[i][0];document.body.insertBefore(div,document.body.lastChild);this._span=div;var sv={};sv.enctype=form.enctype;form.enctype="multipart/form-data";sv.action=form.action;form.action=url;sv.method=form.method;form.method=method;sv.target=form.target;form.target=iframe.name;sv.onsubmit=form.onsubmit;form.onsubmit=null;form.submit();for(var i in sv)form[i]=sv[i];for(var i=0;i<tmpE.length;i++)tmpE[i].parentNode.removeChild(tmpE[i]);for(var i=0;i<form.elements.length;i++){var e=form.elements[i];if(e.jshrSaveName!=null){e.name=e.jshrSaveName;e.jshrSaveName=null;}}},_cleanupScript:function(){var span=this._span;if(span){this._span=null;setTimeout(function(){span.parentNode.removeChild(span);},50);}
if(this._id){PENDING[this._id]=false;}
return false;},_hash2query:function(content,prefix,queryText,queryElem){if(prefix==null)prefix="";if(content instanceof Object){for(var k in content){var v=content[k];if(v instanceof Function)continue;var curPrefix=prefix?prefix+'['+this.escape(k)+']':this.escape(k);if(this._isFormElement(v)){var tn=v.tagName.toLowerCase();if(tn=='form'){for(var i=0;i<v.elements.length;i++){var e=v.elements[i];if(e.name)queryElem[queryElem.length]=[e.name,e];}}else if(tn=='input'||tn=='textarea'||tn=='select'){queryElem[queryElem.length]=[curPrefix,v];}else{return this._error('Invalid FORM element detected: name='+(e.name||'')+', tag='+e.tagName);}}else if(v instanceof Object){this._hash2query(v,curPrefix,queryText,queryElem);}else{if(v===null)continue;queryText[queryText.length]=curPrefix+"="+this.escape(''+v);}}}else{queryText=[content];}
return true;},_isFormElement:function(e){return e&&e.ownerDocument&&e.parentNode&&e.parentNode.appendChild&&e.tagName;},_getSid:function(){var m=document.location.search.match(new RegExp('[&?]'+this.session_name+'=([^&?]*)'));var sid=null;if(m){sid=m[1];}else{var m=document.cookie.match(new RegExp('(;|^)\\s*'+this.session_name+'=([^;]*)'));if(m)sid=m[2];}
return sid;},_changeReadyState:function(s,reset){with(this){if(reset){status=statusText=responseJS=null;responseText='';}
readyState=s;if(onreadystatechange)onreadystatechange();}},escape:function(s){return escape(s).replace(new RegExp('\\+','g'),'%2B');}}})();var cur;var coord;document.onmousedown=function(e){coord=Coord(e);};document
document.onmouseup=function(){if(cur)cur.onmouseup=null;}
var gwidth;var gheight;var drag_obj;var g_zindex=150;var onmousemove_bak;function Coord(e){if(window.event){this.x=window.event.clientX;this.y=window.event.clientY;}
else{this.x=e.pageX;this.y=e.pageY;}
return this;}
function preventEvent(e){if(window.event){window.event.cancelBubble=true;window.event.returnValue=false;}
else if(e.preventDefault)e.preventDefault();}
function init_move_obj(obj){obj.getElementsByTagName("div")[0].onmousedown=function(e){startdrag(this.parentNode,e)}
obj.getElementsByTagName("div")[0].style.cursor="move";obj.style.left=obj.offsetLeft+"px";obj.style.top=obj.offsetTop+"px";}
function startdrag(obj,e){preventEvent(e);gwidth=Coord(e).x-obj.offsetLeft;gheight=Coord(e).y-obj.offsetTop;drag_obj=obj;document.onmouseup=function(e){enddrag(e)}
onmousemove_bak=document.onmousemove;document.onmousemove=function(e){move(e)}}
function move(e){if(drag_obj){preventEvent(e);drag_obj.style.left=Coord(e).x-gwidth+"px";drag_obj.style.top=Coord(e).y-gheight+"px";}}
function enddrag(obj,e){if(drag_obj){drag_obj=null;document.onmouseup=null;document.onmousemove=onmousemove_bak;}}
_PAGE_FORM_REQUEIRED_NOT_ENTERED_='Sie haben nicht alle obligatorischen Felder ausgefüllt!';_MENU_ENTER_NAME_='Geben Sie eine gültige URL an!';_MENU_ENTER_TITLE_='Geben Sie einen Titel für die Seite ein.';_MENU_ENTER_VALID_NAME_='Die eingegebene URL ist nicht korrekt. Bitte geben Sie eine gültige URL ein (ohne Leer- und Sonderzeichen).';_MENU_EDIT_ENTER_NAME_='Geben Sie eine URL für die Seite an.';_MENU_EDIT_ENTER_TITLE_='Geben Sie einen Titel für die Seite ein.';_MENU_EDIT_ENTER_VALID_NAME_='Die eingegebene URL ist nicht korrekt. Bitte geben Sie eine gültige URL ein (ohne Leer- und Sonderzeichen).';_MENU_CONFIRM_DELETE_='Möchten Sie diese Seite wirklich löschen?';_MENU_COPY_LINK_DO_NOT_WORK_='Begrüßung Browser von Mozilla wie Mozilla Firefox verbieten den Zugriff auf lokalen Speicher. Bitte markieren Sie den Link und kopieren Sie ihn mit STRG+C'
_CONTENT_EDITING_5_MINUTES_='Sie haben seit über 5 Minuten nicht mehr gespeichert. ';_CONTENT_RESTORED_OK_='Der Inhalt wurde wiederhergestellt';_CONTENT_FORM_NAME_EMPTY_='Bitte füllen Sie das Feld Name aus';_CONTENT_FORM_EMAIL_EMPTY_='Bitte füllen Sie das Feld E-Mail-Adresse aus';_CONTENT_FORM_EMAIL_INCORRECT_='Die eingegebene E-Mail-Adresse ist nicht korrekt.';_DOWNLOAD_ENTER_TITLE_='Bitte geben Sie einen Titel an';_DOWNLOAD_ENTER_FILE_='Bitte geben Sie einen Titel an';_DOWNLOAD_CONFIRM_DELETE_='Möchten Sie diesen Download tatsächlich löschen?';_ADMIN_USERNAME_EMPTY_='Geben Sie einen Benutzernamen ein';_ADMIN_USERNAME_NOT_CORRECT_='Geben Sie einen güpltigen Benutzernamen ein';_ADMIN_MAIL_EMPTY_='Geben Sie eine E-Mail-Adresse ein';_ADMIN_MAIL_NOT_CORRECT_='Geben Sie eine gültige E-Mail-Adresse ein';_ADMIN_PASSWORD_EMPTY_='Geben Sie ein Passwort ein';_ADMIN_PASSWORD_CONFIRMATION_EMPTY_='Geben Sie das Passwort erneut ein';_ADMIN_PASSWORDS_NOT_EQUAL_='Die Passwortfelder wurden nicht identisch ausgefüllt';_ADMIN_GROUP_NOT_SET_='Sie haben keine Gruppe ausgewählt';_ADMIN_CONFIRM_DELETE_='Sind Sie sicher?';_ADMIN_GROUP_NAME_EMPTY_='Geben Sie einen Gruppennamen ein';_MR_USER_NOT_SELECTED_='Sie haben keinen Benutzer ausgewählt';_FR_USER_NOT_SELECTED_='Sie haben keinen Benutzer ausgewählt';_SR_USER_NOT_SELECTED_='Sie haben keinen Benutzer ausgewählt';_LANG_NO_NAME_='Sie haben keinen Namen angegeben. Bitte geben Sie als Namen das internationale Länderkürzel der Sprache an (Beispiel: DE für Deutsch, EN für Englisch). ';_LANG_NO_TITLE_='Sie haben keinen Titel angegeben. Bitte geben Sie als Titel den Namen der Sprache an (Beispiel: Deutsch für Deutschland, English für England, USA, etc.)';_LANG_NO_FILE_='Sie haben keinen Dateinamen angegeben. Bitte geben Sie einen beliebigen Dateinamen an. Dieser ist aus technischen Gründen für die Zuordnung Ihrer angelegten Sprache notwendig und kann dem Namen oder Titel entsprechen oder frei gewählt werden';_TP_USER_NOT_SELECTED_='Wählen Sie einen Benutzer';_TP_LANG_FROM_NOT_SELECTED_='Wählen Sie eine Quellsprache, die in eine andere Sprache übersetzt werden darf';_TP_LANG_TO_NOT_SELECTED_='Wählen Sie die Sprache, in die die Quellsprache übersetzt werden darf';_TP_LANG_SIMILAR_='Zwei gleiche Sprachen wurden ausgewählt';_PICTUREVOTE_ENTER_TITLE_='Titel eingeben';_PICTUREVOTE_ENTER_DESCRIPTION_='Beschreibung eingeben';_PICTUREVOTE_ENTER_FILE_='Foto auswählen';_PICTUREVOTE_ENTER_MAIL_='E-Mail-Adresse eingeben';_PICTUREVOTE_TERMS_NO_='Sie haben unsere AGB nicht akzeptiert.';_INVALID_URL_='Ungültige URL';_TITLE_='GHT-PARK-DÜREN';_BUTTOM_='&copy; GHT-PARK-DÜREN GmbH&nbsp;&nbsp;';var hasFlash=function()
{var a=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1)
{document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+a+'))) \n</script\> \n');if(window.hasFlash!=null)return window.hasFlash}
if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(b.charAt(b.indexOf(".")-1))>=a}
return false}
();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var i=0,a=this.length,b=arguments.length;while(i<b){this[a++]=arguments[i++]}return this.length}}if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[];var d,e;if(!a)a=window;if(!b)b=[];for(var i=0;i<b.length;i++){c[i]="b["+i+"]"}e="a.__applyTemp__("+c.join(",")+");";a.__applyTemp__=this;d=eval(e);a.__applyTemp__=null;return d}}function named(a){return new named.Arguments(a)}named.Arguments=function(a){this.oArgs=a};named.Arguments.prototype.constructor=named.Arguments;named.extract=function(a,b){var c,d;var i=a.length;while(i--){d=a[i];if(d!=null&&d.constructor!=null&&d.constructor==named.Arguments){c=a[i].oArgs;break}}if(c==null)return;for(e in c)if(b[e]!=null)b[e](c[e]);return};var parseSelector=function(){var a=/^([^#.>`]*)(#|\.|\>|\`)(.+)$/;function r(s,t){var u=s.split(/\s*\,\s*/);var v=[];for(var i=0;i<u.length;i++)v=v.concat(b(u[i],t));return v}function b(c,d,e){c=c.normalize().replace(" ","`");var f=c.match(a);var g,h,i,j,k,n;var l=[];if(f==null)f=[c,c];if(f[1]=="")f[1]="*";if(e==null)e="`";if(d==null)d=document;switch(f[2]){case"#":k=f[3].match(a);if(k==null)k=[null,f[3]];g=document.getElementById(k[1]);if(g==null||(f[1]!="*"&&!o(g,f[1])))return l;if(k.length==2){l.push(g);return l}return b(k[3],g,k[2]);case".":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;k=f[3].match(a);if(k!=null){if(g.className==null||g.className.match("(\\s|^)"+k[1]+"(\\s|$)")==null)continue;j=b(k[3],g,k[2]);l=l.concat(j)}else if(g.className!=null&&g.className.match("(\\s|^)"+f[3]+"(\\s|$)")!=null)l.push(g)}return l;case">":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;j=b(f[3],g,">");l=l.concat(j)}return l;case"`":h=m(d,f[1]);for(i=0,n=h.length;i<n;i++){g=h[i];j=b(f[3],g,"`");l=l.concat(j)}return l;default:if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;l.push(g)}return l}}function m(d,o){if(o=="*"&&d.all!=null)return d.all;return d.getElementsByTagName(o)}function o(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:","")==q.toLowerCase()}return r}();var sIFR=function(){var a="http://www.w3.org/1999/xhtml";var b=false;var c=false;var d;var ah=[];var al=document;var ak=al.documentElement;var am=window;var au=al.addEventListener;var av=am.addEventListener;var f=function(){var g=navigator.userAgent.toLowerCase();var f={a:g.indexOf("applewebkit")>-1,b:g.indexOf("safari")>-1,c:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,d:g.indexOf("opera")>-1,e:al.contentType!=null&&al.contentType.indexOf("xml")>-1,f:true,g:true,h:null,i:null,j:null,k:null};f.l=f.a||f.c;f.m=!f.a&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(f.m&&g.match(/.*gecko\/(\d{8}).*/))f.j=new Number(g.match(/.*gecko\/(\d{8}).*/)[1]);f.n=g.indexOf("msie")>-1&&!f.d&&!f.l&&!f.m;f.o=f.n&&g.match(/.*mac.*/)!=null;if(f.d&&g.match(/.*opera(\s|\/)(\d+\.\d+)/))f.i=new Number(g.match(/.*opera(\s|\/)(\d+\.\d+)/)[2]);if(f.n||(f.d&&f.i<7.6))f.g=false;if(f.a&&g.match(/.*applewebkit\/(\d+).*/))f.k=new Number(g.match(/.*applewebkit\/(\d+).*/)[1]);if(am.hasFlash&&(!f.n||f.o)){var aj=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;f.h=parseInt(aj.charAt(aj.indexOf(".")-1))}if(g.match(/.*(windows|mac).*/)==null||f.o||f.c||(f.d&&(g.match(/.*mac.*/)!=null||f.i<7.6))||(f.b&&f.h<7)||(!f.b&&f.a&&f.k<312)||(f.m&&f.j<20020523))f.f=false;if(!f.o&&!f.m&&al.createElementNS)try{al.createElementNS(a,"i").innerHTML=""}catch(e){f.e=true}f.p=f.c||(f.a&&f.k<312);return f}();function at(){return{bIsWebKit:f.a,bIsSafari:f.b,bIsKonq:f.c,bIsOpera:f.d,bIsXML:f.e,bHasTransparencySupport:f.f,bUseDOM:f.g,nFlashVersion:f.h,nOperaVersion:f.i,nGeckoBuildDate:f.j,nWebKitVersion:f.k,bIsKHTML:f.l,bIsGecko:f.m,bIsIE:f.n,bIsIEMac:f.o,bUseInnerHTMLHack:f.p}}if(am.hasFlash==false||!al.getElementsByTagName||!al.getElementById||(f.e&&(f.p||f.n)))return{UA:at()};function af(e){if((!k.bAutoInit&&(am.event||e)!=null)||!l(e))return;b=true;for(var i=0,h=ah.length;i<h;i++)j.apply(null,ah[i]);ah=[]}var k=af;function l(e){if(c==false||k.bIsDisabled==true||((f.e&&f.m||f.l)&&e==null&&b==false)||(al.body==null||al.getElementsByTagName("body").length==0))return false;return true}function m(n){if(f.n)return n.replace(new RegExp("%\d{0}","g"),"%25");return n.replace(new RegExp("%(?!\d)","g"),"%25")}function as(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:","")==q.toLowerCase()}function o(p,q,r,s,t){var u="";var v=p.firstChild;var w,x,y,z;if(s==null)s=0;if(t==null)t="";while(v){if(v.nodeType==3){z=v.nodeValue.replace("<","&lt;");switch(r){case"lower":u+=z.toLowerCase();break;case"upper":u+=z.toUpperCase();break;default:u+=z}}else if(v.nodeType==1){if(as(v,"a")&&!v.getAttribute("href")==false){if(v.getAttribute("target"))t+="&sifr_url_"+s+"_target="+v.getAttribute("target");t+="&sifr_url_"+s+"="+m(v.getAttribute("href")).replace(/&/g,"%26");u+='<a href="asfunction:_root.launchURL,'+s+'">';s++}else if(as(v,"br"))u+="<br/>";if(v.hasChildNodes()){y=o(v,null,r,s,t);u+=y.u;s=y.s;t=y.t}if(as(v,"a"))u+="</a>"}w=v;v=v.nextSibling;if(q!=null){x=w.parentNode.removeChild(w);q.appendChild(x)}}return{"u":u,"s":s,"t":t}}function A(B){if(al.createElementNS&&f.g)return al.createElementNS(a,B);return al.createElement(B)}function C(D,E,z){var p=A("param");p.setAttribute("name",E);p.setAttribute("value",z);D.appendChild(p)}function F(p,G){var H=p.className;if(H==null)H=G;else H=H.normalize()+(H==""?"":" ")+G;p.className=H}function aq(ar){var a=ak;if(k.bHideBrowserText==false)a=al.getElementsByTagName("body")[0];if((k.bHideBrowserText==false||ar)&&a)if(a.className==null||a.className.match(/\bsIFR\-hasFlash\b/)==null)F(a,"sIFR-hasFlash")}function j(I,J,K,L,M,N,O,P,Q,R,S,r,T){if(!l())return ah.push(arguments);aq();named.extract(arguments,{sSelector:function(ap){I=ap},sFlashSrc:function(ap){J=ap},sColor:function(ap){K=ap},sLinkColor:function(ap){L=ap},sHoverColor:function(ap){M=ap},sBgColor:function(ap){N=ap},nPaddingTop:function(ap){O=ap},nPaddingRight:function(ap){P=ap},nPaddingBottom:function(ap){Q=ap},nPaddingLeft:function(ap){R=ap},sFlashVars:function(ap){S=ap},sCase:function(ap){r=ap},sWmode:function(ap){T=ap}});var U=parseSelector(I);if(U.length==0)return false;if(S!=null)S="&"+S.normalize();else S="";if(K!=null)S+="&textcolor="+K;if(M!=null)S+="&hovercolor="+M;if(M!=null||L!=null)S+="&linkcolor="+(L||K);if(O==null)O=0;if(P==null)P=0;if(Q==null)Q=0;if(R==null)R=0;if(N==null)N="#FFFFFF";if(T=="transparent")if(!f.f)T="opaque";else N="transparent";if(T==null)T="";var p,V,W,X,Y,Z,aa,ab,ac;var ad=null;for(var i=0,h=U.length;i<h;i++){p=U[i];if(p.className!=null&&p.className.match(/\bsIFR\-replaced\b/)!=null)continue;V=p.offsetWidth-R-P;W=p.offsetHeight-O-Q;aa=A("span");aa.className="sIFR-alternate";ac=o(p,aa,r);Z="txt="+m(ac.u).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize()+S+"&w="+V+"&h="+W+ac.t;F(p,"sIFR-replaced");if(ad==null||!f.g){if(!f.g){if(!f.n)p.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',J,'" quality="best" wmode="',T,'" bgcolor="',N,'" flashvars="',Z,'" width="',V,'" height="',W,'" sifr="true"></embed>'].join("");else p.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',V,'" height="',W,'" class="sIFR-flash"><param name="movie" value="',J,"?",Z,'"></param><param name="quality" value="best"></param><param name="wmode" value="',T,'"></param><param name="bgcolor" value="',N,'"></param> </object>'].join('')}else{if(f.d){ab=A("object");ab.setAttribute("data",J);C(ab,"quality","best");C(ab,"wmode",T);C(ab,"bgcolor",N)}else{ab=A("embed");ab.setAttribute("src",J);ab.setAttribute("quality","best");ab.setAttribute("flashvars",Z);ab.setAttribute("wmode",T);ab.setAttribute("bgcolor",N)}ab.setAttribute("sifr","true");ab.setAttribute("type","application/x-shockwave-flash");ab.className="sIFR-flash";if(!f.l||!f.e)ad=ab.cloneNode(true)}}else ab=ad.cloneNode(true);if(f.g){if(f.d)C(ab,"flashvars",Z);else ab.setAttribute("flashvars",Z);ab.setAttribute("width",V);ab.setAttribute("height",W);ab.style.width=V+"px";ab.style.height=W+"px";p.appendChild(ab)}p.appendChild(aa);if(f.p)p.innerHTML+=""}if(f.n&&k.bFixFragIdBug)setTimeout(function(){al.title=d},0)}function ai(){d=al.title}function ae(){if(k.bIsDisabled==true)return;c=true;if(k.bHideBrowserText)aq(true);if(am.attachEvent)am.attachEvent("onload",af);else if(!f.c&&(al.addEventListener||am.addEventListener)){if(f.a&&f.k>=132&&am.addEventListener)am.addEventListener("load",function(){setTimeout("sIFR({})",1)},false);else{if(al.addEventListener)al.addEventListener("load",af,false);if(am.addEventListener)am.addEventListener("load",af,false)}}else if(typeof am.onload=="function"){var ag=am.onload;am.onload=function(){ag();af()}}else am.onload=af;if(!f.n||am.location.hash=="")k.bFixFragIdBug=false;else ai()}k.UA=at();k.bAutoInit=true;k.bFixFragIdBug=true;k.replaceElement=j;k.updateDocumentTitle=ai;k.appendToClassName=F;k.setup=ae;k.debug=function(){aq(true)};k.debug.replaceNow=function(){ae();k()};k.bIsDisabled=false;k.bHideBrowserText=true;return k}();if(typeof sIFR=="function"&&!sIFR.UA.bIsIEMac){sIFR.bHideBrowserText=true;sIFR.bFixFragIdBug=false;sIFR.setup();sIFR.replaceElement("h1.red",named({sFlashSrc:"./sIFR/TasseRW.swf",sColor:"#cc0033",sCase:"upper",sWmode:"opaque"}));sIFR.replaceElement("h1.grey",named({sFlashSrc:"./sIFR/TasseMW.swf",sColor:"#58585A",sCase:"upper",sWmode:"opaque"}));sIFR.replaceElement("h2",named({sFlashSrc:"./sIFR/TasseRW.swf",sColor:"#cc0033",sCase:"upper",sWmode:"opaque"}));};if(typeof sIFR=="function")(function(){var j=document;var h=j.documentElement;sIFR.removeDecoyClasses=function(){function a(b){if(b&&b.className!=null)b.className=b.className.replace(/\bsIFR-hasFlash\b/,"")}return function(){a(h);a(j.getElementsByTagName("body")[0])}}();sIFR.preferenceManager={storage:{sCookieId:"sifr",set:function(a){var b=new Date();b.setFullYear(b.getFullYear()+3);j.cookie=[this.sCookieId,"=",a,";expires=",b.toGMTString(),";path=/"].join("")},get:function(){var a=j.cookie.match(new RegExp(";?"+this.sCookieId+"=([^;]+);?"));if(a!=null&&a[1]=="false")return false;else return true},reset:function(){var a=new Date();a.setFullYear(a.getFullYear()-1);j.cookie=[this.sCookieId,"=true;expires=",a.toGMTString(),";path=/"].join("")}},disable:function(){this.storage.set(false)},enable:function(){this.storage.set(true)},test:function(){return this.storage.get()}};if(sIFR.preferenceManager.test()==false){sIFR.bIsDisabled=true;sIFR.removeDecoyClasses()}sIFR.rollback=function(){function a(b){var c,d,e,f,g,h;var l=parseSelector(b);var i=l.length-1;var m=false;while(i>=0){c=l[i];l.length--;d=c.parentNode;if(c.getAttribute("sifr")=="true"){h=0;while(h<d.childNodes.length){c=d.childNodes[h];if(c.className=="sIFR-alternate"){e=c;h++;continue}d.removeChild(c)}if(e!=null){f=e.firstChild;while(f!=null){g=f.nextSibling;d.appendChild(e.removeChild(f));f=g}d.removeChild(e)}if(!sIFR.UA.bIsXML&&sIFR.UA.bUseInnerHTMLHack)d.innerHTML+="";d.className=d.className.replace(/\bsIFR\-replaced\b/,"")};m=true;i--}return m}return function(k){named.extract(arguments,{sSelector:function(a){k=a}});if(k==null)k="";else k+=">";sIFR.removeDecoyClasses();sIFR.bHideBrowserText=false;if(a(k+"embed")==false)a(k+"object")}}()})()
var IE6=navigator.appVersion.indexOf("MSIE 6")!=-1&&navigator.appVersion.indexOf("MSIE 6")<10;function init_panels(){if(IE6&&document.getElementById("panel_left"))
window.onscroll=function(){obj1=document.getElementById("panel_left");obj2=document.getElementById("panel_right");status=document.documentElement.scrollTop;obj1.style.top=obj2.style.top=document.documentElement.scrollTop+"px";}}
function showAdminPanel(){ie=(document.all&&!window.opera?1:0);_obj=document.getElementById('admin_panel').parentNode.parentNode.parentNode;set_width('admin_panel')
document.body.style.height="100%";_scrTop=document.documentElement.scrollTop;if(ie)document.body.style.overflow="hidden";_t=Math.round((document.body.offsetHeight-_obj.offsetHeight)/2);_l=Math.round((document.body.offsetWidth-_obj.offsetWidth)/2);_obj.style.top=Number((_t<5?5:_t)+_scrTop)+"px";_obj.style.left=_l+"px";document.body.style.height="auto";if(ie){document.body.style.overflow="visible";window.scrollTo(0,_scrTop)}
_obj.style.visibility="visible";}
function fillAdminPanel(text){document.getElementById('admin_panel').innerHTML=text;}
function ProceedResponce(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);}else{fillAdminPanel(responseText);set_width('admin_panel');showAdminPanel();if(responseJS.change_title==true){d=document.getElementById('admin_panel_title');if(d!=null){d.innerHTML=responseJS.dialog_title;}}}}
function LoadByID(_task,_id){JsHttpRequest.query('module.php',{module:11,task:_task,id:_id},ProceedResponce,true);return false;}
function DoDelete(_task,_id){if(!confirm(_ADMIN_CONFIRM_DELETE_))
return false;JsHttpRequest.query('module.php',{module:11,task:_task,id:_id},ProceedResponce,true);return false;}
function Load(_task){JsHttpRequest.query('module.php',{module:11,task:_task},ProceedResponce,true);return false;}
function load_edit_header_image(_destination,_sender,_module_id,_page_id){JsHttpRequest.query('module.php',{module:_module_id,task:'open_popup_menu',id:_destination,sender:_sender.name,page_id:_page_id},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;show_dialog(responseJS.id);init_bookmark("bkm_edit_dialog",3);set_width(responseJS.id);},true);return false;}
function doLoad_edit_header_image(_form,_sender,_module_id,_page_id){JsHttpRequest.query('module.php',{destination:'edit_headerimage_dialog',module:_module_id,task:'save_header_image',page_id:_page_id,file:_form.file,sender:_form.block_id,fileURL:_form.fileURL},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(responseJS.sender);}else{if(responseText!="")
alert(responseText);close_dialog(responseJS.destination);window.location.reload();}},true);return false;}
function load_add_page_dialog(_destination,_sender,_pos,_module,_task,_page,_parent,_menudivid){JsHttpRequest.query('module.php',{module:_module,task:_task,id:_destination,page:_page,parent:_parent,menudivid:_menudivid,sender:_sender.name},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;show_dialog(responseJS.id);init_bookmark("bkm_add_page",3);set_width(responseJS.id);},true);return false;}
function doLoad_add_page_dialog(_destination,_form,_module,_task,_page,_parent){if(_form.txt.value==""){alert(_MENU_ENTER_NAME_);return false;}
if(CheckAZ09Only(_form.txt.value)==false){alert(_MENU_ENTER_VALID_NAME_);return false;}
if(null==GetRadioValue(_form,'contentelement')){alert('select page type');return false;}
if(CheckValues(_form,"title")==false){alert(_MENU_ENTER_TITLE_);return false;}
titles=CollectValues(_form,"title");JsHttpRequest.query('module.php',{id:_destination,sender:_form.block_id,module:_module,task:_task,page:_page,parent:_parent,title:titles,element:GetRadioValue(_form,'contentelement'),txt:_form.txt},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(responseJS.sender);}else{if(responseJS.id=='nav'){responseText=_BUTTOM_+responseText;}
document.getElementById(responseJS.id).innerHTML=responseText;init_wysiwyg_icons(document.getElementById(_destination));close_dialog(responseJS.sender);}},true);return false;}
function load_edit_page_dialog(_destination,_sender,_pos,_module,_task,_page,_menuid,_show_add_parent,_menudivid){JsHttpRequest.query('module.php',{module:_module,task:_task,id:_destination,page:_page,menuid:_menuid,show_add_parent:_show_add_parent,menudivid:_menudivid,sender:_sender.name},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;show_dialog(responseJS.id);init_bookmark("bkm_edit_page",3);init_bookmark("bkm_editadd_page",3);set_width(responseJS.id);},true);return false;}
function load_edit_page_dialog_reload(_destination,_sender,_pos,_module,_task,_page,_menuid,_show_add_parent,_menudivid){JsHttpRequest.query('module.php',{module:_module,task:_task,id:_destination,page:_page,menuid:_menuid,show_add_parent:_show_add_parent,menudivid:_menudivid,sender:_sender.name},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;init_bookmark("bkm_edit_page",3);init_bookmark("bkm_editadd_page",3);set_width(responseJS.id);},true);return false;}
function doLoad_edit_page_dialog(_destination,_form,_module,_task,_page,_menuid){if(_form.menuname.value==""){alert(_MENU_EDIT_ENTER_NAME_);return false;}
if(CheckAZ09Only(_form.menuname.value)==false){alert(_MENU_ENTER_VALID_NAME_);return false;}
if(CheckValues(_form,"menutitle")==false){alert(_MENU_EDIT_ENTER_TITLE_);return false;}
titles=CollectValues(_form,"menutitle");JsHttpRequest.query('module.php',{id:_destination,sender:_form.block_id,module:_module,task:_task,startdate:_form.dc1,enddate:_form.tdc1,page:_page,menuid:_menuid,menuname:_form.menuname,menutitle:titles},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(responseJS.sender);}else{if(responseJS.id=='nav'){responseText=_BUTTOM_+responseText;}
document.getElementById(responseJS.id).innerHTML=responseText;init_wysiwyg_icons(document.getElementById(_destination));load_edit_page_dialog_reload('edit_page_dialog',_form.block_id,'b',_module,'show_edit_page_dialog',_page,_menuid,1,_destination);}},true);return false;}
function change_div_visibility()
{if(document.getElementById('testh').style.height!='auto')
{document.getElementById('imgtesth').src='imgs/ico_minus.gif';document.getElementById('testh').style.height='auto';}
else
{document.getElementById('imgtesth').src='imgs/ico_plus.gif';document.getElementById('testh').style.height='0';}}
function doLoad_delete_page(_destination,_form,_module,_task,_page,_menuid){if(confirm(_MENU_CONFIRM_DELETE_)){JsHttpRequest.query('module.php',{id:_destination,sender:_form.block_id,module:_module,task:_task,page:_page,menuid:_menuid,menuname:_form.menuname,menutitle:_form.menutitle},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(responseJS.sender);}else{if(responseJS.redirect!=false){location.href='/';}else{if(responseJS.id=='nav'){responseText=_BUTTOM_+responseText;}
document.getElementById(responseJS.id).innerHTML=responseText;init_wysiwyg_icons(document.getElementById(_destination));close_dialog(responseJS.sender);}}},true);}
return false;}
function init_dialogs_menu(str){objs=document.getElementById(str).getElementsByTagName("a");for(i=0;i<objs.length;i++)objs[i].onclick=function(){this.parentNode.style.visibility="hidden";return false}}
var gform;function save_time(obj,n){gform=document.editpageform;self.gfPop=obj.parentNode.parentNode.getElementsByTagName("iframe")[0].contentWindow;if(self.gfPop)gfPop.fStartPop(document.editpageform.elements[n+1],document.editpageform.elements[n+2]);}
function TimeChanged(){obj=document.getElementById("date_from_text");objFrom=document.getElementById("Start_Date");obj.innerHTML=objFrom.value;alert(objFrom.value);}
function testfunv(DivID){_(DivID).style.display='block';return false;}
function load_add_downloads_dialog(_destination,_sender,_contentelement_id,_page){JsHttpRequest.query('content.php',{contentelement_id:_contentelement_id,destination:_destination,page_id:_page,sender:_sender.name},function(responseJS,responseText){document.getElementById(responseJS.destination).innerHTML=responseText;show_dialog(responseJS.destination);init_bookmark("bkm_add_dialog",3);set_width(responseJS.destination);},true);return false;}
function doLoad_add_downloads_dialog(_form){if(_form.title.value==""){alert(_DOWNLOAD_ENTER_TITLE_);return;}
if(_form.file.value==""){alert(_DOWNLOAD_ENTER_FILE_);return;}
_form.submit();}
function load_edit_download_menu(_destination,_sender,_contentelement_id,_page,_download_id){JsHttpRequest.query('content.php',{contentelement_id:_contentelement_id,task:'open_popup_menu',destination:_destination,page_id:_page,sender:_sender.name,download_id:_download_id},function(responseJS,responseText){document.getElementById(responseJS.destination).innerHTML=responseText;show_dialog(responseJS.destination);init_bookmark("bkm_edit_dialog",3);set_width(responseJS.destination);},true);return false;}
function doLoad_edit_download_menu(_destination,_form,_task,_contentelement_id,_page_id){titles=CollectValues(_form,"title");descriptions=CollectValues(_form,"description");JsHttpRequest.query('content.php',{destination:_destination,sender:_form.destination,contentelement_id:_contentelement_id,task:_task,page_id:_page_id,title:titles,description:descriptions,download_id:_form.download_id.value},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(responseJS.sender);}else{document.getElementById(responseJS.destination).innerHTML=responseText;close_dialog(responseJS.sender);}},true);return false;}
function doLoad_delete_download(_destination,_form,_task,_contentelement_id,_page_id){if(confirm(_DOWNLOAD_CONFIRM_DELETE_)){JsHttpRequest.query('content.php',{destination:_destination,sender:_form.destination,contentelement_id:_contentelement_id,task:_task,page_id:_page_id,download_id:_form.download_id.value},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(responseJS.sender);}else{document.getElementById(responseJS.destination).innerHTML=responseText;close_dialog(responseJS.sender);}},true);}
return false;}
function load_select_gallery_dialog(_destination,_sender,_contentelement_id,_page,_gallery){JsHttpRequest.query('content.php',{contentelement_id:_contentelement_id,id:_destination,page_id:_page,gallery:_gallery,sender:_sender.name},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;show_dialog(responseJS.id);set_width(responseJS.id);},true);return false;}
function doLoad_select_gallery_dialog(_destination,_form,_task,_contentelement_id,_page_id){JsHttpRequest.query('content.php',{id:_destination,sender:_form.block_id,contentelement_id:_contentelement_id,task:_task,page_id:_page_id,gallery:_form.gallery.value},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(responseJS.sender);}else{document.getElementById(responseJS.id).innerHTML=responseText;close_dialog(responseJS.sender);}},true);}
function load_gallery_img(element_id,_sender,_img_path,_width){document.getElementById(element_id).innerHTML="<img src='"+_img_path+"'>";show_dialog(element_id,'center');set_width_manual(element_id,_width);return false;}
function showUploadForm(){ie=(document.all&&!window.opera?1:0);_obj=document.getElementById('pv_upload_dialog').parentNode.parentNode.parentNode;document.body.style.height="100%";_scrTop=document.documentElement.scrollTop;if(ie)document.body.style.overflow="hidden";_t=Math.round((document.body.offsetHeight-_obj.offsetHeight)/2);_l=Math.round((document.body.offsetWidth-_obj.offsetWidth)/2);_obj.style.top=Number((_t<5?5:_t)+_scrTop)+"px";_obj.style.left=_l+"px";document.body.style.height="auto";if(ie){document.body.style.overflow="visible";window.scrollTo(0,_scrTop)}
_obj.style.visibility="visible";}
function ProceedPicResponce(responseJS,responseText){set_width(responseJS.id);set_width(responseJS.id);showUploadForm();set_width(responseJS.id);}
function Load_upload_picture_dialog(_destination,_module_id){JsHttpRequest.query('content.php',{contentelement_id:_module_id,task:'',id:_destination},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;ProceedPicResponce(responseJS,responseText)
set_width(responseJS.id);tooltip.init();},true);return false;}
function doLoad_upload_picture_dialog(_destination,_form,_module_id){if(_form.title.value==""){alert(_PICTUREVOTE_ENTER_TITLE_);return;}
if(_form.description.value==""){alert(_PICTUREVOTE_ENTER_DESCRIPTION_);return;}
if(CheckMail(_form.email.value)==false){alert(_ADMIN_MAIL_NOT_CORRECT_);return false;}
if(_form.file.value==""){alert(_PICTUREVOTE_ENTER_FILE_);return;}
if(!_form.terms[0].checked){alert(_PICTUREVOTE_TERMS_NO_);return;}
JsHttpRequest.query('content.php',{contentelement_id:_module_id,task:'upload',id:_destination,sender:_form.block_id,title:_form.title,description:_form.description,salutation:_form.salutation,username:_form.surname,lastname:_form.lastname,street:_form.street,zip:_form.zip,email:_form.email,telephone:_form.telephone,keywords:_form.keywords,newsletter:_form.newsletter[0].checked,comments:_form.comments[0].checked,file:_form.file},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(responseJS.sender);}else{if(responseText!="")
alert(responseText);close_dialog(_destination);}},true);return false;}
function Load_statistic_dialog(_destination,_module_id,_picture_id){JsHttpRequest.query('content.php',{contentelement_id:_module_id,task:'view_statistic',id:_destination,picture_id:_picture_id},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;show_dialog(responseJS.id);set_width(responseJS.id);},true);return false;}
function doLoad_statistic_dialog(_destination,_form,_module_id,_picture_id){if(_form.email.value==""){alert(_PICTUREVOTE_ENTER_MAIL_);return;}
if(CheckMail(_form.email.value)==false){alert(_ADMIN_MAIL_NOT_CORRECT_);return false;}
JsHttpRequest.query('content.php',{contentelement_id:_module_id,task:'send_statistic',id:_destination,sender:_form.block_id,email:_form.email,picture_id:_picture_id},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(_destination);}else{if(responseText!="")
alert("Under construction");close_dialog(_destination);}},true);return false;}
function Load_comment_dialog(_destination,_module_id,_picture_id){JsHttpRequest.query('content.php',{contentelement_id:_module_id,task:'comment_dialog',id:_destination,picture_id:_picture_id},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;show_dialog(responseJS.id);set_width(responseJS.id);},true);return false;}
function doLoad_comment_dialog(_destination,_form,_module_id,_picture_id){if(_form.comment.value==""){alert(_PICTUREVOTE_ENTER_COMMENT_);return;}
JsHttpRequest.query('content.php',{contentelement_id:_module_id,task:'send_comment',id:_destination,sender:_form.block_id,comment:_form.comment.value,email:_form.email.value,picture_id:_picture_id},function(responseJS,responseText){if(responseJS.failed==true){alert(responseJS.message);close_dialog(_destination);}else{if(responseText!="")
alert(responseText);close_dialog(_destination);}},true);return false;}
function Load_archive_list(_destination,_module_id){JsHttpRequest.query('content.php',{contentelement_id:_module_id,task:'archive',id:_destination},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;show_dialog(responseJS.id);set_width(responseJS.id);},true);return false;}
function makeVote(vote){document.scale_form.scale.value=vote;document.scale_form.submit();}
function save_content_editor(_static_id,_form,_page,_contentelement_id){values=CollectValues(_form,"FCKeditor");JsHttpRequest.query('content.php',{contentelement_id:_contentelement_id,id:_static_id,task:'save',page:_page,text:values},function(responseJS,responseText){alert(responseText);elem=document.getElementById(timeoutid);elem.innerHTML="&nbsp;";start_count_idle();},false);return false;}
var timeoutid='time_out_message';function start_count_idle(){setTimeout("printtimemessage()",1000*60*5);}
function printtimemessage(){if(timeoutid!=''){elem=document.getElementById(timeoutid);elem.innerHTML=_CONTENT_EDITING_5_MINUTES_;}}
function load_static_versions_dialog(_destination,_sender,_contentelement_id,_page){JsHttpRequest.query('content.php',{contentelement_id:_contentelement_id,task:'restore_dialog',id:_destination,page_id:_page,sender:_sender.name},function(responseJS,responseText){document.getElementById(responseJS.id).innerHTML=responseText;show_dialog(responseJS.id);set_width(responseJS.id);},true);return false;}
