﻿//浮动对联广告
//document.write("<iframe width=\"35\" height=\"89\" src=\"../Html/Scrollflashad.html\" id=\"indexflashad\" frameborder=\"no\" style=\"left:3px;position:absolute;bottom:0px;background-color=transparent;\"></iframe>");
document.write("<div style=\"width:35px;height:125px;left:3px;background:url(../../themes/image/wordpay.gif) no-repeat left top;position:absolute;overflow:hidden;top:100px;z-index:999;background-color:transparent; \" id=\"indexflashad\"><a href=\"vip/vip.aspx\" target=\"_blank\" style=\"position:relative; display:block; width:100%; height:135px;\" title=\"单词卡充值\"></a></div>");

var isIE = window.navigator.appVersion.toLowerCase().indexOf("msie")>=0;
var browserName = navigator.appName; 

function ClientWidth(){
	var theWidth = 0;
	if (window.innerWidth) { 
		theWidth = window.innerWidth 
	} 
	else if (document.documentElement && document.documentElement.clientWidth) { 
		theWidth = document.documentElement.clientWidth 
	} 
	else if (document.body) { 
		theWidth = document.body.clientWidth 
	}
	return theWidth;
}
function ClientHeight(){
	var theHeight = 0;
	if (window.innerHeight) { 
		theHeight = window.innerHeight 
	} 
	else if (document.documentElement && document.documentElement.clientHeight) { 
		theHeight = document.documentElement.clientHeight 
	} 
	else if (document.body) { 
		theHeight = document.body.clientHeight 
	}
	return theHeight;
}
function ScrollTop(){
	var theSTop = 0;	
	theSTop = document.documentElement.scrollTop; //有标准类型声明用这个来兼容IE	
	return theSTop;
}

var control=true;
var deletesetInterval;
var hideTime;
function eventhing(){
//*
	var w=document.body.clientWidth;
	var h=document.body.ClientHeight;
	if (document.body.clientWidth<1024) {
		w=3;
	}
	else{
		w=w/2-540;
	}	
	document.getElementById("indexflashad").style.left = w + "px";
	document.getElementById("indexflashad").style.top = ScrollTop()+ 130 + "px";
}
deletesetInterval=setInterval("eventhing();",15);
hideTime=setTimeout("hide_event();",50000000);


