var msie=navigator.appVersion.match("MSIE")?!navigator.appVersion.match("MSIE 7.0"):false;String.prototype.trim=StringTrim;var lastcolor;var lastlen;function setScreenWidthForACure(){if(document.getElementById("screenwidth")){var a=document.getElementById("screenwidth");if(YAHOO.util.Dom.getViewportWidth()<=820){a.style.width="778px"}else{if(YAHOO.util.Dom.getViewportWidth()>=960){a.style.width="960px"}else{a.style.width=YAHOO.util.Dom.getViewportWidth()-3}}}if(document.getElementById("navigationwidget-marker")){}}function hideIt(g,f,c){var a="/images/icon_showall.gif";
xHide(g);c.style.backgroundColor="#ffffff";var e=node_parent(f);if(e){if(node_after(e).className=="clear"){node_after(e).style.backgroundColor="#ffffff"}var h=e.childNodes;for(var d=0;d<h.length;d++){if(h[d].nodeType==1&&h[d].getAttribute("href")!=null){h[d].style.background="#ffffff"}}}var b=f.childNodes;for(var d=0;d<b.length;d++){if((b[d].nodeType==1)&&(b[d].nodeName=="IMG")){b[d].src=a}}}function verifyfield(c){if(c.name=="to"||c.name=="from"){var b=c.value.split(/\,/);for(var a=0;a<b.length;a++){if(!validateemail(b[a].trim())){processerror(c,"Please check the format of your email");
return}}c.style.backgroundColor=""}}function processerror(a,b){$("error").style.background="#ffffff";$("error").style.width="100%";$("error").style.display="block";a.style.backgroundColor="#feead4";node_after(first_child($("error"))).innerHTML=b;window.setTimeout(switchoff,10000)}function switchoff(){Effect.SwitchOff($("error"))}function switchoff2(){Effect.SwitchOff($("div-emailthispage"))}function ie6LayerFix(b,f,d,a,e){if(msie){var c=document.getElementById("ieFix");c.className=e?"":"hidden";c.style.left=b+"px";
c.style.top=f+"px";c.style.width=d+"px";c.style.height=a+"px"}}function SaveLink(d,b,c,a){document.form2.title.value=d;document.form2.url.value=b;document.form2.contenttype.value=a;document.form2.action=c;document.form2.submit()}function SubmitPageForm(a,b){b.action=a;b.submit()}function closeNavWidgetMenus(){if(document.getElementById("menuimage-A")){hideIt(document.getElementById("menufull-A"),document.getElementById("menuimage-A"),document.getElementById("menu-A"))}if(document.getElementById("menuimage-B")){hideIt(document.getElementById("menufull-B"),document.getElementById("menuimage-B"),document.getElementById("menu-B"))
}if(document.getElementById("menuimage-C")){hideIt(document.getElementById("menufull-C"),document.getElementById("menuimage-C"),document.getElementById("menu-C"))}if(document.getElementById("menuimage-D")){hideIt(document.getElementById("menufull-D"),document.getElementById("menuimage-D"),document.getElementById("menu-D"))}}function xMenu1(q,b,m,f,h){var a=document.getElementById(q);var p=document.getElementById(b);var e=document.getElementById(m);var o=h;var j="#FFFFFF";var n="/images/icon_showless.gif";var c="/images/icon_showall.gif";
var l=xVisibility(e);closeNavWidgetMenus();if(l==""||l=="hidden"){xWidth(e,xWidth(p));xShow(e);p.style.backgroundColor=o;if(a.parentNode){if(node_after(a.parentNode).className=="clear"){node_after(a.parentNode).style.backgroundColor=o}var d=a.parentNode.childNodes;for(var g=0;g<d.length;g++){if(d[g].nodeType==1&&d[g].getAttribute("href")!=null){d[g].style.backgroundColor=o}}}var k=a.childNodes;for(var g=0;g<k.length;g++){if((k[g].nodeType==1)&&(k[g].nodeName=="IMG")){k[g].src=n}}}}function sw_form(b){var a=0;
if(b.symptom0!=null){if(b.symptom0.checked){b.action+="&addterm="+b.symptom0.value;a++}}if(b.symptom1!=null){if(b.symptom1.checked){b.action+="&addterm="+b.symptom1.value;a++}}if(b.symptom2!=null){if(b.symptom2.checked){b.action+="&addterm="+b.symptom2.value;a++}}if(a>0){location.href=b.action}else{alert("Please check one or more boxes, then press search.")}}function md_hp_form(a){if(a.q1.value.trim()==""||a.q1.value.trim()=="Enter a term"){a.action+="health"}else{a.action+=a.q1.value}return true}function dic_home_foc(a){a.value=""
}function StringTrim(){var a=this;a=a.replace(/^\s+/g,"");a=a.replace(/\s+$/g,"");return a}function morehealthmaps(a){if(YAHOO.util.Dom.getStyle("healthmap_full","display")=="none"){YAHOO.util.Dom.setStyle("healthmap_full","display","block");a.innerHTML="&laquo; less"}else{YAHOO.util.Dom.setStyle("healthmap_full","display","none");a.innerHTML="more &raquo;"}}function checklength(d,a,e){var b="#666640";var c="";if(d.value.length>=a){b="red";d.value=d.value.substring(0,a)}else{if(a-d.value.length<a*0.25){b="#666640"
}}if(d.value.length!=lastlen){c=a-d.value.length;document.getElementById(e).innerHTML=c}if(b!=lastcolor){lastcolor=b;document.getElementById(e).style.color=b}}function validateemail(b){var a=new RegExp("^[a-z0-9][a-z0-9_.-]*[a-z0-9_]@[a-z0-9][a-z0-9-]*[a-z0-9](\\.[a-z0-9][a-z0-9-]*[a-z0-9])+\\.?$","i");return a.test(b)}function validatescreenname(b){if(b.length<3){return false}var a=new RegExp("[<>&\\\\]","i");return !a.test(b)}function validatezip(b){var a=new RegExp("^[0-9]{5}$","i");return a.test(b)}function validfield(b){var a=new RegExp("[^ \t\n]");
return a.test(b)}function validname(b){var a=new RegExp("[<>&\\\\]","i");return !a.test(b)}function validphone(a){return(/\([0-9]{3}\)\s?[0-9]{3}\-[0-9]{4}/.test(a))}function is_all_ws(a){return !(/[^\t\n\r ]/.test(a.data))}function is_ignorable(a){return(a.nodeType==8)||((a.nodeType==3)&&is_all_ws(a))}function node_parent(b){var a=(b.parentElement!=undefined)?b.parentElement:b.parentNode;return a}function node_before(a){while((a=a.previousSibling)){if(!is_ignorable(a)){return a}}return null}function node_after(a){while((a=a.nextSibling)){if(!is_ignorable(a)){return a
}}return null}function last_child(b){var a=b.lastChild;while(a){if(!is_ignorable(a)){return a}a=a.previousSibling}return null}function first_child(b){var a=b.firstChild;while(a){if(!is_ignorable(a)){return a}a=a.nextSibling}return null}function data_of(a){var b=a.data;b=b.replace(/[\t\n\r ]+/g," ");if(b.charAt(0)==" "){b=b.substring(1,b.length)}if(b.charAt(b.length-1)==" "){b=b.substring(0,b.length-1)}return b}function kwbold(e,a){for(var d=0;d<e.length;d++){if(window.RegExp&&e[d].type=="text"){var g=a.replace("'","&#39;");
var c=g.split(/\s+/);for(x=0;x<c.length;x++){var f=new RegExp("\\b"+c[x]+"\\b","i");for(y=1;y<4;y++){if(y==1){strline=e[d].line1}else{if(y==2){strline=e[d].line2}else{strline=e[d].line3}}if(matchfound=f.exec(strline)){for(var b=0;b<matchfound.length;b++){if(y==1){google_ads[d].line1=strline.replace(matchfound[b],"<strong>"+matchfound[b]+"</strong>")}else{if(y==2){google_ads[d].line2=strline.replace(matchfound[b],"<strong>"+matchfound[b]+"</strong>")}else{google_ads[d].line3=strline.replace(matchfound[b],"<strong>"+matchfound[b]+"</strong>")
}}}}}}}}}function popUp(e,d,c,a){var b="";if(d=="news"){b="toolbar,menubar,scrollbars,resizable,location,status,titlebar,height="+a+",width="+c+",top=100,left=100"}else{if(d=="symptomsearchresult"){b="toolbar,menubar,scrollbars,resizable,location,status,titlebar,height="+a+",width="+c+",top=100,left=100"}}window.open(e,"newWin",b)}function tohtmlchars(a){var b=a;b=b.replace(/[\<]+/g,"&lt;");b=b.replace(/[\>]+/g,"&gt;");return b}function CreateBookmarkLink(){if(window.sidebar){alert("Please press CTRL + D on your keyboard to bookmark this page.")
}else{if(navigator.appVersion.indexOf("MSIE")>0){window.external.AddFavorite(location.href,document.title)}}}function processHrAnswer(c,a){try{var f=c.parentNode;f=f.parentNode;var e=f.childNodes;if(e==undefined||e==null){return}var h=null;document.getElementById(a).style.display="block";c.style.color="#CC6600";c.style.fontStyle="normal";c.style.cursor="default";c.onclick="";for(var d=0;d<e.length;d++){h=e[d].childNodes;for(var b=0;b<h.length;b++){if(h[b].nodeType==1&&h[b].onclick!=""&&h[b].onclick!=undefined){e[d].style.display="none"
}}}}catch(g){return}}function grabHrTable(a){}function dropHrTable(a){}HL_pasteHealthmap={pasteMap:function(c,b,a){this.healthmapContainerId="healthmap-container";this.healthmapHtml='<div class="hmap-close"><a href="javascript:HL_pasteHealthmap.closeMap();"><img src="/images/close_hmap.gif" alt="" border="0"/></a></div><div class="hmap-title"> '+b+' : HealthMap &reg;</div><div class="hmap-directions div-margin-medium">Click a box to search the web</div><div id="map_layer"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="750" HEIGHT="500" id="'+c+'"><PARAM NAME=movie VALUE="/corporate/test/bod_map.swf?imuid='+c+'"><PARAM NAME=quality VALUE=high><PARAM NAME=wmode VALUE=transparent><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="/corporate/test/bod_map.swf?imuid='+c+'" quality=high bgcolor=#FFFFFF WIDTH="750" HEIGHT="500"NAME="'+c+'" ALIGN="" TYPE="application/x-shockwave-flash" wmode="transparent"PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT></div><div id="dfp-hmap-ad-lb2"></div><div class="div-margin-medium text-align-center">Copyright &copy; 2005-2008 Healthline Networks, Inc. All Rights Reserved Worldwide.</div><div class="hmap-close"><a href="javascript:HL_pasteHealthmap.closeMap();"><img src="/images/close_hmap.gif" alt="" border="0"/></a></div>';
this.healthmapContainerObj=document.getElementById(this.healthmapContainerId);if(this.healthmapContainerObj.hasChildNodes()){while(this.healthmapContainerObj.childNodes.length>=1){this.healthmapContainerObj.removeChild(this.healthmapContainerObj.firstChild)}}this.healthmapDiv=document.createElement("div");this.healthmapDiv.id="healthmap-div";this.healthmapDiv.className="healthmap-div";this.healthmapDiv.innerHTML=this.healthmapHtml;this.healthmapContainerObj.appendChild(this.healthmapDiv);getHmapAd(c)},closeMap:function(){if(this.healthmapContainerObj){this.healthmapContainerObj.removeChild(this.healthmapContainerObj.lastChild)
}}};var input_buttons={init:function(){inputDiv=document.getElementById("input-buttons");YAHOO.util.Event.addListener(inputDiv,"mouseover",input_buttons.hover);YAHOO.util.Event.addListener(inputDiv,"mouseout",input_buttons.clear)},hover:function(a){var b=YAHOO.util.Event.getTarget(a);while(b.id!=inputDiv.id){if(b.nodeName.toUpperCase()=="BUTTON"){YAHOO.util.Dom.addClass(b,"button-hover");break}else{b=b.parentNode}}},clear:function(a){var b=YAHOO.util.Event.getTarget(a);while(b.id!=inputDiv.id){if(b.nodeName.toUpperCase()=="BUTTON"){if(YAHOO.util.Dom.hasClass(b,"button-hover")){YAHOO.util.Dom.removeClass(b,"button-hover")
}break}else{b=b.parentNode}}}};function getHmapAd(b){var a=new YAHOO.util.YUILoader();a.base=yuiPath;a.allowRollup=true;a.require("connection");a.loadOptional=true;a.onSuccess=function(c){callback={success:function(d){document.getElementById("dfp-hmap-ad-lb2").innerHTML=d.responseText},failure:function(){}},YAHOO.util.Connect.asyncRequest("GET","/adajax?imuid="+b,callback,null)};a.insert()}emailPageLoad={init:function(c,b){pu=c;et=b;var a=new YAHOO.util.YUILoader();a.base=yuiPath;a.allowRollup=true;a.require("connection","dom","yahoo");
a.onSuccess=function(){var d=new YAHOO.util.YUILoader();d.base="/cjs/";d.addModule({name:"emailpage",type:"js",path:"emailpage.v1.20120215130927.js"});d.require("emailpage");d.loadOptional=true;d.onSuccess=function(e){emailpage.open(pu,et)};d.insert()};a.insert()}};videoPopupLoad={init:function(c,b){pu=c;et=b;var a=new YAHOO.util.YUILoader();a.base="/cjs/";a.addModule({name:"videopopup",type:"js",path:"videopopup.v1.20120215130927.js"});a.require("videopopup");a.loadOptional=true;a.onSuccess=function(d){videopopup.open(pu,et)
};a.insert()}};
