           function SetCookie(name,value)
{
    var Days = 1; //此 cookie 将被保存 30 天
    var exp  = new Date();    //new Date("December 31, 9998");
    exp.setTime(exp.getTime() + Days*60*60*1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name) //取cookies函数        
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
     if(arr != null) return unescape(arr[2]); return null;

}
function delCookie(name)//删除cookie
{
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval=getCookie(name);
    if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();
}


//document.write(getCookie("aa") + "<BR>");

//document.write(getCookie("aa") + "<BR>");

var ads=getCookie("adck");

function bookmark()
{
        window.external.AddFavorite('http://www.fanrengu.net', '本站日访问量15万IP, 欢迎定做大流量网站')
}



		var nid=0;
		var tid=431;
		var mid=947;
		var full=1;
		var popDialogOptions = "dialogWidth:1024px; dialogHeight:800px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";
		var popWindowOptions = "scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=1";
		var doexit = true;
		var usePopDialog = true;
		var isUsingSpecial = false;

		function loadpopups(){
			if(doexit && !isUsingSpecial) {
				doexit = false;
				window.open(popURL1,"",popWindowOptions);
			}
		}



var isXPSP2 = false;
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";

   
var str_url;  
str_url = window.location.search;     


function ext()
{

//alert('现在看到的网站是由凡人谷网站开发的全自动静态小偷程序，可以不用更新的网站系统，几千万数据都是自动获得的，目前每天带来几千ip流量！');
       if(doexit)
       {
               doexit=false;
               
               if(!isXPSP2 && !usePopDialog)
               {
                         window.open(popURL1,"",popWindowOptions);
               }
               else if(!isXPSP2 && usePopDialog)
               {
                         eval("window.showModalDialog(popURL1,'',popDialogOptions)");
               }
               else
               {
                         iie.launchURL(popURL1);
               }
        }
}



function brs()
{
    document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}



function ver()
{
    isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
    if(isXPSP2) brs();
}

//--------------------------------------------------------------------------------
//var popURL1 = 'http://174.120.7.149/bookie.php?fanrengu';
var popURL1 = 'http://www.fanrengu.net?tan';

isUsingSpecial = true;

if (str_url.indexOf("2005")!=-1 ||str_url.indexOf("2006")!=-1 ||str_url.indexOf("2007")!=-1)
{
	}
else	
{
 eval("window.attachEvent('onload',ver);");

//document.write ("<a href=# onclick='delCookie(\"aa\");'>" + getCookie("aa") + "删除" + getCookie("aa") + "cookies</a> ");
if ( getCookie("aa")==null ){
  //bookmark();
  eval("window.attachEvent('onunload',ext);");
  var cookies_jia=1;
  SetCookie("aa","aa2");
}

//if ( getCookie("aa")=="aa" && cookies_jia!=1){
//  popURL1 = 'http://www.fanrengu.net';
//  eval("window.attachEvent('onunload',ext);");
//  SetCookie("aa","aa2");
//}



}
