var sMenu1,sMenu2,sMenu3,sMenu4,sMenu5;

sMenu1 = "<DIV STYLE='PADDING-LEFT:50px;'>";
sMenu1 = sMenu1 + "<A HREF='company.asp'>SGC Profile</A> &nbsp;-&nbsp; ";
sMenu1 = sMenu1 + "<A HREF='company_zg.asp'>SGC in China</A> &nbsp;-&nbsp; ";
sMenu1 = sMenu1 + "<A HREF='company_jz.asp'>SGC Value</A> &nbsp;-&nbsp; ";
sMenu1 = sMenu1 + "<A HREF='company_show.asp'>SGC Show</A> &nbsp;-&nbsp; ";
sMenu1 = sMenu1 + "<A HREF='company_zp.asp'>Talent Recruiting</A> &nbsp;-&nbsp; ";
sMenu1 = sMenu1 + "<A HREF='company_hb.asp'>Cooperation Collaboration</A></DIV>";



sMenu2 = "<DIV STYLE='PADDING-LEFT:100px;'>";
sMenu2 = sMenu2 + "<A HREF='operation.asp'>R&D System</A> &nbsp;-&nbsp; ";
sMenu2 = sMenu2 + "<A HREF='operation_zhizhao.asp'>Make System</A> &nbsp;-&nbsp; ";
sMenu2 = sMenu2 + "<A HREF='operation_xiaoshou.asp'>Sales System</A> &nbsp;-&nbsp; ";
sMenu2 = sMenu2 + "<A HREF='operation_shouhou.asp'>After-sale Service</A> &nbsp;-&nbsp; ";
sMenu2 = sMenu2 + "<A HREF='operation_denglu.asp'>Supplier Login</A> &nbsp;-&nbsp; ";
sMenu2 = sMenu2 + "<A HREF='operation_chanpin.asp'>Product Focusing</A></DIV>";

sMenu3 = "<DIV STYLE='PADDING-LEFT:350px;'>";
sMenu3 = sMenu3 + "<A HREF='women.asp'>Honesty</A> &nbsp;-&nbsp; ";
sMenu3 = sMenu3 + "<A HREF='women_gongming.asp'>Enterprise Citizen</A> &nbsp;-&nbsp; ";
sMenu3 = sMenu3 + "<A HREF='women_huanjing.asp'>HSE</A> &nbsp;-&nbsp; ";
sMenu3 = sMenu3 + "<A HREF='women_zhiliang.asp'>Quality</A> </DIV>";

sMenu4 = "<DIV STYLE='PADDING-LEFT:480px;'>";
sMenu4 = sMenu4 + "<A HREF='news.asp'>News Release</A> &nbsp;-&nbsp; ";
sMenu4 = sMenu4 + "<A HREF='news_tupian.asp'>Photo Center</A> </DIV>";

sMenu5 = "<DIV STYLE='PADDING-LEFT:160px;'>";
//sMenu5 = sMenu5 + "<A HREF='achievement.asp'>Geographical Extension</A> &nbsp;-&nbsp; ";
sMenu5 = sMenu5 + "<A HREF='achievement_dianxing.asp'>Typical Project</A> &nbsp;-&nbsp; ";
sMenu5 = sMenu5 + "<A HREF='achievement_liebiao.asp'>Project List</A> &nbsp;-&nbsp; ";
sMenu5 = sMenu5 + "<A HREF='achievement_hezuo.asp'>Cooperation Collaboration</A> &nbsp;-&nbsp; ";
sMenu5 = sMenu5 + "<A HREF='achievement_chanpin.asp'>Product Focusing</A> &nbsp;-&nbsp; ";
sMenu5 = sMenu5 + "<A HREF='achievement_tupian.asp'>Photo Center</A></DIV>";



function ShowMenu(N)
{
	var MaxMenuNo = 5;
	var sMenuName = eval("sMenu"+N);
	document.all.WebMenuSon.innerHTML = sMenuName ;
}


function addToFavorite(favTitle){
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
    window.external.AddFavorite(location.href, unescape(favTitle));
  }
}


function high(which2){
theobject=which2;theobject.filters.alpha.opacity=50
highlighting=setInterval("highlightit(theobject)",50)}

function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=100}

function highlightit(cur2){
if (cur2.filters.alpha.opacity<90)
cur2.filters.alpha.opacity+=5
else if(window.highting)
clearInterval(highlighting)}


function fiximgwin(url)
{
 var imgwin=window.open('','img','width=50,height=50')//打开一个空白窗口，并初始化大小
 imgwin.focus()//使窗口聚焦，成为当前窗口
 var HTML="<html>\r\n<head>\r\n<title>Photo</title>\r\n</head>\r\n<body leftmargin=\"0\" topmargin=\"0\">\r\n<img src=\""+url+"\" onload=\"window.resizeTo(this.width,this.height);window.moveTo((screen.width-this.width)/2,(screen.height-this.height)/2)\">\r\n</body>\r\n</html>"//这里是关键代码，在图片加载完后调用resizeTo()和moveTo()方法调整窗口大小和位置
 var doc=imgwin.document
 doc.open("text/html","replace") //指定文档的多用途网际邮件扩充协议
 doc.write(HTML)//向空白窗口写入代码
 doc.close()//关闭输入流，并强制发送数据显示。
}
