﻿// UDMv4.42-U //
/***************************************************************\

  ULTIMATE DROP DOWN MENU Version 4.42 Ultra by Brothercake
  http://www.udm4.com/
  
  This script may not be used or distributed without license

\***************************************************************/
if(!um.k&&typeof window.addEventListener!=um.un){window.addEventListener('load',umIni,0);}else if(um.o7){um.m.addEventListener('load',umIni,0);}else if(um.wie){window.attachEvent('onload',umIni);um.ex=['onmouseover','onmouseout','onmousedown','onmouseup','onclick','onmousewheel','onfilterchange','onkeydown','onfocus','onactivate','onscroll','over','out'];um.gg=um.ex.length;window.attachEvent('onunload',function(){um.da=document.all.length;i=0;do{um.t=document.all[i];j=0;do{um.t[um.ex[j]]=null;j++;}while(j<um.gg);i++;}while(i<um.da);});}else {if(typeof window.onload=='function'){um.on=onload;window.onload=function(){um.on();umIni();};}else{window.onload=umIni;}}function umIni(){if(typeof um.ini!=um.un||(um.k&&typeof window.sidebar==um.un)){return;}um.ini=1;um.ha=0;umTree=(um.b)?um.gd('udm'):null;if(umTree!=null&&um.d&&!um.mie){um.bub=0;um.wsr=0;um.rtl=um.m.getElementsByTagName('html')[0].getAttribute('dir')=='rtl';um.kdf=0;if(um.o7){um.m.addEventListener('keydown',function(e){if(e.keyCode==16){um.kdf=1;}},0);um.m.addEventListener('keyup',function(e){if(e.keyCode==16){um.kdf=0;}},0);}um.n=new umNav(umTree);if(um.fe){um.tr.style.left=(um.getScrollAmount(1))+'px';um.tr.style.top=(um.getScrollAmount())+'px';window.attachEvent('onscroll',function(){um.tr.style.left=(um.getScrollAmount(1))+'px';um.tr.style.top=(um.getScrollAmount())+'px';});}if(um.s){umTree.style.KhtmlOpacity='1';}um.s1=(typeof umTree.style.KhtmlOpacity!=um.un);um.ready=1;}};function umNav(umTree){um.n=this;um.tr=umTree;if(um.wie){um.tr.style.color='black';}um.jv='javascript:void(0)';um.li=umTree.getElementsByTagName('li');um.ll=um.li.length;i=0;do{this.it(um.li[i]);i++;}while(i<um.li.length);um.mf=0;um.lf=0;um.ety=typeof document.addEventListener!=um.un?'addEventListener':typeof document.attachEvent!=um.un?'attachEvent':'';um.epx=um.ety=='attachEvent'?'on':'';if(um.ety!=''){um.m[um.ety](um.epx+'mousedown',function(e){if(!e){e=window.event;}um.mf=1;clearInterval(um.oc);um.or=0;if(um.reset[0]!='no'){if(um.hz){if(!um.tr.contains(event.srcElement)){um.n.ts('visible');}}um.cm(e);}},0);um.m[um.ety](um.epx+'mouseup',function(){um.mf=0;},0);}um.cc=null,um.cr=0,um.oc=null,um.or=0;if(!um.ie){um.tr.contains=function(umN){return (umN==null)?false:(umN==this)?true:this.contains(umN.parentNode);};}um.lw=um.getWindowDimensions();um.lh=um.gc(um.tr).offsetHeight;if(um.og&&um.hstrip[0]!='none'){um.tr.style.height=(um.hstrip[1]=='yes')?(um.lh+um.e[17])+'px':um.lh+'px';}um.pss=um.m.getElementById('udm-purecss');if(um.pss!=null){um.pss.disabled=1;}um.vs=setInterval('um.n.ws()',55);};umNav.prototype.it=function(umI){um.t3=um.es(umI.className);um.vh=(um.t3.indexOf('onclick')!=-1)?'onclick':'onmouseover';var umM=null;umM=(typeof um.gu(umI)[0]!=um.un)?um.gu(umI)[0]:null;if(typeof um.fl==um.un){um.fl=um.gc(umI);}umI.onmousedown=function(e){um.lf=1;(!e)?event.cancelBubble=1:e.stopPropagation();};umI.onmouseup=function(e){(!e)?event.cancelBubble=1:e.stopPropagation();};if(um.vh!='onclick'){umI.onclick=function(e){if(!um.bub){um.qc(um.gc(this).href);}um.bub=1;};}else {umI.onmouseover=function(){um.n.lr(um.gc(umI),1);um.bub=0;};}umI[um.vh]=function(e){um.tv=(um.ie)?window.event.srcElement:e.target;if(um.tv.nodeName=='#text'&&e.type=='click'){um.tv=um.tv.parentNode;}um.t7=um.es(um.gp(um.tv).className);um.uc=(um.lf&&!um.nm&&um.t7.indexOf('onclick')!=-1);if(um.uc){um.rt=um.e[10];um.e[10]=1;}if(um.t7.indexOf('onclick')==-1){um.bub=0;}else if(!um.lf){if(!um.bub){um.qc(um.tv.href);}um.bub=1;}this.over(0,um.tv);if(um.uc){um.e[10]=um.rt;um.lf=0;if(um.gu(um.gp(um.tv)).length>0){if(typeof um.tv.blur!=um.un){um.tv.blur();}if(um.gu(um.gp(um.tv))[0].style.display=='block'){um.n.cd(this.parentNode);(!e)?event.cancelBubble=1:e.stopPropagation();return false;}(!e)?event.cancelBubble=1:e.stopPropagation();um.t7=um.es(um.gp(um.tv).className);return (um.t7.indexOf('(true)')!=-1);}else{um.qc(um.tv.href);um.bub=1;}}if(!e){e=window.event;}return (e.type=='click'||um.o7);};umI.onmouseout=function(e){this.out(e);};umI.over=function(umF,umT){if(um.bub||(!umF&&um.ha&&um.kdf)){return false;}um.cf=um.n.cck();if(!um.cf||um.mf){um.mf=0;if(!um.ec){if(um.gm(this)!=null){this.removeChild(um.gm(this));}}return false;}um.nn=um.vn(umT.nodeName).toLowerCase();if(/(li|ul)/.test(um.nn)){return false;}clearInterval(um.cc);um.cr=0;um.n.lr(um.gc(umI),1);um.n.pr(umM,umI,umF,umT);return umI;};umI.out=function(e){if(um.o7&&um.ha&&um.kdf){return;}if(um.lf){um.gc(this).blur();}um.lf=0;if(!e){e=window.event;e.relatedTarget=e.toElement;}if(!umI.contains(e.relatedTarget)){if(!um.tr.contains(e.relatedTarget)){clearInterval(um.cc);um.cr=0;}um.n.cp(umM,umI);}};if(!um.ie){umI.contains=function(umN){return (umN==null)?false:(umN==this)?true:this.contains(umN.parentNode);};}};umNav.prototype.cck=function(){if(typeof document.defaultView!=um.un&&typeof document.defaultView.getComputedStyle!=um.un){um.sa=document.defaultView.getComputedStyle(um.fl,'').getPropertyValue('display');}else if(typeof um.fl.currentStyle!=um.un){um.sa=um.fl.currentStyle.display;}um.mv=1;um.ec=(!um.wie||um.tr.currentStyle.color=='black');return ((um.sa!='inline'||typeof um.sa==um.un)&&um.ec);};umNav.prototype.lr=function(umL,umV){if(umL!=null&&typeof umL.style!=um.un){um.cl=um.es(umL.className);if(umV){umL.style.zIndex=um.e[6]+=2;(um.cl=='')?umL.className='udmR':umL.className+=(umL.className.indexOf('udmR')==-1)?' udmR':'';}else{if(um.cl.indexOf('udmR')!=-1){umL.className=um.cl.replace(/([ ]?udmR)/g,'');}}}};umNav.prototype.pr=function(umG,umJ,umK,umR){if(!um.nm&&umG!=null&&umG.style.visibility!='visible'){if(um.wie){if(um.e[61]>0){um.gc(umG).style.marginTop=um.e[61]+'px';}else if(um.e[63]=='collapse'){umG.firstChild.style.marginTop=0+'px';}}um.n.tu(umG,null);}if(umG==null){um.n.tu(null,umJ);}};umNav.prototype.tu=function(umG,umJ){if(um.cr){clearInterval(um.oc);um.oj=umG;um.ij=umJ;um.or=1;um.oc=setInterval('um.n.tu(um.oj,um.ij)',um.e[10]);}else if(um.or){clearInterval(um.oc);um.or=0;this.ou(umG,umJ);}else{um.oj=umG;um.ij=umJ;um.or=1;um.oc=setInterval('um.n.tu(um.oj,um.ij)',um.e[10]);}};umNav.prototype.ou=function(umO,umP){if(umO==null){this.cd(umP.parentNode);return false;}this.cd(um.gp(umO).parentNode);if(typeof umO.m==um.un){umO.m=um.gu(umO);umO.l=umO.m.length;if(umO.l>0){for(var i=0;i<umO.l;i++){um.xh(umO.m[i]);um.xn(umO.m[i]);}}}if(um.ep){umO.style.position='relative';}if(um.hz){this.ts('hidden');}um.xd(umO);this.pu(umO);um.mp={x:(umO.offsetLeft),y:(umO.offsetTop)};if(um.wie55&&(um.e[13]=='default'||um.e[13]=='iframe')){this.il(umO);}um.hf=(um.wie55&&typeof umO.filters!='unknown'&&umO.filters&&umO.filters.length>0);if(um.hf){umO.filters[0].Apply();}if(um.wie&&um.h){um.t=umO.parentNode;if(um.ne(um.t)){um.t=um.t.style;um.t.position='absolute';um.t.zIndex=um.e[6]+=2;um.t.position='relative';}}um.xv(umO);um.pk=um.gc(umO.parentNode);if(um.hf){umO.filters[0].Play();}if(um.wie50){um.xn(umO);um.xd(umO);}return umO;};umNav.prototype.cd=function(umD){um.sm=um.gu(umD);um.sml=um.sm.length;i=-1;while(++i<um.sml){this.clm(um.sm[i]);}};umNav.prototype.ck=function(umD){um.lk=umD.getElementsByTagName('a');um.lkl=um.lk.length;i=-1;while(++i<um.lkl){this.lr(um.lk[i],0);}};umNav.prototype.cp=function(umG,umA){clearTimeout(um.oc);um.or=0;this.lr(um.gc(umA),0);if(!um.nm&&umG!=null){this.cot(umG);}};umNav.prototype.cot=function(umQ){if(um.cr){clearInterval(um.cc);um.cr=0;this.clm(umQ);}else if(um.e[11]!='never'){um.cb=umQ;um.cr=1;um.cc=setInterval('um.n.cot(um.cb)',um.e[11]);}};umNav.prototype.clm=function(umH){if(umH.style.visibility=='visible'){if(typeof um.sim==um.un||!um.sim||um.ha){um.xh(umH);um.xn(umH);if(um.hz){if(um.ne(umH.parentNode)){this.ts('visible');}}um.t=['udmC','udmS'];i=0;do{if(um.wie55||i>0){um.t2=umH.parentNode.lastChild;if(um.t2.className){if(um.t2.className.indexOf(um.t[i])!=-1){umH.parentNode.removeChild(um.t2);}}}i++;}while(i<2);}}};umNav.prototype.pu=function(umU){umU.style.height='auto';umU.style.overflow='visible';um.is=(um.ne(umU.parentNode));um.t=umU.parentNode;um.pp={tw:um.t.offsetWidth,th:um.t.offsetHeight,mw:umU.offsetWidth,pw:(um.is)?um.gc(um.t).offsetWidth:um.t.parentNode.offsetWidth};um.x=0;um.y=0;if(!(um.h&&um.is)){um.x=(um.is)?(um.a?(0-um.pp.mw):um.pp.pw):((um.a?(0-um.pp.mw):um.pp.pw)-um.e[51]-um.e[55]);um.y=(0-um.pp.th);}else if(um.h&&um.is&&um.a){um.x=(0-um.pp.mw+um.pp.tw);}um.x+=(um.is)?(um.a?(0-um.e[14]):um.e[14]):(um.a?(0-um.e[49]):um.e[49]);um.y+=(um.is)?(um.e[2]=='bottom')?(0-um.e[15]):um.e[15]:um.e[50];if(um.is){if(um.h){if(um.e[2]=='bottom'){um.y-=(umU.offsetHeight+um.pp.th);}if(um.s){if(um.nc&&!um.a){um.x-=um.e[18];}if(!um.s1&&um.rp){um.x+=um.getRealPosition(um.tr,'x');um.y+=um.getRealPosition(um.tr,'y');}}if(um.ie&&um.hstrip[1]=='yes'){um.y-=um.e[17];}}else if(um.ie&&um.nc){um.y-=um.e[18];}}umU.style.marginLeft=um.x+'px';umU.style.marginTop=um.y+'px';umU.style.left='auto';umU.style.top='auto';if(um.wie50){um.xn(umU);um.xd(umU);}};umNav.prototype.il=function(umH){um.at={'class':'udmC', 'src':'javascript:false;'};um.co=umH.parentNode.appendChild(um.createElement('iframe',um.at));um.co.tabIndex='-1';um.co.style.width=umH.offsetWidth+'px';um.co.style.height=(typeof um.scr!=um.un?scr.gmh(umH):umH.offsetHeight)+'px';um.co.style.left=umH.offsetLeft+'px';um.co.style.top=umH.offsetTop+'px';return um.co;};umNav.prototype.ts=function(umZ){um.se=um.m.getElementsByTagName('select');um.sl=um.se.length;if(um.sl>0){i=0;do{um.se[i++].style.visibility=umZ;}while(i<um.sl);}};umNav.prototype.ws=function(){clearInterval(um.vs);um.ch=um.gc(um.tr).offsetHeight;um.cz=um.getWindowDimensions();if((um.ch!=um.lh&&um.reset[2]!='no')||((um.cz.x!=um.lw.x||um.cz.y!=um.lw.y)&&um.reset[1]!='no')){um.closeAllMenus(); um.lw=um.cz;um.lh=um.ch;if(um.og&&um.hstrip[0]!='none'){um.tr.style.height=(um.hstrip[1]=='yes')?(um.lh+um.e[17])+'px':um.lh+'px';}}um.vs=setInterval('um.n.ws()',55);};um.qc=function(umLH){if(um.reset[3]=='yes'&&umLH!=''&&umLH!=um.jv){um.closeAllMenus();}};um.vn=function(umNN){return umNN.replace(/html[:]+/,'');};um.es=function(umCM){return umCM==null?'':umCM;};um.gc=function(umRA){return umRA.getElementsByTagName('a')[0];};um.gu=function(umE){return umE.getElementsByTagName('ul');};um.gm=function(umE){um.mu=null;um.mn=umE.childNodes;um.ml=um.mn.length;i=0;do{um.nn=um.vn(um.mn[i].nodeName).toLowerCase();if(um.nn=='ul'){um.mu=um.mn[i];break;}i++;}while(i<um.ml);return um.mu;};um.cm=function(e){if(!e){e=window.event;}if(!um.tr.contains(e.srcElement||e.target)||e.keyCode){um.closeAllMenus();}};um.closeAllMenus=function(){um.n.cd(um.tr);um.n.ck(um.tr);um.ha=0;};um.getWindowDimensions=function(){if(typeof window.innerWidth!=um.un){um.wz={x:window.innerWidth,y:window.innerHeight};}else if(um.q){um.wz={x:um.m.body.clientWidth,y:um.m.body.clientHeight};}else{um.wz={x:um.m.documentElement.offsetWidth,y:um.m.documentElement.offsetHeight};}return um.wz;};um.getScrollAmount=function(umDR){return ((typeof umDR==um.un||!umDR)?(typeof window.pageYOffset!=um.un?window.pageYOffset:um.q?um.m.body.scrollTop:um.m.documentElement.scrollTop):(typeof window.pageXOffset!=um.un?window.pageXOffset:um.q?um.m.body.scrollLeft:um.m.documentElement.scrollLeft));};um.getRealPosition=function(umE,umX){um.ps=(umX=='x')?umE.offsetLeft:umE.offsetTop;um.te=umE.offsetParent;while(um.te!=null){um.ps+=(umX=='x')?um.te.offsetLeft:um.te.offsetTop;um.te=um.te.offsetParent;}return um.ps;};