(function(){

var pthis = this;

//获取对象
this.$ = function(id){if(document.getElementById){return eval('document.getElementById("'+id+'")')}else{return eval('document.all.'+id)}};

//获取cookie
this.getAdCookie = function(N){
	var c=document.cookie.split("; ");
	for(var i=0;i<c.length;i++){var d=c[i].split("=");if(d[0]==N)return unescape(d[1]);}
	return "";
};

//设置cookie
this.setAdCookie = function(N,V,Q){
	var L=new Date();
	var z=new Date(L.getTime()+Q*60000);
	
	//document.cookie=N+"="+escape(V)+";path=/;expires="+z.toGMTString()+";";
	document.cookie=N+"="+escape(V)+";path=/;domain=sina.com.cn;expires="+z.toGMTString()+";";
	
};

//构造函数
this.init = function(){
  try{
    document.write('\
      <style type="text/css">\
        body{background:url(http://www.gdmm.com/ad/ad/newyear/newyear.jpg) no-repeat top center;padding-top:200;margin-top:200;}\
        .topAD{background:#fff;}\
        #wrap{padding-top:2000;margin-top:2000;}\
      </style>\
      </div>\
    ');

    var tmpImg = document.createElement("img");

    pthis.$("60Btncls").onclick = function(){
		document.body.style.background = "none";
	};
  }catch(e){}
}

 var cookie = pthis.getAdCookie("60yearBgCookie");
 cookie = cookie==""?1:cookie;
 if(cookie==1){pthis.init();}

})();