function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -6;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='#333333'
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
}
}

function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' border=0 cellspacing=4 cellpadding=0 width="+tWidth+" bgcolor=#ECF8FF style='border-left:#333333 1px solid;border-top:#333333 1px solid;border-right:#333333 1px solid;border-bottom:#333333 1px solid' onmouseout='HideMenu()'><tr height=23><td nowrap align=left>" + vMnuCode + "</td></tr></table>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}

	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t;
	menuDiv.style.left = l;
	menuDiv.style.visibility = "visible";
	isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
	var i;
	for (i=size; i>0; i--)
	{
		var rect = document.createElement('div');
		var rs = rect.style
		rs.position = 'absolute';
		rs.left = (el.style.posLeft + i) + 'px';
		rs.top = (el.style.posTop + i) + 'px';
		rs.width = el.offsetWidth + 'px';
		rs.height = el.offsetHeight + 'px';
		rs.zIndex = el.style.zIndex - i;
		rs.backgroundColor = color;
		var opacity = 1 - i / (i + 1);
		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var b= '<a style=font-size:9pt;line-height:14pt; href=\"../news/indexcon.asp?newstype=1&where=news\" class=\"more1\" target=\"_self\">公司新闻 </a><br><a style=font-size:9pt;line-height:14pt; href=\"../news/indexcon.asp?newstype=2&where=news\" class=\"more1\" target=\"_self\">行业新闻</a><br><a style=font-size:9pt;line-height:14pt; href=\"../news/indexcon.asp?newstype=3&where=news\" class=\"more1\" target=\"_self\">展览会预告与回顾</a>'
var c= '<a style=font-size:9pt;line-height:14pt; href=\"../product/index.asp?language=chinese&protype=1&pos=con\" class=\"more1\" target=\"_self\">USB产品</a><br><a style=font-size:9pt;line-height:14pt; href=\"../product/index.asp?language=chinese&protype=2&pos=con\" class=\"more1\" target=\"_self\">无线产品</a><br><a style=font-size:9pt;line-height:14pt; href=\"../product/index.asp?language=chinese&protype=8&pos=con\" class=\"more1\" target=\"_self\">数码自动化系统</a><br><a style=font-size:9pt;line-height:14pt; href=\"../product/index.asp?language=chinese&protype=9&pos=con\" class=\"more1\" target=\"_self\">其他产品</a>'
var d= '<a style=font-size:9pt;line-height:14pt; href=\"../news/indexcon_application.asp?language=chinese&newstype=17&where=application_1\" class=\"more1\" target=\"_self\">USB应用</a><br><a style=font-size:9pt;line-height:14pt; href=\"../news/indexcon_application.asp?language=chinese&newstype=18&where=application_2\" class=\"more1\" target=\"_self\">无线应用</a>'
var e= '<a style=font-size:9pt;line-height:14pt; href=\"../download/index.asp?language=chinese&pos=table&where=surrport_1\" class=\"more1\" target=\"_self\">行业标准</a><br><a style=font-size:9pt;line-height:14pt; href=\"../download/index.asp?language=chinese&pos=fam\" class=\"more1\" target=\"_self\">常用资料 </a><br><a style=font-size:9pt;line-height:14pt; href=\"../download/index.asp?language=chinese&pos=driver\" class=\"more1\" target=\"_self\">软件和驱动 </a>'
var f= '<a style=font-size:9pt;line-height:14pt; href=\"../news/indexcon_support.asp?language=chinese&newstype=7\" class=\"more1\" target=\"_self\">常见问题</a><br><a style=font-size:9pt;line-height:14pt; href=\"../news/indexcon_support.asp?language=chinese&newstype=8&where=surrport_2\" class=\"more1\" target=\"_self\">电脑知识</a>'
var g= '<a style=font-size:9pt;line-height:14pt; href=\"../cooperation/index.asp?language=chinese&pos=seek&where=partner_1\" class=\"more1\" target=\"_self\">查询合作伙伴</a><br><a style=font-size:9pt;line-height:14pt; href=\"../cooperation/coojoin.asp\" class=\"more1\" target=\"_self\">申请合作伙伴</a>'




