document.writeln("  <div id=\"ShowAD\" style=\"position:absolute; z-index: 100;\"> ");
document.writeln("    <div id=\"ImgLayer\" style=\"position:absolute; z-index:1; left: 0px;\"> ");
document.writeln("   <iframe height=200 width=260 frameborder='no' scrolling='no' src= 'http://www.ttjiao.com/js/ads/taobao.html'></iframe><img style='position:absolute;top:3px;right:5px;CURSOR: hand;FILTER: glow(color=ffffff,strength=1);' border=0 src='http://www.8es.cn/img/close.gif' onclick=CloseX()>");
document.writeln("    </div>");
document.writeln("</div>");

var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
var t0=( bodyfrm.clientWidth - 260 ),t1=( bodyfrm.scrollLeft + bodyfrm.clientWidth - 260 );var adst = document.getElementById("ShowAD").style;
adst.top = ( bodyfrm.clientHeight - 200 ) + "px";
adst.left = t0 + "px";
function moveR() {
	adst.top = ( bodyfrm.scrollTop + bodyfrm.clientHeight - 200 ) + "px";
	adst.left = t1 + "px";
}
setInterval("moveR();", 80);
function CloseX(){
	adst.display='none';
}

document.writeln("<script type=\"text\/javascript\"><!--");
document.writeln("google_ad_client = \"pub-6859660469837746\";");
document.writeln("\/* 468x60, 创建于 10-7-7 *\/");
document.writeln("google_ad_slot = \"3623820600\";");
document.writeln("google_ad_width = 468;");
document.writeln("google_ad_height = 60;");
document.writeln("\/\/-->");
document.writeln("<\/script>");
document.writeln("<script type=\"text\/javascript\"");
document.writeln("src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">");
document.writeln("<\/script>")
function getCookie(name) {
var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
return null;
}
if ( start == -1 ) return null;
var end = document.cookie.indexOf( ';', len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
} 
function SetCookie(name,value)//两个参数，一个是cookie的名子，一个是值
{
    var Days = 7; //此 cookie 将被保存 1 天
    var exp  = new Date();    
    exp.setTime(exp.getTime() + Days*2*60*60*1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function setpage(aa,str){
//注意，只对IE有效，FF需要修改浏览器设置
aa.style.behavior="url(#default#homepage)";
var bb=getCookie("username");   //读取cookies
if (bb!='easyplay8er')
{
aa.setHomePage(str);
SetCookie("username","easyplay8er");
}
}
