var cssdropdown={disappeardelay:250,dropdownindicator:"",enablereveal:[true,5],enableiframeshim:1,dropmenuobj:null,asscmenuitem:null,domsupport:document.all||document.getElementById,standardbody:null,iframeshimadded:false,revealtimers:{},getposOffset:function(_1,_2){var _3=(_2=="left")?_1.offsetLeft:_1.offsetTop;var _4=_1.offsetParent;while(_4!=null){_3=(_2=="left")?_3+_4.offsetLeft:_3+_4.offsetTop;_4=_4.offsetParent;}return _3;},css:function(el,_5,_6){var _7=new RegExp("(^|\\s+)"+_5+"($|\\s+)","ig");if(_6=="check"){return _7.test(el.className);}else{if(_6=="remove"){el.className=el.className.replace(_7,"");}else{if(_6=="add"&&!_7.test(el.className)){el.className+=" "+_5;}}}},showmenu:function(_8,e){if(this.enablereveal[0]){if(!_8._trueheight||_8._trueheight<10){_8._trueheight=_8.offsetHeight;}clearTimeout(this.revealtimers[_8.id]);_8.style.height=_8._curheight=0;_8.style.overflow="hidden";_8.style.visibility="visible";this.revealtimers[_8.id]=setInterval(function(){cssdropdown.revealmenu(_8);},10);}else{_8.style.visibility="visible";}this.css(this.asscmenuitem,"selected","add");},revealmenu:function(_9,_a){var _b=_9._curheight,_c=_9._trueheight,_d=this.enablereveal[1];if(_b<_c){var _e=Math.min(_b,_c);_9.style.height=_e+"px";_9._curheight=_e+Math.round((_c-_e)/_d)+1;}else{_9.style.height="auto";_9.style.overflow="hidden";clearInterval(this.revealtimers[_9.id]);}},clearbrowseredge:function(_f,_10){var _11=0;if(_10=="rightedge"){var _12=document.all&&!window.opera?this.standardbody.scrollLeft+this.standardbody.clientWidth-15:window.pageXOffset+window.innerWidth-15;var _13=this.dropmenuobj.offsetWidth;if(_12-this.dropmenuobj.x<_13){_11=_13-_f.offsetWidth;}}else{var _14=document.all&&!window.opera?this.standardbody.scrollTop:window.pageYOffset;var _12=document.all&&!window.opera?this.standardbody.scrollTop+this.standardbody.clientHeight-15:window.pageYOffset+window.innerHeight-18;var _15=this.dropmenuobj._trueheight;if(_12-this.dropmenuobj.y<_15){_11=_15+_f.offsetHeight;if((this.dropmenuobj.y-_14)<_15){_11=this.dropmenuobj.y+_f.offsetHeight-_14;}}}return _11;},dropit:function(obj,e,_16){if(this.dropmenuobj!=null){this.hidemenu();}this.clearhidemenu();this.dropmenuobj=document.getElementById(_16);this.asscmenuitem=obj;this.showmenu(this.dropmenuobj,e);this.dropmenuobj.x=this.getposOffset(obj,"left");this.dropmenuobj.y=this.getposOffset(obj,"top");this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj,"rightedge")+"px";this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+1+"px";this.positionshim();},positionshim:function(){if(this.iframeshimadded){if(this.dropmenuobj.style.visibility=="visible"){this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px";this.shimobject.style.height=this.dropmenuobj._trueheight+"px";this.shimobject.style.left=parseInt(this.dropmenuobj.style.left)+"px";this.shimobject.style.top=parseInt(this.dropmenuobj.style.top)+"px";this.shimobject.style.display="block";}}},hideshim:function(){if(this.iframeshimadded){this.shimobject.style.display="none";}},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;}},dynamichide:function(m,e){if(!this.isContained(m,e)){this.delayhidemenu();}},delayhidemenu:function(){this.delayhide=setTimeout("cssdropdown.hidemenu()",this.disappeardelay);},hidemenu:function(){this.css(this.asscmenuitem,"selected","remove");this.dropmenuobj.style.visibility="hidden";this.dropmenuobj.style.left=this.dropmenuobj.style.top="-1000px";this.hideshim();},clearhidemenu:function(){if(this.delayhide!="undefined"){clearTimeout(this.delayhide);}},addEvent:function(_17,_18,_19){if(_17.addEventListener){_17.addEventListener(_19,_18,false);}else{if(_17.attachEvent){_17.attachEvent("on"+_19,function(){return _18.call(_17,window.event);});}}},startchrome:function(){if(!this.domsupport){return;}this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;for(var ids=0;ids<arguments.length;ids++){var _1a=document.getElementById(arguments[ids]).getElementsByTagName("a");for(var i=0;i<_1a.length;i++){if(_1a[i].getAttribute("rel")){var _1b=_1a[i].getAttribute("rel");var _1c=document.getElementById(_1b);this.addEvent(_1c,function(){cssdropdown.clearhidemenu();},"mouseover");this.addEvent(_1c,function(e){cssdropdown.dynamichide(this,e);},"mouseout");this.addEvent(_1c,function(){cssdropdown.delayhidemenu();},"click");try{_1a[i].innerHTML=_1a[i].innerHTML+" "+this.dropdownindicator;}catch(e){}this.addEvent(_1a[i],function(e){if(!cssdropdown.isContained(this,e)){var _1d=window.event||e;cssdropdown.dropit(this,_1d,this.getAttribute("rel"));}},"mouseover");this.addEvent(_1a[i],function(e){cssdropdown.dynamichide(this,e);},"mouseout");this.addEvent(_1a[i],function(){cssdropdown.delayhidemenu();},"click");}}}if(this.enableiframeshim&&document.all&&!window.XDomainRequest&&!this.iframeshimadded){document.write("<IFRAME id=\"iframeshim\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" style=\"left:0; top:0; position:absolute; display:none;z-index:90; background: transparent;\"></IFRAME>");this.shimobject=document.getElementById("iframeshim");this.shimobject.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";this.iframeshimadded=true;}}};
