function wrapTag(num) {
	for(var id = 1; id <= 2; id++) {
		var Tag = "cont" + id;
		var Css = "on" + id;
		if(id == num) {
			document.getElementById(Tag).style.display = "block";
			document.getElementById(Css).className = "active";
		} else {
			document.getElementById(Tag).style.display = "none";
			document.getElementById(Css).className = "";
		}
	}
}
function menuTag(num) {
	for(var id = 0; id <= 5; id++) {
		var Tag = "con" + id;
		var Css = "mu" + id;
		if($("#" + Tag).length > 0 && $("#" + Css).length > 0)
			if(id == num) {
				document.getElementById(Tag).style.display = "block";
				document.getElementById(Css).className = "active";
			} else {
				document.getElementById(Tag).style.display = "none";
				document.getElementById(Css).className = "";
			}
	}
}

function LoadFlash(url, wmode, menu, allowscript, width, Height) {
	document.write('<embed src="' + url + '" menu="' + menu + '" allowScriptAccess="' + allowscript + '" wmode="' + wmode + '" quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + '" height="' + Height + '"></embed>');
}
var SHARE={
		openShareWindow:function(url){
			window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');
		},
		//Qzone ok
		shareQzone:function(shareUrl,title){
			var url="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+encodeURIComponent(shareUrl)+"&title"+encodeURIComponent(title);
			SHARE.openShareWindow(url);
		},
		//sina ok
		shareSina:function(shareUrl,title){
			var url="http://v.t.sina.com.cn/share/share.php?url="+encodeURIComponent(shareUrl)+"&title="+encodeURIComponent(title);
			SHARE.openShareWindow(url);
		},
		//腾讯weibo   title:内容
		shareWB:function(shareUrl,title){
			var url="http://v.t.qq.com/share/share.php?title="+encodeURIComponent(title)+"&url"+encodeURIComponent(shareUrl);
			SHARE.openShareWindow(url);
		},
		//renren ok
		shareRenRen:function(shareUrl,title){
			var url="http://share.renren.com/share/buttonshare.do?link="+encodeURIComponent(shareUrl)+"&title="+encodeURIComponent(title);
			SHARE.openShareWindow(url);
		},
		//kaixin
		shareKX:function(shareUrl,title){
			var url="http://www.kaixin001.com/repaste/bshare.php?rurl="+encodeURIComponent(shareUrl)+"rtitle="+encodeURIComponent(title);
			SHARE.openShareWindow(url);
		},
		//QQxiaoyou
		shareXY:function(shareUrl,title){
			var url="http://pengyou.qq.com/index.php?mod=usershare&act=onekey&to=xiaoyou&url="+encodeURIComponent(shareUrl)+"&title="+encodeURIComponent(title);
			SHARE.openShareWindow(url);
		}
}
