/*Drop Down Tabs Menu- (c) Dynamic Drive DHTML code library
This notice MUST stay intact for legal use
Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
Drop Down Tabs Menu- Author:Dynamic Drive*/
var tdd={dDelay:100,dd:null,ie:document.all,ff:document.getElementById&&!document.all,pI:null,cURL:window.location.href.replace("http://"+window.location.hostname,"").replace(/^\//,""),pOS:function(w,ot){var tO=(ot=="left")?w.offsetLeft:w.offsetTop;var parentEl=w.offsetParent;while(parentEl!=null){tO=(ot=="left")?tO+parentEl.offsetLeft:tO+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
return tO;},sh:function(o,e,o2){if(this.ie||this.ff)this.dd.style.left=this.dd.style.top="-500px"
if(e.type=="click"&&o.visibility==hidden||e.type=="mouseover"){if(o2.parentNode.className.indexOf("default")==-1)o2.parentNode.className="selected";o.visibility="visible";}else if(e.type=="click"){o.visibility="hidden"}},iecompat:function(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body},cEdge:function(o,w){var eo=0
if(w=="rightedge"){var wE=this.ie&&!window.opera?this.sb.scrollLeft+this.sb.clientWidth-15:window.pageXOffset+window.innerWidth-15
this.dd.cM=this.dd.offsetWidth
if(wE-this.dd.x<this.dd.cM)eo=this.dd.cM-o.offsetWidth}else{var tE=this.ie&&!window.opera?this.sb.scrollTop:window.pageYOffset
var wE=this.ie&&!window.opera?this.sb.scrollTop+this.sb.clientHeight-15:window.pageYOffset+window.innerHeight-18
this.dd.cM=this.dd.offsetHeight
if(wE-this.dd.y<this.dd.cM){eo=this.dd.cMe+o.offsetHeight
if((this.dd.y-tE)<this.dd.cM)eo=this.dd.y+o.offsetHeight-tE}
this.dd.fl.style.borderTopWidth=(eo==0)?0:"1px"}
return eo},drop:function(o,e,m){try{document.getElementById('suggestions').style.display='none';}catch(sErr){}
if(this.dd!=null){this.dd.style.visibility="hidden"
if(this.pI!=null&&this.pI!=o){if(this.pI.parentNode.className.indexOf("default")==-1)this.pI.parentNode.className=""}}
this.clr()
if(this.ie||this.ff){o.onmouseout=function(){tdd.delhide(o)}
this.dd=document.getElementById(m)
this.dd.onmouseover=function(){tdd.clr()}
this.dd.onmouseout=function(e){tdd.dynhide(e,o)}
this.dd.onclick=function(){tdd.delhide(o)}
this.sh(this.dd.style,e,o)
this.dd.x=this.pOS(o,"left")
this.dd.y=this.pOS(o,"top")
this.dd.style.left=this.dd.x-this.cEdge(o,"rightedge")+"px"
this.dd.style.top=this.dd.y-this.cEdge(o,"bottomedge")+o.offsetHeight+1+"px"
this.pI=o}},c_ff:function(a,b){while(b.parentNode)
if((b=b.parentNode)==a)return true;return false;},dynhide:function(e,o2){var evt=window.event?window.event:e
if(this.ie&&!this.dd.contains(evt.toElement))this.delhide(o2)
else if(this.ff&&e.currentTarget!=evt.relatedTarget&&!this.c_ff(evt.currentTarget,evt.relatedTarget))
this.delhide(o2)},delhide:function(o2){this.delayhide=setTimeout(function(){tdd.dd.style.visibility='hidden';if(o2.parentNode.className.indexOf('default')==-1){o2.parentNode.className='';}},this.dDelay)},clr:function(){if(this.delayhide!="undefined"){clearTimeout(this.delayhide);}},isSel:function(mURL){var mURL=mURL.replace("http://"+mURL.hostname,"").replace(/^\//,"")
return(tdd.cURL==mURL)},init:function(m,d){this.sb=(document.compatMode=="CSS1Compat")?document.documentElement:document.body
var I=document.getElementById(m).getElementsByTagName("a")
for(var i=0;i<I.length;i++){if(I[i].getAttribute("rel")){var rv=I[i].getAttribute("rel")
document.getElementById(rv).fl=document.getElementById(rv).getElementsByTagName("a")[0]
I[i].onmouseover=function(e){var event=typeof e!="undefined"?e:window.event
tdd.drop(this,event,this.getAttribute("rel"))}}
if(d=="auto"&&typeof setalready=="undefined"&&this.isSel(I[i].href)){I[i].parentNode.className+=" selected default"
var setalready=true}
else if(parseInt(d)==i)I[i].parentNode.className+=" selected default"}}}
var mSel=0;function selectedNav(s){mSel=s;}
