function outputWeekly() {
    document.write('<a href="http://www.meet8.com/ccmail/weekly/weekly29.htm" target="_blank"><img src="http://www.meet8.com/cc/2006/04/pic_zk29.gif" width="132" height="185" border="0"></a>');
}
//首页中间广告
function outputAdHomeMiddle() {
    document.write('<EMBED src="http://img.meet8.com/cc/2006/09/5pic.swf" quality=high WIDTH=780 HEIGHT=100 TYPE="application/x-shockwave-flash" ></EMBED>');
    //document.write('<a href="http://pod.meet8.com/php/video/video_gest_head_list.php" target="_blank"><img src="http://www.meet8.com/cc/2006/01/yuyin.jpg" width="780" height="90" border="0"></a>');
}
//首页底部广告
function outputAdHomeBottom() {
    document.write('<a href="http://pod.meet8.com/php/video/video_gest_head_list.php" target="_blank"><img src="http://www.meet8.com/cc/2006/01/yuyin.jpg" width="780" height="90" border="0"></a>');
    //document.write('<a href="" target="_blank"><img src="http://img.meet8.com/adv/ad_bottom.gif" width="779" height="93" border="0"></a>');
}
//博客中间广告
function outputAdMiddle() {
    //document.write('<a href="http://www.meet8.com/php/club/club_bbs_detail.php?clubid=110052&id=209065" target="_blank"><img src="http://www.meet8.com/cc/2006/04/storyh8.jpg" width="780" height="90" border="0"></a>');
    document.write('<EMBED src="http://img.meet8.com/cc/2006/10/4pic3.swf" quality=high WIDTH=780 HEIGHT=100 TYPE="application/x-shockwave-flash" ></EMBED>');
}
//博客底部广告
function outputAdBottom() {
    //document.write('<EMBED src="http://www.meet8.com/cc/2006/05/newxcd.swf" quality=high WIDTH=780 HEIGHT=100 TYPE="application/x-shockwave-flash" ></EMBED>');
    document.write('<a href="http://gift.meet8.com/php/placement/index.php" target="_blank"><img src="http://img.meet8.com/cc/2006/06/bargj.jpg" width="780" height="90" border="0"></a>');
}

function outputCustomerService() {
	document.write('<table width="213" border="0" cellpadding="0" cellspacing="0"><tr><td width="213" height="28" valign="bottom"><img src="http://img.meet8.com/photo/kefu_new.gif" width="213" height="37"></td></tr><tr><td height="56" background="http://img.meet8.com/photo/kefu_m.gif"><table width="210" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td width="210" height="24" class="text"><span class="text">中国缘客服空间：</span><a href="http://ChinaCircle.meet8.com" class="a2" target="_blank">http://ChinaCircle.meet8.com</a><br><span class="text">中国缘客服部落：</span><a href="http://care.club.meet8.com" class="a2" target="_blank">http://care.club.meet8.com</a><br></td></tr></table></td></tr><tr><td height="3"><img src="http://img.meet8.com/photo/kefu_b.gif" width="213" height="5"></td></tr></table>');
}


//左右对联--------------------------------------------------------------------------------
document.ns = true; // = navigator.appName == "Microsoft Internet Explorer"

var imgleft
window.screen.width>800 ? imgheight=70:imgheight=70
window.screen.width>800 ? imgleft=15:imgleft=20
var imgheight
window.screen.width>800 ? imgheight=100:imgheight=100

