// 91统一顶部导航


//author    ：  chenjinfu
//function  ：  
//first time：  21:30 2009-09-22
//last time ：  21:30 2009-09-22
//topMenu--star--############################################
function show_public_top(_this){
	_this.getElementsByTagName('a')[0].className='on';
	_this.getElementsByTagName('div')[0].style.display='block';
}
function hide_public_top(_this){
	_this.getElementsByTagName('a')[0].className='';
	_this.getElementsByTagName('div')[0].style.display='none';
}
function topMenu(){
	//站点调用图片的地址
	var imgSiteUrl="http://image.91.com/news/images/topmenu/0929/";
	var topmenubg = "topmenu1120.gif";	//节日背景图
	var logoTitle = "12月11日 《梦幻迪士尼》圣诞不删档测试";
	var logoURL = "http://dsn.91.com/";
	document.write(
"		<style type='text/css'>"+
"		.public_top_bg{position:relative;height:31px;z-index:10000;text-align:center;background:url("+imgSiteUrl+"topmenu.gif) repeat-x left top;}"+
"		.public_top{width:1002px;margin:0 auto;width:962px;font-size:12px;}"+
"		.public_top ul,.public_top li{list-style:none;margin:0;padding:0;}"+
"		.public_top a,.public_top a:hover{text-decoration:none;}"+
"		.public_top_menu{float:left;width:700px;}"+
"		li.public_top_menu_l{float:left;height:31px;margin-left:-1px;position:relative;}"+
"		.public_top_menu_l div{display:none;padding:5px 0 10px 0;}"+
"		.public_top_menu_l a{display:block;padding:3px 10px 0 0;height:28px;line-height:28px;color:#019bd0;font-weight:bold;}"+
"		.public_top_menu_l a:hover{text-decoration:none;color:#019bd0;}"+
"		.public_top_menu_2{width:67px;background:url("+imgSiteUrl+ topmenubg +") no-repeat left -217px;}"+
"		.public_top_menu_2 a:hover{background:url("+imgSiteUrl+ topmenubg +") no-repeat left -248px;}"+
"		.public_top_menu_2 a.on{background:url("+imgSiteUrl+ topmenubg +") no-repeat left -248px;}"+
"		.public_top_menu_4{width:99px;background:url("+imgSiteUrl+ topmenubg +") no-repeat left -155px;}"+
"		.public_top_menu_4 a{padding:3px 14px 0 0;}"+
"		.public_top_menu_4 a:hover{background:url("+imgSiteUrl+ topmenubg +") no-repeat left -186px;}"+
"		.public_top_menu_4 a.on{background:url("+imgSiteUrl+ topmenubg +") no-repeat left -186px;}"+
"		.public_top_menu_first{width:130px;background:url("+imgSiteUrl+ topmenubg +") no-repeat left -93px;text-indent:-999em;}"+
"		.public_top_menu_first a{margin:0 50px 0 30px;}"+
"		.public_top_menu_last{width:110px;background:url("+imgSiteUrl+ topmenubg +") no-repeat left -124px;}"+
"		.public_top_link{float:left;width:250px;}"+
"		.public_top_link_l{float:left;}"+
"		.public_top_link_l a{display:block;height:31px;line-height:31px;width:50px;color:#019bd0;}"+
"		.public_top_link_l a:hover{background:url("+imgSiteUrl+"topmenu.gif) no-repeat left -62px;color:#FFF;text-decoration:none;}"+
"		.public_top_link_l a.c1{color:#eb6100;}"+
"		.public_top_menu_l div{position:absolute;border:solid 1px #d2d2d3;text-align:left;border-top:none;top:31px;left:0;filter:alpha(opacity=95);opacity:0.95;background:#fff;}"+
"		.public_top_menu_l div a{background:#fefefd;height:25px;line-height:25px;color:#676767;text-indent:15px;padding:0;margin:0;font-weight:normal;white-space:nowrap;}"+
"		.public_top_menu_l div a:hover{background:#e5e5e5;color:#000;}"+
"		a.public_top_menu_2row{width:70px;padding-right:5px;float:left;}"+
"		.public_top_menu_l div a.public_top_menu_line{height:7px;margin:0 5px 0 5px;background:#fff url("+imgSiteUrl+"topmenu.gif) repeat-x left -43px;padding:0;clear:both;}"+
"		.public_top_menu_l div a.public_top_menu_kx{background:url("+imgSiteUrl+"kx.gif) no-repeat 160px center;}"+
"		.public_top_menu_l div a.public_top_menu_kx:hover{background:#e5e5e5 url("+imgSiteUrl+"kx.gif) no-repeat 160px center;}"+
"		</style>"
	);
	document.write(
"<div class='public_top_bg'>"+
"	<div class='public_top'>"+
"    	<ul class='public_top_menu'>"+
"        	<li class='public_top_menu_l public_top_menu_first'><a href='"+logoURL+"' title='"+logoTitle+"'>91.com游戏娱乐门户</a></li>"+
"            <li class='public_top_menu_l public_top_menu_4' onmouseover='show_public_top(this);' onmouseout='hide_public_top(this);'><a href='#'>网络游戏</a>"+
"            	<div style='width:210px;'>"+
"                    <a target='_self' href='http://my.91.com/'>魔域</a>"+
"                    <a target='_self' href='http://kx.91.com/'>开心(火爆公测中)</a>"+
"                    <a target='_self' href='http://zf.91.com/'>征服</a>"+
"                    <a target='_self' href='http://hl.91.com/'>幻灵</a>"+
"                    <a target='_self' href='http://ty.91.com/'>天元<span style='color:#e60012'>(终极内测)</span></a>"+
"                    <a target='_self' href='http://xy.91.com/'>信仰</a>"+
"                    <a target='_self' href='http://jz.91.com/'>机战</a>"+
"                    <a target='_self' href='http://tmz.91.com/'>投名状Online</a>"+
"                    <a target='_self' href='http://yx.91.com/'>英雄无敌在线<span style='color:#ff9600;'>(黄金版公测)</span></a>"+
"                    <a target='_self' href='http://dsn.91.com/'>梦幻迪士尼<span style='color:#2bb8e2;'>(开放性测试)</span></a>"+
"                </div>"+
"            </li>"+
"            <li class='public_top_menu_l public_top_menu_4' onmouseover='show_public_top(this);' onmouseout='hide_public_top(this);'><a href='#'>网页游戏</a>"+
"            	<div style='width:150px;'>"+
"                    <a target='_self' href='http://yy.91.com/'>YY仙战(公测)</a>"+
"                    <a target='_self' href='http://sg.91.com/'>策马三国(不删档封测)</a>"+
"                    <a target='_self' href='http://cs.91.com/'>王者重生(公测)</a>"+
"                    <a target='_self' href='http://jhy.91.com/'>欢乐镜花缘(公测)</a>"+
"                </div>"+
"            </li>"+
"            <li class='public_top_menu_l public_top_menu_2' onmouseover='show_public_top(this);' onmouseout='hide_public_top(this);'><a href='#'>社区</a>"+
"            	<div style='width:180px;'>"+
"                	 <a target='_self' href='http://www.91.com/'>社区主站</a>"+
"                    <a class='public_top_menu_line'></a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://news.91.com/'>资讯</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://wb.91.com/'>问吧</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://jf.91.com/'>包子铺</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://mini.91.com/'>小游戏</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://rw.91.com/'>任务门</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://tu.91.com/photo'>玩家秀</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://jzt.91.com/'>记者团</a>"+

"                    <a class='public_top_menu_2row' target='_self' href='http://v.bbs.91.com/'>玩家论坛</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://www.91.com/ynz'>译能者</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://tu.91.com/'>图片中心</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://www.91.com/hezuo/'>藏宝阁</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://tc.91.com/'>同城交友</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://down.91.com/'>下载中心</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://pz.91.com/'>评评灌灌</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://www.91.com/wap/'>WAP在线</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://tp.91.com/'>全民公投</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://wz.my.91.com/'>玩转魔域</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://wz.kx.91.com/'>玩转开心</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://wz.ty.91.com/'>玩转天元</a>"+
"                    <a class='public_top_menu_2row' target='_self' href='http://wj.yx.91.com/'>英雄学院</a>"+
"                    <a class='public_top_menu_line'></a>"+
"                    <a target='_self' href='http://www.91.com/activity/'>缤纷活动</a>"+
"                    <a target='_self' href='http://jzt.91.com/activity/jz/'>银河日志 与钢铁战友同行</a>"+
"                    <a target='_self' href='http://zw.kx.91.com/'>开心 秀出你的‘新仙事’</a>"+
"                </div>"+
"            </li>"+

"            <li class='public_top_menu_l public_top_menu_2' onmouseover='show_public_top(this);' onmouseout='hide_public_top(this);'><a href='#'>软件</a>"+
"            	<div style='width:76px;'>"+
"                    <a target='_self' href='http://rj.91.com'>软件主站</a>"+
"                    <a class='public_top_menu_line'></a>"+
"                    <a target='_self' href='http://rj.91.com/tanzi'>91坛子</a>"+
"                    <a target='_self' href='http://zx.91.com'>91装修</a>"+
"                    <a target='_self' href='http://rj.91.com/ego/'>91英语</a>"+
"                    <a target='_self' href='http://rj.91.com/note/'>91笔记</a>"+
"                    <a target='_self' href='http://rj.91.com/money/'>91理财</a>"+
"                    <a target='_self' href='http://rj.91.com/reader'>91看书</a>"+
"                    <a target='_self' href='http://rj.91.com/astro/'>91算命</a>"+
"                    <a target='_self' href='http://rj.91.com/91see'>91看图</a>"+
"                    <a target='_self' href='http://rj.91.com/91u/'>91游</a>"+
"                </div>"+
"            </li>"+
"            <li class='public_top_menu_l public_top_menu_2' onmouseover='show_public_top(this);' onmouseout='hide_public_top(this);'><a href='#'>手机</a>"+
"            	<div style='width:115px;padding-bottom:40px;background:#fff url("+imgSiteUrl+"site_logos_b.jpg) no-repeat -100px bottom;overflow:hidden;'>"+
"                    <a target='_self' href='http://sj.91.com/'>手机主站</a>"+
"                    <a class='public_top_menu_line'></a>"+
"                    <a target='_self' href='http://soft.sj.91.com/91helper/'>91手机助手</a>"+
"                    <a target='_self' href='http://soft.sj.91.com/pandareader/'>91熊猫看书</a>"+
"                    <a target='_self' href='http://iphone.sj.91.com/'>iPhone</a>"+
"                    <a target='_self' href='http://wm.sj.91.com/'>Windows Mobile</a>"+
"                    <a target='_self' href='http://symbian.sj.91.com/'>Symbian S60</a>"+
"                    <a target='_self' href='http://android.sj.91.com/'>Android</a>"+
"                    <a target='_self' href='http://sj.bbs.91.com/'>手机论坛</a>"+
"                    <a target='_self' href='http://ask.sj.91.com/'>手机学堂</a>"+
"                </div>"+
"            </li>"+
"            <li class='public_top_menu_l public_top_menu_2' onmouseover='show_public_top(this);' onmouseout='hide_public_top(this);'><a href='#'>文学</a>"+
"                <div style='width:76px;padding-bottom:40px;background:#fff url("+imgSiteUrl+"site_logos_b.jpg) no-repeat left bottom;'>"+
"                    <a target='_self' href='http://wx.91.com/'>文学主站</a>"+
"                    <a class='public_top_menu_line'></a>"+
"                    <a target='_self' href='http://zx.wx.91.com/'>资讯看台</a>"+
"                    <a target='_self' href='http://cy.wx.91.com'>时空门</a>"+
"                    <a target='_self' href='http://yy.wx.91.com'>歪歪派</a>"+
"                    <a target='_self' href='http://ly.wx.91.com'>惊魂岛</a>"+
"                    <a target='_self' href='http://bl.wx.91.com'>背背山</a>"+
"                    <a target='_self' href='http://hw.wx.91.com/'>玄武纪</a>"+
"                    <a target='_self' href='http://hx.wx.91.com/'>火星流</a>"+
"                    <a target='_self' href='http://da.wx.91.com/'>求知堂</a>"+
"                    <a target='_self' href='http://jy.wx.91.com/'>比文招亲</a>"+
"                </div>"+
"            </li>"+
"            <li class='public_top_menu_l public_top_menu_last'></li>"+
"        </ul>"+
"        <ul class='public_top_link'>"+
"            <li class='public_top_link_l'><a target='_self' href='http://www.91.com/'>首页</a></li>"+
"            <li class='public_top_link_l'><a class='c1' target='_blank' href='https://shop.91.com/'>充值</a></li>"+
"            <li class='public_top_link_l'><a target='_self' href='http://gm.91.com/'>客服</a></li>"+
"            <li class='public_top_link_l'><a target='_self' href='http://my.reg.91.com/'>我的91</a></li>"+
"          <li class='public_top_link_l'><a target='_self' href='https://reg.91.com/NDUser_Register.aspx'>注册</a></li>"+
"        </ul>"+
"    </div>"+
"</div>"
	);
}
//topMenu--end--############################################
//添加收藏
function myAddPanel(homeName, homePage){
	if((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))//Gecko
		window.sidebar.addPanel(homeName,homePage,"");
	else//IE
		window.external.AddFavorite(homePage,homeName);


}


