// JavaScript Document
if( window.screen.width > 800 )
{
/*	document.write("<div id=\"etang_left\" style=\"position:absolute; width:100px; height:115px; z-index:1; left: 20px; top: 80px\"><iframe width=85 height=434 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor=#ffffff src=http://ads.etang.com/html.ng/SpaceDesc=homepage&location=left1> ");
	document.write("a href=\"http://ads.etang.com/SpaceDesc=homepage&location=left1\" target=\"_blank\"><img src=\"http://ads.etang.com/image.ng/SpaceDesc=homepage&location=left1\" border=0 alt=\"click here\" width=\"85\" height=\"434\"></a> ");
	document.write(" </iframe></div> ");*/
	document.write("<div id=\"etang_right\" style=\"position:absolute;width:132px; height:auto; z-index:1; left: 860px; top: 120px;text-align:center; line-height:130%;\">");
	document.write("<table width='120' border='0' cellspacing='0' cellpadding='0'>");
  document.write("<tr>");
    document.write("<td><img src='/images/kefu_up.gif' width='120' border=0 onclick='show(etang_right)'>");
  document.write("</tr>");
        document.write("<tr>");
        document.write("<td style='background:url(/images/kefu_middle.gif) repeat-y; text-align:center;' width='120' />");
	/*	
	document.write("<div style='margin-top:5px;'><a title=msn href=msnim:chat?contact=richar.lu@hotmail.com target=_blank><img src=/images/msn.gif border=0>Richar</a><br/> </a></div>");
	document.write("<div style='margin-top:5px;'><a title=msn href=msnim:chat?contact=hpcelena@hotmail.com target=_blank><img src=/images/msn.gif border=0>Celena</a><br/> </a></div>");
	document.write("<div style='margin-top:5px;'><a title=skype href=callto://richar.lu/ target=_blank><img src=/images/skype.gif border=0></a><br/>Richar</a></div>");
	document.write("<div style='margin-top:5px;'><a title=skype href=callto://baixue1221/ target=_blank><img src=/images/skype.gif border=0></a><br/>Celena</a></div>");*/
	document.write("<div style='margin-top:5px;'><a href=\"http://wpa.qq.com/msgrd?V=1&uin=598764573&Site=http://www.optec-lighting.com&Menu=yes\" target=\"blank\"><img src=/images/qqzx.gif border=0><br/>上海经理</a></div>");
	document.write("<div style='margin-top:5px;'><a href=\"http://wpa.qq.com/msgrd?V=1&uin=1048153484&Site=http://www.optec-lighting.com&Menu=yes\" target=\"blank\"><img src=/images/qqzx.gif border=0><br/>客服</a></div>");
	document.write("<div style='margin-top:5px;'><a href=\"http://wpa.qq.com/msgrd?V=1&uin=846090499&Site=http://www.optec-lighting.com&Menu=yes\" target=\"blank\"><img src=/images/qqzx.gif border=0><br/>售后服务</a></div>");
	document.write("<div style='margin-top:5px;'><a href=\"http://wpa.qq.com/msgrd?V=1&uin=393966882&Site=http://www.optec-lighting.com&Menu=yes\" target=\"blank\"><img src=/images/qqzx.gif border=0><br/>广东经理</a></div>");
	document.write("<div style='margin-top:5px;'><a href=\"http://wpa.qq.com/msgrd?V=1&uin=290896395&Site=http://www.optec-lighting.com&Menu=yes\" target=\"blank\"><img src=/images/qqzx.gif border=0><br/>四川经理</a></div>");
	document.write("<div style='margin-top:5px;'><a href=\"http://wpa.qq.com/msgrd?V=1&uin= 474132192&Site=http://www.optec-lighting.com&Menu=yes\" target=\"blank\"><img src=/images/qqzx.gif border=0><br/>西安经理</a></div>");
	document.write("<div style='margin-top:5px;'><a href=\"http://wpa.qq.com/msgrd?V=1&uin=834056755&Site=http://www.optec-lighting.com&Menu=yes\" target=\"blank\"><img src=/images/qqzx.gif border=0><br/>浙江、山东经理</a></div>");
	document.write("<div style='margin-top:5px;'><a href=\"http://wpa.qq.com/msgrd?V=1&uin=413658812&Site=http://www.optec-lighting.com&Menu=yes\" target=\"blank\"><img src=/images/qqzx.gif border=0><br/>网络服务</a></div>");
	document.write("</td></tr>");
  document.write("<tr>");
    document.write("<td><img src='/images/kefu_down.gif' width='120'/></td>");
  document.write("</tr>");
document.write("</table>");
	document.write("</div>");
	lastScrollY=0;
	window.setInterval("renewplace()",1);
}
function renewplace()
{ 
	diffY=document.documentElement.scrollTop;
	percent=.1*(diffY-lastScrollY);
	if(percent>0)percent=Math.ceil(percent);
	else percent=Math.floor(percent);
	etang_right.style.pixelTop+=percent;
	etang_right.style.left=document.documentElement.scrollLeft + document.documentElement.offsetWidth -148;
	//etang_left.style.pixelTop+=percent;
	//etang_left.style.left=document.documentElement.scrollLeft+10;  
	lastScrollY=lastScrollY+percent;
}
function show(o)
{
    var oDiv = document.getElementById(o.id);
    oDiv.style.display="none";

}

