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<n.length;b++)if(n[b]==this){w(c.mdm_item[b]);break;}}function L(){k.hideMenu(h)}
this.addItem=function(b,d){var e=new mtDropDownItem(b,d,this);e._index=this.items.length;this.items[e._index]=e};this.addMenu=function(b){if(!b.parentMenu==this)throw Error("Cannot add a menu here");if(q==null)q=new mtDropDownSet(mtDropDown.direction.right,-5,2,mtDropDown.reference.topRight);var d=q.addMenu(b);n[b._index]=d;d.onmouseover=J;d.ondeactivate=K;d.onqueue=L;return d};this.toString=function(){for(var b=[],d="mtDropdownMenu"+(a.constructor!=mtDropDownItem?" mdm_top":""),e=0,l=null;l=this.items[e];e++)b[e]=
l.toString(n[e]);return'<div id="'+y+'" class="'+d+'"><div class="mdm_content"><table class="mdm_items" cellpadding="0" cellspacing="0" border="0"><tr><td colspan="2"><img src="'+mtDropDown.spacerGif+'" width="1" height="'+mtDropDown.menuPadding+'"></td></tr>'+b.join("")+'<tr><td colspan="2"><img src="'+mtDropDown.spacerGif+'" width="1" height="'+mtDropDown.menuPadding+'"></td></tr></table><div class="mdm_shadowBottom"><img src="'+mtDropDown.spacerGif+'" width="1" height="1"></div><div class="mdm_shadowRight"><img src="'+
mtDropDown.spacerGif+'" width="1" height="1"></div><div class="mdm_background"><img src="'+mtDropDown.spacerGif+'" width="1" height="1"></div></div></div>'};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'<tr class="mdm_item"><td nowrap style="'+("padding:"+mtDropDown.itemPadding+"px; padding-left:"+o+"px;")+'">'+a+'</td><td width="'+k+'" style="'+("padding:"+mtDropDown.itemPadding+"px; padding-right:"+o+"px;")+'"><img src="'+(i?mtDropDown.dingbatOff:mtDropDown.spacerGif)+'" width="'+k+'" height="'+k+'"></td></tr>'};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<this.t1?this.onframe(Accelimation._getBezier((a-this.t0)/this.dt,this.x0,this.x1,this.c1,this.c2)):this._end()};Accelimation.prototype._end=function(){Accelimation._remove(this);this.onframe(this.x1);this.onend()};Accelimation._add=function(a){this.instances[this.instances.length]=a;if(this.instances.length==1)this.timerID=window.setInterval("Accelimation._paintAll()",this.targetRes)};
Accelimation._remove=function(a){for(var f=0;f<this.instances.length;f++)if(a==this.instances[f]){this.instances=this.instances.slice(0,f).concat(this.instances.slice(f+1));break}if(this.instances.length==0){window.clearInterval(this.timerID);this.timerID=null}};Accelimation._paintAll=function(){for(var a=(new Date).getTime(),f=0;f<this.instances.length;f++)this.instances[f]._paint(a)};Accelimation._B1=function(a){return a*a*a};Accelimation._B2=function(a){return 3*a*a*(1-a)};
Accelimation._B3=function(a){return 3*a*(1-a)*(1-a)};Accelimation._B4=function(a){return(1-a)*(1-a)*(1-a)};Accelimation._getBezier=function(a,f,j,i,o){return j*this._B1(a)+o*this._B2(a)+i*this._B3(a)+f*this._B4(a)};Accelimation.instances=[];Accelimation.targetRes=10;Accelimation.timerID=null;