//输出对联广告
function outputCouplet() {
    if (1 == getCookie('CCCloseAd')) {return;}

    //左对联
    /*
    if(!isLogin()){
        var ad_float_left_src = "http://www.meet8.com/cc/2006/05/motherdayv.jpg";
        var ad_float_left_url = "http://club.meet8.com/php/club/club_bbs_detail.php?clubid=2656&id=204057";
        var ad_float_left_type = "img";
    } else {
    //*/
        var ad_float_left_src = "http://img.meet8.com/events/doings/zuo.jpg";		//左边对联广告
        var ad_float_left_url = "http://event.meet8.com/php/event/8min_event.php?eventid=6207";
		//链接地址
        var ad_float_left_type = "img";		//广告类型
    //}
    //右对联



		//IM var ad_float_right_src = "http://img.meet8.com/cc/im/webim2.gif";		//右边对联广告
		var ad_float_right_src = "http://img.meet8.com/cc/im/1000.gif";		//右边对联广告
		var ad_float_right_url = "http://www.meet8.com/alexa/invite.html";		//链接地址
		var ad_float_right_type = "img";		//广告类型

		var ad_float_right_url = "http://www.meet8.com/game/lottery/lottery.php";		//链接地址
		var ad_float_right_type = "iframe";		//广告类型

	/*
    //左联
    if(document.ns){
        if(ad_float_left_type!="swf") {
            document.write("<div id=myleft style='display:none;position: absolute;width:80;top:30;left:5;visibility: visible;z-index: 1'>");
            if ("" != ad_float_left_url) {
                document.write("<a href='" + ad_float_left_url + "' target = '_blank'><img WIDTH=90 HEIGHT=260 src='" + ad_float_left_src + "'  border = 0></a>");
                //document.write("<a href=\"#\" onclick=\"openLittleBook(8620, 'video', '/php/lifebook/iframe_movie_left.php?userId=8620', '/php/lifebook/iframe_movie_detail.php?userId=8620&urlParent=%2Fphp%2Flifebook%2Fiframe_movie_main.php%3FuserId%3D8620%26classify%3D-1&nClassify=-1&opFlag=&nPagesCurr=4&nPagesTotal=4', '');return false;\" ><img WIDTH=90 HEIGHT=260 src='" + ad_float_left_src + "'  border = 0></a>");
            } else {
                document.write("<img WIDTH=90 HEIGHT=260 src='" + ad_float_left_src + "'>");
            }
            document.write("<div vlaign='bottom' align='right' style='height:20;width:90'><a href='#' onclick='hideleft();return false;'>关闭</a></div></div>");
        } else {
            document.write("<div id=myleft style='display:none;position: absolute;width:80;top:30;left:5;visibility: visible;z-index: 1'><EMBED src='" + ad_float_left_src + "' quality=high WIDTH=90 HEIGHT=260 TYPE='application/x-shockwave-flash' id=changhongout ></EMBED><div vlaign='bottom' align='right' style='height:20;width:90'><a href='#' onclick='hideleft();return false;'>关闭</a></div></div>");
        }
        loadleft();
    }
	


    //右联
    if(document.ns){
        if(ad_float_right_type=='img') {
            //IM document.write("<div id=myright style='display:none;position: absolute;width:145;top:30;top:0;left:578;visibility: visible;z-index:1;margin-left:-60px;'>");

			document.write("<div id=myright style='display:none;position: absolute;width:96px;top:30px;left:578px;visibility: visible;z-index:1;'>");

            if ("" != ad_float_right_url) {
                document.write("<a href='" + ad_float_right_url + "' target = '_blank'><img src='" + ad_float_right_src + "' border = 0></a>");

				//IM document.write("<iframe src='http://cc.meet8.com/php/left_online.php' width='140' height='240' style='z-index:10; margin-top:56px;margin-left:13px;' onclick='alert(8)' frameborder=0 scrolling=no></iframe><a href='" + ad_float_right_url + "' onclick=\"window.open('http://cc.' + CC_DOMAIN + '/im2/WebIMClient.html', 'webimonline', 'height=600, width=750, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')\"><img WIDTH=153 HEIGHT=313 src='" + ad_float_right_src + "' border = 0 style='z-index:11;margin-left:-147px;position:absolute'></a>");

            } else {
                document.write("<img WIDTH=145 HEIGHT=307 src='" + ad_float_right_src + "'>");
            }
            //IM document.write("<div vlaign='bottom' align='right' style='height:20;width:153'><br><a href='#' onclick='hideright();return false;'>关闭</a></div></div>");
			document.write("<div vlaign='bottom' align='right' style='height:20px;width:96px'><br><a href='#' onclick='hideright();return false;'>关闭</a></div></div>");
        } else if ('iframe' == ad_float_right_type) {
			document.write('<div id="myright" style="display:none;position: absolute;width:143px;top:' + imgheight + 'px;left:0px;visibility: visible;z-index: 1; background-color: transparent; text-align: right;"><iframe name="myright_iframe" id="myright_iframe" frameborder="0" src="' + ad_float_right_url + '" width="128" height="320" scrolling="no" allowTransparency="true"></iframe></div>');
		} else {
            document.write("<div id=myright style='display:none;position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'><EMBED src='" + ad_float_right_src + "' quality=high WIDTH=90 HEIGHT=260 TYPE='application/x-shockwave-flash'></EMBED><div vlaign='bottom' align='right' style='height:20;width:90'><a href='#' onclick='hideright();return false;'>关闭</a></div></div>");
        }
        setTimeout('mymove()', 6000);
    }
	*/
}

function loadleft() {
    myleft.style.top = document.body.scrollTop + imgheight;
    myleft.style.left = imgleft;
    myleft.style.display = '';
    leftmove();
}

function leftmove() {
    myleft.style.top = document.body.scrollTop + imgheight;
    myleft.style.left = imgleft;
    setTimeout("leftmove();",50)
}

function hideleft() {
    if (('undefined' != typeof(myright))) {
        myright.style.display = 'none';
    }
    if (('undefined' != typeof(myleft))) {
        myleft.style.display = 'none';
    }
    setCookie("CCCloseAd", 1, null, '/', '.meet8.com');
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
    if (init==true) with (navigator) {
        if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
            document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
        }
    } else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) {
        location.reload();
    }
}

function loadright() {
	var myright = document.getElementById('myright');
    myright.style.top = document.body.scrollTop + imgheight;
    myright.style.left = document.body.offsetWidth;
    myright.style.display = '';
    mymove();
}

var bDisplayRight = false;
function mymove() {
	var myright = document.getElementById('myright');
	
	if (0 == getCookie('close_lottery'))
		document.getElementById('myright_iframe').style.height = '16px';
	else
		document.getElementById('myright_iframe').style.height = '320px';

	if (!myright) {
		setTimeout("mymove()",50);
		return;
	}
	
    myright.style.top = (document.body.scrollTop + document.documentElement.scrollTop + imgheight) + 'px';
    myright.style.left = (document.body.scrollLeft + document.documentElement.scrollLeft + document.body.offsetWidth-163) + 'px';
	if (!bDisplayRight) {
		myright.style.display = 'block';
		bDisplayRight = true;
	}
    setTimeout("mymove()",50);
}

function hideright() {
    if (('undefined' != typeof(myright))) {
        myright.style.display = 'none';
    }
    if (('undefined' != typeof(myleft))) {
        myleft.style.display = 'none';
    }
    setCookie("CCCloseAd", 1, null, '/', '.meet8.com');
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
//end 左右对联--------------------------------------------------------------------------------


if (isLogin())
{
	outputCouplet();
}