// JavaScript Document
var tempI=0;
currentX53 = currentY53 = 0; 
whichIt53 = null; 
lastScrollX53 = 0; lastScrollY53 = -80;
NS1 = (document.layers) ? 1 : 0;
IE1 = (document.all) ? 1: 0;
//跟随页面移动
function heartSer53(objectid) {
	if(IE1) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
	if(NS1) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY53) {
		percent = .1 * (diffY - lastScrollY53);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE1) {
			objectid = objectid.split(";"); 
			for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelTop += percent;
		}	
		if(NS1) {
			objectid = objectid.split(";"); 
			for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).top += percent; 
		}	
		lastScrollY53 = lastScrollY53 + percent;
	}
	if(diffX != lastScrollX53) {
		percent = .1 * (diffX - lastScrollX53);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE1) {
			objectid = objectid.split(";"); 
			for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelLeft += percent;
		}	
		if(NS1) {
			objectid = objectid.split(";"); 
			for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).left += percent; 			
		}	
		lastScrollX53 = lastScrollX53 + percent;
	} 	
}
//显示关闭按钮
function showClose(){
  tempI=tempI+1;
  if(tempI==2){
     eval("sclose_53.style.display=\"\"");
	 clearInterval(sCloseShow);
  }
}
//设置、获得客户COOKIES
function SetCookie_53(name,value)
{
    var Days = 1; 
    var exp  = new Date();   
    exp.setTime(exp.getTime() + Days*24*60*60*1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
	eval("serverDiv_53.style.display=\"none\"");

}
function getCookie_53(name)       
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
     if(arr == null){
	    eval("serverDiv_53.style.display=\"\"");
	 }
	 else
	 {
	    document.write("<scr"+"ipt language=\"javascript\" src=\"http://www17.53kf.com/webCompany.php?arg=idc1&style=1&language=cn&lytype=0&charset=gbk&kflist=off&kf=&zdkf_type=1&referer=广告商手机:13194886324&keyword=&tpl=crystal_blue"+escape(document.referrer)+"\"></scr"+"ipt>");





	 }
}
//初始设置
function on_53Load(strM){
  document.write("<div id=\"serverDiv_53\" style=\"position:absolute;top:10px;left:150px;filter: Alpha(Opacity=80);display:none;z-index:5;width:515px;height:431px;background-color:#F2F5FC\">")
  document.write("<div style=\"float:right;position:absolute;top:7px;right:4px;display:none\" id=\"sclose_53\" z-index:2><img src=\"http://www.25idc.com/style/info/images/sclose.jpg\" onClick=\"SetCookie_53('view53',1)\" style=\"cursor:hand;\"></div>")
  document.write("<div style=\"width:515px;height:431px;z-index:9\">")
  document.write("<iframe id=\"main53\" name=\"main\" src=\"http://www17.53kf.com/webCompany.php?arg=idc1&style=1&language=cn&lytype=0&charset=gbk&kflist=off&kf=&zdkf_type=1&referer=广告商手机:13194886324&keyword="+GetUrlParms("wd")+"&tpl=crystal_blue\" FRAMEBORDER=\"0\" SCROLLING=\"NO\" width=\"514\" height=\"430\"></ ></iframe>")
  document.write("</div></div>")
  if(NS1 || IE1) sDivMove = window.setInterval("heartSer53('serverDiv_53')", 2);
  if(NS1 || IE1) sCloseShow= window.setInterval("showClose()", strM);
  getCookie_53("view53");
}
function GetUrlParms(paras){ 
var url = document.referrer;  
var paraString = url.substring(url.indexOf("?")+1,url.length).split("&");  
var paraObj = {}  
for (i=0; j=paraString[i]; i++){  
paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length);  
}  
var returnValue = paraObj[paras.toLowerCase()];  
if(typeof(returnValue)=="undefined"){  
return "";  
}else{  
return returnValue;  
}  
}