var isIE=(document.all&&document.getElementById&&!window.opera)?true:false; 
var isMozilla=(!document.all&&document.getElementById&&!window.opera)?true:false; 
var weburl='http://www.kxts.org';
var webname='hx71.net - 淘宝网导购,爱购物挖掘淘宝网最诚信卖家，最优质宝贝，最优惠价格';
function $(id){return document.getElementById(id);}
function addfavsite(){
	if(isMozilla){
		if (document.all){ window.external.addFavorite(weburl,webname);}
		else if (window.sidebar){ window.sidebar.addPanel(webname, weburl,"");}
	}
	if(isIE){window.external.AddFavorite(weburl, webname);}	
}

function Show_TabsMenu(tabadid_num,tabadnum){
	for(var i=0;i<16;i++){document.getElementById("tabadcontent_"+tabadid_num+i).style.display="none";}
	for(var i=0;i<16;i++){document.getElementById("tabadmenu_"+tabadid_num+i).className="";}
	document.getElementById("tabadmenu_"+tabadid_num+tabadnum).className="selected";
	document.getElementById("tabadcontent_"+tabadid_num+tabadnum).style.display="block";
}

function friendshare(){
	prompt('请按Ctrl+C复制此购物信息的连接，即可发给好友分享： ','发现一个很不错的淘宝导购网站，发给你分享一下 http://www.kxts.org/');
}


function ShowFlash(url,w,h){
var s='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+w+'" height="'+h+'">';
s = s+'<param name="movie" value="'+url+'" />';
s = s+'<param name="quality" value="high" />';
s = s+'<param name="allowFullScreen" value="true" />';
s = s+'<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="lrc" width="'+w+'" height="'+h+'" quality="High" wmode="transparent"></embed>';
s = s+'</object>';
document.write(s);
}
//显示&隐藏层
function ShowDiv(divname,obj,mix,max,index){
	for(i=mix;i<=max;i++){
		if(i==obj){
			eval("document.getElementById('"+divname+index+i+"').style.display='block'");
			eval("document.getElementById('objName"+index+i+"').className='btn01'");
		}else{
			eval("document.getElementById('"+divname+index+i+"').style.display='none'");
			eval("document.getElementById('objName"+index+i+"').className='btn02'");
		}
	}
}