///////////////////////////////////////////////////////////
//
// 产品名称：海翔药业 公司(企业)网站管理系统
// http://www.hxncpc.com,   010-68629169 
// 
// Copyright 2004-2005 hxncpc.com - All Rights Reserved.   
//
///////////////////////////////////////////////////////////

//菜单
var menuOffX=0	//菜单距连接文字最左端距离
var menuOffY=20	//菜单距连接文字顶端距离

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
function ShowMenu(e,vmenu,mod){
	which=vmenu
	menuobj=document.getElementById("popmenu")
	menuobj.thestyle=menuobj.style
	menuobj.innerHTML=which
	menuobj.contentwidth=menuobj.offsetWidth
	eventX=e.clientX
	eventY=e.clientY
	var rightedge=document.body.clientWidth-eventX
	var bottomedge=document.body.clientHeight-eventY

		if (rightedge<menuobj.contentwidth)
			menuobj.thestyle.left=document.body.scrollLeft+eventX-menuobj.contentwidth+menuOffX
		else
			menuobj.thestyle.left=ie4? ie_x(event.srcElement)+menuOffX : ns6? window.pageXOffset+eventX : eventX
		
		if (bottomedge<menuobj.contentheight&&mod!=0)
			menuobj.thestyle.top=document.body.scrollTop+eventY-menuobj.contentheight-event.offsetY+menuOffY-23
		else
			menuobj.thestyle.top=ie4? ie_y(event.srcElement)+menuOffY : ns6? window.pageYOffset+eventY+10 : eventY

	menuobj.thestyle.visibility="visible"
}


function ie_y(e){  
	var t=e.offsetTop;  
	while(e=e.offsetParent){  
		t+=e.offsetTop;
	}  
	return t;  
}  
function ie_x(e){  
	var l=e.offsetLeft;  
	while(e=e.offsetParent){  
		l+=e.offsetLeft;  
	}  
	return l;  
}

function highlightmenu(e,state){
	if (document.all)
		source_el=event.srcElement
		while(source_el.id!="popmenu"){
			source_el=document.getElementById? source_el.parentNode : source_el.parentElement
			if (source_el.className=="menuitems"){
				source_el.id=(state=="on")? "mouseoverstyle" : ""
		}
	}
}
function hidemenu(){if (window.menuobj)menuobj.thestyle.visibility="hidden"}
function dynamichide(e){if ((ie4||ns6)&&!menuobj.contains(e.toElement))hidemenu()}
document.onclick=hidemenu
document.write("<div class=menuskin id=popmenu onmouseover=highlightmenu(event,'on') onmouseout=highlightmenu(event,'off');dynamichide(event)></div>");
//菜单END

//cn
var index ='<div class=menuitems><a href=\"index.asp\">网 站 首 页</a></div>'
		index+='<div class=menuitems><a href=\"../Default.asp\">公司形象页</a></div>'
var CoProfile ='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Profile\">公 司 介 绍</a></div>'
		CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Ceo\">总 裁 致 辞</a></div>'
		CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Culture\">公 司 文 化</a></div>'
		CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Organize\">组 织 机 构</a></div>'
		CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Principle\">精 神 理 念</a></div>'
		CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Contact\">联 系 我 们</a></div>'
var News='<div class=menuitems><a href=\"Bs_News.asp?Action=Ye\">业 内 资 讯</a></div>'
		News+='<div class=menuitems><a href=\"Bs_News.asp?Action=Pr\">产 品 动 态</a></div>'
var Product ='<div class=menuitems><a href=\"Bs_Product.asp\">产 品 展 示</a></div>'
		Product+='<div class=menuitems><a href=\"Bs_Products.asp\">产 品 分 类</a></div>'
		Product+='<div class=menuitems><a href=\"Bs_Search.asp\">产 品 搜 索</a></div>'
var Honor ='<div class=menuitems><a href=\"Bs_Honor.asp?Action=Honor\">公 司 荣 誉</a></div>'
		Honor+='<div class=menuitems><a href=\"Bs_Honor.asp?Action=Img\">公 司 形 象</a></div>'
