var isClearPage;
var strRightColumn1;
var strRightColumn2;
var strRightColumn3;
var strRightColumn4;
var subdomain;
subdomain = document.domain.split(".")[0];

switch (subdomain) {
	case "ent":
		strRightColumn1 = '<scr'+'ipt src="http://ent.rednet.cn/JS/jrzdgzjs.js"></scr'+'ipt>';
		strRightColumn1 += '<scr'+'ipt src="http://ent.rednet.cn/JS/zzymylpd2tpjs.js"></scr'+'ipt>';
		strRightColumn1 += '<iframe align="center" width="280" height="290" src="/c/s/lp/'+subdomain+'_lp1.htm" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';
		strRightColumn1 += '<iframe align="center" width="280" height="210" src="http://tour.rednet.cn/Program/695.html" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';


		strRightColumn2 = '<scr'+'ipt src="http://ent.rednet.cn/JS/mxhrtpjs.js"></scr'+'ipt>';
                strRightColumn2 += '<iframe src="/c/s/hongshan.html" frameborder="0" vspace="0" hspace="0" scrolling="no"  width="280" height="248"></iframe>';

		strRightColumn3 = '';
		strRightColumn3 += '<scr'+'ipt src="http://ent.rednet.cn/JS/ylftjs.js"></scr'+'ipt>';

		strRightColumn4 = '<scr'+'ipt src="http://ent.rednet.cn/JS/jczdjs.js"></scr'+'ipt>';
		strRightColumn4 += '<iframe align="center" width="280" height="290" src="/c/s/lp/'+subdomain+'_lp2.htm" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';
		
		
                strRightColumn4 += '<iframe align="center" width="280" height="250" src="/c/s/baidu-u.htm" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';
				
		strRightColumn4 += '<iframe src="/c/s/taobao.htm" frameborder="0" vspace="0" hspace="0" scrolling="no"  width="250" height="250"></iframe>';
		
		break;

	case "av":
		strRightColumn1 = '<scr'+'ipt src="http://av.rednet.cn/JS/stxwzzymjs_1.js"></scr'+'ipt>';
		strRightColumn1 += '<iframe align="center" width="280" height="290" src="/c/s/lp/'+subdomain+'_lp1.htm" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';
		strRightColumn2 = '<scr'+'ipt src="http://av.rednet.cn/JS/stxwzzymjs_2.js"></scr'+'ipt>';
		strRightColumn3 = '<scr'+'ipt src="http://av.rednet.cn/JS/stzzymjs_3.js"></scr'+'ipt>';
		strRightColumn4 = '';

		strRightColumn4 += '<iframe align="center" width="280" height="290" src="/c/s/lp/'+subdomain+'_lp2.htm" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';
		strRightColumn4 += '<iframe src="/c/s/taobao.htm" frameborder="0" vspace="0" hspace="0" scrolling="no"  width="250" height="250"></iframe>';
		break;

	case "zt":
		isClearPage = true;
		strRightColumn1 =  '';
		strRightColumn2 = '';
		strRightColumn3 = '';
		strRightColumn4 =  '';
		break;


	default:
		isClearPage = false;

		strRightColumn1 = '';
		strRightColumn1 += '<iframe align="center" width="280" height="290" src="/c/s/lp/'+subdomain+'_lp1.htm" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';
		strRightColumn1 += '<scr'+'ipt src="http://www.rednet.cn/js/tptjbt.js"></scr'+'ipt>';
		strRightColumn1 += '<scr'+'ipt src="http://hn.rednet.cn/JS/zzymtppd22js.js"></scr'+'ipt>';
		strRightColumn1 += '<scr'+'ipt src="http://ent.rednet.cn/JS/zzymylpd2tpjs.js"></scr'+'ipt>';
		strRightColumn1 += '<iframe align="center" width="280" height="210" src="http://tour.rednet.cn/Program/695.html" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';



		strRightColumn2 = '<scr'+'ipt src="http://ent.rednet.cn/JS/ylftjs.js"></scr'+'ipt>';
                strRightColumn2 += '<iframe src="/c/s/hongshan.html" frameborder="0" vspace="0" hspace="0" scrolling="no"  width="280" height="248"></iframe>';
               
 		

		strRightColumn3 = '';
		strRightColumn3 = '<scr'+'ipt src="http://info.rednet.cn/myjs/people/ZzymJS.js"></scr'+'ipt>';
		
		strRightColumn4 = '';
		strRightColumn4 += '<iframe align="center" width="280" height="290" src="/c/s/lp/'+subdomain+'_lp2.htm" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';
               
		
                strRightColumn4 += '<iframe align="center" width="280" height="250" src="/c/s/baidu-u.htm" scrolling="no" frameborder="0" allowTransparency="true"></iframe><br />';
				
		strRightColumn4 += '<iframe src="/c/s/taobao.htm" frameborder="0" vspace="0" hspace="0" scrolling="no"  width="250" height="250"></iframe>';
		break;
}







// 打印页面
function doPrint(){
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--PIPAD BEGIN-->";
	var strAdEnd="<!--PIPAD END-->";
	var strTmp;
	
		css="<style>"
		+"body{font-family:宋体}"
		+"td {font-size:14px;line-height:1.8em;}"
		+".title {font-size:24px;font-weight:bold;line-height:1.6em}"
	    +"</style>";
	
		str +=	css;
		str +=	'<meta http-equiv="content-type" content="text/html; charset=gb2312">';
		str +=	'<title>'+document.title+'</title>';
		str +=	"<body bgcolor=#ffffff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onload='window.print()'>";
		str +=	"<center><table width=600 border=0 cellspacing=0 cellpadding=0><tr><td height=34 width=150><td align=right valign=bottom><a href='javascript:history.back()'>返回</a>　<a href='javascript:window.print()'>打印</a></td></tr></table>";
		str +=	"<table width=600 border=0 cellpadding=0 cellspacing=0><tr><td>";
		str +=  "<div align=center class=title>" + document.title + "</div><br>"
		article=document.getElementById('zoom').innerHTML;
		if(article.indexOf(strAdBegin)!=-1){
			str +=article.substr(0,article.indexOf(strAdBegin));
			strTmp=article.substr(article.indexOf(strAdEnd)+strAdEnd.length, article.length);
		}else{
			strTmp=article
		}
		str +=strTmp
		str +=	"</td></tr></table>";
		str += window.location.href;
		str +=	"</center></body></html>";
		document.write(str);
		document.close();
}

// 缩放字体
function doZoom(size){
	document.getElementById('zoom').style.fontSize=size+'px';
}


//检查DIV是否存在
function checkdiv(divid){
	var chkid = document.getElementById(divid);
	if(chkid != null){
		return true; 
	}else {
		return false;
	}
}


// 复制网址
function copyToClipBoard(){
	var clipBoardContent=''; 
	clipBoardContent+=document.title;
	clipBoardContent+='\r\n';
	clipBoardContent+=window.location.href;
	window.clipboardData.setData("Text",clipBoardContent);
	//alert("你已复制链接及标题，请粘贴到QQ/MSN等发给好友!");
}

// 加入收藏
function AddFavor(){
	
	window.external.AddFavorite(window.location.href,window.document.title);
}



