 var branch;function dropdownMenu(_1){var _2=typeof window.opera!="undefined";var _3=typeof document.all!="undefined"&&!_2&&navigator.vendor!="KDE";var _4=false;if(_3){var _5=identifyBrowser();var _6=_5.substr(2);var _7=parseInt(_6,10);_4=(_7>=7);}var _8=navigator.vendor=="Apple Computer, Inc.";if(typeof document.getElementById=="undefined"||(_8&&typeof window.XMLHttpRequest=="undefined")||(_3&&typeof document.uniqueID=="undefined")){return;}var _9=new Image;_9.src="/images/right-purple.gif";_9=new Image;_9.src="/images/down-purple.gif";var _a=document.getElementById(_1);if(_a){var _b=_a.className.indexOf("horizontal")!=-1;branch=_a;var _c=_a.getElementsByTagName("li");for(var i=0;i<_c.length;i++){dropdownTrigger(_a,_c[i],_1,_3,_4,_b);}if(!_2){cleanUselessWhitespace(_a);var _d=_8||_3?"keydown":"keypress";attachEventListener(document,_d,function(e){var _e=typeof e.target!="undefined"?e.target:e.srcElement;if(_a.contains(_e)&&_e.getAttribute("href")){if(/^(37|38|39|40)$/.test(e.keyCode.toString())){arrowKeyNavigation(_a,_e,e.keyCode,_b);if(typeof e.preventDefault!="undefined"){e.preventDefault();}return false;}}return true;},false);}var _f=typeof document.all!="undefined"?document.all:document.getElementsByTagName("*");for(i=0;i<_f.length;i++){attachEventListener(_f[i],"focus",function(e){var _10=typeof e.target!="undefined"?e.target:e.srcElement;if(!_a.contains(_10)){resetSiblingBranches(_c[0]);}},false);}if(!_3){_a.contains=function(_11){if(_11==null){return false;}if(_11==this){return true;}else{return this.contains(_11.parentNode);}};}}};function dropdownTrigger(_12,li,_13,_14,_15,_16){var _17,_18;var a=li.getElementsByTagName("a")[0];var _19=li.getElementsByTagName("ul").length>0?li.getElementsByTagName("ul")[0]:null;var _1a=li.parentNode.id==_13;if(_19){li.className+=(li.className==""?"":" ")+"hasmenu";}attachEventListener(a,"focus",function(e){clearTimeout(_18);a.className+=(a.className==""?"":" ")+"rollover";resetSiblingBranches(li);if(_19){showMenu(_19,_16,_1a,li,a,_14,_15);}var _1b=li.parentNode;if(_1b!=_12){if(_1b.style.left==""||_1b.style.left=="-1000em"){showAncestors(_12,_1b,_16,_1a,_14,_15);}if(toggleSelects("visible")&&_12.contains(e.srcElement)){toggleSelects("hidden");}}},false);attachEventListener(li,"mouseover",function(e){if(unwantedTextEvent()){return;}clearTimeout(_18);if(branch==li){branch=null;}a.className+=(a.className==""?"":" ")+"rollover";var _1c=typeof e.target!="undefined"?e.target:window.event.srcElement;while(_1c.nodeName.toUpperCase()!="LI"){_1c=_1c.parentNode;}if(_1c!=li){return;}if(_19){_17=window.setTimeout(function(){if(branch){clearMenus(branch);branch=null;}resetSiblingBranches(li);showMenu(_19,_16,_1a,li,a,_14,_15);},250);}},false);attachEventListener(li,"mouseout",function(e){if(unwantedTextEvent()){return;}var _1d=typeof e.relatedTarget!="undefined"?e.relatedTarget:window.event.toElement;if(!li.contains(_1d)){clearTimeout(_17);branch=li;a.className=a.className.replace(/ ?rollover/g,"");if(_19){_18=window.setTimeout(function(){_19.style.left="-1000em";if(toggleSelects("visible")&&_12.contains(_1d)){toggleSelects("hidden");}else{removeIframeLayer(_19);}},600);}}},false);if(!_14){li.contains=function(_1e){if(_1e==null){return false;}if(_1e==this){return true;}else{return this.contains(_1e.parentNode);}};}};function showMenu(_1f,_20,_21,li,a,_22,_23){_1f.style.left=_20?((_22&&!_23)?li.offsetLeft+"px":"auto"):"0";_1f.style.top=_20&&_21?(_22?a.offsetHeight+"px":"auto"):((_22&&!_23)?li.offsetTop+"px":"0");repositionMenu(_1f,_21);if(typeof document.uniqueID!="undefined"){createIframeLayer(_1f);}};function showAncestors(_24,_25,_26,_27,_28,_29){clearMenus(_24);while(_25.id!=_24.id){var li=_25.parentNode;var a=li.getElementsByTagName("a")[0];showMenu(_25,_26,_27,li,a,_28,_29);_25=li.parentNode;}};function resetSiblingBranches(_2a){clearMenus(_2a.parentNode);var _2b=_2a.parentNode.getElementsByTagName("a");for(var i=0;i<_2b.length;i++){_2b[i].className=_2b[i].className.replace(/ ?rollover/g,"");}};function cleanUselessWhitespace(_2c){for(var x=0;x<_2c.childNodes.length;x++){var _2d=_2c.childNodes[x];if(_2d.nodeType==3&&!/\S/.test(_2d.nodeValue)){_2c.removeChild(_2c.childNodes[x]);x--;}if(_2d.nodeType==1){cleanUselessWhitespace(_2d);}}};function mapKeyCode(_2e,_2f){switch(_2f){case 0:if(_2e==37){_2e=39;}else{if(_2e==39){_2e=37;}}break;case 1:if(_2e%2){_2e++;}else{_2e--;}break;case 2:if(_2e==38){_2e=37;}break;}return _2e;};function arrowKeyNavigation(_30,_31,_32,_33){var li=_31.parentNode;var _34=li.getElementsByTagName("ul").length>0?li.getElementsByTagName("ul")[0]:null;var _35=li.parentNode;if(_34){if(getRoughPosition(_34,"x")<getRoughPosition(li.parentNode,"x")){_32=mapKeyCode(_32,0);}}else{if(_35!=_30){if(getRoughPosition(_35.parentNode.parentNode,"x")>getRoughPosition(_35,"x")){_32=mapKeyCode(_32,0);}}}if(_33){if(_35==_30){_32=mapKeyCode(_32,1);}else{if(_35.parentNode.parentNode==_30&&li==li.parentNode.firstChild){_32=mapKeyCode(_32,2);}}}switch(_32){case 37:_35=_35.parentNode;if(_30.parentNode==_35){_35=null;}if(_35){_35.firstChild.focus();}break;case 38:var _36=li.previousSibling;if(!_36){_36=li.parentNode.childNodes[li.parentNode.childNodes.length-1];}_36.firstChild.focus();break;case 39:if(_34){_34.firstChild.firstChild.focus();}break;case 40:var _37=li.nextSibling;if(!_37){_37=li.parentNode.childNodes[0];}_37.firstChild.focus();break;}};function clearMenus(_38){var _39=_38.getElementsByTagName("ul");for(var i=0;i<_39.length;i++){_39[i].style.left="-1000em";removeIframeLayer(_39[i]);}};function unwantedTextEvent(){return (navigator.vendor=="Apple Computer, Inc."&&(event.target==event.relatedTarget.parentNode||(event.eventPhase==3&&event.target.parentNode==event.relatedTarget)));};function getRoughPosition(ele,dir){var pos=dir=="x"?ele.offsetLeft:ele.offsetTop;var tmp=ele.offsetParent;while(tmp!=null){pos+=dir=="x"?tmp.offsetLeft:tmp.offsetTop;tmp=tmp.offsetParent;}return pos;};function getViewportSize(){var _3a=[0,0];if(typeof window.innerWidth!="undefined"){_3a=[window.innerWidth,window.innerHeight];}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){_3a=[document.documentElement.clientWidth,document.documentElement.clientHeight];}else{_3a=[document.getElementsByTagName("body")[0].clientWidth,document.getElementsByTagName("body")[0].clientHeight];}}return _3a;};function repositionMenu(_3b,_3c){var _3d=[getRoughPosition(_3b,"x")+_3b.offsetWidth+25,getRoughPosition(_3b,"y")+_3b.offsetHeight+25];var _3e=getViewportSize();if(_3d[0]>_3e[0]){if(_3c){var _3f=_3d[0]-_3e[0];_3b.style.left=(-_3f)+"px";}else{var _40=_3b.offsetWidth+_3b.parentNode.parentNode.offsetWidth;var _41=_3b.parentNode.offsetWidth-_3b.offsetLeft;_3b.style.left=(0-_40+(_41*2))+"px";}}if(_3d[1]>_3e[1]){var _42=parseInt(_3b.style.top,10);var _3f=_3d[1]-_3e[1];_3b.style.top=(_42-_3f)+"px";}};function createIframeLayer(_43){if(!toggleSelects("hidden")){var _44=document.createElement("iframe");_44.tabIndex="-1";_44.src="javascript:false;";_43.parentNode.appendChild(_44);_44.style.left=_43.offsetLeft+"px";_44.style.top=_43.offsetTop+"px";_44.style.width=_43.offsetWidth+"px";_44.style.height=_43.offsetHeight+"px";}};function removeIframeLayer(_45){if(!toggleSelects("visible")){var _46=_45.parentNode.getElementsByTagName("iframe");while(_46.length>0){_46[0].parentNode.removeChild(_46[0]);}}};function toggleSelects(vis){if(typeof document.uniqueID!="undefined"&&typeof document.body.style.scrollbarTrackColor=="undefined"){var _47=document.getElementsByTagName("select");for(var i=0;i<_47.length;i++){_47[i].style.visibility=vis;}return true;}return false;};addLoadListener(function(){dropdownMenu("navigation");});