if(typeof YAHOO_UH==="undefined"){var YAHOO_UH={}}YAHOO_UH.getDocRoot=function(){if(typeof document!=="undefined"){return document}else{if(typeof document.documentElement!=="undefined"){return document.documentElement}}};YAHOO_UH.strings=new Array();YAHOO_UH.strings.yahoo_homepage="http://www.yahoo.com";YAHOO_UH.strings.hp_detect_script="http://www.yahoo.com/includes/hdhpdetect.php";YAHOO_UH.strings.set_hp_script="http://www.yahoo.com/bin/set";YAHOO_UH.strings.set_hp_firefox_instructions=['Drag the "Y!" and drop it onto the "Home" icon.','Select "Yes" from the pop up window.',"Nothing, you're done."];YAHOO_UH.strings.close_this_window="Close this window";YAHOO_UH.strings.set_hp_alternative_instructions1="If this didn't work for you see ";YAHOO_UH.strings.detailed_set_hp_instructions="detailed instructions";YAHOO_UH.strings.set_hp_alternative_instructions2="";YAHOO_UH.DomUtil=function(){};YAHOO_UH.DomUtil.prototype.get=function(A){return YAHOO_UH.getDocRoot().getElementById(A)};YAHOO_UH.DomUtil.prototype.getXY=function(B){var A=null;var E=[];var C;var D=B.ownerDocument;if(B.getBoundingClientRect){C=B.getBoundingClientRect();return[C.left+Math.max(YAHOO_UH.getDocRoot().documentElement.scrollLeft,YAHOO_UH.getDocRoot().body.scrollLeft),C.top+Math.max(YAHOO_UH.getDocRoot().documentElement.scrollTop,YAHOO_UH.getDocRoot().body.scrollTop)]}else{E=[B.offsetLeft,B.offsetTop];A=B.offsetParent;if(A!=B){while(A){E[0]+=A.offsetLeft;E[1]+=A.offsetTop;A=A.offsetParent}}}return E};YAHOO_UH.DomUtil.prototype.setXY=function(A,C){var B=this.getXY(A);if(C[0]!==null){A.style.left=C[0]-B[0]+A.offsetLeft+"px"}if(C[1]!==null){A.style.top=C[1]-B[1]+A.offsetTop+"px"}};YAHOO_UH.DomUtil.prototype.getRegion=function(A){var C=this.getXY(A);var B={};B.top=C[1];B.right=C[0]+A.offsetWidth;B.bottom=C[1]+A.offsetHeight;B.left=C[0];return B};YAHOO_UH.EventUtil=function(){};YAHOO_UH.EventUtil.prototype.addListener=function(D,E,C,B){var A=function(F){B.tempFn=C;B.tempFn(F)};if(D.addEventListener){D.addEventListener(E,A,false)}else{if(D.attachEvent){D.attachEvent("on"+E,A)}else{D["on"+E]=A}}};YAHOO_UH.EventUtil.prototype.preventDefault=function(A){if(A.preventDefault){A.preventDefault()}A.returnValue=false};YAHOO_UH.EventUtil.prototype.getTarget=function(B){var A=B.target||B.srcElement;if(A&&3==A.nodeType){return A.parentNode}else{return A}};YAHOO_UH.Helper=function(){this.eventUtil=(typeof YAHOO!=="undefined"&&typeof YAHOO.util.Event!=="undefined")?YAHOO.util.Event:new YAHOO_UH.EventUtil();this.domUtil=(typeof YAHOO!=="undefined"&&typeof YAHOO.util.Dom!=="undefined")?YAHOO.util.Dom:new YAHOO_UH.DomUtil()};YAHOO_UH.activeMenus=[];YAHOO_UH.DropdownMenu=function(A){this.keys={UP_ARROW_KEY:38,DOWN_ARROW_KEY:40,CARRIAGE_RETURN:13,ESC_KEY:27,DOM_NODE_TYPE_ELEMENT:1};this.element=YAHOO_UH.gHelper.domUtil.get(A.elementId);this.menuId=A.menuId;this.menu=null;this.iframeshim=YAHOO_UH.gHelper.domUtil.get(A.iframeshim);this.hAlign=A.hAlign;this.vAlign=A.vAlign;this.startAt=(typeof A.startAt==="undefined")?0:A.startAt;this.itemValues=A.items;this.styleClasses=A.styleClasses;this.menuItems=[];this.buildMenuDom();this.currentActiveItem=null;YAHOO_UH.gHelper.eventUtil.addListener(this.element,"click",this.init,this,true);YAHOO_UH.gHelper.eventUtil.addListener(this.element,"keydown",this.actByKey,this,true);YAHOO_UH.gHelper.eventUtil.addListener(this.menu,"keydown",this.actByKey,this,true)};YAHOO_UH.DropdownMenu.prototype.buildMenuDom=function(){var C=YAHOO_UH.getDocRoot().createElement("ul");C.setAttribute("id",this.menuId);C.className=this.styleClasses.join(" ");for(i in this.itemValues){var A=YAHOO_UH.getDocRoot().createElement("li");if(typeof (this.itemValues[i][0].nodeType)!=="undefined"&&this.keys.DOM_NODE_TYPE_ELEMENT==this.itemValues[i][0].nodeType&&"li"==this.itemValues[i][0].nodeName.toLowerCase()){A=this.itemValues[i][0]}else{if((2==this.itemValues[i].length||3==this.itemValues[i].length)&&this.itemValues[i][1].indexOf("http")>=0){var B=YAHOO_UH.getDocRoot().createElement("a");var D=YAHOO_UH.getDocRoot();B.href=this.itemValues[i][1];B.target=typeof (this.itemValues[i][2])=="undefined"?"_top":this.itemValues[i][2];B.appendChild(YAHOO_UH.getDocRoot().createTextNode(this.itemValues[i][0]));A.appendChild(B)}else{A.appendChild(YAHOO_UH.getDocRoot().createTextNode(this.itemValues[i][0]))}}if(i==(this.itemValues.length-1)){A.className="last-child"}C.appendChild(A);this.menuItems[this.menuItems.length]=A}this.element.parentNode.appendChild(C);this.menu=C};YAHOO_UH.DropdownMenu.prototype.init=function(A){YAHOO_UH.gHelper.eventUtil.preventDefault(A);this.toggle(A)};YAHOO_UH.DropdownMenu.prototype.toggle=function(A){if(this.isVisible()){this.hide(A)}else{this.show(A)}};YAHOO_UH.DropdownMenu.prototype.hide=function(A){if(YAHOO_UH.gHelper.eventUtil.getTarget(A)!=this.element&&this.isVisible()){this.menu.style.display="none";if(this.iframeshim){this.iframeshim.style.display="none"}}};YAHOO_UH.DropdownMenu.prototype.show=function(C){if(!this.isVisible()){var B=YAHOO_UH.gHelper.domUtil.getXY(this.element);if(this.iframeshim){this.iframeshim.style.display="block"}this.menu.style.display="block";var E=(typeof (this.hAlign)==="undefined"||"left"==this.hAlign)?B[0]:(YAHOO_UH.gHelper.domUtil.getRegion(this.element).right-this.menu.offsetWidth);var D=0;if(typeof (this.vAlign)==="undefined"||"container_bottom"==this.vAlign){var A=YAHOO_UH.gHelper.domUtil.getXY(YAHOO_UH.gHelper.domUtil.get("ygmabot"));D=A[1]}else{if("element_bottom"==this.vAlign){D=B[1]+this.element.offsetHeight}}if(this.iframeshim){YAHOO_UH.gHelper.domUtil.setXY(this.iframeshim,[E,D])}else{YAHOO_UH.gHelper.domUtil.setXY(this.menu,[E,D])}YAHOO_UH.gHelper.eventUtil.addListener(YAHOO_UH.getDocRoot(),"click",this.hide,this,true);this.currentActiveItem=null}};YAHOO_UH.DropdownMenu.prototype.isVisible=function(){return("block"==this.menu.style.display)};YAHOO_UH.DropdownMenu.prototype.actByKey=function(B){var A=(window.event)?B.keyCode:B.which;switch(A){case this.keys.DOWN_ARROW_KEY:this.show(B);this.setFocusOnItem(null===this.currentActiveItem?this.startAt:(this.currentActiveItem+1));break;case this.keys.UP_ARROW_KEY:if(this.isVisible()){if(this.startAt===this.currentActiveItem){this.setFocusOnItem(this.menuItems.length-1)}else{this.setFocusOnItem(this.currentActiveItem-1)}}break;case this.keys.ESC_KEY:this.hide(B);this.element.focus();break;case this.keys.CARRIAGE_RETURN:if(!this.isVisible()){YAHOO_UH.gHelper.eventUtil.preventDefault(B);this.show(B);this.setFocusOnItem(null===this.currentActiveItem?this.startAt:(this.currentActiveItem+1))}break;default:break}};YAHOO_UH.DropdownMenu.prototype.setFocusOnItem=function(C){C=(C>=this.menuItems.length)?this.startAt:C;var B=this.menuItems[C];var A=false;if(B.childNodes.length>=1){for(i in B.childNodes){if(this.keys.DOM_NODE_TYPE_ELEMENT==B.childNodes[i].nodeType&&"a"==B.childNodes[i].nodeName.toLowerCase()){B.childNodes[i].focus();this.currentActiveItem=C;A=true;break}}if(!A){B.focus();this.currentActiveItem=C}}else{B.focus();this.currentActiveItem=C}};YAHOO_UH.MYYHP=function(D,C,B,A){this.helper=B;YAHOO_UH.gHelper.eventUtil=B.eventUtil;YAHOO_UH.gHelper.domUtil=B.domUtil;this.link=YAHOO_UH.gHelper.domUtil.get(C);this.ie=(YAHOO_UH.getDocRoot().all)?true:false;this.firefox=navigator.userAgent.toLowerCase().indexOf("firefox")>0;this.pageInfo=A;this.hm=YAHOO_UH.getDocRoot().createElement("a");this.hm.style.behavior="url(#default#homepage)";if(YAHOO_UH.getDocRoot().cookie.indexOf("HP=")<0){this.link.style.visibility="visible";this.setHp()}else{this.link.style.visibility="hidden"}};YAHOO_UH.MYYHP.prototype.close=function(A){YAHOO_UH.gHelper.domUtil.get("ygmashpd").style.display="none"};YAHOO_UH.MYYHP.prototype.setHp=function(){if(this.ie){try{if(this.hm.isHomePage(YAHOO_UH.strings.yahoo_homepage)||this.hm.isHomePage(YAHOO_UH.strings.yahoo_homepage)){this.link.style.visibility="hidden";YAHOO_UH.getDocRoot().cookie="HP=1;path=/;domain=yahoo.com"}else{YAHOO_UH.gHelper.eventUtil.addListener(this.link,"click",this.setHpInIe,this,true)}}catch(A){}}else{if(this.firefox){YAHOO_UH.gHelper.eventUtil.addListener(this.link,"click",this.setHpInFirefox,this,true)}}};YAHOO_UH.MYYHP.prototype.setHpInIe=function(C){YAHOO_UH.gHelper.eventUtil.preventDefault(C);var B=YAHOO_UH.gHelper.domUtil.get("ygmatop");var A=B.appendChild(YAHOO_UH.getDocRoot().createElement("iframe"));A.setAttribute("id","ygmaprocframe");A.setAttribute("name","ygmaprocframe");A.setAttribute("frameborder","0");A.style.width=0;A.style.height=0;this.hm.setHomePage(YAHOO_UH.strings.yahoo_homepage);this.loadBeacon("ie")};YAHOO_UH.MYYHP.prototype.setHpInFirefox=function(A){YAHOO_UH.gHelper.eventUtil.preventDefault(A);this.buidFirefoxInstructions();this.loadBeacon("ff")};YAHOO_UH.MYYHP.prototype.buidFirefoxInstructions=function(){var F=YAHOO_UH.gHelper.domUtil.get("ygmatop");if(!YAHOO_UH.gHelper.domUtil.get("ygmashpd")){var D=F.appendChild(YAHOO_UH.getDocRoot().createElement("div"));D.setAttribute("id","ygmashpd");D.setAttribute("class","shdw");var E=D.appendChild(YAHOO_UH.getDocRoot().createElement("div"));E.setAttribute("class","bd");var A=E.appendChild(YAHOO_UH.getDocRoot().createElement("div"));A.setAttribute("id","pnt");var B=E.appendChild(YAHOO_UH.getDocRoot().createElement("a"));B.setAttribute("title","Yahoo!");B.setAttribute("class","ygmashp");B.setAttribute("href",encodeURI(YAHOO_UH.strings.yahoo_homepage));B.appendChild(YAHOO_UH.getDocRoot().createTextNode("Yahoo!"));var C=E.appendChild(YAHOO_UH.getDocRoot().createElement("ol"));C.setAttribute("id","ygmahpinstr");C.appendChild(YAHOO_UH.getDocRoot().createElement("li")).appendChild(YAHOO_UH.getDocRoot().createTextNode(YAHOO_UH.strings.set_hp_firefox_instructions[0]));C.appendChild(YAHOO_UH.getDocRoot().createElement("li")).appendChild(YAHOO_UH.getDocRoot().createTextNode(YAHOO_UH.strings.set_hp_firefox_instructions[1]));C.appendChild(YAHOO_UH.getDocRoot().createElement("li")).appendChild(YAHOO_UH.getDocRoot().createTextNode(YAHOO_UH.strings.set_hp_firefox_instructions[2]));E.appendChild(YAHOO_UH.getDocRoot().createElement("div")).setAttribute("class","hr");var J=E.appendChild(YAHOO_UH.getDocRoot().createElement("p"));J.appendChild(YAHOO_UH.getDocRoot().createTextNode(YAHOO_UH.strings.set_hp_alternative_instructions1));var H=J.appendChild(YAHOO_UH.getDocRoot().createElement("a"));H.setAttribute("id","ygmashpdetails");H.setAttribute("class","ygmashps");H.setAttribute("href",encodeURI(YAHOO_UH.strings.set_hp_script));H.appendChild(YAHOO_UH.getDocRoot().createTextNode(YAHOO_UH.strings.detailed_set_hp_instructions));J.appendChild(YAHOO_UH.getDocRoot().createTextNode(YAHOO_UH.strings.set_hp_alternative_instructions2));var I=E.appendChild(YAHOO_UH.getDocRoot().createElement("p"));var K=I.appendChild(YAHOO_UH.getDocRoot().createElement("a"));K.setAttribute("id","ygmashpdclose");K.setAttribute("href","javascript:void(0);");K.appendChild(YAHOO_UH.getDocRoot().createTextNode(YAHOO_UH.strings.close_this_window));YAHOO_UH.gHelper.eventUtil.addListener(K,"click",this.close,this,true);var G=YAHOO_UH.gHelper.domUtil.getXY(YAHOO_UH.gHelper.domUtil.get("ygmamyyhp"));YAHOO_UH.gHelper.domUtil.setXY(D,[G[0]-200,G[1]+20])}else{YAHOO_UH.gHelper.domUtil.get("ygmashpd").style.display="block"}};YAHOO_UH.MYYHP.prototype.loadBeacon=function(A){if("ff"==A){var B=new Image();B.src=encodeURI(this.pageInfo.ygma_rd)+encodeURI(this.pageInfo.ygma_space)+"/*"+encodeURI(YAHOO_UH.strings.set_hp_script)+"?adid="+encodeURI(this.pageInfo.ygma_adid)+"&prop="+encodeURI(this.pageInfo.ygma_prop)+"&browser="+encodeURI(A)}else{if("ie"==A){ygmaprocframe.location.replace(encodeURI(YAHOO_UH.strings.hp_detect_script)+"?hp="+encodeURI(YAHOO_UH.strings.yahoo_homepage)+"&hpid=1&ygma_rd="+encodeURI(this.pageInfo.ygma_rd)+"&ygma_space="+encodeURI(this.pageInfo.ygma_space)+"&ygma_space2="+encodeURI(this.pageInfo.ygma_space)+"&ygma_space3="+encodeURI(this.pageInfo.ygma_space)+"&ygma_adid="+encodeURI(this.pageInfo.ygma_adid)+"&ygma_prop="+encodeURI(this.pageInfo.ygma_prop))}}};YAHOO_UH.setHelper=function(){if(typeof YAHOO_UH.gHelper==="undefined"){YAHOO_UH.gHelper=new YAHOO_UH.Helper()}}();YAHOO_UH.initMyyhp=function(){if(YAHOO_UH.gHelper.domUtil.get("ygmamyyhp")){var A=new YAHOO_UH.MYYHP("ygmamyyhpctx","ygmamyyhp",YAHOO_UH.gHelper,YAHOO_UH.gPageInfo)}};YAHOO_UH.initMoreMenu=function(){if(YAHOO_UH.gHelper.domUtil.get("ygmamore")&&"undefined"!=typeof YAHOO_UH.yahooServices){var A=YAHOO_UH.gHelper.domUtil.get("ygmamore");YAHOO_UH.activeMenus.ygmamore=new YAHOO_UH.DropdownMenu({elementId:"ygmamore",menuId:"ygmasubnav",helper:YAHOO_UH.gHelper,startAt:0,items:YAHOO_UH.yahooServices,styleClasses:["menu","sprite_bg"]})}};YAHOO_UH.initUsernameMenu=function(){if(YAHOO_UH.gHelper.domUtil.get("ygmausername")&&"undefined"!=typeof YAHOO_UH.accountOptions){var A=YAHOO_UH.gHelper.domUtil.get("ygmausername");YAHOO_UH.activeMenus.ygmausername=new YAHOO_UH.DropdownMenu({elementId:"ygmausername",menuId:"ygmauseroptions",helper:YAHOO_UH.gHelper,startAt:0,items:YAHOO_UH.accountOptions,styleClasses:["menu","sprite_bg"]})}};YAHOO_UH.initOtherMenus=function(){if(typeof (YAHOO_UH.otherMenus)!=="undefined"&&YAHOO_UH.otherMenus.length>0){for(i in YAHOO_UH.otherMenus){if(YAHOO_UH.gHelper.domUtil.get(YAHOO_UH.otherMenus[i].elementId)){var A=YAHOO_UH.gHelper.domUtil.get(YAHOO_UH.otherMenus[i].elementId);YAHOO_UH.activeMenus[YAHOO_UH.otherMenus[i].elementId]=new YAHOO_UH.DropdownMenu(YAHOO_UH.otherMenus[i])}}}};if(typeof YAHOO!=="undefined"&&typeof YAHOO.util.Event!=="undefined"&&YAHOO.util.Event.onContentReady){YAHOO.util.Event.onContentReady("ygma",function(){YAHOO_UH.initMyyhp();YAHOO_UH.initMoreMenu();YAHOO_UH.initUsernameMenu();YAHOO_UH.initOtherMenus()})}else{YAHOO_UH.checkHeaderReady=function(){if(YAHOO_UH.gHelper.domUtil.get("ygma")){YAHOO_UH.initMyyhp();YAHOO_UH.initMoreMenu();YAHOO_UH.initUsernameMenu();YAHOO_UH.initOtherMenus()}else{setTimeout(YAHOO_UH.checkHeaderReady,1000)}};YAHOO_UH.checkHeaderReady()};