//屏蔽JS错误
function killErrors()
{ 
	return true;
} 
window.onerror=killErrors;

//改变字体大小
function SetFont(n)
{
event.returnValue=false
document.getElementById("cbody_content").runtimeStyle.fontSize=n;
}

//加入收藏
function SetShcang()
{
javascript:window.external.AddFavorite(window.location.href, document.title);
}


//自动 COPY代码开始
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function JM_cc(ob){
	var obj=MM_findObj(ob); if (obj) { 
	obj.select();js=obj.createTextRange();js.execCommand("Copy");}
	alert("地址复制成功，您现在可以粘贴到QQ/MSN/论坛等任何地方！");
}
function SetCopy(){
document.write('<input name="page_url" value="'+window.location.href+'" size="50" type="hidden">【<a href="#" onClick=JM_cc("page_url"),event.returnValue=false>复制地址</a>】');
}


//站内Flash广告简写函数
function SetAdswf(width,height,url){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="Opaque">');
	//透明document.write('<param name="wmode" value="transparent">');
	document.write('<param name="menu" value="false">');
	document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>');
	document.write('</object>');
}

//找找搜索
function chkzhao(){
if (document.formzhao.key.value=="")
{
alert("请输入查询关键字/词，谢谢！");
document.formzhao.key.focus()
return false;
}
}

//评论表单过滤
function chkform(){
	str_title=document.formplun.str_title.value;
	str_content=document.formplun.str_content.value;
	if(str_title.length<=1||str_title.length>=20||str_title=="请填写标题"){
		alert('友情提示：请输入20位字符以内的主题');
		document.formplun.str_title.value="";
		document.formplun.str_title.focus();
		return false;
		}
	if(str_content.length<=1||str_content.length>=1000){
		alert('友情提示：您可以发表1000字以内的评论');
		document.formplun.str_content.focus();
		return false;
		}
	return true;
}


//评论表单
function SetPlun(news_id){
document.write('<div id="Show_plun">');	
//document.write('<div id="Show_plun_1">评论发表|查看</div>');	
document.write('<form action="/Check/SavePlun.html" method="post" name="formplun" onSubmit="return chkform();">');	
document.write('<div id="Show_plun_2">');	
document.write('<input name="str_title" type="text" id="str_title" style="border:1px #cccccc solid;" value="请填写标题">');	
document.write('<input name="news_id" type="hidden" id="news_id" value="'+news_id+'">');	
document.write('<textarea name="str_content" rows="5" class="plun_textarea" id="str_content" style="border:1px #cccccc solid;width:528px" onKeyDown="SetCount(this.form.str_content,this.form.remLen,1000);" onKeyUp="SetCount(this.form.str_content,this.form.remLen,1000);"></textarea>');	
document.write('</div>');	
document.write('<div id="Show_plun_3">您还可以写<input readonly="readonly" style="border:0;color:#ff0000;background:#FFFFFF" type="text" name="remLen" size="3" maxlength="3" value="1000" />字</div>');	
document.write('<div id="Show_plun_4"><input type="submit" name="Submit2" value="发表评论" class="plun_submit"></div>');	
//document.write('<div id="Show_plun_4"><input type="button" name="Submit2" value="发表评论" class="plun_submit" onclick="'javascript:alert('[暂停通知]\n\n从即日起本栏目暂停评论，奥运会结束后恢复开放！敬请谅解！')'"></div>');	
document.write('</form>');	
document.write('</div>');	
document.write('<div class="divh10"></div>');	
}

//评论内容字数限制
function SetCount(field, countfield, maxlimit) {
// 定义函数，传入3个参数，分别为表单区的名字，表单域元素名，字符限制；
if (field.value.length > maxlimit) 
//如果元素区字符数大于最大字符数，按照最大字符数截断； 
field.value = field.value.substring(0, maxlimit);
else
//在记数区文本框内显示剩余的字符数； 
countfield.value = maxlimit - field.value.length;
}


