<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="main.master.cs" Inherits="ZYDN.Web.home.main" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>用户空间</title>
     <%wjs(); %>
    <link href="skip/user/20100421/24612/main.css" rel="stylesheet" type="text/css" runat="server" id="mainCss"/>    
    <link href="skip/user/20100421/24612/index.css" rel="stylesheet" type="text/css" runat="server" id="indexCss"/>    
    <link href="skip/user/20100421/24612/list.css" rel="stylesheet" type="text/css" runat="server" id="listCss" />
    <link href="css/sysCss.css" rel="stylesheet" type="text/css" />    
    <script language="javascript" src="home.js" type="text/jscript"></script>
    <script language="javascript" src="../system/js/sys.js" type="text/jscript"></script>
    <script language="javascript" src="../js/page.js" type="text/jscript"></script>
    <script language="javascript" src="../system/js/JFramework.js" type="text/jscript"></script>
    <script language="javascript" type="text/jscript">
    var objAjax=new JAjax();
    function loadPage(){
        var homeTopText=new mouseMoveStyle();
        homeTopText.mouseOutClass="topDivOut";
        homeTopText.mouseOverClass="topDivOver";
        homeTopText.divName="h_topText";
        homeTopText.start();    
        homeTopText.mouseOutClass="leftDivOut";
        homeTopText.mouseOverClass="leftDivOver";
        homeTopText.divName="h_leftText";
        homeTopText.start();
        if (isBunch!=1){
            $("topToolsBunch").style.display="none";           
        }else{
             $("topToolsUser").innerHTML="加群主为好友"
        }            
        if (isMy!=1){
           $("topToolsIndex").style.display="";
           var objs =document.getElementsByName("leftMoreDiv");
           for (var i=0;i<objs.length;i++){
                objs[i].innerHTML="";
           }
        }else{
          $("topToolsIndex").style.display="none";
          $("topToolsUser").style.display="none";
           
        }
        var sendblog=$("sendblog");
        var sendphoto=$("sendphoto");
        var sendmusic=$("sendmusic");
        var sendRequsetMusic=$("sendRequsetMusic");
        var sendSaveMusic=$("sendSaveMusic");
        var nowhref=window.location.host;
        if(sendblog!=null&&sendphoto!=null&&sendmusic!=null){
            if(isBunch=="0"){
                  sendblog.href="./updataArticles.aspx?menuindex=2&pType=&menuid="+menuidBlog+"&asTab="+menuTabBlog+"&useType=0&typeId=1";
                  sendphoto.href="./updataArticles.aspx?menuindex=2&pType=&menuid="+menuidPhoto+"&asTab="+menuTabPhoto+"&useType=0&typeId=2";
                  sendmusic.href="./updataArticles.aspx?menuindex=2&pType=&menuid="+menuidMusic+"&asTab="+menuTabMusic+"&useType=0&typeId=3";
             }else{
                  sendblog.href="./updataArticles.aspx?menuindex=2&pType=&menuid="+menuidBunBlog+"&asTab="+menuTabBunBlog+"&useType="+homeUserID+"&typeId=1";
                  sendphoto.href="./updataArticles.aspx?menuindex=2&pType=&menuid="+menuidBunPhoto+"&asTab="+menuTabBunPhoto+"&useType="+homeUserID+"&typeId=2";
                  sendmusic.href="./updataArticles.aspx?menuindex=2&pType=&menuid="+menuidBunMusic+"&asTab="+menuTabBunMusic+"&useType="+homeUserID+"&typeId=3";
             }
        }           
        if(sendRequsetMusic!=null){
             sendRequsetMusic.href="./publicUpdate.aspx?menuindex=2&pType=&menuid="+menuidSupply+"&id=&asTab="+menuTabSupply+"&user="+homeUserName;
        }
        if(sendSaveMusic!=null){
             sendSaveMusic.href="./publicUpdate.aspx?menuindex=2&pType=&menuid="+menuidShop+"&id=&asTab="+menuTabShop+"&user="+homeUserName;
        }           
        var firstImg=$("firstImg");
        var laseImg=$("laseImg");
        if(firstImg!=null&&laseImg!=null){
             firstImg.src="../home/skip/user/20100421/24612/front.gif";
             laseImg.src="../home/skip/user/20100421/24612/back.gif";
        }
        testMail();
        url=location.href;
        var objResponse=new JHttpResponse();
        objResponse.write("url",url);
        objResponse.write("menuid","");
        objResponse.write("tab","");
        objResponse.write("tabid","");
        objResponse.write("title",document.title);
        objResponse.write("isNew","0");
        objResponse.write("isMsgTest","0");	        
        var out=objAjax.getText("post","../webserver.aspx?type=upData",objResponse,null);            
        var objs =document.getElementsByName("leftImg");
        for (var i =0;i<objs.length;i++){
           var imgsrc=objs[i].src.split("/");
           var imgsrc=imgsrc[imgsrc.length-1];
           objs[i].src=homeCssPath+imgsrc;
           objs[i].style.display="";
        }
    }
   </script>
