function changeCheck(a){document.kat_suche.suchbereich[a].checked=true}function selectCat(a){if(a==0){document.kat_suche.kat_auswahl.selectedIndex=0;changeCheck(0)}if(a==1){document.kat_suche.kat_auswahl.selectedIndex=13;changeCheck(1)}if(a==2){document.kat_suche.kat_auswahl.selectedIndex=23;changeCheck(2)}}function changeCat(){var a=document.kat_suche.kat_auswahl.selectedIndex;if(a<13){changeCheck(0)}if((a>12)&&(a<23)){changeCheck(1)}if(a>22){changeCheck(2)}}function vChangeCat(e){var a=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname;var d=window.location.search;a=a+"/";a=a.replace(/\/\/$/,"/");var b=a.replace(/kat-\d+\/*/,"");if(e){b=b+"kat-"+e+"/"}window.location=b+d}function vChangeStartZeit(a,d){var b=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname;var f=window.location.search;b=b+"/";b=b.replace(/\/\/$/,"/");var c=b.replace(/zeitvon-\d+\/*/,"");if(a&&a>d){alert("Fehler: die Startzeit muss vor der Endzeit liegen.");a=0}if(a&&a<=d){c=c+"zeitvon-"+a+"/"}window.location=c+f}function vChangeEndZeit(d,a){var b=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname;var f=window.location.search;b=b+"/";b=b.replace(/\/\/$/,"/");var c=b.replace(/zeitbis-\d+\/*/,"");if(d&&d<a){alert("Fehler: die Startzeit muss vor der Endzeit liegen.");d=24}if(d&&d>=a){c=c+"zeitbis-"+d+"/"}window.location=c+f}if(typeof(Method)=="undefined"){Method={}}if(typeof(Method.bind)=="undefined"){Method.bind=function(b,a){return function(){b.apply(a,arguments)}}}if(typeof(HTTP)=="undefined"){HTTP={}}if(typeof(HTTP.Request)=="undefined"){HTTP.Request=function(a){if(!a){a={}}this.options={};for(var b in a){this.setOption(b,a[b])}if(this.getOption("method")==undefined){this.setOption("method","post")}if(this.getOption("asynchronous")==undefined){this.setOption("asynchronous",true)}if(this.getOption("parameters")==undefined){this.setOption("parameters","")}if(this.getOption("transport")==undefined){this.setOption("transport",HTTP.Request.Transport)}if(this.getOption("uri")){this.request()}};HTTP.Request.EventNames=["uninitialized","loading","loaded","interactive","complete"];HTTP.Request.prototype.getOption=function(a){if(typeof(a)!="string"){return}return this.options[a.toLowerCase()]};HTTP.Request.prototype.setOption=function(a,b){if(typeof(a)!="string"){return}a=a.toLowerCase();this.options[a]=b;if(a=="method"){if(!(this.options.method=="get"||this.options.method=="post"||this.options.method=="head")){this.options.method="post"}}if(a=="transport"){if(typeof(b)!="function"){this.options.transport=HTTP.Request.Transport}}};HTTP.Request.prototype.request=function(d){if(!d){d=this.getOption("uri")}if(!d){return}var c=this.getOption("parameters");if(c.length>0){c+="&_="}var e=this.getOption("method");if(e=="get"){d+="?"+c}this.transport=new (this.getOption("transport"))();var b=this.getOption("asynchronous");this.transport.open(e,d,b);if(b){this.transport.onreadystatechange=Method.bind(this.onStateChange,this);setTimeout(Method.bind(function(){this.respondToReadyState(1)},this),10)}this.setRequestHeaders();if(e=="post"){var a=this.getOption("postbody");if(!a){a=c}this.transport.send(a)}else{this.transport.send(null)}};HTTP.Request.prototype.setRequestHeaders=function(){this.transport.setRequestHeader("X-Requested-With","HTTP.Request");this.transport.setRequestHeader("X-HTTP-Request-Version",HTTP.Request.VERSION);if(this.getOption("method")=="post"){this.transport.setRequestHeader("Content-type","application/x-www-form-urlencoded");if(this.transport.overrideMimeType){this.transport.setRequestHeader("Connection","close")}}};HTTP.Request.prototype.isSuccess=function(){return this.transport.status==undefined||this.transport.status==0||(this.transport.status>=200&&this.transport.status<300)};HTTP.Request.prototype.onStateChange=function(){var a=this.transport.readyState;if(a!=1){this.respondToReadyState(this.transport.readyState)}};HTTP.Request.prototype.respondToReadyState=function(a){var c=HTTP.Request.EventNames[a];if(c=="complete"){var b=this.getOption("on"+this.transport.status);if(!b){if(this.isSuccess()){b=this.getOption("onsuccess")}else{b=this.getOption("onfailure")}}if(b){(b)(this.transport)}}if(this.getOption("on"+c)){(this.getOption("on"+c))(this.transport)}if(c=="complete"){this.transport.onreadystatechange=function(){}}};HTTP.Request.VERSION=0.03}if(typeof(HTTP.Request.Transport)=="undefined"){if(window.XMLHttpRequest){HTTP.Request.Transport=window.XMLHttpRequest}else{if(window.ActiveXObject&&window.clipboardData){new ActiveXObject("Microsoft.XMLHTTP");HTTP.Request.Transport=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}}if(typeof(HTTP.Request.Transport)=="undefined"){}if(typeof(HTTP.Request.Transport)=="undefined"){throw new Error("Unable to locate XMLHttpRequest or other HTTP transport mechanism")}}if(window.XMLHttpRequest||(window.ActiveXObject&&window.clipboardData)){}var req,captcha_id;function get_captcha(){if(captcha_id){return}req=new HTTP.Request({uri:"/treff/",postbody:"rm=ajaxcaptcha",onSuccess:function(a){captcha_id=a.responseText;var c=document.getElementById("captcha_session");c.value=captcha_id;var b=document.getElementById("captcha_img");b.onerror=function(){alert("Das Captcha-Bild konnte nicht geladen werden.\n Bitte laden Sie die Seite neu und versuchen Sie es erneut.")};b.src="/treff/?rm=showcaptcha&CGISESSID="+captcha_id},onFailure:function(){alert("XMLHttpRequest Problem beim Captcha.\n Bitte laden Sie die Seite neu und versuchen Sie es erneut.")}})}function v_zero_fill(b){var a=b.id.replace(/_stunde$/,"_minute");var c=document.getElementById(a);if(b.value.length>0&&c.value.length==0){c.value="00"}}function setCookie(b,d,a,f,c,e){document.cookie=b+"="+escape(d)+((a)?"; expires="+a.toGMTString():"")+((f)?"; path="+f:"")+((c)?"; domain="+c:"")+((e)?"; secure":"")}function getCookie(c){var b=document.cookie;var e=c+"=";var d=b.indexOf("; "+e);if(d==-1){d=b.indexOf(e);if(d!=0){return null}}else{d+=2}var a=document.cookie.indexOf(";",d);if(a==-1){a=b.length}return unescape(b.substring(d+e.length,a))}function deleteCookie(a,c,b){if(getCookie(a)){document.cookie=a+"="+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function toggle_eintaegig_mehrtaegig(e){var a=e.value;var c=window.document.forms.the_form;var b=new Array(c.eintag_datum_tag,c.eintag_datum_monat,c.eintag_datum_jahr,c.eintag_uhrzeit_von_stunde,c.eintag_uhrzeit_von_minute,c.eintag_uhrzeit_bis_stunde,c.eintag_uhrzeit_bis_minute);var d=new Array(c.mehrtag_datum_von_tag,c.mehrtag_datum_von_monat,c.mehrtag_datum_von_jahr,c.mehrtag_datum_bis_tag,c.mehrtag_datum_bis_monat,c.mehrtag_datum_bis_jahr,c.mehrtag_frequenz[0],c.mehrtag_frequenz[1],c.mehrtag_frequenz[2],c.mehrtag_frequenz[3],c.mehrtag_einzeltage_1,c.mehrtag_einzeltage_2,c.mehrtag_einzeltage_3,c.mehrtag_einzeltage_4,c.mehrtag_einzeltage_5,c.mehrtag_einzeltage_6,c.mehrtag_einzeltage_7,c.mehrtag_uhrzeit_von_stunde,c.mehrtag_uhrzeit_von_minute,c.mehrtag_uhrzeit_bis_stunde,c.mehrtag_uhrzeit_bis_minute);if(a=="eintaegig"){for(i in b){b[i].disabled=false}for(i in d){d[i].disabled=true}document.getElementById("eingabe_eintaegig").className="";document.getElementById("eingabe_mehrtaegig").className="flau";if(document.getElementById("error_eintaegig")){document.getElementById("error_eintaegig").className="error"}if(document.getElementById("error_mehrtaegig_datum")){document.getElementById("error_mehrtaegig_datum").className="flau"}if(document.getElementById("error_mehrtaegig_frequenz")){document.getElementById("error_mehrtaegig_frequenz").className="flau"}if(document.getElementById("error_mehrtaegig_uhrzeit")){document.getElementById("error_mehrtaegig_uhrzeit").className="flau"}}else{if(a=="mehrtaegig"){for(i in b){b[i].disabled=true}for(i in d){d[i].disabled=false}document.getElementById("eingabe_eintaegig").className="flau";document.getElementById("eingabe_mehrtaegig").className="";if(document.getElementById("error_eintaegig")){document.getElementById("error_eintaegig").className="flau"}if(document.getElementById("error_mehrtaegig_datum")){document.getElementById("error_mehrtaegig_datum").className="error"}if(document.getElementById("error_mehrtaegig_frequenz")){document.getElementById("error_mehrtaegig_frequenz").className="error"}if(document.getElementById("error_mehrtaegig_uhrzeit")){document.getElementById("error_mehrtaegig_uhrzeit").className="error"}}}}function toggle_eintaegig_mehrtaegig_onload(){var a=window.document.forms.the_form;if(a.eintaegig_mehrtaegig[0].checked){toggle_eintaegig_mehrtaegig(a.eintaegig_mehrtaegig[0])}else{if(a.eintaegig_mehrtaegig[1].checked){toggle_eintaegig_mehrtaegig(a.eintaegig_mehrtaegig[1])}}}window.gbar={};(function(){var a=window.gbar,e,d;a.qs=function(b){var f=window.encodeURIComponent&&(document.forms[0].q||"").value;if(f){b.href=b.href.replace(/([?&])q=[^&]*|$/,function(h,j){return(j||"&")+"q="+encodeURIComponent(f)})}};function c(b,f){b.visibility=d?"hidden":"visible";b.left=f+"px"}a.tg=function(b){b=b||window.event;var l=0,f,h=window.navExtra,k=document.getElementById("gbi"),j=b.target||b.srcElement;b.cancelBubble=true;if(!e){e=document.createElement(Array.every||window.createPopup?"iframe":"div");e.frameBorder="0";e.src="#";k.parentNode.appendChild(e).id="gbs";if(h){for(f in h){k.insertBefore(h[f],k.firstChild).className="gb2"}}document.onclick=a.close}if(j.className!="gb3"){j=j.parentNode}do{l+=j.offsetLeft}while(j=j.offsetParent);c(k.style,l);e.style.width=k.offsetWidth+"px";e.style.height=k.offsetHeight+"px";c(e.style,l);d=!d};a.close=function(b){d&&a.tg(b)}})();function go(a){if(!a){return false}window.location.href=a}document.write("<style>.js_disable { display:none }</style>");function popitup(a){newwindow=window.open(a,"name","width=800,height=600,scrollbars=no,status=no")}function GoTo(a){location.href=a}function show_blink1(){if(document.getElementById){document.getElementById("blink1").style.visibility="visible"}}function hide_blink1(){if(document.getElementById){document.getElementById("blink1").style.visibility="hidden"}}for(var i=800;i<4000;i=i+800){setTimeout("hide_blink1()",i);setTimeout("show_blink1()",i+400)};function Node(d,h,a,b,i,m,e,f,l,j,k,c,g){this.id=d;this.pid=h;this.name=a;this.url=b;this.count=i;this.subname=m;this.user=e;this.data=f;this.title=l;this.target=j;this.icon=k;this.iconOpen=c;this._io=g||false;this._is=false;this._ls=false;this._hc=false;this._ai=0;this._p}function dTree(a){this.config={target:null,folderLinks:true,useSelection:true,useCookies:true,useLines:true,useIcons:true,useStatusText:false,closeSameLevel:false,inOrder:false,nolineFirstLevel:true};this.icon={root:"http://slanetcdn.appspot.com/bilder/dtree/base.gif",folder:"http://slanetcdn.appspot.com/bilder/dtree/folder.gif",folderOpen:"http://slanetcdn.appspot.com/bilder/dtree/folderopen.gif",node:"http://slanetcdn.appspot.com/bilder/dtree/page.gif",empty:"http://slanetcdn.appspot.com/bilder/dtree/empty.gif",line:"http://slanetcdn.appspot.com/bilder/dtree/line.gif",join:"http://slanetcdn.appspot.com/bilder/dtree/join.gif",joinBottom:"http://slanetcdn.appspot.com/bilder/dtree/joinbottom.gif",plus:"http://slanetcdn.appspot.com/bilder/dtree/plus.gif",plusBottom:"http://slanetcdn.appspot.com/bilder/dtree/plusbottom.gif",minus:"http://slanetcdn.appspot.com/bilder/dtree/minus.gif",minusBottom:"http://slanetcdn.appspot.com/bilder/dtree/minusbottom.gif",nlPlus:"http://slanetcdn.appspot.com/bilder/dtree/nolines_plus.gif",nlMinus:"http://slanetcdn.appspot.com/bilder/dtree/nolines_minus.gif"};this.obj=a;this.aNodes=[];this.aIndent=[];this.root=new Node(-1);this.selectedNode=null;this.selectedFound=false;this.completed=false}dTree.prototype.add=function(c,f,a,b,i,g,h,d,e){this.aNodes[this.aNodes.length]=new Node(c,f,a,b,i,g,h,d,e)};dTree.prototype.openAll=function(){this.oAll(true)};dTree.prototype.closeAll=function(){this.oAll(false)};dTree.prototype.toString=function(){var a='<div class="dtree">\n';if(document.getElementById){if(this.config.useCookies){this.selectedNode=this.getSelected()}a+=this.addNode(this.root)}else{a+="Browser not supported."}a+="</div>";if(!this.selectedFound){this.selectedNode=null}this.completed=true;return a};dTree.prototype.addNode=function(a){var b="";var d=0;if(this.config.inOrder){d=a._ai}for(d;d<this.aNodes.length;d++){if(this.aNodes[d].pid==a.id){var c=this.aNodes[d];c._p=a;c._ai=d;this.setCS(c);if(!c.target&&this.config.target){c.target=this.config.target}if(c._hc&&!c._io&&this.config.useCookies){c._io=this.isOpen(c.id)}if(!this.config.folderLinks&&c._hc){c.url=null}if(this.config.useSelection&&c.id==this.selectedNode&&!this.selectedFound){c._is=true;this.selectedNode=d;this.selectedFound=true}b+=this.node(c,d);if(c._ls){break}}}return b};dTree.prototype.node=function(a,c){var b="";if(a.pid==0){b+='<div class="abstand"></div>'}b+='<div class="dTreeNode">';if(a.user){b+='<span class="posabs">'+a.user+" | "+a.data+"</span>"}b+=this.indent(a,c);if(this.config.useIcons){if(!a.icon){a.icon=(this.root.id==a.pid)?this.icon.root:((a._hc)?this.icon.folder:this.icon.node)}if(!a.iconOpen){a.iconOpen=(a._hc)?this.icon.folderOpen:this.icon.node}if(this.root.id==a.pid){a.icon=this.icon.root;a.iconOpen=this.icon.root}b+='<img id="i'+this.obj+c+'" src="'+((a._io)?a.iconOpen:a.icon)+'" alt="" />'}if(a.url){b+='<a id="s'+this.obj+c+'" class="'+((this.config.useSelection)?((a._is?"nodeSel":"node")):"node")+'" href="'+a.url+'"';if(a.title){b+=' title="'+a.title+'"'}if(a.target){b+=' target="'+a.target+'"'}if(this.config.useStatusText){b+=" onmouseover=\"window.status='"+a.name+"';return true;\" onmouseout=\"window.status='';return true;\" "}if(this.config.useSelection&&((a._hc&&this.config.folderLinks)||!a._hc)){b+=' onclick="javascript: '+this.obj+".s("+c+');"'}b+=">"}else{if((!this.config.folderLinks||!a.url)&&a._hc&&a.pid!=this.root.id){b+='<a href="javascript: '+this.obj+".o("+c+');" class="node">'}}b+=a.name;if(a.url||((!this.config.folderLinks||!a.url)&&a._hc)){b+="</a>"}if(a.count){b+=" ("+a.count+")"}if(a.subname){b+="<br />"+a.subname}b+="</div>";if(a._hc){b+='<div id="d'+this.obj+c+'" class="clip'+((this.root.id==a.pid)?((a.user?"":" clip_pad")):"")+'" style="display:'+((this.root.id==a.pid||a._io)?"block":"none")+';">';b+=this.addNode(a);b+="</div>"}this.aIndent.pop();return b};dTree.prototype.indent=function(a,c){var b="";if(this.root.id!=a.pid){for(var d=0;d<this.aIndent.length;d++){b+='<img src="'+((this.aIndent[d]==1&&this.config.useLines&&(d>0||!this.config.nolineFirstLevel))?this.icon.line:this.icon.empty)+'" alt="" />'}(a._ls)?this.aIndent.push(0):this.aIndent.push(1);if(a._hc){b+='<a href="javascript: '+this.obj+".o("+c+');"><img id="j'+this.obj+c+'" src="';if(!this.config.useLines||(d==0&&this.config.nolineFirstLevel)){b+=(a._io)?this.icon.nlMinus:this.icon.nlPlus}else{b+=((a._io)?((a._ls&&this.config.useLines)?this.icon.minusBottom:this.icon.minus):((a._ls&&this.config.useLines)?this.icon.plusBottom:this.icon.plus))}b+='" alt="" /></a>'}else{b+='<img src="'+((!this.config.useLines||(d==0&&this.config.nolineFirstLevel))?this.icon.empty:((a._ls)?this.icon.joinBottom:this.icon.join))+'" alt="" />'}}return b};dTree.prototype.setCS=function(a){var b;for(var c=0;c<this.aNodes.length;c++){if(this.aNodes[c].pid==a.id){a._hc=true}if(this.aNodes[c].pid==a.pid){b=this.aNodes[c].id}}if(b==a.id){a._ls=true}};dTree.prototype.getSelected=function(){var a=this.getCookie("cs"+this.obj);return(a)?a:null};dTree.prototype.s=function(b){if(!this.config.useSelection){return}var a=this.aNodes[b];if(a._hc&&!this.config.folderLinks){return}if(this.selectedNode!=b){if(this.selectedNode||this.selectedNode==0){eOld=document.getElementById("s"+this.obj+this.selectedNode);eOld.className="node"}eNew=document.getElementById("s"+this.obj+b);eNew.className="nodeSel";this.selectedNode=b;if(this.config.useCookies){this.setCookie("cs"+this.obj,a.id)}}};dTree.prototype.o=function(b){var a=this.aNodes[b];this.nodeStatus(!a._io,b,a._ls);a._io=!a._io;if(this.config.closeSameLevel){this.closeLevel(a)}if(this.config.useCookies){this.updateCookie()}};dTree.prototype.oAll=function(a){for(var b=0;b<this.aNodes.length;b++){if(this.aNodes[b]._hc&&this.aNodes[b].pid!=this.root.id){this.nodeStatus(a,b,this.aNodes[b]._ls);this.aNodes[b]._io=a}}if(this.config.useCookies){this.updateCookie()}};dTree.prototype.openTo=function(b,a,c){if(!c){for(var e=0;e<this.aNodes.length;e++){if(this.aNodes[e].id==b){b=e;break}}}var d=this.aNodes[b];if(d.pid==this.root.id||!d._p){return}d._io=true;d._is=a;if(this.completed&&d._hc){this.nodeStatus(true,d._ai,d._ls)}if(this.completed&&a){this.s(d._ai)}else{if(a){this._sn=d._ai}}this.openTo(d._p._ai,false,true)};dTree.prototype.closeLevel=function(a){for(var b=0;b<this.aNodes.length;b++){if(this.aNodes[b].pid==a.pid&&this.aNodes[b].id!=a.id&&this.aNodes[b]._hc){this.nodeStatus(false,b,this.aNodes[b]._ls);this.aNodes[b]._io=false;this.closeAllChildren(this.aNodes[b])}}};dTree.prototype.closeAllChildren=function(a){for(var b=0;b<this.aNodes.length;b++){if(this.aNodes[b].pid==a.id&&this.aNodes[b]._hc){if(this.aNodes[b]._io){this.nodeStatus(false,b,this.aNodes[b]._ls)}this.aNodes[b]._io=false;this.closeAllChildren(this.aNodes[b])}}};dTree.prototype.nodeStatus=function(a,c,b){eDiv=document.getElementById("d"+this.obj+c);eJoin=document.getElementById("j"+this.obj+c);if(this.config.useIcons){eIcon=document.getElementById("i"+this.obj+c);eIcon.src=(a)?this.aNodes[c].iconOpen:this.aNodes[c].icon}eJoin.src=(this.config.useLines&&(!eJoin.src.match(/.*nolines_plus\.gif$/g)&&!eJoin.src.match(/.*nolines_minus\.gif$/g)))?((a)?((b)?this.icon.minusBottom:this.icon.minus):((b)?this.icon.plusBottom:this.icon.plus)):((a)?this.icon.nlMinus:this.icon.nlPlus);eDiv.style.display=(a)?"block":"none"};dTree.prototype.clearCookie=function(){var a=new Date();var b=new Date(a.getTime()-1000*60*60*24);this.setCookie("co"+this.obj,"cookieValue",b);this.setCookie("cs"+this.obj,"cookieValue",b)};dTree.prototype.setCookie=function(f,e,a,d,b,c){document.cookie=escape(f)+"="+escape(e)+(a?"; expires="+a.toGMTString():"")+(d?"; path="+d:"")+(b?"; domain="+b:"")+(c?"; secure":"")};dTree.prototype.getCookie=function(e){var d="";var b=document.cookie.indexOf(escape(e)+"=");if(b!=-1){var c=b+(escape(e)+"=").length;var a=document.cookie.indexOf(";",c);if(a!=-1){d=unescape(document.cookie.substring(c,a))}else{d=unescape(document.cookie.substring(c))}}return(d)};dTree.prototype.updateCookie=function(){var a="";for(var b=0;b<this.aNodes.length;b++){if(this.aNodes[b]._io&&this.aNodes[b].pid!=this.root.id){if(a){a+="."}a+=this.aNodes[b].id}}this.setCookie("co"+this.obj,a)};dTree.prototype.isOpen=function(c){var b=this.getCookie("co"+this.obj).split(".");for(var a=0;a<b.length;a++){if(b[a]==c){return true}}return false};if(!Array.prototype.push){Array.prototype.push=function array_push(){for(var a=0;a<arguments.length;a++){this[this.length]=arguments[a]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function array_pop(){lastElement=this[this.length-1];this.length=Math.max(this.length-1,0);return lastElement}};if(typeof Scl=="undefined"){var Scl={}}(function(){Scl.MenuItem=function(c,b,a){this.text=c;this.link=b;this.cssClass=a};Scl.Menu=function(b){var w=this;var A;var C=new Array();var z;var f=0;var q=0;var t=b?b:200;var r=0;var p;var d=false;var j;var l=0;var i=0;var a=0;var o=1;this.animationType=o;this.animationSpeed=10;this.animationStep=15;this.margin=2;this.menuCssClass="menu";this.menuItemCssClass="menuItem";this.rightToLeft=false;this.bottomToTop=false;this.hideTimeOut=120;this.addItem=function(F,E,D){C.push(new Scl.MenuItem(F,E,D))};this.dockTo=function(D){u(window,"load",function(){e(D)},false)};this.showAt=function(E){c();var D=y(E);D.y+=(w.bottomToTop)?(r+w.margin)*-1:w.margin+E.offsetHeight;x(D.x,D.y)};this.showAtPosition=function(D,E){c();x(D,E)};this.hide=function(){p=setTimeout(B,w.hideTimeOut)};function e(D){if(typeof(D)=="string"){D=document.getElementById(D)}z=D;u(D,"mouseover",n,false);u(D,"mouseout",w.hide,false)}function n(){w.showAt(z)}function c(){if(A==null){k()}}function x(D,E){m();A.style.left=D+"px";A.style.top=E+"px";f=D;q=E;switch(w.animationType){case a:A.style.display="block";break;default:g(0,r);break}}function k(){A=document.createElement("div");A.style.position="absolute";var E=document.createElement("div");A.appendChild(E);E.className=w.menuCssClass;E.style.width=t+"px";u(A,"mouseover",m,false);u(A,"mouseout",w.hide,false);for(var D=0;D<C.length;D++){var F=h(C[D]);E.appendChild(F)}document.body.appendChild(A);r=A.offsetHeight}function h(D){var F=document.createElement("div");F.className=D.cssClass!=null?D.cssClass:w.menuItemCssClass;if(D.link!=null){F.link=D.link;F.onclick=function(){window.location=D.link};var E=document.createElement("a");E.setAttribute("href",D.link);E.appendChild(document.createTextNode(D.text));F.appendChild(E)}return F}function m(){clearTimeout(p);p=null}function B(){switch(w.animationType){case a:A.style.display="none";break;default:g(v(A.style.height),0);break}}function v(D){return parseInt(D.substring(0,D.length-2))}function y(E){var D=0;var F=0;if(E.offsetParent){do{D+=E.offsetLeft;F+=E.offsetTop;if(!E.offsetParent){break}}while(E=E.offsetParent)}else{if(E.x){D+=E.x;F+=E.y}}return{x:D,y:F}}function u(E,F,G,D){if(E.addEventListener){E.addEventListener(F,G,D)}else{if(E.attachEvent){E.attachEvent("on"+F,G)}else{E["on"+F]=G}}}function g(F,D){var E=D>F;if(E&d){return}A.style.zIndex=E?20:1;l=F;i=D;A.style.overflow="hidden";A.style.display="block";A.style.height=l+"px";d=false;clearInterval(j);switch(w.animationType){case o:if(w.bottomToTop){A.style.top=(q+r-A.offsetHeight)+"px"}j=setInterval(s,w.animationSpeed);break}}function s(){var F=i>l;var D=A.style.height;var E=parseInt(D.substring(0,D.length-2));if((F&E>=i)||(!F&E<=i)){clearInterval(j);if(F){d=true}else{A.style.display="none"}}else{E+=F?w.animationStep:-w.animationStep;if((F&E>i)||(!F&E<i)){E=i}A.style.height=E+"px";if(w.bottomToTop){A.style.top=(q+r-E)+"px"}}}}})();
