function club_head(nClubID, sClubName, nClubStatus)
{
    var str = "";
    str +=  ('<div id="scaleDiv"></div><div align="center">');
	str +=  ('<table cellspacing="0" cellpadding="0" width="786" height="28" border="0"><tbody><tr>');
    str +=  ('  <td align="right" width="10" background="http://img.meet8.com/club/search_bg03.gif">&nbsp;</td>');
    str +=  ('  <td class="cher_ziti6" background="http://img.meet8.com/club/search_bg03.gif">');
	str +=  ('	  <div align="left"><span class="cher_ziti8">');
	//str +=  ('	  	<a class="cher_ziti8" href="file:///C:/php/club/club_detail.php?clubid=111428">北京胡同里的色男色女</a>');
	
	str +=  ('			<span onclick="window.open(\'/php/club/club_detail.php?clubid='+nClubID+'\', \'_self\', \'\')" style="color:');
    str +=  ('			#000000; cursor:pointer">'+sClubName+'</span>		');
    if (0 == nClubStatus) 
    str +=  ('              <font style="color:red">（已关闭）</font>');

	str +=  ('	  </span></div></td>');
	str +=  ('  <td width="300" background="http://img.meet8.com/club/search_bg03.gif" id="myclub_name">');
    //str +=  ('<scr'+'ipt>echoMyClub();</scr'+'ipt>');
	str +=  ('  </td>');
	str +=  (' </tr></tbody></table>');

    str +=  ('');
	
    str +=  ('</div>');
    str +=  ('<table align="center" cellspacing="0" style="margin-top:2px;">');
    str +=  ('  <tr>');
    str +=  ('    <td>');
    str +=  ('    <!--部落头部导航-->');
    str +=  ('    <TABLE border=0 cellPadding=0 cellSpacing=0>');
    str +=  ('      <TBODY>');
    str +=  ('        <TR>');
    str +=  ('          <TD width="22"><IMG height=23 src="http://img.meet8.com/club/bc_left.gif" ');
    str +=  ('            width=22></TD>');
	str +=  ('				<TD width=74><a href="http://club.meet8.com/home'+getsubdir(nClubID, "detail")+'/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagedetail\',\'\',\'http://img.meet8.com/club/sy_1.gif\',1)"><img id=Imagedetail name=Imagedetail src=http://img.meet8.com/club/sy.gif width=74 height=23 border=0></a></TD>');
	str +=  ('				<TD width=74><a href="http://club.meet8.com/home'+getsubdir(nClubID, "bbs")+'/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagebbs\',\'\',\'http://img.meet8.com/club/d_10_1.gif\',1)"><img id=Imagebbs name=Imagebbs src=http://img.meet8.com/club/d_10.gif width=74 height=23 border=0></a></TD>');
	str +=  ('				<TD width=74><a href="http://club.meet8.com/home'+getsubdir(nClubID, "photo")+'/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagephoto\',\'\',\'http://img.meet8.com/club/d_3_1.gif\',1)"><img id=Imagephoto name=Imagephoto src=http://img.meet8.com/club/d_3.gif width=74 height=23 border=0></a></TD>');
	str +=  ('				<TD width=74><a href="http://club.meet8.com/home'+getsubdir(nClubID, "video")+'/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagevideo\',\'\',\'http://img.meet8.com/club/d_4_1.gif\',1)"><img id=Imagevideo name=Imagevideo src=http://img.meet8.com/club/d_4.gif width=74 height=23 border=0></a></TD>');
	str +=  ('				<TD width=74><a href="http://club.meet8.com/home'+getsubdir(nClubID, "event")+'/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imageevent\',\'\',\'http://img.meet8.com/club/d_2_1.gif\',1)"><img id=Imageevent name=Imageevent src=http://img.meet8.com/club/d_2.gif width=74 height=23 border=0></a></TD>');
	str +=  ('				<TD width=74><a href="http://club.meet8.com/home'+getsubdir(nClubID, "member")+'/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imagemember\',\'\',\'http://img.meet8.com/club/cy_1.gif\',1)"><img id=Imagemember name=Imagemember src=http://img.meet8.com/club/cy.gif width=74 height=23 border=0></a></TD>');str +=  ('<TD width="74"><a href="#" onclick="send_mail();return false;" target="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imageemail\',\'\',\'http://img.meet8.com/club/mail_1.gif\',1)"><img id="Imageemail" name="Imageemail" src="http://img.meet8.com/club/mail.gif" width="74" height="23" border="0"></a></TD>');str +=  (' <TD width="74"><a href="http://club.meet8.com/php/club/club_invite.php?clubid='+nClubID+'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Imageinvite\',\'\',\'http://img.meet8.com/club/invite_1.gif\',1)"><img id="Imageinvite" name="Imageinvite" src="http://img.meet8.com/club/invite.gif" width="74" height="23" border="0"></a></TD>');
    str +=  ('			    <TD id="is_manage"></TD>');
	str +=  ('				<TD id="is_login"></TD>');
    str +=  ('          <TD width="24" background="http://img.meet8.com/club/smenuc_bg.gif"><div align="right"><IMG height=23 src="http://img.meet8.com/club/bc_right.gif" ');
    str +=  ('            width=23></div></TD>');
    str +=  ('        </TR>');
    str +=  ('      </TBODY>');
    str +=  ('    </TABLE></td>');
    str +=  ('  </tr>');
    str +=  ('</table>');
    document.write(str);
}

	//按1000个ID一个目录返回某ID所在的子目录
	function getsubdir(id, stype){
		var str="";
		var sreturn = "";
		if (999 < id)
		{
			id = id + "";
			for(i=0; i<id.length; i=i+3)
			{
				str = (id.substring(i,i+3));
				if (3 > str.length || (i+3)>=id.length)
				{
					sreturn += "/"+stype+"/"+str;
				}
				else
				{
					sreturn += "/"+str;
				}
			}
			return (sreturn);
		}
		else if(0 < id){
			return ("/"+stype+"/"+id);
		}
		else{
			return ;
		}
	}
    function blogHome() {
        if (isLogin()) {
            //已登陆的转至‘同城’
            document.location.href = "http://blog.meet8.com/php/blog/blog_index.php?opFlag=city";
        } else {
            document.location.href = "http://blog.meet8.com/blog/search/new/index.html";
        }
    }
	function photoHome() {
        if (isLogin()) {
            //已登陆的转至‘同城’
            document.location.href = "http://photo.meet8.com/php/photo/photo_index.php?opFlag=city";
        } else {
            document.location.href = "http://photo.meet8.com/photo/search/new/index.html";
        }
    }
    
    function mp3Home() {
        if (isLogin()) {
            //已登陆的转至‘同城’
            document.location.href = "http://mp3.meet8.com/php/mp3/mp3_index.php?opFlag=city";
        } else {
            document.location.href = "http://mp3.meet8.com/index.html";
        }
    }
    function getLoginLinkNew() {
        var bLogined = isLogin();
        var sLoginLink = '';
        if (bLogined) {
            sLoginLink = '<a href="#" onclick="execLogout(); return false;" class="agrey333">退出</a>';
        } else {
            sLoginLink = '<a href="http://www.meet8.com/member/login.html" class="agrey333">登录</a>';
        }
        return sLoginLink;
    } 

	//-----部落内页是否具有发布权限

	function echoPutOut2(url,str)
	{
		if (isLogin())
		{
			document.write('<input name="Submit22" onclick="window.open(\'/php/club/'+url+'.php?clubid=' + ClubID + '\',\'_self\',\'\')" type="submit" class="cher_anniu" value="'+str+'">');
		}
	}
	function getUserID(){
		if (isLogin())
		{
			document.write('<input type="hidden" name="iptUsrID" id="iptUsrID" value="'+parseInt(getCookie('MyID'))+'">');
		}
	}