var dropdowncontent={delaybeforehide:200,disableanchorlink:true,getposOffset:function(B,A){return(B.offsetParent)?B[A]+this.getposOffset(B.offsetParent,A):B[A]},isContained:function(A,B){var B=window.event||B;var C=B.relatedTarget||((B.type=="mouseover")?B.fromElement:B.toElement);while(C&&C!=A){try{C=C.parentNode}catch(B){C=A}}if(C==A){return true}else{return false}},show:function(B,D,E){if(!this.isContained(B,E)){var C=(D.dropposition[0]=="left")?-(D.offsetWidth-B.offsetWidth):0;var A=(D.dropposition[1]=="top")?-D.offsetHeight:B.offsetHeight;D.style.left=this.getposOffset(B,"offsetLeft")+C+"px";D.style.top=this.getposOffset(B,"offsetTop")+A+"px";D.style.clip=(D.dropposition[1]=="top")?"rect(auto auto auto 0)":"rect(0 auto 0 0)";D.style.visibility="visible";D.startTime=new Date().getTime();D.contentheight=parseInt(D.offsetHeight);if(typeof window["hidetimer_"+D.id]!="undefined"){clearTimeout(window["hidetimer_"+D.id])}this.slideengine(D,(D.dropposition[1]=="top")?"up":"down")}},curveincrement:function(A){return(1-Math.cos(A*Math.PI))/2},slideengine:function(E,D){var B=new Date().getTime()-E.startTime;if(B<E.glidetime){var A=(D=="down")?this.curveincrement(B/E.glidetime):1-this.curveincrement(B/E.glidetime);var C=(A*E.contentheight)+"px";E.style.clip=(D=="down")?"rect(0 auto "+C+" 0)":"rect("+C+" auto auto 0)";window["glidetimer_"+E.id]=setTimeout(function(){dropdowncontent.slideengine(E,D)},10)}else{E.style.clip="rect(0 auto auto 0)"}},hide:function(B,A,C){if(!dropdowncontent.isContained(B,C)){window["hidetimer_"+A.id]=setTimeout(function(){A.style.visibility="hidden";A.style.left=A.style.top=0;clearTimeout(window["glidetimer_"+A.id])},dropdowncontent.delaybeforehide)}},init:function(A,E,D){var B=document.getElementById(A);var C=document.getElementById(B.getAttribute("rel"));C.dropposition=E.split("-");C.glidetime=D||1000;C.style.left=C.style.top=0;B.onmouseover=function(F){dropdowncontent.show(this,C,F)};B.onmouseout=function(F){dropdowncontent.hide(C,C,F)};if(this.disableanchorlink){B.onclick=function(){return false}}C.onmouseout=function(F){dropdowncontent.hide(this,C,F)}}}