
document.write('<link href="http://www.imedix.com/styles/FDHeader.css" rel="stylesheet" type="text/css">');
document.write('<div class="iMedix"><table border="0" cellpadding="0" cellspacing="0" style="width:100%;"><tr>');
document.write('<td width="1%"><a href="http://www.imedix.com"><img src="http://www.imedix.com/media/images/FreeDictionary/iMedix-Logo.gif" title="iMedix" alt="iMedix" border="0"></a></td>');
document.write('<td width="1%">');
function tabsFunc(obj){	var originClass = obj.className;obj.className= originClass + ' hover';	obj.onmouseout = function(){obj.className = originClass }}
document.write('<ul class="tabs">');
		document.write('<li onMouseOver="tabsFunc(this)" class="" id="hp"> <a href="http://www.imedix.com/" >Home</a> </li>');
		document.write('<li onMouseOver="tabsFunc(this)" id="HealthCommunity"> <a href="http://www.imedix.com/health_community">Health Communities</a>');
			document.write('<ul>');
				document.write('<li class="first"> <a class="" href="http://www.imedix.com/health_community">Main</a> </li>');
				document.write('<li class=""> <a class="" href="http://www.imedix.com/health_community/list">Communities A-Z</a> </li>');
				document.write('<li class=""> <a class="" href="http://www.imedix.com/health_community/questions">All Questions & Answers</a> </li>');
			document.write('</ul>');
		document.write('</li><li onMouseOver="tabsFunc(this)" id="Members"> <a href="http://www.imedix.com/health_community/members">Members</a>');
			document.write('<ul>');
				document.write('<li class="first"> <a class="" href="http://www.imedix.com/health_community/members">All Members</a> </li>');
				document.write('<li class=""> <a class="" href="http://www.imedix.com/health_community/top_contributors">iMedix Contributors</a> </li>');
			document.write('</ul>');
		document.write('</li><li onMouseOver="tabsFunc(this)" id="MyStuff"> <a href="http://www.imedix.com/MyiMedix/Profile">My Stuff</a>');
			document.write('<ul>');
				document.write('<li class="first"> <a class="" href="http://www.imedix.com/MyiMedix/Profile">My Profile & Friends</a> </li>');
				document.write('<li class=""> <a class="" href="http://www.imedix.com/MyiMedix/inbox">Inbox</a> </li>');
				document.write('<li class=""> <a class="" href="http://www.imedix.com/MyiMedix/MyQuestions">My Questions & Answers</a> </li>');
				document.write('<li class=""> <a class="" href="http://www.imedix.com/MyiMedix/edit">Edit Profile</a> </li>');
				document.write('<li class=""> <a class="" href="http://www.imedix.com/MyiMedix/BlockedUsers">Blocked Users</a> </li>');
				document.write('<li class=""> <a class="" href="http://www.imedix.com/myiMedix/settings">Account Settings</a> </li>');
			document.write('</ul>');
		document.write('</li>');
	document.write('</ul>');
document.write('</td>');
document.write('<td width="98%" align="right" id="searchline" class="searchLine">');
	document.write('<table class="search" smartid="searchForm">');
		document.write('<tr>');
			document.write('<td class="searchTd" smartid="SearchControlsContainer">');
				document.write('<label class="uber" onClick="this.style.display=\'none\'; document.getElementById(\'iMedixQueryInp\').focus()" id="QueryGuide" style="display: none;"> Type any health topic</label>');
				document.write('<label for="q">');
				document.write('<input type="text" id="iMedixQueryInp" title="iMedix Health Search" class="searchBox" onClick="document.getElementById(\'QueryGuide\').style.display=\'none\'" onblur="if (this.value==\'\') document.getElementById(\'QueryGuide\').style.display=\'block\'" />');
				document.write('</label>');
			document.write('</td><td>');
				document.write('<input id="iMedixQueryBut" type="image" onMouseOut="this.src=\'http://www.imedix.com/media/images/header/searchBut.png\'" onMouseOver="this.src=\'http://www.imedix.com/media/images/header/searchButH.png\'" src="http://www.imedix.com/media/images/header/searchBut.png" onClick="try{stat(122, searchTypeDD.innerText.trim()); SearchHandler.search();}catch(e){} return false;" title="Search"/>');
			document.write('</td>');
		document.write('</tr>');
	document.write('</table>');

	


