// UDMv4.44 //
///////////////////////////////////////////////////////////////////
//                                                               //
//  ULTIMATE DROP DOWN MENU Version 4.44 by Brothercake          //
//  http://www.udm4.com/                                         //
//                                                               //
//  This script may not be used or distributed without license   //
//                                                               //
///////////////////////////////////////////////////////////////////
function um2KM(){um2.kbm=this;um2.ha=0;um2.fkd=0;um2.tf=null;um2.mt=[um2.e[10],um2.e[11]];if(um2.kb&&um2.m.cookie){var f=[um2.gd('hotkeySelector'),um2.gd('modifierSelector')];var c=um2.m.cookie.split(';');var n=c.length;i=0;do{if(/udmKeyPrefs/.test(c[i])){var a=c[i].split('=')[1].split(',');j=0;do{um2.keys[j+4]=a[j];if(f[j]){var z=f[j].options;var l=z.length;var k=0;do{if(z[k].value==a[j]){z[k].selected=1;break;}k++;}while(k<l);}j++;}while(j<2);break;}i++;}while(i<n);}};um2.keyPrefs=function(){if(!(um2.kb&&um2.d)){alert('Sorry,this feature is not supported in your browser.');return false;}var d=new Date();d.setTime(d.getTime()+(365*24*60*60*1000));um2.m.cookie='udmKeyPrefs=test; expires='+d.toGMTString()+'; path=/';if(!um2.m.cookie){alert('Sorry,your browser didn\'t accept the cookie.\nWe cannot save your settings.');}else{var f=[um2.gd('hotkeySelector'),um2.gd('modifierSelector')];i=0;do{um2.keys[i+4]=f[i].options[f[i].options.selectedIndex].value;i++;}while(i<2);um2.m.cookie='udmKeyPrefs='+um2.keys[4]+','+um2.keys[5]+'; expires='+d.toGMTString()+'; path=/';alert('Save successful!');}return true;};um2KM.prototype.bdh=function(){if(typeof document.addEventListener!=um2.un){if(um2.s){var self=this;document.addEventListener('keydown',function(e){if(um2.fkd){return;}um2.fkd=1;self.kha(e);},0);document.addEventListener('keyup',function(){um2.fkd=0;},0);}else{document.addEventListener('keypress',this.kha,0);}}else{document.attachEvent('onkeydown',this.kha);}};um2KM.prototype.bfh=function(){document.addEventListener('mouseover',function(e){if(um2.ha&&um2.kdf&&!umTree.contains(e.target)){um2.cm(e);um2.ha=0;}},0);};um2KM.prototype.bth=function(l){var a=um2.gc(l);var c=um2.es(a.className);if(/nohref/i.test(c)){um2.kbm.cdl(a);}if(um2.ie){return false;}a.addEventListener('focus',function(e){if((!um2.o7&&!um2.lf)||(um2.o7&&um2.kdf)){um2.bub=0;l.over(1,e.target);}},0);return true;};um2KM.prototype.cu=function(m,l,t){var v=[null,null,null];if((m!=null&&m.style.visibility!='visible')||m==null){if(l.previousSibling){v[0]=l.previousSibling;}if(l.nextSibling){v[1]=l.nextSibling;}}m=(um2.gu(um2.gp(t)).length>0)?um2.gu(um2.gp(t))[0]:null;if(m!=null&&typeof m.style!=um2.un&&m.style.visibility=='visible'){var r=m.getElementsByTagName('li');var n=r.length;j=0;do{v[v.length]=r[j++];}while(j<n);}if(um2.tf!=null){r=um2.gp(um2.tf).parentNode.lastChild;if(um2.gp(um2.tf)==r){um2.n.lr(um2.gc(r),0);}}n=v.length;i=0;do{if(v[i]!=null){if(um2.gu(v[i]).length>0){um2.n.cp(um2.gu(v[i])[0],v[i]);}else{um2.n.cp(null,v[i]);}}i++;}while(i<n);};um2KM.prototype.cdl=function(l){l.href=um2.jv;l.style.cursor='default';};um2KM.prototype.mkc=function(k){for(i=1;i<4;i+=2){if(k==um2.keys[i]){k=um2.keys[4-i];break;}}return k;};um2KM.prototype.kha=function(e){if(!e){e=window.event;}k=e.keyCode;if(!um2.kb&&k!=9){return false;}if(k==um2.keys[6]){um2.ha=1;}if((k==um2.keys[4] &&((um2.keys[5]=='none'&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey)||e[um2.keys[5]]))||(k==um2.keys[6])){um2.e[10]=1;um2.e[11]=1;if(!um2.ha){um2.cm(e);um2.fl.focus();um2.ha=1;um2.ap('080',um2.tr);}else{if(um2.sp){um2.sapi.voice.Speak(um2.vocab[8],2);}um2.cm(e);if(um2.wie50&&um2.e[13]=='yes'){um2.n.ts('visible');}eval(um2.keys[7]).focus();um2.e[10]=um2.mt[0];um2.e[11]=um2.mt[1];um2.ha=0;um2.ap('090',um2.tr);}}var a=(e.target)?e.target:e.srcElement;if(um2.tr.contains(a)){um2.e[10]=1;um2.e[11]=1;var c=um2.es(um2.gp(a).parentNode.className);if((um2.h&&c=='udm')||typeof um2.hmx=='boolean'){if(um2.nm&&(k==um2.keys[0]||k==um2.keys[2])){return false;}i=0;do{if(k==um2.keys[i]){k=um2.keys[um2.rtl?(i-1):(3-i)];break;}i++;}while(i<4);}else{if(um2.nm&&(k==um2.keys[1]||k==um2.keys[3])){return false;}var t=um2.gp(a).parentNode;if(um2.a||um2.e[12]=='yes'){c=um2.es(t.className);if(um2.gu(um2.gp(a))[0]){um2.xm=um2.gu(um2.gp(a))[0];if(um2.getRealPosition(um2.xm,'x')<um2.getRealPosition(t,'x')){k=um2.kbm.mkc(k);}}else if(c!='udm'){um2.pm=um2.gp(t).parentNode;if(um2.getRealPosition(um2.pm,'x')>um2.getRealPosition(t,'x')){k=um2.kbm.mkc(k);}}}}um2.tf=null;var l=umTree.getElementsByTagName('li');var n=l.length;switch(k){case 9 :i=0;do{if(l[i]==um2.gp(a)){um2.tf=a;if(e.shiftKey){var p=(i==0)?-1:i-1;}else{p=((i+1)==n)?-1:i+1;}if(p<=-1){setTimeout('um2.closeAllMenus()',55);}break;}i++;}while(i<n);break;case um2.keys[0] :if(um2.gp(a).previousSibling){var s=um2.gp(a).previousSibling;if(s){t=um2.gc(s);var f=(typeof t!=um2.un)?t:null;if(f){f.focus();}}}else if(um2.gp(a).parentNode.childNodes.length>1){um2.n.cp(um2.gu(um2.gp(a))[0],um2.gp(a));t=um2.gc(um2.gp(a).parentNode.lastChild);f=(um2.gp(a).parentNode.className!='udm');if(f&&um2.h&&um2.gp(um2.gp(a).parentNode).parentNode.className=='udm'){t=um2.gc(um2.gp(um2.gp(a).parentNode));}t.focus();}um2.ap('100',a);if(um2.ie){return false;}else if(e){e.preventDefault();}break;case um2.keys[1] :if(um2.gu(um2.gp(a))[0]){t=um2.gu(um2.gp(a))[0];f=(t)?um2.gc(t):null;if(f){f.focus();}}um2.ap('101',a);if(um2.ie){return false;}else if(e){e.preventDefault();}break;case um2.keys[2] :if(um2.gp(a).nextSibling){s=um2.gp(a).nextSibling;if(s){t=um2.gc(s);f=(typeof t!=um2.un)?t:null;if(f){f.focus();}}}else if(um2.gp(a).parentNode.childNodes.length>1){um2.n.cp(um2.gu(um2.gp(a))[0],um2.gp(a));um2.gc(um2.gp(a).parentNode.firstChild).focus();}um2.ap('102',a);if(um2.ie){return false;}else if(e){e.preventDefault();}break;case um2.keys[3] :if(um2.gp(a).parentNode.parentNode){t=um2.gp(a).parentNode;f=(t.className=='udm')?null:um2.gc(um2.gp(t));if(f&&(typeof f.focus=='function'||typeof f.focus=='object')){f.focus();}}um2.ap('103',a);if(um2.ie){return false;}else if(e){e.preventDefault();}break;}}return true;};um2KM.prototype.cws=function(n){if(um2.mie){return false;}for(var x=0;x<n.childNodes.length;x++){var k=n.childNodes[x];if((k.nodeType==3)&&(!/\S/.test(k.nodeValue))){n.removeChild(n.childNodes[x]);x--;}if(k.nodeType==1){this.cws(k);}}return n;};