function $(id){return document.getElementById(id);}
function frd()
{
	return (new Date()).getTime();
}
function jsend(url)
{
	var t=new Image();
	t.src=url;
}
function rdckie(name)
{
	var re='',mycc=document.cookie;
	var ex=new RegExp(name+"=([^;]*)");
	if(ex.test(mycc))
	{re=unescape(RegExp.$1);}
	return re;
}
function fbody(){document.write('<body onclick="nextok()">');}
function tcopy(){
	var str=$('stxt').innerText,n=new Date(),q=['日','一','二','三','四','五','六'];
	str+="\r\n此信息来源于"+location.href+' '+n.getFullYear()+'-'+(n.getMonth()+1)+'-'+n.getDate()+'(星期'+q[n.getDay()]+')';
	var obj = window.clipboardData;	obj.setData('Text',str);alert('你已经成功复制');
}
function ob_hid(id,flag){if($(id)) $(id).style.display=(flag)?'none':'block';}

document.write('<style>.ntest{width:100%;z-index:9;background:#FFFFFF;position:absolute;top:0;left:0;filter:alpha(opacity=1);} .ntest1{width:326px;height:126px;position:absolute;z-index:10;border:0;margin:0;padding:0;overflow:hidden;}</style>');
function nextok()
{
	//return 0;
	var preu=document.referrer;
	if(location.href=='http://tq.8684.cn/') return 0;
	if(!document.all || rdckie('fid') || !preu || rdckie('hi_auth')){toseh();return 0;}// || preu.match(/\.soso\.com/i)
	var aa=location.hostname.split('.');
	var bz=document.compatMode=="CSS1Compat"?document.documentElement:document.body;
	if(!$('ndiv'))
	{
		var bd=document.getElementsByTagName('div').item(0);
		var obnew=document.createElement('div');
		obnew.setAttribute('id','ndiv');
		obnew.className='ntest';	
		bd.appendChild(obnew);
		var ht1=bz.scrollHeight,ht2=bz.clientHeight;
		obnew.style.height=((ht1>ht2)?ht1:ht2)+"px";
		if(!$('mdiv'))
		{
			var obnew=document.createElement('iframe');
			obnew.setAttribute('id','mdiv');
			obnew.className='ntest1';	
			bd.appendChild(obnew);
		}
	}
	ob_hid('ndiv');ob_hid('mdiv');
	$('mdiv').src='http://www.3145.com/mid.htm?'+aa[0];
	$('mdiv').style.top=bz.scrollTop+(bz.clientHeight-$('mdiv').offsetHeight)/2+'px';
	$('mdiv').style.left=((bz.clientWidth-$('mdiv').offsetWidth)/2+15)+'px';
	return 1;
}
function toseh(a)
{
	ob_hid('ndiv',1);ob_hid('mdiv',1);
	if(rdckie('fid') || a) return;
	var n=new Date();
	n.setTime(n.getTime()+3600000);
	document.cookie="fid=1;path=/;expires="+n.toGMTString();
	fclk();
}
function fclk()
{
	if(nextok()) return;
}
if(document.attachEvent) document.attachEvent('onclick',fclk);
else if(document.addEventListener) document.addEventListener('click',fclk,false);
else document.onclick=fclk;

document.write('<script type="text/javascript" src="http://js.973.com/ad/sys_ad_complete.js"></script>');
