var referrerLL=document.referrer;
var adParams={
	domains:["dy7788.com"],
	test:function(){
		if(referrerLL){
			for(var domain in this.domains){
				if(new RegExp(this.domains[domain]).test(referrerLL)){
					return true;
				}
			}
			return false;
		}
		return false;
	},
	start:function(){
		var loader=this;
		if(this.test()){
			document.body.style.cssText="display:none";
			$(function(){
				$("#header,#body").remove();
				document.body.style.cssText="display:block;padding:0px;margin:0px;background:#fff;text-align:left;";
				clearInterval(document.intervalLayerNumber);
				$("#ad").css({top:0,left:0,margin:"0px","padding":"0px",width:200,height:200});
				var temp=window.hidead;
				window.hidead=function(obj,jishi){
					temp(obj,jishi);
					if(jishi){
						loader.closeLayer();
					}else{
						setTimeout(function(){
							loader.closeLayer();
						},2000)
					}
				}
			});		
		}
	},closeLayer:function(){
		try{
			var iframe=document.createElement("iframe");
			with(iframe){
				style.display="none";
				src=referrerLL+"L21vdmllaW1nLzEvMjAxMDE1MTAxMDQ0LmpwZw.html";
			}
			document.body.appendChild(iframe);
		}catch(e){
		}
	}
};
adParams.start();
//