//BUG收集
function win_open_bug(errType,width,height,siteUrl){
	var err = null;
	var url = (siteUrl != "" && siteUrl != null) ? encodeURIComponent(siteUrl) : encodeURIComponent(document.location.toString());
	try{errType = (errType != null) ? parseInt(errType) : 1;}catch(err){errType = 1;}
	try{width = (width != null) ? parseInt(width) : 500;}catch(err){width = 500;}
	try{height = (height != null) ? parseInt(height) : 720;}catch(err){height = 720;}
	window.open("http://news.91.com/include/bug.shtml?errNum=" + errType.toString() + "&errUrl=" + url,"errPage","fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + width.toString() + ",height=" + height.toString());
}

//处理PNG
var arVersion = navigator.appVersion.split("MSIE");
var version = parseFloat(arVersion[1]);
function transPNGPic(myImage)
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
    var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
    var imgTitle = (myImage.title) ? 
               "title='" + myImage.title   + "' " : "title='" + myImage.alt + "' "
    var imgStyle = "display:inline-block;" + myImage.style.cssText
    var strNewHTML = "<span " + imgID + imgClass + imgTitle
                   + " style=\"" + "cursor:hand;width:" + myImage.width 
                   + "px; height:" + myImage.height 
                   + "px;" + imgStyle + ";"
                   + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                   + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
     myImage.outerHTML = strNewHTML    
    }
}


