﻿// JScript 文件
   lastScrollY=0;
   var leftdiv;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
  diffY = document.documentElement.scrollTop;
else if (document.body)
  diffY = document.body.scrollTop;
else
{/*Netscape stuff*/}
  
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("web_ad").style.top=parseInt(document.getElementById("web_ad").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
  /*var ss = document.body.clientWidth;   
  var s= document.getElementById("iframe_nav").contentWindow.document.getElementById("nav").clientWidth;
  leftdiv = s + ((ss-s)/2);*/

}
var icsWnd = null;
function fLoginCiticICS(){
	var nWinLeft = (screen.width-600)/2;
	var nWinTop = (screen.height-400)/2;
	
	if ( icsWnd != null && !icsWnd.closed){
	        icsWnd.document.all.CNCBTalk.focus();
	        icsWnd.focus();
	        icsWnd.document.all.CNCBTalk.focus();
	 }else{
    	icsWnd = window.open('http://bank.ecitic.com/cards/im/CNCBTalk.html', 'citicICSLogin', 'width=595,height=416,status=yes,left='+nWinLeft+',top='+nWinTop);
		icsWnd.focus();
	}
}
suspendcode="<div id=\"web_ad\" style='position:absolute;  margin-left:781px; +margin-left:0px; _margin-left:0px; top:300px;'><table width=\"70\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><img src=\"../../img/go_top_top.gif\" /></td></tr><tr><td><a href=\"../../application.htm\"><img src=\"../../img/go_top1.gif\" alt=\"申请信用卡\" border=\"0\" /></a></td></tr><tr><td><a onclick=\"fLoginCiticICS();\" name=\"Login\"><img src=\"../../img/go_top5.gif\" alt=\"在线客服\" border=\"0\" /></a></td></tr><tr><td><a href=\"../../yk.htm\"><img src=\"../../img/go_top2.gif\" alt=\"用卡知识\" border=\"0\" /></a></td></tr><tr><td><a href=\"../../easy_repayment.htm\"><img src=\"../../img/go_top3.gif\" alt=\"还款方式\" border=\"0\" /></a></td></tr><tr><td><img src=\"../../img/go_top_bottom.gif\" /></td></tr></table></div>";
//suspendcode="<DIV id=\"web_ad\" style='right:2px;POSITION:absolute;TOP:520px; border:0px solid #ddd;'><a href='javascript:scroll(0,0)'><img src='img/but_gotop.gif' alt='返回顶部'/></a></div>";
document.write(suspendcode);
window.setInterval("heartBeat()",1);// JScript 文件
//position:absolute;  margin-left:781px!important; margin-left:0px; top:500px;