<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<PRE>//Chrome Drop Down Menu v2.01- Author: Dynamic Drive (http://www.dynamicdrive.com)
//Last updated: November 14th 06- added iframe shim technique</PRE>
<PRE>var cssdropdown={
disappeardelay: 250, //set delay in miliseconds before menu disappears onmouseout
disablemenuclick: true, //when user clicks on a menu item with a drop down menu, disable menu item's link?
enableswipe: 1, //enable swipe effect? 1 for yes, 0 for no
enableiframeshim: 1, //enable &quot;iframe shim&quot; technique to get drop down menus to correctly appear on top of controls such as form objects in IE5.5/IE6? 1 for yes, 0 for no</PRE>
<PRE>//No need to edit beyond here////////////////////////
dropmenuobj: null, ie: document.all, firefox: document.getElementById&amp;&amp;!document.all, swipetimer: undefined, bottomclip:0,</PRE>
<PRE>getposOffset:function(what, offsettype){
var totaloffset=(offsettype==&quot;left&quot;)? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype==&quot;left&quot;)? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
},</PRE>
<PRE>swipeeffect:function(){
if (this.bottomclip&lt;parseInt(this.dropmenuobj.offsetHeight)){
this.bottomclip+=10+(this.bottomclip/10) //unclip drop down menu visibility gradually
this.dropmenuobj.style.clip=&quot;rect(0 auto &quot;+this.bottomclip+&quot;px 0)&quot;
}
else
return
this.swipetimer=setTimeout(&quot;cssdropdown.swipeeffect()&quot;, 10)
},</PRE>
<PRE>showhide:function(obj, e){
if (this.ie || this.firefox)
this.dropmenuobj.style.left=this.dropmenuobj.style.top=&quot;-500px&quot;
if (e.type==&quot;click&quot; &amp;&amp; obj.visibility==hidden || e.type==&quot;mouseover&quot;){
if (this.enableswipe==1){
if (typeof this.swipetimer!=&quot;undefined&quot;)
clearTimeout(this.swipetimer)
obj.clip=&quot;rect(0 auto 0 0)&quot; //hide menu via clipping
this.bottomclip=0
this.swipeeffect()
}
obj.visibility=&quot;visible&quot;
}
else if (e.type==&quot;click&quot;)
obj.visibility=&quot;hidden&quot;
},</PRE>
<PRE>iecompattest:function(){
return (document.compatMode &amp;&amp; document.compatMode!=&quot;BackCompat&quot;)? document.documentElement : document.body
},</PRE>
<PRE>clearbrowseredge:function(obj, whichedge){
var edgeoffset=0
if (whichedge==&quot;rightedge&quot;){
var windowedge=this.ie &amp;&amp; !window.opera? this.iecompattest().scrollLeft+this.iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth
if (windowedge-this.dropmenuobj.x &lt; this.dropmenuobj.contentmeasure)  //move menu to the left?
edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=this.ie &amp;&amp; !window.opera? this.iecompattest().scrollTop : window.pageYOffset
var windowedge=this.ie &amp;&amp; !window.opera? this.iecompattest().scrollTop+this.iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight
if (windowedge-this.dropmenuobj.y &lt; this.dropmenuobj.contentmeasure){ //move up?
edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
if ((this.dropmenuobj.y-topedge)&lt;this.dropmenuobj.contentmeasure) //up no good either?
edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
},</PRE>
<PRE>dropit:function(obj, e, dropmenuID){
if (this.dropmenuobj!=null) //hide previous menu
this.dropmenuobj.style.visibility=&quot;hidden&quot; //hide menu
this.clearhidemenu()
if (this.ie||this.firefox){
obj.onmouseout=function(){cssdropdown.delayhidemenu()}
obj.onclick=function(){return !cssdropdown.disablemenuclick} //disable main menu item link onclick?
this.dropmenuobj=document.getElementById(dropmenuID)
this.dropmenuobj.onmouseover=function(){cssdropdown.clearhidemenu()}
this.dropmenuobj.onmouseout=function(e){cssdropdown.dynamichide(e)}
this.dropmenuobj.onclick=function(){cssdropdown.delayhidemenu()}
this.showhide(this.dropmenuobj.style, e)
this.dropmenuobj.x=this.getposOffset(obj, &quot;left&quot;)
this.dropmenuobj.y=this.getposOffset(obj, &quot;top&quot;)
this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, &quot;rightedge&quot;)+&quot;px&quot;
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, &quot;bottomedge&quot;)+obj.offsetHeight+1+&quot;px&quot;
this.positionshim() //call iframe shim function
}
},</PRE>
<PRE>positionshim:function(){ //display iframe shim function
if (this.enableiframeshim &amp;&amp; typeof this.shimobject!=&quot;undefined&quot;){
if (this.dropmenuobj.style.visibility==&quot;visible&quot;){
this.shimobject.style.width=this.dropmenuobj.offsetWidth+&quot;px&quot;
this.shimobject.style.height=this.dropmenuobj.offsetHeight+&quot;px&quot;
this.shimobject.style.left=this.dropmenuobj.style.left
this.shimobject.style.top=this.dropmenuobj.style.top
}
this.shimobject.style.display=(this.dropmenuobj.style.visibility==&quot;visible&quot;)? &quot;block&quot; : &quot;none&quot;
}
},</PRE>
<PRE>hideshim:function(){
if (this.enableiframeshim &amp;&amp; typeof this.shimobject!=&quot;undefined&quot;)
this.shimobject.style.display='none'
},</PRE>
<PRE>contains_firefox:function(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
},</PRE>
<PRE>dynamichide:function(e){
var evtobj=window.event? window.event : e
if (this.ie&amp;&amp;!this.dropmenuobj.contains(evtobj.toElement))
this.delayhidemenu()
else if (this.firefox&amp;&amp;e.currentTarget!= evtobj.relatedTarget&amp;&amp; !this.contains_firefox(evtobj.currentTarget, evtobj.relatedTarget))
this.delayhidemenu()
},</PRE>
<PRE>delayhidemenu:function(){
this.delayhide=setTimeout(&quot;cssdropdown.dropmenuobj.style.visibility='hidden'; cssdropdown.hideshim()&quot;,this.disappeardelay) //hide menu
},</PRE>
<PRE>clearhidemenu:function(){
if (this.delayhide!=&quot;undefined&quot;)
clearTimeout(this.delayhide)
},</PRE>
<PRE>startchrome:function(){
for (var ids=0; ids&lt;arguments.length; ids++){
var menuitems=document.getElementById(arguments[ids]).getElementsByTagName(&quot;a&quot;)
for (var i=0; i&lt;menuitems.length; i++){
if (menuitems[i].getAttribute(&quot;rel&quot;)){
var relvalue=menuitems[i].getAttribute(&quot;rel&quot;)
menuitems[i].onmouseover=function(e){
var event=typeof e!=&quot;undefined&quot;? e : window.event
cssdropdown.dropit(this,event,this.getAttribute(&quot;rel&quot;))
}
}
}
}
if (window.createPopup &amp;&amp; !window.XmlHttpRequest){ //if IE5.5 to IE6, create iframe for iframe shim technique
document.write('&lt;IFRAME id=&quot;iframeshim&quot;  src=&quot;&quot; style=&quot;display: none; left: 0; top: 0; z-index: 90; position: absolute; filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)&quot; frameBorder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/IFRAME&gt;')
this.shimobject=document.getElementById(&quot;iframeshim&quot;) //reference iframe object
}
}</PRE>
<PRE>}</PRE>