var Sale ='<div class=menuitems><a href=\"Bs_Sale.asp?Action=Sale\">国 内 市 场</a></div>'
		Sale+='<div class=menuitems><a href=\"Bs_Sale.asp?Action=Salea\">国 际 市 场</a></div>'
var Job ='<div class=menuitems><a href=\"Bs_Job.asp\">人 才 招 聘</a></div>'
		Job+='<div class=menuitems><a href=\"Bs_Jobs.asp\">人 才 策 略</a></div>'
//var Download=''
var Server ='<div class=menuitems><a href=\"Bs_Faq.asp\">问 题 解 答</a></div>'
		Server+='<div class=menuitems><a href=\"Bs_Server.asp\">会 员 中 心</a></div>'
		Server+='<div class=menuitems><a href=\"Bs_Went.asp\">信 息 反 馈</a></div>'
		Server+='<div class=menuitems><a href=\"Bs_NetBook.asp\">留 言 中 心</a></div>'
		Server+='<div class=menuitems><a href=\"Bs_E_shop.asp\">订 单 查 询</a></div>'

//En
var En_index ='<div class=menuitems><a href=\"index.asp\">HomePage</a></div>'
		En_index+='<div class=menuitems><a href=\"../Default.asp\">Home image</a></div>'
var En_CoProfile ='<div class=menuitems><a href=\"En_CoProfile.asp?Action=Profile\">Co,introduction</a></div>'
		En_CoProfile+='<div class=menuitems><a href=\"En_CoProfile.asp?Action=Ceo\">President oration</a></div>'
		En_CoProfile+='<div class=menuitems><a href=\"En_CoProfile.asp?Action=Culture\">Co,culture</a></div>'
		En_CoProfile+='<div class=menuitems><a href=\"En_CoProfile.asp?Action=Organize\">Organization</a></div>'
		En_CoProfile+='<div class=menuitems><a href=\"En_CoProfile.asp?Action=Principle\">Spiritual idea</a></div>'
		En_CoProfile+='<div class=menuitems><a href=\"En_CoProfile.asp?Action=Contact\">Contact us</a></div>'
var En_News ='<div class=menuitems><a href=\"#\">Co,news</a></div>'
		En_News+='<div class=menuitems><a href=\"#\">Trade info</a></div>'
var En_Product ='<div class=menuitems><a href=\"En_Product.asp\">Product show</a></div>'
		En_Product+='<div class=menuitems><a href=\"En_Products.asp\">Product class</a></div>'
		En_Product+='<div class=menuitems><a href=\"En_search.asp\">Product Search</a></div>'
var En_Honor ='<div class=menuitems><a href=\"En_Honor.asp?Action=Honor\">Company honor</a></div>'
		En_Honor+='<div class=menuitems><a href=\"En_Honor.asp?Action=Img\">Corporate image</a></div>'
var En_Sale ='<div class=menuitems><a href=\"En_Sale.asp?Action=Sale\">China market</a></div>'
		En_Sale+='<div class=menuitems><a href=\"En_Sale.asp?Action=Salea\">International market</a></div>'
var En_Job ='<div class=menuitems><a href=\"En_Job.asp\">Job recruitment</a></div>'
		En_Job+='<div class=menuitems><a href=\"En_Jobs.asp\">Job tactics</a></div>'
var En_Server ='<div class=menuitems><a href=\"En_Server.asp\">Member centre</a></div>'
		En_Server+='<div class=menuitems><a href=\"En_NetBook.asp\">Leave word</a></div>'
		En_Server+='<div class=menuitems><a href=\"En_E_shop.asp\">Order inquiry</a></div>'
		