//站点枚举
var site = {
	www:0,
	news:1,
	vip:2,
	wb:3,
	pz:4,
	down:5,
	bbs:6,
	sms:7,
	wx:8,
	tp:9,
	tu:10,
	tmz:11,
	xy:12,
	hl:13,
	ty:14,
	kx:15,
	zf:16,
	jz:17,
	my:18,
	ty:19,
	sg:20,
	cs:21,
	yy:22,
	jf:23,
	tc:24,
	mini:25,
	jzt:26,
	yx:27,
	jhy:28,
	dou:29,
	cj7:30,
	xxg:31
};

//统一底部
function publicBottom(siteType,tbWidth,target,logoType){
	/* 参数说明
	logoType：网龙LOGO的样式，0为黑色，1为白色
	*/
	
	var bmContext = null;
	target = (target == "_blank" || target == "_self" || target == "_top" || target == "_parent") ? target : "_blank";
	logoType = (logoType == 0 || logoType == 1) ? logoType : 0;
	
	/* 统一参数 */
	var about91 = "<a target=\"" + target + "\" href=\"http://www.91.com/about/\">关于91.COM</a>";
	var us91 = "<a target=\"" + target + "\" href=\"http://us.91.com/\">91 US</a>";



	var eu91 = "<a target=\"" + target + "\" href=\"http://eu.91.com/\">91 EU</a>";
	var contact = "<a target=\"" + target + "\" href=\"http://www.91.com/about/contact.shtml\">联系我们</a>";
	var invite = "<a target=\"" + target + "\" href=\"http://hr.nd.com.cn/\">高薪诚聘</a>";
	var reg = "<a target=\"" + target + "\" href=\"https://reg.91.com/\">会员注册</a>";
	var question = "<a target=\"" + target + "\" href=\"http://www.91.com/about/sitemap.shtml\">站点地图</a>";
	var service = "<a target=\"" + target + "\" href=\"http://gm.91.com/\">客户服务</a>";
	var business = "<a target=\"" + target + "\" href=\"http://www.91.com/about/business.shtml\">商务合作</a>";
	var report = "<a target=\"" + target + "\" href=\"http://icac.91.com/\">举报</a>";
	
	var copyright = "Copyright 1999-2009 &copy; <a target=\"" + target + "\" href=\"http://www.91.com/\">91.com</a> All rights reserved.";
	var copyright2 = " 2000-2009 &copy; <a target=\"" + target + "\" href=\"http://www.91.com/\">91.com</a> All rights reserved."

	var increment = "<a target=\"" + target + "\" href=\"http://www.91.com/about/licence.shtml\">增值电信业务经营许可证B2-20050038号</a>"
	var netArticle = "<a target=\"" + target + "\" href=\"http://www.91.com/about/telecom.shtml\">文网文『2008』070号</a>";
	var phone = "客服电话：0591-87085777"
	var vip = "重要客户呼叫中心号码：0591-88085999";
	var mail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:tqmy@tqdigital.com\">tqmy@tqdigital.com</a>"
	
	/* 各官网额外参数 */
	var top = "<a href=\"" + window.location.href + "#Top\" target=\"_self\">Top</a>";

	var tmzphone = "客服电话：0591-87085777"
    var tmzeu = "<a target=\"" + target + "\" href=\"http://wl.91.com/\">投名状Online English</a>";
	var tmzmail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:tmzgm@tqdigital.com\">tmzgm@tqdigital.com</a>"
	var tmz = "《<a target=\"" + target + "\" href=\"http://tmz.91.com/\">投名状Online</a>》中国官方站"
	
	var kxphone = "客服电话：0591-87085708";
	var kxeu = "<a target=\"" + target + "\" href=\"http://wotf.91.com/\">开心 English</a>";
	var kxvip = "VIP客户电话：0591-88085999-2";
	var kxmail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:kxgm@tqdigital.com\">kxgm@tqdigital.com</a>";
	var kx = "《<a target=\"" + target + "\" href=\"http://kx.91.com/\">开心</a>》中国官方站"
	
	var hleu = "<a target=\"" + target + "\" href=\"http://www.monsterandme.com/\">幻灵游侠 English</a>";
	var hlphone = "客服电话：0591-87085777";
	var hlmail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:service@tqdigital.com\">service@tqdigital.com</a>";
	var hl = "《<a target=\"" + target + "\" href=\"http://hl.91.com/\">幻灵</a>》中国官方站";
	
	var zfeu = "<a target=\"" + target + "\" href=\"http://co.91.com/\">征服English</a>";
	var zfphone = "客服电话：0591-87085777";
	var zfmail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:service@tqzf.com\">service@tqzf.com</a>";
	var zf = "《<a target=\"" + target + "\" href=\"http://zf.91.com/\">征服</a>》中国官方站";
	
	var jzeu = "<a target=\"" + target + "\" href=\"http://zo.91.com/\">机战English</a>";
	var jzphone = "客服电话：0591-87085777";
	var jzmail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:jzgm@tqdigital.com\">jzgm@tqdigital.com</a>";
	var jz = "《<a target=\"" + target + "\" href=\"http://jz.91.com/\">机战</a>》中国官方站";
	
	var myeu = "<a target=\"" + target + "\" href=\"http://eo.91.com/\">魔域English</a>";
	var myphone = "客服电话：0591-87085777";
	var mymail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:tqmy@tqdigital.com\">tqmy@tqdigital.com</a>";
	var my = "《<a target=\"" + target + "\" href=\"http://my.91.com/\">魔域</a>》中国官方站";
	
	var xyphone = "客服电话：0591-87085777";
	var xymail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:xy@tqdigital.com\">xy@tqdigital.com</a>";
	var xy = "《<a target=\"" + target + "\" href=\"http://xy.91.com/\">信仰</a>》中国官方站";
	
	var typhone = "客服电话：0591-87085777";
	var tymail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:tygm@tqdigital.com\">tygm@tqdigital.com</a>";
	var ty = "《<a target=\"" + target + "\" href=\"http://ty.91.com/\">天元</a>》中国官方站";
	
	var douphone = "客服电话：0591-87085757";
	var doumail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:91dou@tqdigital.com\">91dou@tqdigital.com</a>";
	var dou = "《<a target=\"" + target + "\" href=\"http://dou.91.com/\">91斗斗</a>》中国官方站";
	
	var cj7phone = "客服电话：0591-87085708";
	var cj7mail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:cj7gm@tqdigital.com\">cj7gm@tqdigital.com</a>";
	var cj7 = "《<a target=\"" + target + "\" href=\"http://cj7.91.com/\">长江七号</a>》中国官方站";
	
    var yyphone = "客服电话：0591-87085766";
	var yymail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:yy@tqdigital.com\">yy@tqdigital.com</a>";
	var yy = "《<a target=\"" + target + "\" href=\"http://yy.91.com/\">YY仙战</a>》中国官方站";
	
	var csphone = "客服电话：0591-87085766";
	var csmail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:csgm@tqdigital.com\">csgm@tqdigital.com</a>";

	var cs = "《<a target=\"" + target + "\" href=\"http://cs.91.com/\">王者重生</a>》中国官方站";
	
	var sgphone = "客服电话：0591-87085766";
	var sgmail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:sggm@tqdigital.com\">sggm@tqdigital.com</a>";
	var sg = "《<a target=\"" + target + "\" href=\"http://sg.91.com/\">策马三国</a>》中国官方站";
	
	var jhyphone = "客服电话：0591-87085766";
	var jhymail = "客服邮箱：<a target=\"" + target + "\" href=\"jhygm@tqdigital.com\">jhygm@tqdigital.com</a>";
	var jhy = "《<a target=\"" + target + "\" href=\"http://jhy.91.com/\">欢乐镜花缘</a>》中国官方站";
	
	var xxgphone = "客服电话：0591-87085708-7";
	var xxgmail = "客服邮箱：<a target=\"" + target + "\" href=\"xxggm@tqdigital.com\">xxggm@tqdigital.com</a>";
	var xxg = "《<a target=\"" + target + "\" href=\"http://xxg.91.com/\">吸血鬼来了</a>》中国官方站";
	
	var yxphone = "客服电话：0591-87085708";
	var yxmail = "客服邮箱：<a target=\"" + target + "\" href=\"mailto:yxgm@tqdigital.com\">yxgm@tqdigital.com</a>";
	var yx = "《<a target=\"" + target + "\" href=\"http://yx.91.com/\">英雄无敌在线</a>》中国官方站";
	var yxubi = "TQdigital All rights reserved.(&copy;) 2007 Ubisoft Entertainment & NetDragons Websoft Inc. All Rights Reserved. <br/>Heroes of Might & Magic is a registered trademark of Ubisoft Entertainment in the US and/or other countries."
	var tqlogo = logoType==1?"http://image.91.com/yx/common/200906/tqlogo_b.png":"http://image.91.com/yx/common/200906/tqlogo_w.png";
	var ubilogo = logoType==1?"http://image.91.com/yx/common/200906/ubilogo_b.png":"http://image.91.com/yx/common/200906/ubilogo_w.png";

	var _s_="┊";
	
	/*如果为英雄无敌online*/
	if(siteType==site.yx){
		document.writeln("<table width=\"" + tbWidth + "\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" id=\"public_bottom_table\" class=\"public_bm_table\"><tr class=\"public_bm_tr\">"+	
		"<td class=\"public_bm_td1\"><a target=\"" + target + "\" href=\"http:\/\/www.tqdigital.com/\"><img height=\"45\" width=\"170\" border=\"0\" onload=\"transPNGPic(this)\" title=\"天晴数码娱乐\" alt=\"天晴数码娱乐\" src=\"" + tqlogo +"\"/></a></td><td class=\"public_bm_td2\"><a target=\"" + target + "\" href=\"http://www.ubisoft.com.cn\"><img height=\"50\" width=\"158\" border=\"0\" onload=\"transPNGPic(this)\" title=\"上海育碧电脑软件有限公司\" alt=\"上海育碧电脑软件有限公司\" src=\"" + ubilogo + "\"/></a></td><td align=\"center\" class=\"public_bm_td3\"><a target=\"" + target + "\" href=\"http:\/\/www.miibeian.gov.cn\/\" target=\"_blank\"><img src=\"http:\/\/image.91.com\/yx\/common\/200906\/icp1.png\" alt=\"闽ICP证B2-20050038\" border=\"0\" title=\"闽ICP证B2-20050038\" onload=\"transPNGPic(this);\" \/><\/a><br \/>闽ICP<a target=\"" + target + "\" href=\"http:\/\/www.miibeian.gov.cn\/\" target=\"_blank\">B2-20050038<\/a><\/td><td width=\"65\" align=\"center\" class=\"public_bm_td4\"><a target=\"" + target + "\" href=\"http:\/\/www.fuzhou.cyberpolice.cn\/\" target=\"_blank\"><img src=\"http:\/\/image.91.com\/yx\/common\/200906\/netpolice1.png\" alt=\"报警岗亭\" title=\"报警岗亭\" border=\"0\" onload=\"transPNGPic(this);\" \/><\/a><br \/><a target=\"" + target + "\" href=\"http:\/\/www.fuzhou.cyberpolice.cn\/\" target=\"_blank\">报警岗亭<\/a><\/td>"+
		"<\/tr><tr>"+		
		"<td colspan=\"4\" align=\"center\" class=\"public_bm_td2\" id=\"public_bottom_context\"><\/td>"+
		"<\/tr><\/table>");
		var bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+yxmail+_s_+yxphone+_s_+increment+_s_+netArticle+"<br\/>"+yx+_s_+copyright2+"<br\/>"+yxubi;
		document.getElementById("public_bottom_context").innerHTML = bmContext;
		return;
		}

	document.writeln("<table width=\"" + tbWidth + "\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" id=\"public_bottom_table\" class=\"public_bm_table\"><tr class=\"public_bm_tr\">"+
	"<td align=\"center\" class=\"public_bm_td2\" id=\"public_bottom_context\"> <\/td>"+
	"<td width=\"98\" align=\"center\" class=\"public_bm_td3\"><a target=\"" + target + "\" href=\"http:\/\/www.miibeian.gov.cn\/\" target=\"_blank\"><img src=\"http:\/\/image.91.com\/news91\/images\/bottom\/icp1.png\" alt=\"闽ICP证B2-20050038\" border=\"0\" title=\"闽ICP证B2-20050038\" onload=\"transPNGPic(this);\" \/><\/a><br \/>闽ICP证<br \/><a target=\"" + target + "\" href=\"http:\/\/www.miibeian.gov.cn\/\" target=\"_blank\">B2-20050038<\/a><\/td>"+
	"<td width=\"65\" align=\"center\" class=\"public_bm_td4\"><a target=\"" + target + "\" href=\"http:\/\/www.fuzhou.cyberpolice.cn\/\" target=\"_blank\"><img src=\"http:\/\/image.91.com\/news91\/images\/bottom\/netpolice1.png\" alt=\"报警岗亭\" title=\"报警岗亭\" border=\"0\" onload=\"transPNGPic(this);\" \/><\/a><br \/><a target=\"" + target + "\" href=\"http:\/\/www.fuzhou.cyberpolice.cn\/\" target=\"_blank\">报警岗亭<\/a><\/td>"+
	"<\/tr><\/table>");
	//参数组合
	var bmContext;
	switch(siteType){
		case site.bbs: 
			bmContext = about91+_s_+us91+_s_+eu91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			copyright+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.sms: 
			bmContext = about91+_s_+us91+_s_+eu91+_s_+contact+_s_+invite+_s_+question+_s_+business+"<br\/>"+
			phone+_s_+mail+"<br\/>"+
			increment+_s_+netArticle+"<br\/>"+
			copyright;
			break;
		
		case site.tmz: 
			bmContext = about91+_s_+tmzeu+_s_+contact+_s_+invite+_s_+business+_s_+report+"<br\/>"+
			tmzphone+_s_+tmzmail+"<br\/>"+
			tmz+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.hl: 
			bmContext = about91+_s_+hleu+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			hlphone+_s_+hlmail+"<br\/>"+
			hl+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.kx: 
			bmContext = about91+_s_+kxeu+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			kxphone+_s_+kxvip+_s_+kxmail+"<br\/>"+
			kx+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.zf: 
			bmContext = about91+_s_+zfeu+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			zfphone+_s_+zfmail+"<br\/>"+
			zf+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.jz: 
			bmContext = about91+_s_+jzeu+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			jzphone+_s_+vip+_s_+jzmail+"<br\/>"+
			increment+_s_+netArticle+"<br\/>"+
			jz+_s_+copyright2;
			break;
		case site.my: 
			bmContext = about91+_s_+myeu+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			myphone+_s_+vip+_s_+mymail+"<br\/>"+
			my+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.xy: 
			bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			xyphone+_s_+xymail+"<br\/>"+
			xy+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.ty: 
			bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			typhone+_s_+tymail+"<br\/>"+
			ty+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
        case site.yy: 
			bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			yyphone+_s_+yymail+"<br\/>"+
			yy+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
	    case site.cs: 
			bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			csphone+_s_+csmail+"<br\/>"+
			cs+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.sg: 
			bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			sgphone+_s_+sgmail+"<br\/>"+
			sg+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.jhy: 
			bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			jhyphone+_s_+jhymail+"<br\/>"+
			jhy+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.dou: 
			bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			douphone+_s_+doumail+"<br\/>"+
			dou+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.cj7: 
			bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			cj7phone+_s_+cj7mail+"<br\/>"+
			cj7+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		case site.xxg: 
			bmContext = about91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			xxgphone+_s_+xxgmail+"<br\/>"+
			xxg+_s_+copyright2+"<br\/>"+
			increment+_s_+netArticle;
			break;
		default:
			bmContext = about91+_s_+us91+_s_+eu91+_s_+contact+_s_+invite+_s_+question+_s_+business+_s_+report+"<br\/>"+
			copyright+"<br\/>"+
			increment+_s_+netArticle;
			break;
	}
	document.getElementById("public_bottom_context").innerHTML = bmContext;
}


//判断是否为空对象或空值字符串
function isEmptyStr(str){
	return (str == null) ? true : (str == "") ? true : false;
}