var dropdowncontent={disableanchorlink:true,hidedivmouseout:[false,200],ajaxloadingmsg:"Loading content. Please wait...",ajaxbustcache:true,getposOffset:function(_1,_2){return (_1.offsetParent)?_1[_2]+this.getposOffset(_1.offsetParent,_2):_1[_2];},isContained:function(m,e){var e=window.event||e;var c=e.relatedTarget||((e.type=="mouseover")?e.fromElement:e.toElement);while(c&&c!=m){try{c=c.parentNode;}catch(e){c=m;}}if(c==m){return true;}else{return false;}},show:function(_6,_7,e){if(!this.isContained(_6,e)||(e&&e.type=="click")){var e=window.event||e;if(e.type=="click"&&_7.style.visibility=="visible"){_7.style.visibility="hidden";return;}var _9=(_7.dropposition[0]=="left")?-(_7.offsetWidth-_6.offsetWidth):0;var _a=(_7.dropposition[1]=="top")?-_7.offsetHeight:_6.offsetHeight;_7.style.left=this.getposOffset(_6,"offsetLeft")+_9+"px";_7.style.top=this.getposOffset(_6,"offsetTop")+_a+"px";_7.style.clip=(_7.dropposition[1]=="top")?"rect(auto auto auto 0)":"rect(0 auto 0 0)";_7.style.visibility="visible";_7.startTime=new Date().getTime();_7.contentheight=parseInt(_7.offsetHeight);if(typeof window["hidetimer_"+_7.id]!="undefined"){clearTimeout(window["hidetimer_"+_7.id]);}this.slideengine(_7,(_7.dropposition[1]=="top")?"up":"down");}},curveincrement:function(_b){return (1-Math.cos(_b*Math.PI))/2;},slideengine:function(_c,_d){var _e=new Date().getTime()-_c.startTime;if(_e<_c.glidetime){var _f=(_d=="down")?this.curveincrement(_e/_c.glidetime):1-this.curveincrement(_e/_c.glidetime);var _10=(_f*_c.contentheight)+"px";_c.style.clip=(_d=="down")?"rect(0 auto "+_10+" 0)":"rect("+_10+" auto auto 0)";window["glidetimer_"+_c.id]=setTimeout(function(){dropdowncontent.slideengine(_c,_d);},10);}else{_c.style.clip="rect(0 auto auto 0)";}},hide:function(_11,_12,e){if(!dropdowncontent.isContained(_11,e)){window["hidetimer_"+_12.id]=setTimeout(function(){_12.style.visibility="hidden";_12.style.left=_12.style.top=0;clearTimeout(window["glidetimer_"+_12.id]);},dropdowncontent.hidedivmouseout[1]);}},hidediv:function(_14){document.getElementById(_14).style.visibility="hidden";},ajaxconnect:function(_15,_16){var _17=false;var _18="";if(window.XMLHttpRequest){_17=new XMLHttpRequest();}else{if(window.ActiveXObject){try{_17=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{_17=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}else{return false;}}document.getElementById(_16).innerHTML=this.ajaxloadingmsg;_17.onreadystatechange=function(){dropdowncontent.loadpage(_17,_16);};if(this.ajaxbustcache){_18=(_15.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime();}_17.open("GET",_15+_18,true);_17.send(null);},loadpage:function(_19,_1a){if(_19.readyState==4&&(_19.status==200||window.location.href.indexOf("http")==-1)){document.getElementById(_1a).innerHTML=_19.responseText;}},init:function(_1b,pos,_1d,_1e){var _1f=document.getElementById(_1b);var _20=document.getElementById(_1f.getAttribute("rel"));var _21=_1f.getAttribute("rev");if(_21!=null&&_21!=""){this.ajaxconnect(_21,_1f.getAttribute("rel"));}_20.dropposition=pos.split("-");_20.glidetime=_1d||1000;_20.style.left=_20.style.top=0;if(typeof _1e=="undefined"||_1e=="mouseover"){_1f.onmouseover=function(e){dropdowncontent.show(this,_20,e);};_1f.onmouseout=function(e){dropdowncontent.hide(_20,_20,e);};if(this.disableanchorlink){_1f.onclick=function(){return false;};}}else{_1f.onclick=function(e){dropdowncontent.show(this,_20,e);return false;};}if(this.hidedivmouseout[0]==true){_20.onmouseout=function(e){dropdowncontent.hide(this,_20,e);};}}};