var IMG1="<IMG height=20 src=../Skin/"
var IMG2="/bgmenu_m.gif width=1 align=absMiddle>"
//顶边的中文菜单
function CnTopMenu(JsSkins){
document.writeln("    <div align=\"center\">");
document.writeln("		<TABLE cellSpacing=0 cellPadding=0 width=\"766\" ");
document.writeln("      background=..\/img\/menu.gif border=0>");
document.writeln("        <TBODY>");
document.writeln("        <TR>");
document.writeln("          <TD width=\"98%\" background=..\/img\/menubg.png height=25>");
document.writeln("            <TABLE cellSpacing=0 cellPadding=0 align=center border=0>");
document.writeln("              <TBODY>");
document.writeln("              <TR>");
document.writeln("                <TD align=middle width=70 background=..\/img\/menubg.png ");
document.writeln("                height=25><a target=\"_self\" href=\"\/chinese\/index.asp\"><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">网站首页<\/FONT><\/a><\/TD>");
document.writeln("                <TD align=middle width=70 background=..\/img\/menubg.png ");
document.writeln("                height=25><a target=\"_self\" href=\"Bs_Product.asp\"><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">产品介绍<\/FONT><\/a><\/TD>");
document.writeln("                <TD align=middle width=70 background=..\/img\/menubg.png ");
document.writeln("                height=25><a target=\"_self\" href=\"Bs_Server.asp\"><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">订购询价<\/FONT><\/a><\/TD>");
document.writeln("                <TD align=middle width=70 background=..\/img\/menubg.png ");
document.writeln("                height=25><a target=\"_self\" href=\"Bs_News.asp?Action=Co\"><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">公司新闻<\/FONT><\/a><\/TD>");
document.writeln("                <TD align=middle width=70 background=..\/img\/menubg.png ");
document.writeln("                height=25>");
document.writeln("				<a target=\"_self\" href=\"Bs_CoProfile.asp?Action=Contact\"><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">联系我们<\/FONT><\/a><\/TD>");
document.writeln("                <TD align=middle width=70 background=..\/img\/menubg.png ");
document.writeln("                height=25><a target=\"_self\" href=\"Bs_Went.asp\"><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">访客留言<\/FONT><\/a><\/TD><\/TR><\/TBODY><\/TABLE><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln("<\/div>");
document.writeln("<p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\"><\/TD><\/TR>");
document.writeln("  <TR>");
document.writeln("    <TD><IMG height=9 src=\"..\/img\/top_2.gif\" width=766 ");
document.writeln("width=776><\/TD><\/TR><\/TBODY><\/TABLE>");
document.writeln("<\/p>");
}
//顶边的英文菜单
function EnTopMenu(JsSkins){
document.writeln("<TABLE cellSpacing=0 cellPadding=0 width=766 align=center border=0>");
document.writeln("  <TBODY>");
document.writeln("  <TR>");
document.writeln("    <TD>");
document.writeln("      <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" ");
document.writeln("      background=main_files\/menu.gif border=0>");
document.writeln("        <TBODY>");
document.writeln("        <TR>");
document.writeln("          <TD width=\"98%\" background=main_files\/menubg.png height=25>");
document.writeln("            <TABLE cellSpacing=0 cellPadding=0 align=center border=0>");
document.writeln("              <TBODY>");
document.writeln("              <TR>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"\/english\/index.asp\">Home<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Violin\">Violin<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Viola\">Viola<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Cello\">Cello<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Bass\">Bass<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Rosin\">Rosin<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Gift box\">Gift Box<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Bow\">Bow<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Bows case\">Bows case<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=32 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Case\">Case<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=84 background=main_files\/menubg.png ");
document.writeln("                height=25><FONT ");
document.writeln("                  style=\"FONT-SIZE: 12px; COLOR: #5e5e5e\">");
document.writeln("				<a href=\"En_Product.asp?EnBigClassName=Accessoires\">Accessories<\/a><\/FONT><\/TD>");
document.writeln("                <TD align=middle width=70 background=main_files\/menubg.png ");
document.writeln("                height=25><span style=\"font-size: 9pt\"><a href=\"En_NetBook.asp\">");
document.writeln("				Connect Us<\/a><\/span><\/TD>");
document.writeln("  			<\/TBODY><\/TABLE>");
document.writeln("			<IMG height=9 src=\"..\/img\/top_2.gif\" width=766 ");
document.writeln("width=776>")
}
