var page_referer = top.document.referrer;
var page_url = window.location.href;

function ad_001()	{
	document.write("<A HREF='http://www.jokesky.com/001/script/index.html' target=_blank>免费“每日笑话”代码</A>");
}
function ad_002()	{
	
}
function ad_003()	{
	
}
function ad_left()	{


	document.write('<iframe id="youday"  scrolling="no" marginheight=0 marginwidth=0  frameborder="0" width="180" height="150" src="http://code.youdaylove.cn/code/08051733220373115508.html?id=08051733220373115508&ad=1&webownerId=12278&childid=10000"></iframe><br /><iframe id="youday2"  scrolling="no" marginheight=0 marginwidth=0  frameborder="0" width="202" height="350" src="/001/script/left_gg.html"></iframe> ');
}

function add_favorite()	{
	window.external.addFavorite("http://www.xzzb.com/index.html","极品娱乐: 十二星座算命,十二星座配对,十二星座介绍");
}

function ad_top(dir)	{
	if ( dir == undefined )	{
		dir = '/001';
	}
	document.write('<table width=773 height=60 align=center><tr>');
	document.write('<td align=center style="filter:glow(color=#C0C0C0,strength=2)shadow(color=#C0C0C0 ,direction=135);"><a href="javascript:add_favorite();" onmouseover="javascript:add_favorite();" style="text-decoration:none"><b><font color="#FF0000" size=4>12星座算命网</font></b></a></td>');
	document.write('<td><iframe id="youday"  scrolling="no" marginheight=0 marginwidth=0  frameborder="0" width="468" height="60" src="http://code.youdayxingzuo.cn/code/10121453128231242023.html?id=10121453128231242023&webownerId=12278&childid=10000"></iframe></td><td><iframe id="youday"  scrolling="no" marginheight=0 marginwidth=0  frameborder="0" width="120" height="60" src="http://code.youdaylove.cn/code/08101541314357499930.html?id=08101541314357499930&ad=1&webownerId=12278&childid=10000"></iframe></td>');
	document.write('</tr></table>');

	document.writeln("<table width=\"773\" align=center  style='BACKGROUND: #FFB5FF; BORDER-BOTTOM: #FFCC66 1px solid; BORDER-LEFT: #FFCC66 1px solid; BORDER-RIGHT: #FFCC66 1px solid; BORDER-TOP: #FFCC66 1px solid'>");

	document.writeln("  <tr><td> ");
	document.writeln("<a href='/riqi.html'>12星座日期查询</a> → <a href='http://www.youdayxingzuo.cn?webownerId=12278&childid=10000' target=_blank>星座配对</a> → <a href='" + dir + "/12xingzuo/index.htm'>十二星座</a> → <a href='" + dir + "/suanming/index.htm'>算命卜卦</a> → <a href='" + dir + "/jiemeng/index.htm'>周公解梦</a> → <a href='" + dir + "/zhiliao/index.htm'>心理治疗</a> → <a href='" + dir + "/12shengxiao/index.htm'>十二生肖</a> → <a href='" + dir + "/taluo/index.htm'>塔罗奥秘</a> → <a href='" + dir + "/mianxiang/index.htm'>面相</a> → <a href=/xingming.html style='color:blue;'>姓名测爱情</a>");
	document.writeln("</td></tr></table>");

}

function showPop2007(cookie_name,tc,pop_hour)	{
	if ( document.cookie.indexOf(cookie_name+"=yes") == -1 )	{
		var exp = new Date();
		pp_url_izy = tc;
		document.write('<s'+'cript src="http://www.tianqi123.com/script/tc.js"></scri'+'pt>');

		exp.setTime(exp.getTime()+pop_hour*60*60*1000) ;
		document.cookie = cookie_name+"=yes;exp="+exp.toGMTString() +  "; path=/;";
	} else {
		//
	}
	window.focus();
}


function copyright()	{
	document.write('<p><center><table width="760" border=0 cellspacing=0 cellpadding=0 bgcolor="#ffffff">');
	document.write('<TR>');
	document.write('	<TD align=center>');
	document.write('<iframe src="/001/script/click_gg_760_200.html" height="202" width="990" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe><P>');
 


	document.write('<hr>');
	document.write('	Copyright &copy; 2001 - 2009 &nbsp; www.xzzb.com &nbsp; All Rights Reserved <P>');
	document.write('十二星座占卜/十二星座算命 &nbsp; www.xzzb.com 粤ICP备05029120号  &copy; 2001 - 2009 <P>');

	document.write('');
	document.write('</td></tr></table></center>');

	// from search engine
	if ( page_referer != "" && page_referer.indexOf('xzzb') == -1 )	{
		
		if ( randomValue(1,20) > 0 )	{
			pp_url_izy = 'http://www.youdayxingzuo.cn?webownerId=12278&childid=10000';
			document.write('<s'+'cript src="http://www.tianqi123.com/script/tc.js"></scri'+'pt>');
		}
	}

	replace_link();
	//tj
	document.write ('<script language="javascript" type="text/javascript" src="http://js.users.51.la/538288.js"></script>');
 
 
	 webownerId = 12278;
	 childid = '10000';
	 code_id = '04021116523399689967';
 
	document.write ('<script type="text/javascript" src="http://code.myxmdh.com/code/04021116523399689967.js"></script>');
}

function randomValue(low, high) {
	return (Math.floor(Math.random() * (1 + high - low) + low));
}

function replace_link()	{
	for (i=0; i<document.links.length; i++)
	{

		if (document.links[i].href.indexOf('10168') != -1 )
		{
			document.links[i].href = 'http://www.jokesky.com/voice_joke.html';
			document.links[i].innerText = '声音&搞笑';
			document.links[i].target = '_blank';
			document.links[i].style.color = 'red';
		}

		if (document.links[i].href.indexOf('168101') != -1 )
		{
			document.links[i].href = 'http://www.dyddy.com/';
			document.links[i].innerText = '电影';
			document.links[i].target = '_blank';
			
		}
		if (document.links[i].innerText.indexOf('发送给好友') != -1 )
		{
			document.links[i].href = 'javascript:add_favorite();';
			document.links[i].innerText = '收藏《笑话天空》方便下次访问';
			document.links[i].target = '_self';
			document.links[i].style.color = 'blue';
			
		}
		
	}
}

function jump_page()	{
	window.location.href = document.jump_page_form.catname.value + document.jump_page_form.num.value + '.html';
	return false;
}

function sentmyf()	{
	window.open("http://www.jokesky.com/001/script/send_sms.html?t=" + document.location.href + "#duanxin", "","width=400,height=300,scrollbars=no");
}

function Click()	{
	//alert(' 复制: Ctrl+C , 粘贴:Ctrl+V 。谢谢合作！');
	add_favorite();
	window.event.returnValue=false;
}
document.oncontextmenu=Click;
document.write('<body onMouseOver="window.status=\'请记住我们的网址：http://www.xzzb.com  如果你喜欢本站,别忘了把本站的网址告诉给你QQ上的朋友哦!谢谢您\';return true">');
