if(typeof(CC_DOMAIN)=='undefined'){
	var CC_DOMAIN = 'meet8.com';
}
document.write('<scr'+'ipt src="http://www.' + CC_DOMAIN + '/js/cc/cc_ctt.js"></scr'+'ipt>');
document.write('<iframe src="" id="ctalk" width=0 height=0></iframe>');	//CC聊天使用

document.write('<scr'+'ipt src="http://www.' + CC_DOMAIN + '/tomjoe/roll.js"></scr'+'ipt>');	//滚动信息

    //菜单配置-----------------------
    var nCurSubMenu = null;
    var aMenuCnf = new Array();
    aMenuCnf[0] = new Array('my缘','http://www.' + CC_DOMAIN + '/member/mycc.html'+'" title="my meet8');
    aMenuCnf[1] = new Array('博客','http://blog.' + CC_DOMAIN + '/new/index.html'+'" title="blog','博客','http://blog.' + CC_DOMAIN + '/new/index.html', 'en blog', 'http://blog.' + CC_DOMAIN + '/english/index.html', '情系地震', 'http://blog.' + CC_DOMAIN + '/seism/index.html','华侨博客','http://blog.' + CC_DOMAIN + '/overseas/index.html');
	aMenuCnf[2] = new Array('视频','http://pod.' + CC_DOMAIN + '/index.html'+'" title="videos', '视频','http://pod.' + CC_DOMAIN + '/index.html','视频接龙','http://pod.' + CC_DOMAIN + '/gest/index.html', '音乐视频', 'http://pod.' + CC_DOMAIN + '/mp3/index.html','国际视频', 'http://pod.' + CC_DOMAIN + '/en/index.html', '华侨视频','http://pod.' + CC_DOMAIN + '/overseas/index.html');
    aMenuCnf[3] = new Array('相册','http://photo.' + CC_DOMAIN+'" title="photos','相册','http://photo.' + CC_DOMAIN,'华侨相册','http://photo.' + CC_DOMAIN+'/overseas/index.html');
    aMenuCnf[4] = new Array('圈子','http://club.' + CC_DOMAIN + '/php/club/index.php'+'" title="clubs','圈子','http://club.' + CC_DOMAIN + '/php/club/index.php','华侨圈子','http://club.' + CC_DOMAIN + '/cate/all/overseas.html');
    aMenuCnf[5] = new Array('让Ta的电话铃铃铃','http://call.' + CC_DOMAIN + '/html/index.html'+'" title="ring a stranger\'s mobile"');
    aMenuCnf[6] = new Array('免费的全球电话','http://call.' + CC_DOMAIN + '/php/call/ltnc.php'+'" title="ring a friend\'s mobile','免费的全球电话','http://call.' + CC_DOMAIN + '/php/call/ltnc.php'+'" title="ring a friend\'s mobile','祝福语音','http://call.' + CC_DOMAIN + '/php/call/call_bless.php'+'" title="bless','约会','http://event.' + CC_DOMAIN + '/php/event/index.php','游戏','http://vip.' + CC_DOMAIN + '/new/index.html','下注','http://pod.' + CC_DOMAIN + '/php/video/chip.php','赌友','http://www.' + CC_DOMAIN + '/php/game/game_index.php','本周赢家','http://www.' + CC_DOMAIN + '/tomjoe/extend.html','抽奖赢家','http://pod.' + CC_DOMAIN + '/php/video/lottery_winner.php');
    aMenuCnf[7] = new Array('搜索','http://search.' + CC_DOMAIN + '/php/member/search_index.php'+'" title="search', '搜索','http://search.' + CC_DOMAIN + '/php/member/search_index.php', '邻居','http://search.' + CC_DOMAIN + '/php/member/search_tag.php');
    //aMenuCnf[8] = new Array('当股东','http://vip.' + CC_DOMAIN + '/vip/vip_how_to_get_stock.php'+'" title="be an owner','网站排名','http://vip.' + CC_DOMAIN + '/vip/vip_life365_chart.html','获取股票','http://vip.' + CC_DOMAIN + '/vip/vip_how_to_get_stock.php','股东名单','http://vip.' + CC_DOMAIN + '/php/vip/vip_hundred_new.php','股东感言','http://vip.' + CC_DOMAIN + '/blog/index.html','视频感言','http://vip.' + CC_DOMAIN + '/video/index.html','法律文书','http://vip.' + CC_DOMAIN + '/vip/vip_hundred_manual.html','C币周排行','http://vip.' + CC_DOMAIN + '/vip/vip_coin_chart.html');
    //aMenuCnf[9] = new Array('上市','http://bank.' + CC_DOMAIN + '/vip1.html'+'" title="ipo together');
    //aMenuCnf[9] = new Array('送股','http://www.' + CC_DOMAIN + '/invite/index.html'+'" title="invite', '送股','http://www.' + CC_DOMAIN + '/invite/index.html', '匿名送股','http://www.' + CC_DOMAIN + '/invite/anoymous_invite.html');

    sNeedLoginMenu = ",0,9,10,";
    //end------------------------------

    var str_stock_plan = '';

	var nMoveNewSubMenu = -1;
    var nHandelMenuOk = -1;
    var nHandelMenuFlag = -1;

    function getStyleString(){
        var str = '<style type="text/css">body {	font-size: 12px;	color: #000000;	line-height: 20px;}a {	font-size: 12px;	color: #000000;	text-decoration: none;}a:link {	COLOR: #000000; TEXT-DECORATION: none}a:active {	COLOR: #000000; TEXT-DECORATION: none}a:visited {	COLOR: #000000; TEXT-DECORATION: none}a:hover {	COLOR: #0099CC; TEXT-DECORATION: underline}.a2 {	font-size: 12px;	color: #0099CC;	text-decoration: none;	font-family: "Verdana";	line-height: 22px;}.a2:link {	COLOR: #0099CC; TEXT-DECORATION: none}.a2:active {	COLOR: #0099CC; TEXT-DECORATION: none}.a2:visited {	COLOR: #0099CC; TEXT-DECORATION: none}.a2:hover {	COLOR: #3366cc; TEXT-DECORATION: underline}.a3 {	font-family: "??";	font-size: 16px;	color: #000000;	text-decoration: none;	font-weight: bold;}.a3:link {	COLOR: #000000;	TEXT-DECORATION: none;	font-size: 16px;}.a3:active {	COLOR: #999999;	TEXT-DECORATION: none;	font-size: 16px;}.a3:visited {	COLOR: #000000;	TEXT-DECORATION: none;	font-size: 16px;}.a3:hover {	COLOR: #999999;	TEXT-DECORATION: none;	font-size: 16px;}.a4 {	font-family: Verdana, "??";	font-size: 15px;	color: #FFFFFF;	text-decoration: none;	line-height: 25px;}.a4:link {	COLOR: #FFFFFF; TEXT-DECORATION: none}.a4:active {	COLOR: #FFFFFF; TEXT-DECORATION: none}.a4:visited {	COLOR: #FFFFFF; TEXT-DECORATION: none}.a4:hover {	COLOR: #EAEAEA; TEXT-DECORATION: none}.white {	font-size: 12px;	color: #FFFFFF;	line-height: 20px;}.white:link {	COLOR: #999999; TEXT-DECORATION: none}.white:active {	COLOR: #999999; TEXT-DECORATION: none}.white:visited {	COLOR: #1f3174; TEXT-DECORATION: none}.white:hover {	COLOR: #0099CC; TEXT-DECORATION: underline}.a5 {	font-size: 12px;	color: #FFFFFF;	text-decoration: none;}.a5:link {	COLOR: #FFFFFF; TEXT-DECORATION: none}.a5:active {	COLOR: #EAEAEA; TEXT-DECORATION: none}.a5:visited {	COLOR: #FFFFFF; TEXT-DECORATION: none}.a5:hover {	COLOR: #FFFFFF; TEXT-DECORATION: underline}.a6 {	font-size: 12px;	color: #FFFFFF;	text-decoration: none;	font-family: "Verdana";	line-height: 18px;}.a6:link {	COLOR: #000000; TEXT-DECORATION: none}.a6:active {	COLOR: #FFFFFF; TEXT-DECORATION: none}.a6:visited {	COLOR: #000000; TEXT-DECORATION: none}.a6:hover {	COLOR: #000000; TEXT-DECORATION: underline}.a7 {	font-size: 12px;	color: #FFFFFF;	text-decoration: none;	font-family: "Verdana";	line-height: 18px;}.a7:link {	COLOR: #0066FF; TEXT-DECORATION: underline}.a7:active {	COLOR: red; TEXT-DECORATION: underline}.a7:visited {	COLOR: #0066FF; TEXT-DECORATION: underline}.a7:hover {	COLOR: red; TEXT-DECORATION: underline}.a8 {	font-size: 12px;	line-height: 18px;	font-weight: bold;	color: #177B2F;}.a8:link {	COLOR: #177B2F; TEXT-DECORATION:}.a8:active {	COLOR: #177B2F; TEXT-DECORATION:}.a8:visited {	COLOR: #177B2F; TEXT-DECORATION:}.a8:hover {	COLOR: #177B2F; TEXT-DECORATION:}.text-form1 {	font-family: "Verdana";	font-size: 12px;	color: #000000;	text-decoration: none;	border: 1px double #737371;	height: 16px;	line-height: 15px;}.text-form2 {	font-family: "Verdana";	font-size: 12px;	color: #000000;	text-decoration: none;	border: none;	height: 16px;}.text {	font-size: 12px;	color: #000000;	text-decoration: none;	font-family: "Verdana";	line-height: 18px;}.text:link {	COLOR: #000000; TEXT-DECORATION: none}.text:active {	COLOR: #000000; TEXT-DECORATION: none}.text:visited {	COLOR: #000000; TEXT-DECORATION: none}.text:hover {	COLOR: #0099CC; TEXT-DECORATION: underline}.text-red {	font-size: 12px;	color: #FF0000;	text-decoration: none;	font-family: "Verdana";}.text-search {	font-family: "Verdana";	font-size: 12px;	color: #000000;	text-decoration: none;	border: 1px double #737371;	height: 16px;	line-height: 15px;}.text-form3 {	font-family: "Verdana";	font-size: 12px;	color: #000000;	text-decoration: none;	border: 1px double #737371;	line-height: 15px;}.smalltext {	font-size: 10px;	color: #000000;	text-decoration: none;}.black {	font-family: Arial, Helvetica, sans-serif;	font-size: 14px;	font-weight: bold;	color: #000000;}.green {	font-size: 16px;	font-weight: bold;	color: #333333;	font-family: "黑体";}.brown {	font-size: 12px;	color: #996600;}.grey {	font-size: 12px;	color: #666666;	line-height: 18px;}.agrey2 {	font-size: 12px;	line-height: 18px;	color: #333333;	text-decoration: none;}.agrey2:link {	COLOR: #333333; TEXT-DECORATION: none}.agrey2:active {	COLOR: #333333; TEXT-DECORATION: none}.agrey2:visited {	COLOR: #333333; text-decoration: underline}.agrey2:hover {	COLOR: #333333; TEXT-DECORATION: none}.orange {	font-size: 12px;	color: #FF9900;}.pink {	font-size: 12px;	color: #D84767;}.grey2 {	font-size: 12px;	color: #333333;	line-height: 18px;}.table-dash {	font-size: 12px;	line-height: 20px;	color: #333333;	border: 1px dotted #666666;}.rosered {	font-size: 12px;	color: #F20AE5;	line-height: 20px;}.darkblue {	font-size: 12px;	color: #333366;}.bigdarkblue {	font-size: 18px;	font-weight: bold;	color: #333366;}.brown2 {	font-size: 12px;	line-height: 20px;	color: #993232;	text-decoration: none;}.bigbrown {	font-size: 16px;	line-height: 22px;	color: #993232;	font-weight: bold;}.biggrey {	font-family: "黑体";	font-size: 16px;	line-height: 22px;	color: #3A3939;	font-weight: normal;}.bigblue {	font-family: "黑体";	font-size: 16px;	line-height: 22px;	color: #0099CC;}.bigorange {	font-family: "黑体";	font-size: 16px;	line-height: 22px;	color: #F7941C;}.orange2 {	font-size: 12px;	line-height: 20px;	color: #FFA209;}.bar1 {	font-size: 12px;	line-height: 18px;	font-weight: bold;	color: #0090B0;}.bar2 {	font-size: 12px;	line-height: 18px;	font-weight: bold;	color: #177B2F;}.bar3 {	font-size: 12px;	line-height: 18px;	font-weight: bold;	color: #9D41B2;}.bar4 {	font-size: 12px;	line-height: 18px;	font-weight: bolder;	color: #FF7800;}.bar5 {	font-size: 12px;	line-height: 18px;	font-weight: bold;	color: #EC008C;}.bar6 {	font-size: 12px;	line-height: 18px;	font-weight: bold;	color: #825800;}.a6 {	font-size: 12px;	line-height: 20px;	color: #000000;	text-decoration: underline;}.bigbrouw {	font-size: 14px;	font-weight: bold;	color: #754D0F;	letter-spacing: 1px;}.agrey333{	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	color: #333333;	text-decoration: none;	letter-spacing: 2px;}.agrey333:link {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	color: #333333;	text-decoration: none;	letter-spacing: 3px;}.agrey333:active {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	color: #333333;	text-decoration: none;	letter-spacing: 3px;}.agrey333:visited {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	color: #333333;	text-decoration: none;	letter-spacing: 3px;}.agrey333:hover {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	color: #FF432F;	text-decoration: none;	letter-spacing: 3px;} .amabot_table{  font-size: 12px; padding-top: 8px;  padding-bottom: 8px;  padding-left: 8px;  padding-right: 8px; border-bottom: 1px solid #999999;   border-left: 1px solid #999999;  border-right: 1px solid #999999;  border-top: 1px solid #999999; }.hr-center { margin: 15px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: #999999; border-right-color: #999999; border-bottom-color: #999999; border-left-color: #999999; }.a_menu {	font-size: 12px;	color: #FFFFFF;	text-decoration: none;	line-height: 16px;}.a_menu:link {	COLOR: #FFFFFF; TEXT-DECORATION: none}.a_menu:active {	COLOR: #EAEAEA; TEXT-DECORATION: none}.a_menu:visited {	COLOR: #FFFFFF; TEXT-DECORATION: none}.a_white {	font-size: 12px;	color: #FFFFFF;	text-decoration: none;	font-weight: bold;}.a_white:link {	COLOR: #FFFFFF; TEXT-DECORATION: none; font-weight: bold;}.a_white:visited {	COLOR: #FFFFFF; TEXT-DECORATION: none; font-weight: bold;}.a_white:hover {	COLOR: #FFFFFF; TEXT-DECORATION: none;background-color: transparent; font-weight: bold;}.a_white:active {	COLOR: #FFFFFF; TEXT-DECORATION: none; font-weight: bold;}.textwhite {	font-size: 10px;	color: #FFFFFF;}#scaleDiv{position:absolute;visibility:hidden;height:100%;}.bottomDiv{ /*Code for Moz, Opera, etc.*/right:0px;height:173px;width:224px;position:fixed;bottom:-173px;display: block;}#bottomDiv{ /*Code for Moz, Opera, etc.*/right:0px;height:173px;width:224px;position:fixed;bottom:-173px;display: block;}</style> \n<!--[if IE]><style type="text/css"> /*IE-specific markup*/.bottomDiv{display: none;position:absolute;}#bottomDiv{display: none;position:absolute;}</style><![endif]-->';
        return str;
    }

    function getLoginLinkNew() {
        var bLogined = isLogin();
        var sLoginLink = '';
        if (bLogined) {
            sLoginLink = '<a href="#" onclick="execLogout(); return false;" class="a_white">退出</a>';
        } else {
            sLoginLink = '<a href="http://www.' + CC_DOMAIN + '/member/login.html" class="a_white">登录</a>';
        }
        return sLoginLink;
    }

	function topLogin(ob){
		if (ob.LoginName.value == '' || ob.LoginName.value == '输入登录ID'){
			ob.LoginName.value = '';
			alert('用户名和密码不能为空');
			ob.LoginName.focus();
			return false;
		}
		if (ob.LoginPwd.value == '') {
			alert('用户名和密码不能为空');
			ob.LoginPwd.focus();
			return false;
		}
		return true;
	}

	function getLoginLinkNew2() {
        var bLogined = isLogin();
        var sLoginLink = '';
        if (bLogined) {
            sLoginLink = '<a href="http://www.'+CC_DOMAIN+'/invite/index.html"><span class="cher_ziti11">让全球华人团结起来 unify a people</span></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="#" onclick="window.open(\'http://talk.' + CC_DOMAIN + '/im2/WebIMClient.html\', \'webimonline\', \'height=740, width=880, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no\')"><span class="cher_ziti11"><img src="http://img.'+CC_DOMAIN+'/cc/im/online.gif" border="0" title="instant messanger" style="vertical-align:middle" />在线交谈</span></A> | <a href="http://www.' + CC_DOMAIN + '/php/member/upgrade.php"><span class="cher_ziti11"><img src="http://img.' + CC_DOMAIN + '/lifebook/default/star.gif" border="0" title="improve trust" />提高信用度</span></a> | <a href="http://bank.' + CC_DOMAIN + '/vip1.html"><span class="cher_ziti11" title="ipo together">上市</span></a> | <a href="http://vip.' + CC_DOMAIN + '/vip/vip_how_to_get_stock.php"><span class="cher_ziti11" title="be an owner">当股东</span></a> | <a href="http://vip.' + CC_DOMAIN + '/vip/vip_how_to_get_stock.php"><span class="cher_ziti11" title="invite">送股</span></a> | <a href="http://www.' + CC_DOMAIN + '/help/onlinehelp.html"><span class="cher_ziti11" title="help">客服帮助</span></a> |  <a href="#" onclick="execLogout(); return false;"><span class="cher_ziti11" title="exit">退出</span></a>';
        } else {
            sLoginLink = '<input type="text" name="LoginName" id="LoginName" style="WIDTH: 80px;font-family:Arial;color:#999999" tabindex="1" onblur="this.value=AllTrim(this.value);this.style.backgroundColor=\'#FDF9F2\'" value="输入登录ID" onfocus="if (this.value == \'输入登录ID\'){this.value = \'\';}this.style.color =\'#000000\';this.style.backgroundColor=\'#F7F0E6\';";> <input type="password" name="LoginPwd" id="LoginPwd" style="WIDTH: 100px;font-family:Verdana, Arial, Helvetica, sans-serif;" tabindex="1" onfocus="this.style.backgroundColor=\'#F7F0E6\';" onblur="this.value=AllTrim(this.value);this.style.backgroundColor=\'#FDF9F2\'"> <input name="image" type="image" src="http://img.' + CC_DOMAIN + '/indexmain/loginbtn.gif" width="58" height="18" style="vertical-align:middle;margin-bottom:2px;"/> <input name="AutoLogin" type="checkbox" class="" value="1" style="border:0px;vertical-align:middle;" checked/><span style="color: #996600;">记住我</span> &nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.' + CC_DOMAIN + '/member/regist_new.html"><span class="cher_ziti11">快速注册</span></a> | <a href="http://www.' + CC_DOMAIN + '/php/member/pwd_find.php" style="color:#258FB8;">找回密码</a> | <a href="http://www.' + CC_DOMAIN + '/help/onlinehelp.html"><span class="cher_ziti11" title="help">客服帮助</span></a>';
        }
        return sLoginLink;
    }

    function getMyccHtml() {
        var sRtn = '';
        if (isLogin()) {
			sRtn = '<a href="http://www.' + CC_DOMAIN + '/member/mycc.html" class="a_white">my缘</a> | ';
		}
        return sRtn;
    }

    //输出左右对联
    // document.write('<scr'+'ipt language=JavaScript src="http://www.' + CC_DOMAIN + '/js/home/common.js"></scr'+'ipt>');

    document.write(getStyleString());

	function getNewHeadBanner(sModule) {
        var bLogined = isLogin();
        var sLogoUrl = 'http://www.' + CC_DOMAIN;
        if (bLogined) {
            //sLogoUrl = 'http://www.' + CC_DOMAIN + '/index.php';
        }

		var sHtml = '';
		sHtml += '<div id="scaleDiv"></div><table width="787" border="0" cellpadding="0" cellspacing="0" align="center">';
		sHtml += '<tr>';
		sHtml += '<td width="214"><a href="' + sLogoUrl + '"><img src="http://img.' + CC_DOMAIN + '/indexmain/1204/logo.gif" width="214" height="64" border="0" id="head_logo"></a></td>';
		sHtml += '<td width="573" id="head_bg" valign="bottom" background="http://img.' + CC_DOMAIN + '/indexmain/1204/lot.jpg" class="cher_ziti17">';
		sHtml += '<table width="573" height="33" border="0" cellpadding="0" cellspacing="0"><tr>';

		sHtml += '<td align="right" valign="middle">&nbsp;'+str_stock_plan+'</td>';

		sHtml += '<td align="right" valign="top" width="20"></td><form name="form_top_login" id="form_top_login" method="post" action="http://www.' + CC_DOMAIN + '/php/member/login.php" style="margin:0px;" onsubmit="return topLogin(this);"><td align="right" valign="top" class="cher_ziti1" width="1%"  nowrap style="padding-top:2px;">';

        sHtml += getLoginLinkNew2();

		sHtml += '&nbsp;</td></form></tr></table>';//<a href="#" onclick="setHomepage(\'http://www.CC_DOMAIN/calender/index.html\', \'中国缘是我们的伙伴，无论工作还是生活!中国缘一个以诚信为基础，具有安全感和私密性的高层次、高品位的社交网络。CC_DOMAIN \');return false;"><span class="cher_ziti11">添加到收藏</span></a>
		sHtml += '<table width="573" border="0" cellpadding="0" cellspacing="0">';
		sHtml += '<tr>';
		sHtml += '<td height="25" class="textwhite" width="100%" align="center"><span id="mycchomelink">'
		sHtml += _getAllMenuHtml();
        sHtml += '</td>';
		sHtml += '</tr>';
		sHtml += '</table>';
		sHtml += '</td>';
		sHtml += '</tr>';
		if("event" == sModule){
    		sHtml += '<tr>';
			sHtml += '<td colspan="2"><div id="secondNav" style="display: block">';
            sHtml += getEventMenu();
            sHtml += '</div></td>';
			sHtml += '</tr>';
		}else{
            var sTmp = getTomJoeNotice();
            if ('' != sTmp) {
                sHtml += '<tr>';
                sHtml += '<td colspan="2"><div id="secondNav" style="display: block">';
                sHtml += sTmp;
                sHtml += '</div></td>';
                sHtml += '</tr>';
            }
		}
        sHtml += '</table>';
		return sHtml;
	}

    function getTomJoeNotice() {
	    var sRtn = '';

        if ('undefined' != typeof(aRoll)) {
            if (aRoll.length > 0)
            {
                sRtn = '<table width="100%" border="0" cellspacing="1" bgcolor="#CC9933" style="font-size:12px; width:782px;margin-top:4px; margin-bottom:4px;" align="center"  id="daohang1"><tr><td width="15%" align="center" background="http://img.'+CC_DOMAIN+'/indexmain/1204/bg_dotbr.gif" bgcolor="#FFFFFF"><img src="http://img.'+CC_DOMAIN+'/indexmain/1204/info_tomandjoe.gif" width="100" vspace=1></td><td width="75%" bgcolor="#FFFFFF">';

                sRtn += '<marquee direction=left width="585" scrolldelay=100  scrollamount=3  onmouseover="this.stop();" onmouseout="this.start();">';

                var aRollSplit = Array();
                sRtn += '';
                for(iRoll=0; iRoll < aRoll.length; iRoll++)
                {
                    aRollSplit = aRoll[iRoll].split("|||");
                    sRtn += '<a href="'+aRollSplit[1]+'" target="_blank"><span class="cher_ziti5">'+aRollSplit[0]+'</span></a>  &nbsp;&nbsp;&nbsp;&nbsp;  ';
                }
                sRtn += '</marquee>';

                sRtn += '</td><td width="10%" bgcolor="#FFFFFF"><input name="Submit" type="submit" class="cher_anniu" value=" 更多通知" onclick="window.open(\'http://www.' + CC_DOMAIN + '/tomjoe/index.html\', \'_self\', \'\')" style="margin:1px;background-color: #605048;height: 20px;width: auto;font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;cursor:pointer;text-transform: none;color: #F7F0E6;text-decoration: none;border: 1px solid #877065;"></td></tr></table>';


                //原来的
                sRtn += '<table width="784" border="0" cellpadding="0" cellspacing="0" height="23" style="margin-top:3px; margin-bottom:3px;display:none" align="center" id="daohang2">';
                sRtn += '<tbody>';
                sRtn += '<tr>';
                sRtn += '<td id="guen_bg1" width="22" background="http://img.' + CC_DOMAIN + '/indexmain/1204/1.gif"><img height="23" src="http://img.' + CC_DOMAIN + '/indexmain/1204/b_left.gif" id="guen_left"></td>';
                sRtn += '<td id="guen_bg2" background="http://img.' + CC_DOMAIN + '/indexmain/1204/1.gif" width="700" height="23">';
                sRtn += '<marquee direction=left width="600" scrolldelay=100  scrollamount=3  onmouseover="this.stop();" onmouseout="this.start();">';

                var aRollSplit = Array();
                for(iRoll=0; iRoll < aRoll.length; iRoll++)
                {
                    aRollSplit = aRoll[iRoll].split("|||");
                    sRtn += '<a href="'+aRollSplit[1]+'" target="_blank"><span class="cher_ziti5">'+aRollSplit[0]+'</span></a>';
                }
                sRtn += '</marquee>';
                sRtn += '</td>';
                sRtn += '<td id="guen_bg3" width="22" background="http://img.' + CC_DOMAIN + '/indexmain/1204/1.gif" align="right" style="background-repeat:no-repeat"><a href="http://www.' + CC_DOMAIN + '/tomjoe/index.html" ><img height="23" src="http://img.' + CC_DOMAIN + '/indexmain/1204/b_right.gif" id="guen_right" border="0"></a></td>';
                sRtn += '</tr></tbody>';
                sRtn += '</table>';
                sRtn += '';
                sRtn += '';
                sRtn += '';
                sRtn += '';
                sRtn += '';
            }
        }
        return sRtn;
    }

    function getEventMenu() {
	    var sRtn = '';
        sRtn += '<table width="1" border="0" cellpadding="0" cellspacing="0" height="33" align="center">';
        sRtn += '<tbody>';
        sRtn += '<tr>';
        sRtn += '<td width="22"><img height="23" src="http://img.' + CC_DOMAIN + '/events/070702/bc_left.gif" width="22"></td>';
        sRtn += '<td width="74"><a href="http://event.' + CC_DOMAIN + '/php/event/event_detail.php?eventid='+gEventID+'"><img src="http://img.' + CC_DOMAIN + '/events/070702/sy.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/sy.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/sy_1.gif\'"></a></td>';
        sRtn += '<td width="74"><a href="http://event.' + CC_DOMAIN + '/php/event/event_bbs.php?eventid='+gEventID+'"><img src="http://img.' + CC_DOMAIN + '/events/070702/d_10.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_10.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_10_1.gif\'"></a></td>';
        sRtn += '<td width="74"><a href="http://event.' + CC_DOMAIN + '/php/event/event_photo.php?eventid='+gEventID+'"><img src="http://img.' + CC_DOMAIN + '/events/070702/d_3.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_3.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_3_1.gif\'"></a></td>';
        sRtn += '<td width="74"><a href="http://event.' + CC_DOMAIN + '/php/event/event_note.php?eventid='+gEventID+'"><img src="http://img.' + CC_DOMAIN + '/events/070702/d_5.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_5.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_5_1.gif\'"></a></td>';
        sRtn += '<td width="74"><a href="http://event.' + CC_DOMAIN + '/php/event/event_member.php?eventid='+gEventID+'"><img src="http://img.' + CC_DOMAIN + '/events/070702/cy.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/cy.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/cy_1.gif\'"></a></td>';
        sRtn += '<td width="74"><a href="http://event.' + CC_DOMAIN + '/php/event/send_event_email.php?eventid='+gEventID+'"><img src="http://img.' + CC_DOMAIN + '/events/070702/mail.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/mail.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/mail1.gif\'"></a></td>';
        sRtn += '<td width="74"><a href="http://event.' + CC_DOMAIN + '/php/event/event_invite.php?eventid='+gEventID+'"><img src="http://img.' + CC_DOMAIN + '/events/070702/invite.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/invite.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/invite_1.gif\'"></a></td>';

        sRtn += '<td width="74"><a href="http://event.' + CC_DOMAIN + '/php/event/event_manager.php?eventid='+gEventID+'"><img src="http://img.' + CC_DOMAIN + '/events/070702/d_11.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_11.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_11_1.gif\'"></a></td>';
        if(bIsInEvent){
            sRtn += '<td width="74"><a href="#" onclick="exitEvent('+gEventID+');return false;"><img src="http://img.' + CC_DOMAIN + '/events/070702/d_8.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_8.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_8_1.gif\'"></a></td>';
        }else{
            sRtn += '<td width="74"><a href="#" onclick="joinEvent('+gEventID+');return false;"><img src="http://img.' + CC_DOMAIN + '/events/070702/d_7.gif" name="Image1" width="74" height="23" border="0" id="Image1" onmouseout="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_7.gif\'" onmouseover="this.src=\'http://img.' + CC_DOMAIN + '/events/070702/d_7_1.gif\'"></a></td>';
        }
        sRtn += '<td width="24" background="http://img.' + CC_DOMAIN + '/indexmain/1204/smenuc_bg.gif" align="right"><img height="23" src="http://img.' + CC_DOMAIN + '/events/070702/bc_right.gif" width="23"></td>';
        sRtn += '</tr>';
        sRtn += '</tbody>';
        sRtn += '</table>';
        return sRtn;
    }

	function writeHeadBanner(sModule, sBgColor){
        document.write(getNewHeadBanner(sModule));

        //输出左右对联
        //outputCouplet();
		var aArg = writeHeadBanner.arguments;
		var nArg = aArg.length;
		var sUrlMenu = (nArg>2)? aArg[2] : '';

		if ('' != sUrlMenu){
			return ;
		}
		else{
			var nUserID = parseInt(getCookie('MyID'));
			if (isNaN(nUserID)) {
				nUserID = 0;
			}

			if (0 < nUserID) {
                var oSecondNav = document.getElementById('secondNav')
        		if (null != oSecondNav) {
		    		oSecondNav.style.display = 'block';
                }
			}
		}
    }

    document.write('<scr'+'ipt src="http://www.' + CC_DOMAIN + '/js/object/common.js"></scr'+'ipt>');
    function switchSubMenu(rnMenuID) {
        var oMenuPos = document.getElementById('imgMenuPos'+rnMenuID);
        if ('http://img.' + CC_DOMAIN + '/indexmain/1204/close_sub.gif' == oMenuPos.src) {
            hideSubMenu(rnMenuID)
        } else {
            showSubMenu(rnMenuID)
        }
    }

    var bHideSubMenu = false;
    function sleepHideSubMenu(rnMenuID){
        bHideSubMenu = true;
        setTimeout('hideSubMenu('+rnMenuID+')', 600);
    }

    function sleepShowSubMenu(rnMenuID){
        bHideSubMenu = false;
        setTimeout('showSubMenu('+rnMenuID+')', 200);
    }

    function showSubMenu(rnMenuID) {
        if (bHideSubMenu) {
            //如果已经移出,则不再显示
            return;
        }
        hideSubMenu(nCurSubMenu);
        var oSubMenu = document.getElementById('divSubMenu'+rnMenuID);
		if (!('undefined' == typeof(oSubMenu))) {
            var oMenuPos = document.getElementById('imgMenuPos'+rnMenuID);
            oMenuPos.src = 'http://img.' + CC_DOMAIN + '/indexmain/1204/close_sub.gif';
            var oMainMenu = document.getElementById('mainMenu'+rnMenuID);
            nTop = getElementTop(oMainMenu) + 15;
            nLeft = getElementLeft(oMainMenu);// - parseInt(oSubMenu.style.width);
            oSubMenu.style.left = nLeft+'px';
            oSubMenu.style.top = nTop+'px';
            oSubMenu.style.display = '';
            nCurSubMenu = rnMenuID;
        }
    }

    function hideSubMenu(rnMenuID) {
        bHideSubMenu = false;
        if (null == rnMenuID) {
            return;
        }
        if (bMoveInSubMenu) {
            return;
        }
        var oSubMenu = document.getElementById('divSubMenu'+rnMenuID);
		if (!('undefined' == typeof(oSubMenu))) {
            oSubMenu.style.display = 'none';
            var oMenuPos = document.getElementById('imgMenuPos'+rnMenuID);
            oMenuPos.src = 'http://img.' + CC_DOMAIN + '/indexmain/1204/open_sub.gif';
        }
    }

    var bMoveInSubMenu = false;
    function moveInSubMenu(){
        bMoveInSubMenu = true;
    }
    function moveOutSubMenu(){
        bMoveInSubMenu = false;
        sleepHideSubMenu(nCurSubMenu);
    }
    function moveOutSubMenu_out(){
        bMoveInSubMenu = false;
    }

    function _getSubMenuHtml(rnMenuID, aCnf) {
        var nMaxLen = 0;
        var sHtml = '';
        var nMax = aCnf.length-1;
        sHtml = '<table border="0" cellspacing="0" cellpadding="0">';
        for(var i=0;i<=nMax;i++) {
            sHtml += '<tr><td>&nbsp;<a href="'+aCnf[i][1]+'" style="color:#996600;">'+aCnf[i][0]+'</a>&nbsp;</td></tr>';
            nLen = aCnf[i][0].length;
            if (nLen > nMaxLen) {
                nMaxLen = nLen;
            }
        }
        sHtml += '</table>';
        //var nWidth = nMaxLen * 18;
		var nWidth = 75;
        var nHeight = aCnf.length * 20.5;
        var sHtml = '<div id="divSubMenu'+rnMenuID+'" style="position:absolute;left:0px;top:0px;width:'+nWidth+'px;height:'+nHeight+'px; z-index:1;background-color: #FDF9F2; layer-background-color: #FDF9F2;display:none;border: solid 1px #F4E7CC;" onmouseover="moveInSubMenu();" onmouseleave="moveOutSubMenu();" onmouseout="moveOutSubMenu_out();" align="left">' + sHtml + '</div>';
        return sHtml;
    }

    function _getAllSubMenuHtml() {
        var sHtml = '';
        for(var i=0; i<aMenuCnf.length; i++){
            var nLen = parseInt(aMenuCnf[i].length/2);
            if (nLen > 1) {
                var aCnf = new Array();
                for(var k=1;k<nLen;k++) {
                    aCnf[k-1] = new Array(aMenuCnf[i][k*2], aMenuCnf[i][k*2+1]);
                }
                sHtml += _getSubMenuHtml(i, aCnf);
            }
        }
        return sHtml;
    }

    function _getAllMenuHtml() {
        var sHtml = '';
        var bLogin = isLogin();
        for(var i=0; i<aMenuCnf.length; i++){
            if (sNeedLoginMenu.indexOf(','+i+',') >= 0) {
                if (!bLogin) {
                    //未登陆不显示
                    continue;
                }
            }
            var nLen = parseInt(aMenuCnf[i].length/2);
            if (nLen > 1) {
                //带有子菜单
				if (i == 6){
					sHtml += '<a href="'+aMenuCnf[i][1]+'"class="a_white" id="mainMenu'+i+'" onmouseover="sleepShowSubMenu('+i+');" onmouseout="sleepHideSubMenu('+i+');" onClick="enterAlert();">'+aMenuCnf[i][0]+'</a> ';
				} else {
					sHtml += '<a href="'+aMenuCnf[i][1]+'"class="a_white" id="mainMenu'+i+'" onmouseover="sleepShowSubMenu('+i+');" onmouseout="sleepHideSubMenu('+i+');">'+aMenuCnf[i][0]+'</a> ';
				}
                sHtml += '<a href="javascript:" onclick="switchSubMenu('+i+'); return false;"><img id="imgMenuPos'+i+'" src="http://img.' + CC_DOMAIN + '/indexmain/1204/open_sub.gif" width="7" height="6" border="0"/></a>';
            } else {
                sHtml += '<a href="'+aMenuCnf[i][1]+'" class="a_white">'+aMenuCnf[i][0]+'</a>';
            }
            if (i != aMenuCnf.length - 1) {
                sHtml += ' | ';
            }
        }
        sHtml += _getAllSubMenuHtml();
        return sHtml;
    }

    function outPutSubMenu() {
        var sHtml = _getAllSubMenuHtml();
        if ('' != sHtml) {
            document.write(sHtml);
        }
    }

	function enterAlert() {
		var sAlert = "您正在离开'中国缘.com'，进入'好久不见.com'。";
		alert(sAlert);
	}