</head>
<body onload="loadPage();">
    <div id="h_bgdiv">
        <div id="h_TopDiv">
            <div id="h_TopLeft"></div>
            <div id="h_TopCenter">
                <div style="width:20px; float:left; " ></div>            
                <div class="topDivOut" id="h_topText" name="h_topText" onclick ="toIndex();">首页</div>
                <div class="topDivOut" id="h_topText" name="h_topText" onclick="homeMsg();">站内短信</div>
                <div class="topDivOut" id="h_topText" name="h_topText" onclick ="userInfo()"><%=hostInfo.userName%></div>
                <div id="topRdiv">
                    <div id="myNewMsg" style="display:none;">您有新消息</div>                    
                    <div onclick="goMyIndex();" id="topToolsIndex" style="display:none;">我的主页</div>
                    <div onclick="addBunch();" id="topToolsBunch">加入该群</div>
                    <div onclick="addFriend();" id="topToolsUser">加为好友</div>
                    <div onclick="setupUser();">设置</div>
                    <div onclick="homelogout()">退出</div>
                </div>
            </div>
            <div id="h_TopRight"></div>
        </div>
        <div id="h_Body">
            <div id="h_bodyLeft">
                <div id="h_bodyLeftTop"></div>
                <div id="h_bodyLeftCenter">
                    <div class="leftDivOut" id="h_leftText" name="h_leftText">
                        <span><img src='skip/user/20100421/24612/leftIco1.gif' id="leftImg" name="leftImg" style=" display:none;"/></span>
                        <span><a href="" runat="server" id="blog">日志</a></span>
                        <span class="leftMore" id="leftMoreDiv" name="leftMoreDiv"><a id="sendblog">发布</a></span>
                    </div>
                    <div class="leftDivOut" id="h_leftText" name="h_leftText">
                        <span><img src='skip/user/20100421/24612/leftIco2.gif'  id="leftImg" name="leftImg" style=" display:none;"/></span>
                        <span><a href="" runat="server" id="music">音乐</a></span>
                        <span class="leftMore" id="leftMoreDiv" name="leftMoreDiv"><a id="sendmusic">上传</a></span>
                    </div>
                    <div class="leftDivOut" id="h_leftText" name="h_leftText">
                        <span><img src='skip/user/20100421/24612/leftIco3.gif'  id="leftImg" name="leftImg" style=" display:none;"/></span>
                        <span><a href="" runat="server" id="photo">相册</a></span>
                        <span class="leftMore" id="leftMoreDiv" name="leftMoreDiv"><a id="sendphoto">上传</a></span>
                    </div>
                    <div class="leftDivOut" id="h_leftText" name="h_leftText">
                         <span><img src='skip/user/20100421/24612/leftIco4.gif'  id="leftImg" name="leftImg" style=" display:none;"/></span>
                         <span><a href="" runat="server" id="bunchUrl">组群</a></span>
                         <span class="leftMore" id="leftMoreDiv" name="leftMoreDiv"><a href="createBunch.aspx">创建</a></span>
                    </div>
                    <div class="leftDivOut" id="h_leftText" name="h_leftText">
                         <span><img src='skip/user/20100421/24612/leftIco5.gif'  id="leftImg" name="leftImg" style=" display:none;"/></span>
                         <span><a href="" runat="server" id="friendUrl">好友</a></span>
                         <span class="leftMore"></span>
                    </div>
                    <div class="leftDivOut" id="h_leftText" name="h_leftText" runat="server">
                         <span><img src='skip/user/20100421/24612/leftIco6.gif'  id="leftImg" name="leftImg" style=" display:none;"/></span>
                         <span><a href="" runat="server" id="RequsetMusicList">供求区</a></span>
                         <span class="leftMore"  id="leftMoreDiv" name="leftMoreDiv"><a href=""  id="sendRequsetMusic">发布</a></span>
                    </div>
                    <div class="leftDivOut" name="h_leftText" runat="server">
                         <span><img src='skip/user/20100421/24612/leftIco7.gif'  id="leftImg" name="leftImg" style=" display:none;"/></span>
                         <span><a href="" runat="server" id="saveAre">交易区</a></span>
                         <span class="leftMore"  id="leftMoreDiv" name="leftMoreDiv"><a id="sendSaveMusic">发布</a></span>
                    </div>
                    <div class="leftDivOut" id="h_leftText" name="h_leftText">
                         <span><img src='skip/user/20100421/24612/leftIco8.gif'  id="leftImg" name="leftImg" style=" display:none;"/></span>
                         <span><a href="myResult.aspx">我要充值</a></span>
                     </div>                    
                     <div class="leftDivOut" id="h_leftText" name="h_leftText">
                          <span><img src='skip/user/20100421/24612/leftIco9.gif'  id="leftImg" name="leftImg" style=" display:none;"/></span>
                          <span><a href="money2Int.aspx">货币换积分</a></span>
                    </div>                    
                    <div class="leftDivOut" id="h_leftText" name="h_leftText">
                           <span><img src='skip/user/20100421/24612/leftIco10.gif'  id="leftImg" name="leftImg" style=" display:none;"/></span>
                           <span><a href="Int2money.aspx">积分换货币</a></span>
                    </div>                    
                </div>
            <div id="h_bodyLeftBottom"></div>
        </div>
        <div id="h_bodyRight">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
        </div>
    </div>
    </div>
</body>
</html>