//控制导航切换函数
function SetMenu(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	if (no<i){menu.cells[i].className="bgshow_96_02";}
	if (no>i){menu.cells[i].className="bgshow_96_03";}
	menu.cells[no].className="bgshow_96_01";}
}

//蓝色控制导航切换函数
function SetMenu_ls(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	if (no<i){menu.cells[i].className="bgshow_ls_02";}
	if (no>i){menu.cells[i].className="bgshow_ls_03";}
	menu.cells[no].className="bgshow_ls_01";}
}

//绿色控制导航切换函数
function SetMenu_g(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	if (no<i){menu.cells[i].className="bgshow_g_02";}
	if (no>i){menu.cells[i].className="bgshow_g_03";}
	menu.cells[no].className="bgshow_g_01";}
}

//紫色控制导航切换函数
function SetMenu_z(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	if (no<i){menu.cells[i].className="bgshow_z_02";}
	if (no>i){menu.cells[i].className="bgshow_z_03";}
	menu.cells[no].className="bgshow_z_01";}
}

//棕色控制导航切换函数
function SetMenu_c(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	if (no<i){menu.cells[i].className="bgshow_c_02";}
	if (no>i){menu.cells[i].className="bgshow_c_03";}
	menu.cells[no].className="bgshow_c_01";}
}

//红色控制导航切换函数
function SetMenu_r(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	if (no<i){menu.cells[i].className="bgshow_r_02";}
	if (no>i){menu.cells[i].className="bgshow_r_03";}
	menu.cells[no].className="bgshow_r_01";}
}

//控制导航切换显示内容函数
function SetDiv(div,no){
	SetDiv_1(div,no);
}

function SetDiv_1(div,no){
	switch(no){
		case 1:
		document.getElementById(div+"1").style.display="block";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 2:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="block";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 3:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="block";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 4:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="block";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 5:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="block";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 6:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="block";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 7:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="block";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 8:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="block";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 9:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="block";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 10:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="block";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 11:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="block";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 12:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="block";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="none";
		break;
		case 13:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="block";
		document.getElementById(div+"14").style.display="none";
		break;
		case 14:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		document.getElementById(div+"6").style.display="none";
		document.getElementById(div+"7").style.display="none";
		document.getElementById(div+"8").style.display="none";
		document.getElementById(div+"9").style.display="none";
		document.getElementById(div+"10").style.display="none";
		document.getElementById(div+"11").style.display="none";
		document.getElementById(div+"12").style.display="none";
		document.getElementById(div+"13").style.display="none";
		document.getElementById(div+"14").style.display="block";
		break;
	}
}

//第一区右侧JS
//*星座运程
function astrosubmit(word)
{
document.astroluck.type.value=word;
document.astroluck.submit();	     
}

//*塔罗运程
function taluosubmit(word)
{
document.taluoluck.id.value=word;
document.taluoluck.submit();	     
}

//*情侣速配
function peiduisubmit(no)
{
if (no==1){
document.astro.strand.value=no;
document.astro.submit();
}
if (no==2){
document.genus.strand.value=no;
document.genus.submit();
}
if (no==3){
document.blood.strand.value=no;
document.blood.submit();
}
if (no==4){
document.nannv.strand.value=no;
document.nannv.submit();
}
if (no==5){
document.avsb.strand.value=no;
document.avsb.submit();
}
if(no==6){
document.avsg.strand.value=no;
document.avsg.submit();
}
if(no==7){
document.gvsb.strand.value=no;
document.gvsb.submit();
}
}


