var cssdropdown={aa:250,ab:false,ac:1,dmo:null,ie:document.all,ff:document.getElementById&&!document.all,st:undefined,bc:0,g:function(w,ot){var to=(ot=="left")?w.offsetLeft:w.offsetTop;
var p=w.offsetParent;return to=(ot=="left")? to+p.offsetLeft:to+p.offsetTop;},se:function(){if(this.bc<parseInt(this.dmo.offsetHeight)){this.bc+=10+(this.bc/10);
this.dmo.style.clip="rect(0 auto "+this.bc+"px 0)";}else{return;
}this.st=setTimeout("cssdropdown.se()",10);},sh:function(obj,e){if(this.ie||this.ff){this.dmo.style.left=this.dmo.style.top="-500px"}
if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover"){if(this.ac==1){if(typeof this.st!="undefined"){clearTimeout(this.st);}obj.clip="rect(0 auto 0 0)";
this.bc=0;this.se();}obj.visibility="visible";
}else if(e.type=="click"){obj.visibility="hidden";
}else if(e.type=="focus"){obj.visibility="visible";
}},iec:function(){return(document.cm&&document.cm!="BackCompat")?document.documentElement:document.body;
},ce:function(obj,w){var ed=0;
if(w=="rightedge"){var we=this.ie&&!window.opera?this.iec().scrollLeft+this.iec().clientWidth-15:window.pageXOffset+window.innerWidth-15;
this.dmo.cm=this.dmo.offsetWidth;
if (we-this.dmo.x < this.dmo.cm){ed=this.dmo.cm-obj.offsetWidth;
}}else{var te=this.ie && !window.opera? this.iec().scrollTop:window.pageYOffset;
var we=this.ie && !window.opera? this.iec().scrollTop+this.iec().clientHeight-15:window.pageYOffset+window.innerHeight-18;
this.dmo.cm=this.dmo.offsetHeight;
if (we-this.dmo.y < this.dmo.cm){ed=this.dmo.cm+obj.offsetHeight;
if((this.dmo.y-te)<this.dmo.cm);
ed=this.dmo.y+obj.offsetHeight-te;
}}return ed;
},di:function(obj,e,did){if(this.dmo!=null){this.dmo.style.visibility="hidden";
}this.ch();
if(this.ie||this.ff){obj.onmouseout=function(){cssdropdown.dhm()};
obj.onclick=function(){return !cssdropdown.ab};
this.dmo=document.getElementById(did);

this.dmo.onmouseover=function(){cssdropdown.ch()};
this.dmo.onmouseout=function(e){cssdropdown.dh(e)};
this.dmo.onclick=function(){cssdropdown.dhm()};
this.sh(this.dmo.style, e);
this.dmo.x=this.g(obj.parentNode,"left");
this.dmo.y=(typeof DDMFIXEDOFFSETHEIGHT == "undefined")?this.g(obj,"top"):this.g(obj.parentNode.parentNode,"top");
this.dmo.style.left=this.dmo.x-this.ce(obj,"rightedge")+"px";
var chromemenuT = document.getElementById("chromemenu");
var bottomEdgeTest = this.ce(obj,"bottomedge");
var topPos = (typeof DDMFIXEDTOP == "undefined")? chromemenuT.offsetTop:DDMFIXEDTOP;
var offSetHeight = (typeof DDMFIXEDOFFSETHEIGHT == "undefined")? obj.offsetHeight: DDMFIXEDOFFSETHEIGHT;
this.dmo.style.top=topPos+obj.offsetTop+offSetHeight+1+"px";
/* PUT BOTTOM TEST <--- BACK FOR SNAP TO TOP if(bottomEdgeTest != 0){this.dmo.style.left = parseInt(this.dmo.style.left) + 150 + "px";}*/
}},cff:function(a,b){while(b.parentNode){if((b=b.parentNode)==a){return true;
}}return false;
},dh:function(e){var evtobj=window.event?window.event:e;
if(this.ie&&!this.dmo.contains(evtobj.toElement)){this.dhm();
}else if (this.ff&&e.currentTarget!= evtobj.relatedTarget&& !this.cff(evtobj.currentTarget,evtobj.relatedTarget)){this.dhm();
}},dhm:function(){this.delayhide=setTimeout("cssdropdown.dmo.style.visibility='hidden';",this.aa);
},ch:function(){if (this.delayhide!="undefined"){clearTimeout(this.delayhide);
}},startchrome:function(){for(var ids=0;
ids<arguments.length;
ids++){var mi=document.getElementById(arguments[ids]).getElementsByTagName("a");
for(var i=0;i<mi.length; i++){if(mi[i].getAttribute("rel")){
mi[i].onfocus=function(e){var event=typeof e!="undefined"?e:window.event;
cssdropdown.di(this,event,this.getAttribute("rel"));
}
mi[i].onmouseover=function(e){var event=typeof e!="undefined"?e:window.event;
cssdropdown.di(this,event,this.getAttribute("rel"));
}}}}}}