function fetch_object(idname)
{
    var my_obj = document.getElementById(idname);
    return my_obj;
}

function menu(obj,zu,num) //选项卡切换(卡序号,组号,组内卡数)
{ 
 for (i = 1; i<= num; i++)
 {        
	var my_menu = fetch_object("menu"+ zu +"_" + i);
	var my_card = fetch_object("card"+ zu +"_" + i);
	if (obj == i)
	{
		if(my_card.style.display != "block")
		{
		my_menu.className = "Liover";
		my_card.style.display = "block";
		}
	}else{
	 	if (my_card.style.display != "none")
		{
		my_menu.className = "";
		my_card.style.display = "none";
		}
	}	
 }
}
function doZoom(size){
		var artibody = document.getElementById('artibody');
		if(!artibody){
			return;
		}
		var artibodyChild = artibody.childNodes;
		artibody.style.fontSize = size + 'px';
		for(var i = 0; i < artibodyChild.length; i++){
			if(artibodyChild[i].nodeType == 1){
				artibodyChild[i].style.fontSize = size + 'px';
			}
		}		
	}

function Addme(){
		if (document.all){ 	
		   window.external.addFavorite(document.URL,document.title);  
		}else if (window.sidebar){
		   window.sidebar.addPanel(document.title, document.URL, ""); 
		} 
	}
	
function DetailRightAD(ChannelID){
	var focus_width=280;
	var focus_height=280;
	var text_height=0;
	var swf_height = focus_height+text_height;
	
	var pics;
	var links;
	var texts;
	if (ChannelID==1){//推荐
		pics='/images/gadpic/pic_01.jpg|/images/gadpic/pic_02.jpg|/images/280x280/meirong_1.jpg|/images/280x280/meirong_2.jpg'
		links='/simi/simi_ydjss.shtml|/slimming/slimming_360.shtml|/meirong/meirong_botox.shtml|/zhuanti/hlww.shtml'
		texts='阴道紧缩术|360度水动力吸脂|BOTOX除皱|黑脸娃娃'
	}
	else if(ChannelID==2){//胸部
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==3){//鼻部
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==4){//眼部
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==5){//面部
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==6){//吸脂
		pics='/images/gadpic/pic_02.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==7){//私密
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==8){//牙齿
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else {//美容
		pics='/images/280x280/meirong_2.jpg|/images/280x280/meirong_1.jpg'
		links='/zhuanti/hlww.shtml|/meirong/meirong_botox.shtml'
		texts='黑脸娃娃|BOTOX除皱'
	}

document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/images/picnews.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed ID="focus_flash" src="/images/picnews.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#C5C5C5" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
function DetailRight(ChannelID){
	var focus_width=280;
	var focus_height=200;
	var text_height=0;
	var swf_height = focus_height+text_height;
	
	var pics;
	var links;
	var texts;
	if (ChannelID==1){//黑脸娃娃
		pics='/zhuanti/hlww/db_1.jpg|/zhuanti/hlww/db_2.jpg|/zhuanti/hlww/db_3.jpg'
		links='||'
		texts='||'
	}
	else if(ChannelID==2){//胸部
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==3){//鼻部
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==4){//眼部
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==5){//面部
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==6){//吸脂
		pics='/images/gadpic/pic_02.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==7){//私密
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else if(ChannelID==8){//牙齿
		pics='/images/280x280/thorax_1.jpg|/images/280x280/thorax_2.jpg'
		links='|'
		texts='隆胸前|隆胸后'
	}
	else {//美容
		pics='/images/280x280/meirong_2.jpg|/images/280x280/meirong_1.jpg'
		links='/meirong/meirong_hlyy.shtml|/meirong/meirong_botox.shtml'
		texts='黑脸娃娃BOTOX除皱'
	}

document.write('<object ID="focus_flash1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/images/picnews.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed ID="focus_flash1" src="/images/picnews.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#C5C5C5" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}