///////////////////////////

try
{var isIE=(window.navigator.userAgent.indexOf("MSIE")>0);if(!isIE){HTMLElement.prototype.__defineGetter__("innerText",function(){return(this.textContent);});HTMLElement.prototype.__defineSetter__("innerText",function(txt){this.textContent=txt;});HTMLElement.prototype.__defineGetter__("children",function(){return(this.childNodes);});HTMLElement.prototype.__defineGetter__("XMLDocument",function(){return((new DOMParser()).parseFromString(this.innerHTML,"text/xml"));});HTMLElement.prototype.attachEvent=function(eventName,fHandler){fHandler._wrapHandler=function(e){window.event=e;fHandler();return(e.returnValue);};this.addEventListener(eventName.substr(2),fHandler._wrapHandler,false);};HTMLElement.prototype.detachEvent=function(eventName,fHandler){if(fHandler._wrapHandler!=null)
this.removeEventListener(eventName.substr(2),fHandler._wrapHandler,false);};Event.prototype.__defineGetter__("srcElement",function(){var node=this.target;while(node.nodeType!=1)node=node.parentNode;if(node!=this.target)alert("Unexpected event.target!")
return node;});Event.prototype.__defineSetter__("cancelBubble",function(b){if(b)this.stopPropagation();});Event.prototype.__defineSetter__("returnValue",function(b){if(!b)this.preventDefault();this._returnValue=b;return(b);});Event.prototype.__defineGetter__("returnValue",function(){return(this._returnValue);});XMLDocument.prototype.selectSingleNode=function(xPath){var doc=this;if(doc.nodeType!=9)
doc=doc.ownerDocument;if(doc.nsResolver==null)doc.nsResolver=function(prefix){return(null);};var node=doc.evaluate(xPath,this,doc.nsResolver,XPathResult.ANY_UNORDERED_NODE_TYPE,null);if(node!=null)node=node.singleNodeValue;return(node);};Node.prototype.__defineGetter__("text",function(){return(this.textContent);});}}
catch(e)
{}
Suggester=function(inputObj,styleClass,SugUrl,separator)
{this.refreshAutoComplete=function()
{this.showTime=null;if(this.panel==null)
this.handlePanel();if(this.element.value=="")
this.closePanel();else
{this.SugFunc.Suggest(this.getValue(),this.renderSuggestions,this);}}
this.renderSuggestions=function(suggestions)
{context=suggestions.context;context.resetNav();if(suggestions.value==null||context.element.value=="")
{context.closePanel();return;}
context.panel.style.overflowY="hidden";context.panel.innerHTML="";for(var i=0;i<suggestions.value.length;++i)
{var sug=document.createElement("p");sug.suggester=context;sug.attachEvent("onmousedown",context.suggestionClick);sug.attachEvent("onmousemove",context.suggestionHover);sug.value=suggestions.value[i].SuggestionValue;context.panel.appendChild(sug);switch(suggestions.value[i].type)
{case 1:sug.style.borderBottom="dashed 1px gray";sug.innerHTML="<span class='dym'><cite><<< Spelling suggestion</cite>"+suggestions.value[i].SuggestionDisplayName+"</span>";break;default:sug.innerHTML=suggestions.value[i].SuggestionDisplayName;break;}}
context.resize();}
this.setValue=function(doNotClose)
{if(this.currentHover!=null)
{var left=this.getLeftSep();var right=this.getRightSep();this.element.value=this.element.value.substring(0,left)+this.currentHover.value+this.element.value.substring(right);this.setElementSelectionStart(left+this.currentHover.value.length);}
if(doNotClose==null||doNotClose!=false)
{this.currentHover=null;this.closePanel();}}
this.getLeftSep=function()
{var inpValue=this.element.value;var left=this.getElementSelectionStart();left=left<0?0:left;while(left>0&&inpValue.charAt(left-1)!=this.separator)
--left;return left;}
this.getRightSep=function()
{var inpValue=this.element.value;var right=this.getElementSelectionStart();while(right<inpValue.length&&inpValue.charAt(right)!=this.separator)
++right;return right;}
this.getValue=function()
{var inpValue=this.element.value;return inpValue.substring(this.getLeftSep(),this.getRightSep()).trim();}
this.setHover=function(obj)
{if(this.currentHover!=null)
this.currentHover.className="";this.currentHover=obj;this.currentHover.className="on";}
this.handlePanel=function()
{if(this.panel==null)
{this.panel=document.createElement("div");this.panel.className="AutoSuggest "+this.styleClass;this.panel.style.width=this.element.clientWidth+"px";this.panel.style.height="10px";this.panel.style.display="none";this.panel.attachEvent("onfocus",this.Focus);this.panel.attachEvent("onkeyup",this.keyPressed);this.panel.attachEvent("onkeypress",this.filterkeyPress);this.panel.attachEvent("onblur",this.lostFocus);if(typeof(BrowserDetect)!="undefined"&&((BrowserDetect.browser=="Explorer"&&BrowserDetect.version==7)||(BrowserDetect.browser=="Firefox")||(BrowserDetect.browser=="Opera")))
{this.panel.style.maxHeight="200px"}
this.panel.suggester=this;this.bgFrame=document.createElement("iframe");this.bgFrame.style.display="none";this.bgFrame.style.position="absolute";this.bgFrame.style.backgroundColor="white";this.bgFrame.frameBorder="0";this.bgFrame.style.width=this.element.clientWidth+"px";this.bgFrame.zIndex=0;document.body.appendChild(this.panel);document.body.appendChild(this.bgFrame);}}
this.resize=function()
{this.openPanel();}
this.openPanel=function()
{if(this.panel.childNodes.length==0)
{this.closePanel();return;}
if(this.showHandler!=null)
{window.clearTimeout(this.showHandler);this.showHandler=null;}
if(this.panel.style.display=="none")
{var left=0;oNode=this.element;while(oNode!=null){left+=oNode.offsetLeft;oNode=oNode.offsetParent;}
var top=0;oNode=this.element;while(oNode!=null){top+=oNode.offsetTop;oNode=oNode.offsetParent;}
this.panel.style.left=left+"px";this.panel.style.top=-4+this.element.offsetHeight+top+"px";this.panel.style.display="";this.bgFrame.style.display="";this.bgFrame.style.top=parseInt(this.panel.style.top,10)+2+"px";this.bgFrame.style.left=this.panel.style.left;}
var delta=2+this.panel.lastChild.offsetTop+this.panel.lastChild.offsetHeight-this.panel.clientHeight;if(Math.abs(delta)>3)
{var oldHeight=this.panel.clientHeight;this.panel.style.height=parseInt(this.panel.style.height,10)+delta*0.2+"px";this.bgFrame.style.height=this.panel.clientHeight+"px";if(delta<0||this.panel.clientHeight!=oldHeight)
{this.showHandler=window.setTimeout(this.element.smartid+".suggester.openPanel()",10);return;}}
this.showHandler=null;this.panel.style.height=2+this.panel.lastChild.offsetTop+this.panel.lastChild.offsetHeight+"px";this.panel.style.overflowY="auto";this.panel.style.overflow="auto";this.panel.style.overflowX="hidden";if(this.panel.scrollTop!=0)
this.panel.scrollTop=0;this.bgFrame.style.height=this.panel.clientHeight+"px";this.panel.isOpened=true;}
this.closePanel=function()
{if(this.showHandler!=null)
{window.clearTimeout(this.showHandler);this.showHandler=null;}
if(this.panel==null||this.panel.isOpened==false)
return;if(this.panel.style.overflowY!="hidden")
this.panel.style.overflowY="hidden";var delta=10-this.panel.clientHeight;if(Math.abs(delta)>3)
{this.panel.style.height=parseInt(this.panel.style.height,10)+delta*0.2+"px";this.bgFrame.style.height=this.panel.style.height;this.showHandler=window.setTimeout(this.element.smartid+".suggester.closePanel()",10);}
else
{this.showHandler=null;this.panel.style.display="none";this.bgFrame.style.display="none";this.panel.isOpened=false;this.panel.innerHTML="";}}
this.keySensitiveRender=function(delayInMs)
{var delay=delayInMs||200;this.cancelShow();if(this.element.value!="")
this.showTime=window.setTimeout(this.element.smartid+".suggester.refreshAutoComplete()",delay);else
this.closePanel();}
this.moveUp=function()
{if(this.currentHover==null)
{this.panel.lastChild.className="on";this.currentHover=this.panel.lastChild;}
else
{var newHover=(this.currentHover==this.panel.firstChild?this.panel.lastChild:this.currentHover.previousSibling)
this.currentHover.className="";newHover.className="on";this.currentHover=newHover;}
this.showCurrentHover();}
this.moveDown=function()
{if(this.currentHover==null)
{this.panel.firstChild.className="on";this.currentHover=this.panel.firstChild;}
else
{var newHover=(this.currentHover==this.panel.lastChild?this.panel.firstChild:this.currentHover.nextSibling)
this.currentHover.className="";newHover.className="on";this.currentHover=newHover;}
this.showCurrentHover();}
this.showCurrentHover=function()
{if(this.currentHover.offsetTop<this.panel.scrollTop)
{this.panel.scrollTop=this.currentHover.offsetTop;}
else
{if(this.currentHover.offsetTop+this.currentHover.offsetHeight>this.panel.scrollTop+this.panel.offsetHeight)
{this.panel.scrollTop=this.currentHover.offsetTop+this.currentHover.offsetHeight;}}}
this.resetNav=function()
{if(this.currentHover!=null)
{this.currentHover.className="";this.currentHover=null;}}
this.cancelEvent=function(ev)
{ev.returnValue=false;ev.cancelBubble=true;if(ev.stopPropagation)
ev.stopPropagation();}
this.onKeyPress=function(ev)
{switch(ev.keyCode)
{case 40:(this.panel&&this.panel.isOpened)?this.moveDown():this.keySensitiveRender(0);break;case 38:(this.panel&&this.panel.isOpened)?this.moveUp():this.keySensitiveRender(0);break;case 13:return true;case 27:this.closePanel();return true;default:this.keySensitiveRender();return true;}
this.setValue(false);this.cancelEvent(ev);return false;}
this.cancelShow=function()
{if(this.showTime!=null)
{window.clearTimeout(this.showTime)
this.showTime=null;}}
this.onLostFocus=function(ev)
{this.closeASPanel=window.setTimeout(this.element.smartid+".suggester.cancelShow();"+this.element.smartid+".suggester.closePanel()",100);}
this.onFocus=function(ev)
{if(this.closeASPanel!=null)
{window.clearTimeout(this.closeASPanel)
this.closeASPanel=null;}}
this.setElementSelectionStart=function(pos)
{if(this.element.createTextRange)
{this.element.focus();var r=document.selection.createRange();r.moveStart('character',-this.element.value.length+pos);r.moveEnd('character',-this.element.value.length+pos)
r.select();}
else
{this.element.selectionStart=pos;this.element.selectionEnd=pos;}}
this.getElementSelectionStart=function()
{if(this.element.createTextRange)
{var r=document.selection.createRange().duplicate()
r.moveEnd('character',this.element.value.length)
if(r.text=='')return this.element.value.length
return this.element.value.lastIndexOf(r.text)}
else
return this.element.selectionStart}
this.onKeyDown=function(ev)
{switch(ev.keyCode)
{case 13:this.setValue();return true;default:return true;}
this.cancelEvent(ev);}
this.onFilterKeyPress=function(ev)
{if(ev.shiftKey)
return;switch(ev.keyCode)
{case 40:break;case 38:break;default:return true;}
this.cancelEvent(ev);}
this.onClick=function(ev)
{if(ev.srcElement==this.element)
this.keySensitiveRender(2000);}
this.keyPressed=function(ev)
{var ev=ev||event;var element=ev.srcElement;return element.suggester.onKeyPress(ev);}
this.keyDown=function(ev)
{var ev=ev||event;var element=ev.srcElement;return element.suggester.onKeyDown(ev);}
this.filterkeyPress=function(ev)
{var ev=ev||event;var element=ev.srcElement;return element.suggester.onFilterKeyPress(ev);}
this.lostFocus=function(ev)
{var ev=ev||event;var element=ev.srcElement;return element.suggester.onLostFocus(ev);}
this.Focus=function(ev)
{var ev=ev||event;var element=ev.srcElement;return element.suggester.onFocus(ev);}
this.suggestionHover=function(ev)
{var ev=ev||event;var element=ev.srcElement;return(ev.srcElement.tagName=="P")?element.suggester.setHover(element):null;}
getParentElementNode=function(startingObject,elementTagName)
{obj=startingObject.parentNode;if(obj==null)
return null;if(obj.nodeName==elementTagName.toUpperCase())
{return obj;}
else
{if(obj.nodeName!="BODY")
return getParentElementNode(obj,elementTagName)}}
this.suggestionClick=function(ev)
{var ev=ev||event;var element=ev.srcElement;var rtn=null;try{rtn=element.suggester!=null?element.suggester.setValue():getParentElementNode(element,"p").suggester.setValue();}catch(e){alert(e)}
return rtn;}
this.Click=function(ev)
{var ev=ev||event;var element=ev.srcElement;return element.suggester.onClick(ev);}
this.init=function(inputObj,styleClass,SugFunc,separator)
{this.element=inputObj;this.styleClass=styleClass;this.SugFunc=SugFunc;this.element.smartid=this.element.getAttribute("smartid");this.separator=separator;if(Constants.isIE)
try{if(inputObj.className.indexOf("IWMedixBox")>-1)activateMedixBox(inputObj);}catch(e){}
inputObj.attachEvent("onblur",this.lostFocus);inputObj.attachEvent("onclick",this.Click);inputObj.attachEvent("onfocus",this.Focus);inputObj.attachEvent("onkeyup",this.keyPressed);inputObj.attachEvent("onkeypress",this.filterkeyPress);inputObj.attachEvent("onkeydown",this.keyDown);}
this.init(inputObj,styleClass,SugUrl,separator);}
if(typeof(Constants)=="undefined")
Constants=new Object();Constants.isIE=navigator.appName.toLowerCase().indexOf("explorer")>-1;String.prototype.trim=function(){return this.replace(/^\s{1,}/ig,"").replace(/\s{1,}$/ig,"");}
_iMedixSearch={HTML:'',isIE:navigator.appName.toLowerCase().indexOf("explorer"),keyPressed:function(ev)
{var keyPressed=(this.isIE>-1)?ev.keyCode:ev.which;if(keyPressed==13)
{this.search(ev.srcElement);return false;}
else
return true;},search:function(inpObj)
{try{query=inpObj.searchInput.value.replace(/^\s{1,}/ig,"").replace(/\s{1,}$/ig,"").replace(/ /g,'_');if(query.trim()=="")
return false;var illegalChars=new RegExp("[^a-z0-9-_]+","gi");if(illegalChars.test(query))
this.launchLink("http://www.imedix.com/web?q="+encodeURIComponent(query.replace(/ /g,'_')));else
{wordsArr=query.split("_");query="";for(var i=0;i<wordsArr.length;i++)
{var LowerTheWord=false;for(var j=1;j<wordsArr[i].length;j++)
{if(wordsArr[i].charAt(j).toLowerCase()==wordsArr[i].charAt(j))
{LowerTheWord=true;break;}}
if(LowerTheWord)
wordsArr[i]=wordsArr[i].toLowerCase()
query+=wordsArr[i];if(i!=wordsArr.length-1)
query+="_";}
this.launchLink("http://www.imedix.com/"+encodeURIComponent(query)+"/web");}}
catch(e){}
return false;},launchLink:function(url)
{var submitAnchor=document.createElement("a");submitAnchor.href=url;document.body.appendChild(submitAnchor);if(Constants.isIE)
{submitAnchor.click();}
else
window.location.href=url;},bindTo:function(inpObj,butObj)
{this.searchInputs[inpObj.id]=inpObj;this.searchInputs[inpObj.id].setAttribute("smartid","_iMedixSearch.searchInputs[\""+inpObj.id+"\"]");this.searchInputs[inpObj.id].suggester=new Suggester(this.searchInputs[inpObj.id],'Query',this.cds);if(butObj!=null)
{this.searchInputs[inpObj.id].onkeypress=function(ev){return _iMedixSearch.keyPressed((ev==null?event:ev));};butObj.onmouseup=function(ev){return _iMedixSearch.search(this);};butObj.searchInput=this.searchInputs[inpObj.id];this.searchInputs[inpObj.id].searchInput=this.searchInputs[inpObj.id];}},init:function()
{this.searchInputs=new Array()
this.cds=new CrossDomainSuggester("_iMedixSearch.cds");if(this.HTML!="")
{document.write(this.HTML);this.element=document.getElementById("_iMedixSearchElement");this.bindTo(this.element.getElementsByTagName('INPUT')[0],this.element.getElementsByTagName('INPUT')[1]);}}}
function loadClientScript(src,id){var html_doc=document.getElementsByTagName('head').item(0);var js=document.createElement('script');js.setAttribute('language','javascript');js.setAttribute('type','text/javascript');js.setAttribute('src',(src.indexOf("http://")==0?src:"/ClientScripts/"+src));js.id=id;html_doc.appendChild(js);}
CrossDomainSuggester=function(evalID)
{this.init=function(evalID)
{this.evalID=evalID;}
this.Suggest=function(query,cbFunc,context)
{try
{var sugScr;this.cbFunc=cbFunc;this.context=context;loadClientScript("http://www.imedix.com/ClientResources.axd?rc=GenerateSuggestion@HealthLexicon,"+this.evalID+".callback!"+query,this.evalID+"scr");}
catch(e){}}
this.callback=function(res)
{try
{var resObj=new Object();resObj.context=this.context;resObj.value=res;this.cbFunc(resObj);}
catch(e){}}
this.init(evalID);}
var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)
return data[i].identity;}
else if(dataProp)
return data[i].identity;}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();_iMedixSearch.init();

/////////////////////////////////////////

var QueryGuidanceHandler=function(){if (document.getElementById('iMedixQueryInp').value=='') document.getElementById('QueryGuide').style.display="block";};
	                                                                                                                   
var iMedixQueryInput=document.getElementById("iMedixQueryInp");
var iMedixQueryButton=document.getElementById("iMedixQueryBut");

// 	Note: It is optional to pass the "iMedixQueryButton" parameter. Use it only if button support is needed.
_iMedixSearch.bindTo(iMedixQueryInput, iMedixQueryButton);		                

_iMedixSearch.isIE>-1 ? attachEvent('onload',QueryGuidanceHandler ) : window.addEventListener('load',QueryGuidanceHandler,false);    

document.write('</td></tr></table></div>');
