function moveAlong(layerName, paceLeft, paceTop, fromLeft, fromTop){
	clearTimeout(eval(layerName).timer)
	if(eval(layerName).curLeft != fromLeft){
		if((Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft)) < paceLeft){eval(layerName).curLeft = fromLeft}
		else if(eval(layerName).curLeft < fromLeft){eval(layerName).curLeft = eval(layerName).curLeft + paceLeft}
			else if(eval(layerName).curLeft > fromLeft){eval(layerName).curLeft = eval(layerName).curLeft - paceLeft}
		if(ie){document.all[layerName].style.left = eval(layerName).curLeft}
		if(ns){document[layerName].left = eval(layerName).curLeft}
	}
	if(eval(layerName).curTop != fromTop){
   if((Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop)) < paceTop){eval(layerName).curTop = fromTop}
		else if(eval(layerName).curTop < fromTop){eval(layerName).curTop = eval(layerName).curTop + paceTop}
			else if(eval(layerName).curTop > fromTop){eval(layerName).curTop = eval(layerName).curTop - paceTop}
		if(ie){document.all[layerName].style.top = eval(layerName).curTop}
		if(ns){document[layerName].top = eval(layerName).curTop}
	}
	eval(layerName).timer=setTimeout('moveAlong("'+layerName+'",'+paceLeft+','+paceTop+','+fromLeft+','+fromTop+')',30)
}

function setPace(layerName, fromLeft, fromTop, motionSpeed){
	eval(layerName).gapLeft = (Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft))/motionSpeed
	eval(layerName).gapTop = (Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop))/motionSpeed
	moveAlong(layerName, eval(layerName).gapLeft, eval(layerName).gapTop, fromLeft, fromTop)
}
function FixY(){
	if(ie){sidemenu.style.top = document.body.scrollTop+10}
	if(ns){sidemenu.top = window.pageYOffset+10}
}



	//树形导航的JS代码,windleaf.cn QQ群8001234
	var expandState = 0;
	function expand(){
	  if(expandState == 0){setPace('master', 0, 10, 10); if(ie){document.menutop.src = '/qq/no.gif'}; expandState = 1;}
	  else{setPace('master', -157, 10, 10); if(ie){document.menutop.src='/qq/payonline.gif'}; expandState = 0;}
	}
	document.write("<style type=text/css>#master {LEFT: -157px; POSITION: absolute; TOP: 25px; VISIBILITY: visible; Z-INDEX: 999}</style>")
	document.write("<table id=master border=0 cellspacing=0 cellpadding=0>")
	document.write("<tr><td width=157 valign=top>")

document.write("<table cellSpacing=0 cellPadding=0 width=157 border=0 bgcolor=ffffff>")
document.write("<tr><td colSpan=3><img height=22 src=/qq/ico1.gif></td></tr>")
document.write("<tr><td colSpan=3 align=center height=36 background=/qq/ico6.gif>")


AddPortal('20033','/qq/logo_24x24.jpg ','1','2.1');

document.write("</td></tr>")
//document.write("<tr><td colSpan=3><img height=42 src=ico7.gif width=157></td></tr>")
document.write("<tr><td colSpan=3 background=/qq/ico7.gif width=157 height=42 style='padding-left:80;padding-top:20'>"+web_qq+"</td></tr>")

document.write("<tr><td width=34 height=200 background=/qq/ico8.gif></td>")
document.write("<td vAlign=top width=116 bgColor=#ffffff style='word-break:break-all;line-height:1.5'>")
document.write("　<a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin="+web_qq+"&Site=阿土QQ><img border=0 SRC=http://wpa.qq.com/pa?p=1:"+web_qq+":7></a><br>")
document.write("<b>&nbsp;&nbsp;电 话：</b><br>"+web_qun+"<br>\<b>&nbsp;&nbsp;手 机：</b><br>"+web_zone+"<br><b>&nbsp;&nbsp;传 真：</b><br>"+web_cz+"<br><b>&nbsp;&nbsp;客服Email：</b></b><br>"+web_email)

document.write("</td>")
document.write("<td align=right width=7 background=/qq/ico9.gif></td>")
document.write("<tr><td colSpan=3><img height=36 src=/qq/ico2.gif width=157></td></tr>")
document.write("<tr><td colSpan=3 height=29 width=157 background='/qq/ico3.gif'onclick='help()' style='cursor:hand' align=right><marquee style='width:65' scrollamount=2 scrolldelay=1 direction=left><font color=ffffff>模温机｜水温机｜油温机｜油加热器｜高温模温机｜压铸模温机｜橡塑挤出模温机｜模具温度控制机｜冷水机｜工业冷冻机｜水循环温度控制机｜油循环温度控制机｜上海利德盛机械有限公司</marquee></td></tr>")
document.write("<tr><td colSpan=3></table>")
function help(){
	window.open("/write.asp","_self","");
}


	document.write("</td>")
	document.write("<td valign='top' onMouseOver=javascript:expand()><img id=menu width=57 height=150 border=0  name=menutop src=/qq/payonline.gif></td>");
	document.write("</tr></table>");
	var ie = document.all ? 1 : 0
	var ns = document.layers ? 1 : 0
	var master = new Object('element')
	master.curLeft = -157;   master.curTop = 10;
	master.gapLeft = 0;      master.gapTop = 0;
	master.timer = null;
	if(ie){var sidemenu = document.all.master;}
	if(ns){var sidemenu = document.master;}
	setInterval('FixY()',100);