function current_top_menu_bg(td_id)
{ 
	if (current_mainmenu_Obj != undefined)
	{
		try
		{
			td_id.style.background='url(/home/images/daohang/lan.gif)';
			td_id.style.color='#FFFFFF';
		}
		catch(e)
		{
		}
	}
}

function change_top_menu_bg(td_id)
{ 

	if (td_id.style.background=='url(/home/images/daohang/lan.gif)')
	{
		td_id.style.color='#FFFFFF';
	}
	else
	{
		td_id.style.color='#000000';
		td_id.style.background='url(/home/images/daohang/baihui.gif) no-repeat 0px -30px';
	}
}


function restore_top_menu_bg(td_id)
{
	if (td_id.style.background=='url(/home/images/daohang/lan.gif)')
	{
		td_id.style.color='#FFFFFF';
	}
	else
	{
		td_id.style.color='#000000';
		td_id.style.background='url(/home/images/daohang/baihui.gif) no-repeat 0px 0px';
	}
}


function change_top_menu_bg_right(td_id)
{ 

	if (td_id.style.background=='url(/home/images/daohang/lan.gif)')
	{
		td_id.style.color='#FFFFFF';
	}
	else
	{
		td_id.style.color='#000000';
		td_id.style.background='url(/home/images/daohang/baihui.gif) no-repeat 0px -90px';
	}
}


function restore_top_menu_bg_right(td_id)
{
	if (td_id.style.background=='url(/home/images/daohang/lan.gif)')
	{
		td_id.style.color='#FFFFFF';
	}
	else
	{
		td_id.style.color='#000000';
		td_id.style.background='url(/home/images/daohang/baihui.gif) no-repeat 0px -60px';
	}
}


document.write('<link rel="stylesheet" rev="stylesheet" href="/include/autocomplete.css" type="text/css">');
document.write('<table id="table_1" width="993" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:5px; ">')
document.write('  <tr>')
document.write('    <td  height="30" width="28">&nbsp;</td>')
document.write('    <A href="http://www.bxdyy.com" title="首页">')
document.write('    <td id="td_1" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)">&nbsp;首 页</td>')
document.write('    </A>')
document.write('    <A href="http://jp.bxdyy.com"><td id="td_10" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)"><b>精品推荐</b></td></A>')
document.write('    <A href="/home/subordinate/zhaoshang_xinxi.aspx"><td id="td_2" width="78" align="center"  onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)">招商专区</td>')
document.write('    </A>')
document.write('    <A href="/home/subordinate/frame_show_daili.aspx"><td id="td_3" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)">代理商库</td>')
document.write('    </A>')
document.write('    <A href="http://yjh.bxdyy.com"><td id="td_4" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)">药交会</td></A>')
document.write('    <A href="/home/subordinate/site_list.aspx"><td id="td_5" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)">企业网站</td></A>')
document.write('   <A href="/home/frame/frame_default.aspx"> <td id="td_6" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)"><b>会员中心</b></td></A>')
document.write('    <A href="http://mag.bxdyy.com"><td id="td_7" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)">电子杂志</td></A>')
document.write('    <A href="/home/subordinate/video_list.aspx"><td id="td_8" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)">视频专区</td></A>')
document.write('    <A href="http://game.bxdyy.com"><td id="td_9" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)">游戏赚分</td></A>')
document.write('   <A href="/home/subordinate/gongying_xinxi.aspx"> <td id="td_11" width="78" align="center" onMouseOver="change_top_menu_bg(this);" onMouseOut="restore_top_menu_bg(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif)">供应信息</td></A>')
document.write('    <A href="http://blog.bxdyy.com"><td id="td_12" width="78" align="center" onMouseOver="change_top_menu_bg_right(this);" onMouseOut="restore_top_menu_bg_right(this);" style="cursor:hand;background:url(/home/images/daohang/baihui.gif) no-repeat 0px -60px"><b>医药资讯</b></td></A>')

document.write('    <td width="">&nbsp;</td>')
document.write('  </tr>')
document.write('</table>')

var current_mainmenu_Obj;
try{current_mainmenu_Obj = document.getElementById(current_mainmenu_id);}catch(e){current_mainmenu_Obj = td_1;}
current_top_menu_bg(current_mainmenu_Obj);

