<!--
//下拉菜单相关代码
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='#999999';//定义下拉菜单阴影色
 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' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=menu onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=MenuBody>" + 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 fontZoom(size)
{
	document.getElementById('fontzoom').style.fontSize=size+'pt'
}

var currentpos,timer; 
function initialize() 
{
	timer=setInterval("scrollwindow()",50);
}
function sc()
{
	clearInterval(timer);
}
function scrollwindow()
{
	currentpos=document.body.scrollTop;
	window.scroll(0,++currentpos);
	if (currentpos != document.body.scrollTop)
	sc();
}
document.onmousedown=sc
document.ondblclick=initialize

var menu02="<img src='../images/tree_line1.gif' width='17' height='16' valign='abvmiddle'><img src='../images/tree_folder3.gif' width='15' height='15' valign='abvmiddle'><a style=font-size:9pt;line-height:14pt; href='intro.asp?id=2'>企业文化</a><br><img src='../images/tree_line1.gif' width='17' height='16' valign='abvmiddle'><img src='../images/tree_folder3.gif' width='15' height='15' valign='abvmiddle'><a style=font-size:9pt;line-height:14pt; href='intro.asp?id=3'>主营业务</a><br><img src='../images/tree_line2.gif' width='17' height='16' valign='abvmiddle'><img src='../images/tree_folder3.gif' width='15' height='15' valign='abvmiddle'><a style=font-size:9pt;line-height:14pt; href='intro.asp?id=4'>发展战略</a>";
var menu05="<img src='../images/tree_line1.gif' width='17' height='16' valign='abvmiddle'><img src='../images/tree_folder3.gif' width='15' height='15' valign='abvmiddle'><a style=font-size:9pt;line-height:14pt; href='job.asp'>招聘公告</a><br><img src='../images/tree_line2.gif' width='17' height='16' valign='abvmiddle'><img src='../images/tree_folder3.gif' width='15' height='15' valign='abvmiddle'><a style=font-size:9pt;line-height:14pt; href='job_apply.asp'>在线简历</a>";
var menu07="<img src='../images/tree_line2.gif' width='17' height='16' valign='abvmiddle'><img src='../images/tree_folder3.gif' width='15' height='15' valign='abvmiddle'><a style=font-size:9pt;line-height:14pt; href='cont_map.asp'>地理位置</a>";
//状态栏文字


var msg = "欢迎来到上海轻合金精密成型国家工程研究中心有限公司！                                                                                                                                ";
var interval = 60;
var spacelen = 120;
var space10=" ";
var seq=0;

function Scroll() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) { 
seq = 0; 
window.status = '';
window.setTimeout("Scroll();", interval );
}
else
window.setTimeout("Scroll();", interval );
} 
//-->
Scroll();

//-->
