mtDropDown.spacerGif="";mtDropDown.dingbatOn="../images/expand-1.gif";mtDropDown.dingbatOff="../images/expand-1.gif";mtDropDown.dingbatSize=6;mtDropDown.menuPadding=5;mtDropDown.itemPadding=0;mtDropDown.shadowSize=2;mtDropDown.shadowOffset=3;mtDropDown.shadowColor="#000";mtDropDown.shadowPng="../images/expand-1.gif";mtDropDown.backgroundColor="white";mtDropDown.backgroundPng="../images/expand-1.gif";mtDropDown.hideDelay=500;mtDropDown.slideTime=400; mtDropDown.reference={topLeft:1,topRight:2,bottomLeft:3,bottomRight:4};mtDropDown.direction={down:1,right:2};mtDropDown.registry=[];mtDropDown._maxZ=100;mtDropDown.isSupported=function(){var a=navigator.userAgent.toLowerCase(),f=navigator.platform.toLowerCase(),j=navigator.appName,i=false;if(a.indexOf("gecko")>-1)i=true;else if(j=="Microsoft Internet Explorer")if(document.getElementById)i=f.indexOf("mac")==0?/msie (\d(.\d*)?)/.test(a)&&Number(RegExp.$1)>=5.1:true;return i}; mtDropDown.initialize=function(){for(var a=0,f=null;f=this.registry[a];a++)f.initialize()};mtDropDown.renderAll=function(){for(var a=[],f=0,j=null;j=this.registry[f];f++)a[f]=j.toString();document.write(a.join(""))}; function mtDropDown(a,f,j,i,o,k){function t(){var b=parseInt(c.mdm_content.style[u]),d=h.isOpen?0:-v;s!=null&&s.stop();s=new Accelimation(b,d,mtDropDown.slideTime,B);s.onframe=m;s.onend=g;s.start()}function m(b){c.mdm_content.style[u]=b+"px"}function g(){if(!h.isOpen)c.clip.style.visibility="hidden";p=false}function w(b){b.className="mdm_item";if(n[b._index])b.lastChild.firstChild.src=mtDropDown.dingbatOff}function C(){if(!p){this.className="mdm_item mdm_hover";if(n[this._index])this.lastChild.firstChild.src= mtDropDown.dingbatOn;if(n[this._index])q.showMenu(n[this._index]);else q&&q.hide()}}function D(){p||(n[this._index]?q.hideMenu(n[this._index]):w(this))}function E(){if(!p)if(h.items[this._index].url)location.href=h.items[this._index].url}function F(){k.showMenu(h)}function G(){k.hideMenu(h)}function H(){if(!p){k.showMenu(h);h.onmouseover()}}function I(){p||k.hideMenu(h)}function J(){p||k.showMenu(h)}function K(){for(var b=0;b
'+b.join("")+'
'};this.initialize=function(){var b=document.getElementById(y),d=b.all?b.all:b.getElementsByTagName("*");c={};c.clip=b;c.mdm_item=[];b=0;for(var e=null;e=d[b];b++)switch(e.className){case "mdm_items":case "mdm_content":case "mdm_background":case "mdm_shadowRight":case "mdm_shadowBottom":c[e.className]=e;break;case "mdm_item":e._index=c.mdm_item.length; c.mdm_item[e._index]=e}h.elmCache=c;d=0;for(b=null;b=c.mdm_item[d];d++){b.onmouseover=C;b.onmouseout=D;b.onclick=E}if(typeof a.tagName!="undefined"){a.onmouseover=F;a.onmouseout=G}c.mdm_content.onmouseover=H;c.mdm_content.onmouseout=I;d=c.mdm_items.offsetWidth;b=c.mdm_items.offsetHeight;e=navigator.userAgent.toLowerCase();c.clip.style.width=d+mtDropDown.shadowSize+2+"px";c.clip.style.height=b+mtDropDown.shadowSize+2+"px";c.mdm_content.style.width=d+mtDropDown.shadowSize+"px";c.mdm_content.style.height= b+mtDropDown.shadowSize+"px";z=b+mtDropDown.shadowSize;A=d+mtDropDown.shadowSize;v=f==mtDropDown.direction.down?z:A;c.mdm_content.style[u]=-v-mtDropDown.shadowSize+"px";c.clip.style.visibility="hidden";if(e.indexOf("mac")==-1||e.indexOf("gecko")>-1){c.mdm_background.style.width=d+"px";c.mdm_background.style.height=b+"px";c.mdm_background.style.backgroundColor=mtDropDown.backgroundColor;c.mdm_shadowRight.style.left=d+"px";c.mdm_shadowRight.style.height=b-(mtDropDown.shadowOffset-mtDropDown.shadowSize)+ "px";c.mdm_shadowRight.style.backgroundColor=mtDropDown.shadowColor;c.mdm_shadowBottom.style.top=b+"px";c.mdm_shadowBottom.style.width=d-mtDropDown.shadowOffset+"px";c.mdm_shadowBottom.style.backgroundColor=mtDropDown.shadowColor}else{c.mdm_background.firstChild.src=mtDropDown.backgroundPng;c.mdm_background.firstChild.width=d;c.mdm_background.firstChild.height=b;c.mdm_shadowRight.firstChild.src=mtDropDown.shadowPng;c.mdm_shadowRight.style.left=d+"px";c.mdm_shadowRight.firstChild.width=mtDropDown.shadowSize; c.mdm_shadowRight.firstChild.height=b-(mtDropDown.shadowOffset-mtDropDown.shadowSize);c.mdm_shadowBottom.firstChild.src=mtDropDown.shadowPng;c.mdm_shadowBottom.style.top=b+"px";c.mdm_shadowBottom.firstChild.height=mtDropDown.shadowSize;c.mdm_shadowBottom.firstChild.width=d-mtDropDown.shadowOffset}x=true};this.isOpen=false;this.show=function(){if(x){p=h.isOpen=true;for(var b=a.constructor==mtDropDownItem,d=b?a.parentMenu.elmCache.mdm_item[a._index]:a,e=d,l=0,r=0,M=(window.innerWidth?window.innerWidth: document.body.clientWidth)-parseInt(c.clip.style.width),N=(window.innerHeight?window.innerHeight:document.body.clientHeight)-parseInt(c.clip.style.height);b?e.parentNode.className.indexOf("mtDropdownMenu")==-1:e.offsetParent;){l+=e.offsetLeft;r+=e.offsetTop;if(e.scrollLeft)l-=e.scrollLeft;if(e.scrollTop)r-=e.scrollTop;e=e.offsetParent}if(a.constructor==mtDropDownItem){l+=parseInt(e.parentNode.style.left);r+=parseInt(e.parentNode.style.top)}switch(o){case mtDropDown.reference.topRight:l+=d.offsetWidth; break;case mtDropDown.reference.bottomLeft:r+=d.offsetHeight;break;case mtDropDown.reference.bottomRight:l+=d.offsetWidth;r+=d.offsetHeight}l+=j;r+=i;l=Math.max(Math.min(l,M),0);r=Math.max(Math.min(r,N),0);c.clip.style.left=l+"px";c.clip.style.top=r+"px";c.clip.style.visibility="visible";c.clip.style.zIndex=mtDropDown._maxZ++;t();h.onactivate()}};this.hide=function(){if(x){h.isOpen=false;p=true;for(var b=0,d=null;d=c.mdm_item[b];b++)w(d);q&&q.hide();t();h.ondeactivate()}};this.items=[];this.onactivate= new Function;this.ondeactivate=new Function;this.onmouseover=new Function;this.onqueue=new Function;this.index=mtDropDown.registry.length;mtDropDown.registry[this.index]=this;var y="mtDropDown"+this.index,z=null,A=null,q=null,p=false,n=[],B=-1,c=null,x=false,h=this,s=null,u=f==mtDropDown.direction.down?"top":"left",v=null}mtDropDownSet.registry=[]; function mtDropDownSet(a,f,j,i){function o(g){if(g.hideTimer){window.clearTimeout(g.hideTimer);g.hideTimer=null}}function k(g){if(!g&&m)g=m;if(g&&m==g&&g.isOpen){o(g);m=null;g.hideTimer=null;g.hide()}}this.addMenu=function(g){return new mtDropDown(g,a,f,j,i,this)};this.showMenu=function(g){if(g!=m){m!=null&&k(m);m=g;g.show()}else o(g)};this.hideMenu=function(g){if(m==g&&g.isOpen)if(!g.hideTimer){g.onqueue();g.hideTimer=window.setTimeout("mtDropDownSet.registry["+t.index+"].hide(mtDropDown.registry["+ g.index+"])",mtDropDown.hideDelay)}};this.hide=k;var t=this,m=null;this.index=mtDropDownSet.registry.length;mtDropDownSet.registry[this.index]=this} function mtDropDownItem(a,f,j){this.toString=function(i){var o=mtDropDown.itemPadding+mtDropDown.menuPadding,k=mtDropDown.dingbatSize;return''+a+''};this.text=a;this.url=f;this.parentMenu=j} function Accelimation(a,f,j,i){if(typeof i=="undefined")i=0;if(typeof unit=="undefined")unit="px";this.x0=a;this.x1=f;this.dt=j;this.zip=-i;this.unit=unit;this.timer=null;this.onend=new Function;this.onframe=new Function}Accelimation.prototype.start=function(){this.t0=(new Date).getTime();this.t1=this.t0+this.dt;var a=this.x1-this.x0;this.c1=this.x0+(1+this.zip)*a/3;this.c2=this.x0+(2+this.zip)*a/3;Accelimation._add(this)};Accelimation.prototype.stop=function(){Accelimation._remove(this)}; Accelimation.prototype._paint=function(a){a