//第二部分右侧
//星座/生肖/血型详解
function setAstroShenxiao(word,no){
	var astropic=document.getElementById("astro_pic");
	var shengpic=document.getElementById("shenxiao_pic");
	var blookpic=document.getElementById("blood_pic");
	if (word=='a'){
		if (no==1){astropic.src="http://astro.httpcn.com/image/Astro/01.gif";}
		if (no==2){astropic.src="http://astro.httpcn.com/image/Astro/02.gif";}
		if (no==3){astropic.src="http://astro.httpcn.com/image/Astro/03.gif";}
		if (no==4){astropic.src="http://astro.httpcn.com/image/Astro/04.gif";}
		if (no==5){astropic.src="http://astro.httpcn.com/image/Astro/05.gif";}
		if (no==6){astropic.src="http://astro.httpcn.com/image/Astro/06.gif";}
		if (no==7){astropic.src="http://astro.httpcn.com/image/Astro/07.gif";}
		if (no==8){astropic.src="http://astro.httpcn.com/image/Astro/08.gif";}
		if (no==9){astropic.src="http://astro.httpcn.com/image/Astro/09.gif";}
		if (no==10){astropic.src="http://astro.httpcn.com/image/Astro/10.gif";}
		if (no==11){astropic.src="http://astro.httpcn.com/image/Astro/11.gif";}
		if (no==12){astropic.src="http://astro.httpcn.com/image/Astro/12.gif";}
	}
	if (word=='s'){
		if (no==1){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_01.gif";}
		if (no==2){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_02.gif";}
		if (no==3){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_03.gif";}
		if (no==4){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_04.gif";}
		if (no==5){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_05.gif";}
		if (no==6){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_06.gif";}
		if (no==7){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_07.gif";}
		if (no==8){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_08.gif";}
		if (no==9){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_09.gif";}
		if (no==10){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_10.gif";}
		if (no==11){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_11.gif";}
		if (no==12){shengpic.src="http://astro.httpcn.com/image/Shxiao/shxiao_150_120_12.gif";}
	}
	if (word=='b'){
		if (no==1){blookpic.src="http://astro.httpcn.com/image/Blood/1.gif";}
		if (no==2){blookpic.src="http://astro.httpcn.com/image/Blood/2.gif";}
		if (no==3){blookpic.src="http://astro.httpcn.com/image/Blood/3.gif";}
		if (no==4){blookpic.src="http://astro.httpcn.com/image/Blood/4.gif";}
	}
	//alert(astropic.src)
}


//生日密码/生日花/生日书/48星区
function shenrisubmit(word)
	{
	if (word=="psw"){
	document.shenri_psw.strand.value=word;
	document.shenri_psw.submit();
	}
	if (word=="hua"){
	document.shenri_hua.strand.value=word;
	document.shenri_hua.submit();
	}
	if (word=="shu"){
	document.shenri_shu.strand.value=word;
	document.shenri_shu.submit();
	}
	if (word=="xin"){
	document.shenri_xin.strand.value=word;
	document.shenri_xin.submit();
	}
}



//折合
function menus(tabobj,imgobj){
if(tabobj.style.display==""){
tabobj.style.display="none"
imgobj.src="/image/mingli/menu_img2.gif"
}else if(tabobj.style.display=="none"){
tabobj.style.display=""
imgobj.src="/image/mingli/menu_img1.gif"
}
}

//折合(算命内容页)
function SetNavmm(tabobj,imgobj){
if(tabobj.style.display==""){
tabobj.style.display="none"
imgobj.src="/image/mingli/folder+.gif"
}else if(tabobj.style.display=="none"){
tabobj.style.display=""
imgobj.src="/image/mingli/folder-.gif"
}
}

//导航
function SetNavBg(picid,no,num){
if(picid=="pic_1"){
	if(no==2){
	document.getElementById(picid).src='/image/mingli/m_button1_1.gif';}
	else{
		if(num==1){
			document.getElementById(picid).src='/image/mingli/m_button1_1.gif';
			}else{
			document.getElementById(picid).src='/image/mingli/m_button1.gif';
			}
		}
	}
if(picid=="pic_2"){
	if(no==2){
	document.getElementById(picid).src='/image/mingli/m_button2_2.gif';}
	else{
		if(num==1){
			document.getElementById(picid).src='/image/mingli/m_button2_2.gif';
			}else{
			document.getElementById(picid).src='/image/mingli/m_button2.gif';
			}
		}
	}
if(picid=="pic_3"){
	if(no==2){
	document.getElementById(picid).src='/image/mingli/m_button3_3.gif';}
	else{
		if(num==1){
			document.getElementById(picid).src='/image/mingli/m_button3_3.gif';
			}else{
			document.getElementById(picid).src='/image/mingli/m_button3.gif';
			}
		}
	}
if(picid=="pic_4"){
	if(no==2){
	document.getElementById(picid).src='/image/mingli/m_button4_4.gif';}
	else{
		if(num==1){
			document.getElementById(picid).src='/image/mingli/m_button4_4.gif';
			}else{
			document.getElementById(picid).src='/image/mingli/m_button4.gif';
			}
		}
	}
if(picid=="pic_5"){
	if(no==2){
	document.getElementById(picid).src='/image/mingli/m_button5_5.gif';}
	else{
		if(num==1){
			document.getElementById(picid).src='/image/mingli/m_button5_5.gif';
			}else{
			document.getElementById(picid).src='/image/mingli/m_button5.gif';
			}
		}
	}
if(picid=="pic_6"){
	if(no==2){
	document.getElementById(picid).src='/image/mingli/m_button6_6.gif';}
	else{
		if(num==1){
			document.getElementById(picid).src='/image/mingli/m_button6_6.gif';
			}else{
			document.getElementById(picid).src='/image/mingli/m_button6.gif';
			}
		}
	}
if(picid=="pic_7"){
	if(no==2){
	document.getElementById(picid).src='/image/mingli/m_button7_7.gif';}
	else{
		if(num==1){
			document.getElementById(picid).src='/image/mingli/m_button7_7.gif';
			}else{
			document.getElementById(picid).src='/image/mingli/m_button7.gif';
			}
		}
	}
}


//今天运程
function setluck(word){
var luck_pic=document.getElementById("luck_pic");
var luck_url=document.getElementById("luck_url")
if(word=="白羊座"){	luck_pic.src='/image/Astro_b/astro_01.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=1';}
if(word=="金牛座"){	luck_pic.src='/image/Astro_b/astro_02.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=2';}
if(word=="双子座"){	luck_pic.src='/image/Astro_b/astro_03.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=3';}
if(word=="巨蟹座"){	luck_pic.src='/image/Astro_b/astro_04.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=4';}
if(word=="狮子座"){	luck_pic.src='/image/Astro_b/astro_05.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=5';}
if(word=="处女座"){	luck_pic.src='/image/Astro_b/astro_06.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=6';}
if(word=="天秤座"){	luck_pic.src='/image/Astro_b/astro_07.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=7';}
if(word=="天蝎座"){	luck_pic.src='/image/Astro_b/astro_08.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=8';}
if(word=="射手座"){	luck_pic.src='/image/Astro_b/astro_09.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=9';}
if(word=="摩羯座"){	luck_pic.src='/image/Astro_b/astro_10.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=10';}
if(word=="水瓶座"){	luck_pic.src='/image/Astro_b/astro_11.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=11';}
if(word=="双鱼座"){	luck_pic.src='/image/Astro_b/astro_12.gif';luck_url.href='http://astro.httpcn.com/AstroClass.html?SmallId=12';}
}

//供佛
function SetImg(img,word) {

document.getElementById(img).src="/image/lifo/"+img+"-click.gif";
if (img=='sjmnf_13'){document.myfo.user_fodengl.value="左灯"}
if (img=='sjmnf_16'){document.myfo.user_fodengr.value="右灯"}
if (word!="灯"){document.myfo.user_fofiles.value=word;}
if (word=='供水'){document.getElementById(img).src="/image/lifo/sjmnf_19-sjmnf_22_click.gif";}
if (word=='供香'){document.getElementById(img).src="/image/lifo/sjmnf_19-sjmnf_23_click.gif";}
if (word=='供果'){document.getElementById(img).src="/image/lifo/sjmnf_19-sjmnf_24_click.gif";}
if (word=='供花'){document.getElementById(img).src="/image/lifo/sjmnf_19-sjmnf_25_click.gif";}
if (word=='供七宝'){document.getElementById(img).src="/image/lifo/sjmnf_19-sjmnf_26_click.gif";}
}

//命理百科(顶一下)
function  SetDing(num) {
   var xmlhttp;
   var url="/Count/NewsSetDing.html?Id="+num;
    
   if(window.ActiveXObject) {
       xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }else if(window.XMLHttpRequest)      {
       xmlhttp=new XMLHttpRequest();
   }
   if (xmlhttp) {
       xmlhttp.onreadystatechange=function() {
           if(4==xmlhttp.readyState) {
                if(200==xmlhttp.status)  {
					document.getElementById("d1").innerHTML=xmlhttp.responseText;
					document.getElementById("d2").innerHTML='<a href="/top.html?ct=2" target="_blank">查看</a>';
                }else {
                     alert("error")
                }          
           }
        }   
       xmlhttp.open("get",url,true);
       xmlhttp.send(null);
    }
}

//周公解梦(顶一下)
function  SetJmDing(num) {
   var xmlhttp;
   var url="/Count/JmSetDing.html?Id="+num;
    
   if(window.ActiveXObject) {
       xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }else if(window.XMLHttpRequest)      {
       xmlhttp=new XMLHttpRequest();
   }
   if (xmlhttp) {
       xmlhttp.onreadystatechange=function() {
           if(4==xmlhttp.readyState) {
                if(200==xmlhttp.status)  {
					document.getElementById("d1").innerHTML=xmlhttp.responseText;
					document.getElementById("d2").innerHTML='<a href="/So.html?ct=2" target="_blank">查看</a>';
                }else {
                     alert("error")
                }          
           }
        }   
       xmlhttp.open("get",url,true);
       xmlhttp.send(null);
    }
}


//找找搜索更多
function zhaozhaomore(tmp1)	{
document.write('<a href="http://www.zhaozhao.com/go.html?no=13&key='+tmp1+'" target="_blank" style="color:#0D3F98;font-size:14px">更多[<font color=red>'+tmp1+'</font>]的相关内容</a>');
//document.write('<iframe border="0" align="right" vspace="0" hspace="0" name="searchbar" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="400" height="20" src="http://template.union.163.com/search/tplVIP.jsp?ID=httpcn&NO=16244&boxColor=FFFFFF&fontsize=14&decor=none&txtColor=FF0000&Key=查看['+tmp1+']的更多内容&keyword='+tmp1+'"></iframe>');
//document.write('<a href="http://www.baidu.com/s?lm=0&si=&rn=10&ie=gb2312&ct=0&wd='+tmp1+'&pn=10&cl=3" target="_blank">查看'+tmp1+'的更多内容</a>');
}



//首页切换
function SetHomeMenu(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	menu.cells[i].className="home_77_02";
	menu.cells[no].className="home_77_01";}
}




//算命首页第一部分中间切换
function Setbg(no){
	Setbg_1(no);
}

function Setbg_1(no){
	switch(no){
		case 1:
		//alert(no);
		document.getElementById("bg1").className="s2";
		document.getElementById("bg2").className="s1";
		document.getElementById("bg3").className="s1";
		break;
		case 2:
		//alert(no);
		document.getElementById("bg1").className="s1";
		document.getElementById("bg2").className="s2";
		document.getElementById("bg3").className="s1";
		break;
		case 3:
		//alert(no);
		document.getElementById("bg1").className="s1";
		document.getElementById("bg2").className="s1";
		document.getElementById("bg3").className="s2";
		break;
	}
}

//算命首页第二部分切换
function SetmMenu(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	if (no<i){menu.cells[i].className="bgshow_75_02";}
	if (no>i){menu.cells[i].className="bgshow_75_03";}
	menu.cells[no].className="bgshow_75_01";}
}




//紫微运程
function SetTab(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	menu.cells[i].className="tab2";
	menu.cells[no].className="tab1";}
}

//控制导航切换函数
function SetMenuzi(menu,no)
{
	for(i=0;i<menu.cells.length;i++) {
	menu.cells[i].className="zn_h_2";
	menu.cells[no].className="zn_h_1";}
}
