﻿
lastScrollY1=0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{}
//alert(diffY);
percent=.1*(diffY-lastScrollY1);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("LeftAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";
lastScrollY1=lastScrollY1+percent;
}
function ShowNo1() //隐藏两个层 
{ 
document.getElementById("LeftAd").style.display="none"; 
} 
suspendcode12="<div id=\"LeftAd\" style=\"position: absolute; display: block;z-index:auto; top: 250px; float: left;text-align: left; left: 10px; right: 520px;\"><div style=\"height: 363px; width: 299px; background-image: url(http://www.milanzx.com/zx.png)!important;background-repeat: no-repeat; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://www.milanzx.com/zx.png\');_ background-image: none;\"><div style=\"margin-left: 230px; height: 30px; padding-top: 30px;\"><a onclick=\"ShowNo1()\" style=\"position: relative;display: block;cursor:hand; width: 30px; height: 28px;text-indent: -9999px;\">关闭</a></div><div style=\"display: block; margin-left: 45px; line-height: 18px; font-size: 12px;width:200px;\"><font color=\"#7B0126\"><b>“米兰之夏”非手术美容节</b></font><br /> <font style=\"font-size: 12px; color: #7B0126;\">逆转时光,再生青春,2010非手术美容节缔造您的美丽生活,<br/>点燃您的靓丽风采.</font></div><div style=\"display: block; width: 180px; margin-top: 25px; text-align: left; margin-left: 20px; height: 28px;\"><div style=\"float: left; width: 80px; text-align: left;\"><a href=\'http://zoossoft.milanzx.com/LR/chatwin.aspx?id=LDS50306539\' style=\"position: relative;display: block; width: 80px; height: 22px; text-indent: -9999px;\" target=\"_blank\">接收咨询</a></div><div style=\"float: left; width: 80px; text-align: left; margin-left: 15px;\"><a onclick=\"ShowNo1()\" style=\"position: relative;display: block;cursor:hand; width: 80px; height: 22px;text-indent: -9999px;\">暂不咨询</a></div></div></div></div>"
document.write(suspendcode12);
window.setInterval("heartBeat()",1);

 lastScrollY=0;
function phone(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("float_div_1237874225864_679507137").style.top=parseInt(document.getElementById("float_div_1237874225864_679507137").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
}
function ShowNo() //隐藏层 
{ 
document.getElementById("float_div_1237874225864_679507137").style.display="none"; 
}

	
document.writeln('<div id="float_div_1237874225864_679507137" style="position: absolute; display:block;z-index:auto;top:250px;right:10px;width:110px;height:250px;background:url(http://www.milanzx.com/phone/2.jpg) no-repeat;">');
document.writeln('<form name="f" id="f" method="post" action="http://tel.hoocoo.net:88/calld.php" target="aa">');
document.writeln('<input type="hidden" name="fromurl" id="call_fromurl" value="http://www.milanzx.com/" />');
document.writeln('<input type="hidden" name="sid" value="2010200912" />');
document.writeln('<input type="hidden" name="did" value="451" />');
document.writeln('<div style=" margin-left:97px;"><a onclick="ShowNo()" style="position: relative; display: block; cursor: hand; width: 5px; height: 5px; text-indent: -9999px;">关闭</a></div>');
document.writeln('<div style="margin-top:194px !important; margin-top:185px; margin-left:12px;"><input name="tel" type="text" id="tel" style="width:82px;color:#999" onfocus="this.value=\'\'" 	value="输入电话号码"/></div>');
document.writeln('<div style="margin-left:12px; margin-top:5px;"><input type="image" src="http://www.milanzx.com/phone/btn.jpg"/></div>');
document.writeln('</form><iframe name="aa" id="aa" frameborder="0" width="0" height="0"></iframe>');
document.writeln('</div>');
window.setInterval("phone()",1);


document.writeln('<script language="javascript" src="http://zoossoft.milanzx.com/js/lsjs.aspx?siteid=lds50306539&amp;float=1"></script>');