document.write('<table width="993" border="0" cellspacing="0" cellpadding="0" align="center">')
document.write('  <tr>')
document.write('    <td width="15" background="/home/images/daohang/mainmenu_bg.gif"></td>')
document.write('    <td background="/home/images/daohang/mainmenu_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">')
document.write('      <tr>')
document.write('        <td height="26"><table width="100%" border="0" cellspacing="0" cellpadding="0">')
document.write('          <tr>')
document.write('            <td width="20" height="25">&nbsp;</td>')
document.write('            <td align="center" style="padding-top:5px;"><A href="/home/subordinate/zhaoshang_xinxi.aspx?otc_flag=0" ><font color="#FFFFFF">[ OTC ]</font></A>&nbsp;&nbsp;&nbsp;<a href="/home/subordinate/zhaoshang_xinxi.aspx?otc_flag=1"><font color="#FFFFFF">[ 处方药 ]</font></a>&nbsp;&nbsp;&nbsp;<a href="/home/subordinate/zhaoshang_xinxi.aspx?class_id=1"><font color="#FFFFFF">[ 西 药 ]</font></a>&nbsp;&nbsp;&nbsp;<a href="/home/subordinate/zhaoshang_xinxi.aspx?class_id=2"><font color="#FFFFFF">[ 中 药 ]</font></a>&nbsp;&nbsp;&nbsp;<a href="/home/subordinate/zhaoshang_xinxi.aspx?class_id=5"><font color="#FFFFFF">[ 保健品 ]</font></a>&nbsp;&nbsp;&nbsp;<a href="http://so.bxdyy.com" target="_blank"><font color="#FFFFFF">[ 搜索引擎 ]</font></a>&nbsp;&nbsp;&nbsp;<A href="/home/mag/index.aspx"><font color="#FFFF00">[ 电子杂志/宣传册<img src="/images/new.gif" border="0" align="absmiddle"> ]</font></A>&nbsp;&nbsp;&nbsp;<A href="http://v.bxdyy.com"><font color="#FFFF00">[ 视频专区<img src="/images/new.gif" border="0" align="absmiddle"> ]</font></A>&nbsp;&nbsp;&nbsp;<A href="/home/speedtest.aspx" target="_blank"><font color="#FFFFFF">[ 测网速 ]</font></A>&nbsp;&nbsp;&nbsp;<A href="http://game.bxdyy.com" target="_blank"><font color="#FFFF00">[ 游戏赚积分<img src="/images/new.gif" border="0" align="absmiddle"> ]</font></A></td>')
document.write('            <td width="20">&nbsp;</td>')
document.write('          </tr>')
document.write('        </table></td>')
document.write('      </tr>')
document.write('      <tr>')
document.write('        <td height="33"><table width="100%" border="0" cellspacing="0" cellpadding="0">')
document.write('          <tr>')

document.write('            <td width="80%" align="left">')
document.write('            <div class="searchboxcontent"><form id="apf_id_8_form_1" name="apf_name_8_form_1" action="/home/subordinate/zhaoshang_xinxi.aspx" method="post" style="margin:0px">')
document.write('            <div class="font_B_W">百信达搜索引擎&nbsp;')
document.write('            <input type="radio" name="kind" value="kind" checked="checked">产品')
document.write('            <input type="radio" name="kind" value="use">功效')
document.write('            <input type="radio" name="kind" value="what">厂家')
document.write('            <input id="apf_id_10_kw" name="key_word" class="border11" type="text" size="50" maxlength="100" value="请输入搜索关键字或拼音全称或拼音首字母..." style="height:24px;font-size:14px;padding-left:3px;padding-top:4px;COLOR:gray"/><input name="ser_flag" type="hidden" value="1">')
document.write('            <input type="submit" value="百信达搜索" style="height:26px;font-size:14px;padding-top:2px;cursor:hand">')				
document.write('            </div>')
document.write('            </form>')
document.write('            </td>')

document.write('            <td width="20%" align="right"><a href="http://so.bxdyy.com/" target="_blank"><font color="yellow">进入跨网搜索引擎 so.bxdyy.com</font></a></td>')
document.write('          </tr>')
document.write('        </table></td>')
document.write('      </tr>')
document.write('    </table></td>')
document.write('    <td width="15" background="/home/images/daohang/mainmenu_bg.gif"></td>')
document.write('  </tr>')
document.write('</table>')
