document.writeln("<style type=\"text\/css\">");
document.writeln("<!--");
document.writeln("");
document.writeln(".top33 {");
document.writeln("    font-size: 12px;");
document.writeln("    color:#000000;");
document.writeln("	text-decoration:none;");
document.writeln("}");
document.writeln(".top1-height {");
document.writeln("    font-size: 12px;");
document.writeln("	line-height: 16px;");
document.writeln("	text-decoration: none;");
document.writeln("	color:#000000;");
document.writeln("        FONT-FAMILY: \"宋体\"");
document.writeln("	");
document.writeln("}");
document.writeln(".top1-height a {");
document.writeln("    font-size: 12px;");
document.writeln("	line-height: 16px;");
document.writeln("	text-decoration: none;");
document.writeln("	color:#000000;");
document.writeln("        FONT-FAMILY: \"宋体\"	");
document.writeln("}");
document.writeln(".top2-height {");
document.writeln("    font-size: 12px;");
document.writeln("	line-height: 16px;");
document.writeln("	text-decoration: none;");
document.writeln("	color:#ffffff;	");
document.writeln("}");
document.writeln(".userlogininput {");
document.writeln("    width:80px;");
document.writeln("	height:16px;");
document.writeln("	border:1px solid #7FC886;");
document.writeln("	font-size:12px;");
document.writeln("}");
document.writeln("-->");
document.writeln("<\/style>");
document.writeln("<script language=\"JavaScript\" type=\"text\/JavaScript\">");
document.writeln("<!--");
document.writeln("function MM_jumpMenu(targ,selObj,restore){ \/\/v3.0");
document.writeln("  eval(targ+\".location=\'\"+selObj.options[selObj.selectedIndex].value+\"\'\");");
document.writeln("  if (restore) selObj.selectedIndex=0;");
document.writeln("}");
document.writeln("function CheckFormlogin()");
document.writeln("{");
document.writeln("	if(document.Login.username.value==\"\")");
document.writeln("	{");
document.writeln("		alert(\"请输入用户名！\");");
document.writeln("		document.Login.username.focus();");
document.writeln("		return false;");
document.writeln("	}");
document.writeln("	if(document.Login.password.value == \"\")");
document.writeln("	{");
document.writeln("		alert(\"请输入密码！\");");
document.writeln("		document.Login.password.focus();");
document.writeln("		return false;");
document.writeln("	}");
document.writeln("	return true;");
document.writeln("}");
document.writeln("function CheckFormsearch()");
document.writeln("{");
document.writeln("	if(document.Searchtop.keyword.value==\"\")");
document.writeln("	{");
document.writeln("		alert(\"请输入关键字！\");");
document.writeln("		document.Searchtop.keyword.focus();");
document.writeln("		return false;");
document.writeln("	}");
document.writeln("	return true;");
document.writeln("}");
/*
document.writeln("var strcookie=document.cookie;");   //得到Cookie的值,
document.writeln("var arrcookie=strcookie.split(/';/');");   //将多个Cookie分割为多个名/值对
//document.writeln("var username;");
document.writeln("for(var i=0;i<arrcookie.length;i++)");
document.writeln("{");
document.writeln("strcook=arrcookie[i];"); //获取Cookie的一小段
document.writeln("alert(strcook)");
document.writeln("}");
/
document.writeln("var arrcookie1=strcook.split(/'&/');");  //将获取Cookie的那一小段分割为多个名/值对
document.writeln("for(var j=0;j<arrcookie1.length;j++)");
document.writeln("{");
document.writeln("var arr2=arrcookie1[j].split(/'=/');");  //遍历Cookie数组,处理每个Cookie对
document.writeln("if (/'username/'==arr2[j])");      //如果中有字段名为userid,则取出他的值
document.writeln("{");
document.writeln("username=arr2[j];");
document.writeln("break;");
document.writeln("}");
document.writeln("}");
document.writeln("if (username!=null)");    //得到的userid不为空,则可以阅读,否则跳转登陆页面
document.writeln("{");
document.writeln("alert(username);");
document.writeln("}");
/**/
//document.writeln("var strcookie=document.cookie;"); 
//document.writeln("var arrcookie=strcookie.split(\";\");");
//document.writeln("alert(arrcookie);");
document.writeln("\/\/-->");
document.writeln("<\/script>");
document.writeln("<table width=\"967\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("  <tr>");
document.writeln("    <td width=\"219\" valign=\"middle\"><a href=\"http:\/\/www.5191.com\"><img src=\"http:\/\/www.5191.com\/top\/images\/bantou_01.gif\" width=\"195\" height=\"88\" border=\"0\" \/><\/a><\/td>");
document.writeln("    <td width=\"770\" valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("      <tr>");
document.writeln("        <td height=\"25\" colspan=\"6\" bgcolor=\"EBEBEB\">");
//这里调用了登陆信息

document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-size: 12px;\">");
document.writeln("          <tr><FORM name=\"Login\"  onsubmit=\"return(CheckFormlogin())\"  action=\"http:\/\/bbs.5191.com\/board\/login.asp\" method=post >");
document.writeln("            <td width=\"12%\" height=\"20\" align=\"right\" valign=\"middle\"><span style=\"color: #006600;font-weight: bold;\">健康社区：<\/span><\/td>");
document.writeln("            <td width=\"7%\"><span class=\"STYLE2\">用户名:<\/span><\/td>");
document.writeln("            <td width=\"14%\"><input name=\"username\" type=\"text\" class=\"userlogininput\" value=\"\" size=\"10\"><\/td>");
document.writeln("            <td width=\"7%\" align=\"right\"><span class=\"STYLE2\">密码：<\/span><\/td>");
document.writeln("            <td width=\"13%\"><input name=\"password\" type=\"password\" class=\"userlogininput\" value=\"\" size=\"10\"><\/td>");
document.writeln("            <td width=\"13%\" valign=\"bottom\">");
document.writeln("              <input type=\"image\" name=\"imageField\" src=\"http:\/\/www.5191.com\/top\/images\/bantou_04.gif\" \/>&nbsp;<a href=\"http:\/\/bbs.5191.com\/board\/reg.asp\"><img src=\"http:\/\/www.5191.com\/top\/images\/bantou_06.gif\" width=\"33\" height=\"17\" border=\"0\" \/><\/a><\/td>");
document.writeln("          <\/form>");
document.writeln("            <td width=\"35%\" align=\"center\"><table width=100% border=0 cellspacing=0 cellpadding=0><tr>");
document.writeln("<td width=10% align=center valign=middle><img src=/images/viewpage/zduan_08.gif width=15 height=15 class=topic/></td>");
document.writeln("<td width=22%><a href=\"http:\/\/www.5191.com\" class=\"top33\">大众健康<\/a>|</td>");
document.writeln("<td width=8% align=center><img src=/images/viewpage/zduan_10.gif width=14 height=15 /></td>");
document.writeln("<td width=23%></td>");
document.writeln("<td width=12% align=center><img src=/images/viewpage/zduan_05.gif width=18 height=17 /></td>");
document.writeln("<td width=25% valign=baseline><a href=\"http:\/\/b2b.5191.com\" class=\"top33\">医药商务<\/a>|</td></tr></table><\/td>");
document.writeln("          <\/tr>");
document.writeln("<\/table>");

//这里调用了登陆信息
//document.writeln("<\/script>");
//document.writeln("<script language='javascript' src='\/inc\/touser.asp'><\/script>");
//document.writeln("<script>");
document.writeln("<\/td>");
document.writeln("      <\/tr>");
document.writeln("      <tr>");
document.writeln("        <td height=\"2\" colspan=\"6\" valign=\"top\"><\/td>");
document.writeln("        <\/tr></table><table border=0 cellpadding=0 cellspacing=0>");
document.writeln("      <tr>");
document.writeln("        <td width=\"12\" height=\"60\" valign=\"top\">");
document.writeln("<div id=dingb class=dhz><div class=zuo></div><div class=bj>");
document.writeln("<div class=text1>生活保健：<a href=http://www.5191.com/subject/beauty/ target=_blank>美  容</a>&nbsp;|&nbsp;<a href=http://xinli.5191.com/ target=_blank>心  理</a>&nbsp;|&nbsp;<a href=http://www.5191.com/subject/clothes/ target=_blank>衣  着</a>&nbsp;|&nbsp;<a href=http://www.5191.com/subject/food/ target=_blank>食  疗</a>&nbsp;|&nbsp;<a href=http://www.5191.com/subject/house/ target=_blank>居  住</a>&nbsp;|&nbsp;<a href=http://www.5191.com/subject/step/ target=_blank>运动健身</a><br />");
document.writeln("家庭健康：<a href=http://lady.5191.com/ target=_blank>女  性</a>&nbsp;|&nbsp;<a href=http://gent.5191.com/ target=_blank>男  性</a>&nbsp;|&nbsp;<a href=http://sex.5191.com/ target=_blank>两  性</a>&nbsp;|&nbsp;<a href=http://baby.5191.com/ target=_blank>育  儿</a>&nbsp;|&nbsp;<a href=http://teens.5191.com/ target=_blank>青少年</a>&nbsp;|&nbsp;<a href=http://elds.5191.com/ target=_blank>老年养生</a> <br /></div></div>");
document.writeln("<div class=you></div><div class=zhong></div><div class=bj2>");
document.writeln("<div class=text1>求医问药：<a href=http://doctor.5191.com/ target=_blank>名  医</a>&nbsp;|&nbsp;<a href=http://hospital.5191.com/ target=_blank>名  院</a>&nbsp;|&nbsp;<a href=http://shop.5191.com/ target=_blank>药  物</a>&nbsp;|&nbsp;<a href=http://www.5191.com/subject/disease/ target=_blank>疾  病</a>&nbsp;|&nbsp;<a href=http://bbs.5191.com/ target=_blank>社  区</a>&nbsp;|&nbsp;<a href=http://www.5191.com/channel06.asp target=_blank>就医指南</a></a><br />");
document.writeln("");
document.writeln("</div></div><div class=you2></div></div>");
document.writeln("<\/td>");
document.writeln("      <\/tr>");
document.writeln("    <\/table><\/td>");
document.writeln("  <\/tr>");
document.writeln("  <tr>");
document.writeln("    <td height=\"40\" colspan=\"2\" valign=\"middle\" background=\"http:\/\/www.5191.com\/top\/images\/bantou_24.gif\">");
document.writeln("	<table width=\"98%\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("	");
document.writeln("      <tr>");
document.writeln("	  <form method=\'Get\' name=\'Searchtop\' action=\'http:\/\/www.5191.com\/Search.asp\' onsubmit=\"return(CheckFormsearch())\">");
document.writeln("        <td width=\"66\" height=\"31\" valign=\"top\"><img src=\"http:\/\/www.5191.com\/top\/images\/bantou_32.gif\" width=\"65\" height=\"40\" \/><\/td>");
document.writeln("        <td width=\"257\"><input type=\'text\' name=\'keyword\'  size=\'30\' value=\'\' maxlength=\'50\' onFocus=\'this.select();\'><\/td>");
document.writeln("        <td width=\"115\">");
document.writeln("		<select name=\'ClassID\'>");
document.writeln("		  <option value=\"\">5191全站<\/option>");
document.writeln("		  <option value=\"1\">└病症查询<\/option>");
document.writeln("		  <option value=\"2\">└养生保健<\/option>");
document.writeln("		  <option value=\"3\">└美容健身<\/option>");
document.writeln("		  <option value=\"4\">└两性空间<\/option>");
document.writeln("        <\/select>");
document.writeln("			<\/td>");
document.writeln("        <td width=\"60\"><label>");
document.writeln("          <input type=\"image\" name=\"imageField2\" src=\"http:\/\/www.5191.com\/top\/images\/bantou_35.gif\" \/>");
document.writeln("          <\/label><\/td>");
document.writeln("        <td width=\"57\">&nbsp;<\/td>");
document.writeln("		 <\/form>");
document.writeln("        <td width=\"110\" valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("          <tr>");
document.writeln("            <td width=\"28%\" height=\"40\" valign=\"top\"><img src=\"http:\/\/www.5191.com\/top\/images\/bantou_25.gif\" width=\"31\" height=\"40\" \/><\/td>");
document.writeln("            <td width=\"72%\" valign=\"bottom\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("              <tr>");
document.writeln("                <td align=\"center\"><a href=\"http:\/\/shop.5191.com\"><span class=\"top2-height\">在线咨询<\/span><\/a><\/td>");
document.writeln("              <\/tr>");
document.writeln("              <tr>");
document.writeln("                <td height=\"10\"><\/td>");
document.writeln("              <\/tr>");
document.writeln("            <\/table><\/td>");
document.writeln("          <\/tr>");
document.writeln("        <\/table><\/td>");
document.writeln("        <td width=\"100\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("          <tr>");
document.writeln("            <td width=\"28%\" height=\"40\" valign=\"top\"><img src=\"http:\/\/www.5191.com\/top\/images\/bantou_27.gif\" width=\"28\" height=\"40\" \/><\/td>");
document.writeln("            <td width=\"72%\" valign=\"bottom\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                <tr>");
document.writeln("                  <td align=\"center\"><a href=http:\/\/wenba.5191.com\/><span class=\"top2-height\">健康问吧<\/span><\/a><\/td>");
document.writeln("                <\/tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"10\"><\/td>");
document.writeln("                <\/tr>");
document.writeln("            <\/table><\/td>");
document.writeln("          <\/tr>");
document.writeln("        <\/table><\/td>");
document.writeln("        <td width=\"107\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("          <tr>");
document.writeln("            <td width=\"25%\" height=\"40\" valign=\"top\"><img src=\"http:\/\/www.5191.com\/top\/images\/bantou_29.gif\" width=\"27\" height=\"40\" \/><\/td>");
document.writeln("            <td width=\"75%\" valign=\"bottom\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                <tr>");
document.writeln("                  <td align=\"center\"><a href=\"http:\/\/www.5191.com\/ceshizt\/\"><span class=\"top2-height\">健康自测<\/span><\/a><\/td>");
document.writeln("                <\/tr>");
document.writeln("                <tr>");
document.writeln("                  <td height=\"10\"><\/td>");
document.writeln("                <\/tr>");
document.writeln("            <\/table><\/td>");
document.writeln("          <\/tr>");
document.writeln("        <\/table><\/td>");
document.writeln("      <\/tr>");
document.writeln("    <\/table><\/td>");
document.writeln("  <\/tr>");
document.writeln("  <tr>");
document.writeln("    <td height=\"4\" colspan=\"2\" valign=\"top\" bgcolor=\"#CCCCCC\"><\/td>");
document.writeln("  <\/tr>");
document.writeln("<\/table>");

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[1]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[0]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
this.tickerdiv.onmouseover=function(){scrollerinstance.mouseoverBol=1}
this.tickerdiv.onmouseout=function(){scrollerinstance.mouseoverBol=0}
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

//漂浮广告
document.writeln('<script language="javascript" src="http://ad.5191.com/js/5191/2008/68.js"></script>');
//漂浮广告

<!--//跳出广告部分
function openwin(){ 
window.open("http://www.e5191.com","","height=500, width=600, top=0, left=0, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes");
} 
function get_cookie(Name){ 
var search = Name + "=" 
var returnvalue = ""; 
if (document.cookie.length>0) { 
offset = document.cookie.indexOf(search) 
if (offset != -1) { 
offset += search.length 
end = document.cookie.indexOf(";", offset); 
if (end == -1) 
end = document.cookie.length; 
returnvalue=unescape(document.cookie.substring(offset,end))
		}
	}return returnvalue;
} 

function loadpopup(){ 
if (get_cookie('popped')=='')
{ 
openwin() 
document.cookie="popped=yes" 
}
}
//alert(get_cookie('popped'));
//window.onunload=loadpopup;
//-->

