function shb_main2(){
        imgName=get_bannerImgSrc();
        document.writeln('<table width="770" border="0" cellpadding="0" cellspacing="0" align="center" height="65">');
        document.writeln('<tr> ');
    document.writeln('<td valign="middle" colspan="7" width=230><div align=center><img src="/img/logo.gif" width="200" height="45" align=center></div></td>');
        document.writeln('<td width="540"> ');
        document.writeln('<div align="center">'+imgName+'</div>');
        document.writeln('</td></tr> ');
        document.writeln('</table><table width="770" border="0" cellpadding="0" cellspacing="0" align="center"> ');
        document.writeln('<tr> <td width="8%"> <div align="left"><a target="_top" href=/index.html><img border=0 src="/img/banner1.gif" width="67" height="20"></a><A target="_top" HREF="/products/entrance.php?ps_action=home"><img src="/img/banner2.gif" width="83" height="21" BORDER="0"></A><a href="/memory/" target="_top"><img src="/img/banner3.gif" width="83" height="21" border=0></a><A target="_top" HREF="/myalbum/index.php"><img src="/img/banner4.gif" width="83" height="21" BORDER="0"></A><a target="_top" href="/pod/"><img src="/img/banner10.gif" width="83" height="20" border="0"></a><A target="_top" HREF="/show/index.php"><img src="/img/banner6.gif" width="84" height="21" BORDER="0"></A><A target="_top" HREF="/photo/index.html"><img src="/img/banner7.gif" width="83" height="21" BORDER="0"></A><a target="_top" href="/print/"><img border=0 src="/img/banner11.gif" width="83" height="20"></a><A target="_top" HREF="/em_shop/index.html"><img src="/img/banner12.gif" width="83" height="21" BORDER="0"></A></div></td></tr> ');
        document.writeln('</table><table width="770" border="0" height="15" cellpadding="0" cellspacing="0" align="center"> ');
        document.writeln('<tr> <td width="770" height="13" bgcolor="#ff0000"> ');
        document.writeln('<div align="right"><A target="_top" HREF="/user/netuser/form_login.php"><SPAN CLASS="textCopy">登录</SPAN></A><A target="_top" HREF="/user/pro_exit.php" onclick="if (!confirm('+"'确实要注销吗?'"+')) return false;"><SPAN CLASS="textCopy">　注销</SPAN></A>　<A target="_top" HREF="/user/index.php"><SPAN CLASS="textCopy">会员中心</SPAN></A>　<A target="_top" HREF="/em_shop/order/CheckOut_PreView.php3"><SPAN CLASS="textCopy"  '+"onclick=\"window.open('/em_shop/order/CheckOut_PreView.php3','basket','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=1,resizable=1,width=600,top=0,left=200,height=360');return false\""+'>查看购物车</SPAN></A>　<A target="_top" HREF="javascript:to_help()" ><SPAN CLASS="textCopy">帮助</SPAN></A>　<A target="_top" HREF="/sitemap/index.html"><SPAN CLASS="textCopy">导航</SPAN></A>　<SPAN CLASS="textCopy">关于我们</SPAN>　<a target="_top" href="/zhaopin/index.html"><SPAN CLASS="textCopy">诚聘英才</SPAN></a></div>');
    document.writeln('</td>');
    document.writeln('<td width="13" bgcolor="#ff0000" valign="top" align=right><img src="/cards/img/bar1.gif"></td>');
        document.writeln('</tr> ');
        document.writeln('</table>');
        //document.writeln('<script src="http://'+location.hostname+'/user/pro_record_logininfo.php"></script>');
        document.close();
 }

function shb_main1(){
        imgName=get_bannerImgSrc();
        document.writeln('<table width="770" border="0" cellpadding="0" cellspacing="0" align="center" height="65">');
        document.writeln('<tr> ');
    document.writeln('<td valign="middle" colspan="7" width=230><div align=center><img src="/img/logo.gif" width="200" height="45" align=center></div></td>');
        document.writeln('<td width="540"> ');
        document.writeln('<div align="center">'+imgName+'</div>');
        document.writeln('</td></tr> ');
        document.writeln('</table><table width="770" border="0" cellpadding="0" cellspacing="0" align="center"> ');
        document.writeln('<tr> <td width="8%"> <div align="left"><a target="_top" href=/index.html><img border=0 src="/img/banner1.gif" width="67" height="20"></a><A target="_top" HREF="/products/entrance.php?ps_action=home"><img src="/img/banner2.gif" width="83" height="21" BORDER="0"></A><a href="/memory/" target="_top"><img src="/img/banner3.gif" width="83" height="21" border=0></a><A target="_top" HREF="/myalbum/index.php"><img src="/img/banner4.gif" width="83" height="21" BORDER="0"></A><a target="_top" href="/pod/"><img src="/img/banner10.gif" width="83" height="20" border="0"></a><A target="_top" HREF="/show/index.php"><img src="/img/banner6.gif" width="84" height="21" BORDER="0"></A><A target="_top" HREF="/photo/index.html"><img src="/img/banner7.gif" width="83" height="21" BORDER="0"></A><a target="_top" href="/print/"><img border=0 src="/img/banner11.gif" width="83" height="20"></a><A target="_top" HREF="/em_shop/index.html"><img src="/img/banner12.gif" width="83" height="21" BORDER="0"></A></div></td></tr> ');
        document.writeln('</table><table width="770" border="0" height="15" cellpadding="0" cellspacing="0" align="center"> ');
        document.writeln('<tr> <td width="770" height="13" bgcolor="#8DBB3B"> ');
        document.writeln('<div align="right"><A target="_top" HREF="/user/netuser/form_login.php"><SPAN CLASS="textCopy">登录</SPAN></A><A target="_top" HREF="/user/pro_exit.php" onclick="if (!confirm('+"'确实要注销吗?'"+')) return false;"><SPAN CLASS="textCopy">　注销</SPAN></A>　<A target="_top" HREF="/user/index.php"><SPAN CLASS="textCopy">会员中心</SPAN></A>　<A target="_top" HREF="/em_shop/order/CheckOut_PreView.php3"><SPAN CLASS="textCopy"  '+"onclick=\"window.open('/em_shop/order/CheckOut_PreView.php3','basket','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=1,resizable=1,width=600,top=0,left=200,height=360');return false\""+'>查看购物车</SPAN></A>　<A target="_top" HREF="javascript:to_help()" ><SPAN CLASS="textCopy">帮助</SPAN></A>　<A target="_top" HREF="/sitemap/index.html"><SPAN CLASS="textCopy">导航</SPAN></A>　<SPAN CLASS="textCopy">关于我们</SPAN>　<a target="_top" href="/zhaopin/index.html"><SPAN CLASS="textCopy">诚聘英才</SPAN></a></div>');
    document.writeln('</td>');
    document.writeln('<td width="13" bgcolor="#8DBB3B" valign="top" align=right><img src="/img/title_ma.gif"></td>');
        document.writeln('</tr> ');
        document.writeln('</table>');
        //document.writeln('<script src="http://'+location.hostname+'/user/pro_record_logininfo.php"></script>');
        document.close();
 }

function shb_main(){
        imgName=get_bannerImgSrc();
        document.writeln('<table width="770" border="0" cellpadding="0" cellspacing="0" align="center" height="65">');
        document.writeln('<tr> ');
    document.writeln('<td valign="middle" colspan="7" width=230><div align=center><img src="/img/logo.gif" width="200" height="45"></div></td>');
        document.writeln('<td width="540"> ');
        document.writeln('<div align="center">'+imgName+'</div>');
        document.writeln('</td></tr> ');
        document.writeln('</table><table width="770" border="0" cellpadding="0" cellspacing="0" align="center"> ');
        document.writeln('<tr> <td width="8%"> <div align="left"><a target="_top" href=/index.html><img border=0 src="/img/banner1.gif" width="67" height="20"></a><A target="_top" HREF="/products/entrance.php?ps_action=home"><img src="/img/banner2.gif" width="83" height="21" BORDER="0"></A><a href="/memory/" target="_top"><img src="/img/banner3.gif" width="83" height="21" border=0></a><A target="_top" HREF="/myalbum/index.php"><img src="/img/banner4.gif" width="83" height="21" BORDER="0"></A><a target="_top" href="/pod/"><img src="/img/banner10.gif" width="83" height="20" border="0"></a><A target="_top" HREF="/show/index.php"><img src="/img/banner6.gif" width="84" height="21" BORDER="0"></A><A target="_top" HREF="/photo/index.html"><img src="/img/banner7.gif" width="83" height="21" BORDER="0"></A><a target="_top" href="/print/"><img border=0 src="/img/banner11.gif" width="83" height="20"></a><A target="_top" HREF="/em_shop/index.html"><img src="/img/banner12.gif" width="83" height="21" BORDER="0"></A></div></td></tr> ');
        document.writeln('</table><table width="770" border="0" height="15" cellpadding="0" cellspacing="0" align="center"> ');
        document.writeln('<tr> <td width="770" height="13" bgcolor="#660099"> ');
        document.writeln('<div align="right"><A target="_top" HREF="/user/netuser/form_login.php"><SPAN CLASS="textCopy">登录</SPAN></A><A target="_top" HREF="/user/pro_exit.php" onclick="if (!confirm('+"'确实要注销吗?'"+')) return false;"><SPAN CLASS="textCopy">　注销</SPAN></A>　<A target="_top" HREF="/user/index.php"><SPAN CLASS="textCopy">会员中心</SPAN></A>　<A target="_top" HREF="/em_shop/order/CheckOut_PreView.php3"><SPAN CLASS="textCopy"  '+"onclick=\"window.open('/em_shop/order/CheckOut_PreView.php3','basket','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=1,resizable=1,width=600,top=0,left=200,height=360');return false\""+'>查看购物车</SPAN></A>　<A target="_top" HREF="javascript:to_help()" ><SPAN CLASS="textCopy">帮助</SPAN></A>　<A target="_top" HREF="/sitemap/index.html"><SPAN CLASS="textCopy">导航</SPAN></A>　<SPAN CLASS="textCopy">关于我们</SPAN>　<a target="_top" href="/zhaopin/index.html"><SPAN CLASS="textCopy">诚聘英才</SPAN></a></div>');
    document.writeln('</td>');
    document.writeln('<td width="13" bgcolor="#660099" valign="top" align=right><img src="/img/title3.gif"></td>');
        document.writeln('</tr> ');
        document.writeln('</table>');
        //document.writeln('<script src="http://'+location.hostname+'/user/pro_record_logininfo.php"></script>');
        document.close();
 }

function shb_sub(title,banner,corner,color){
        imgName=get_bannerImgSrc();
        document.writeln('<table width="770" border="0" cellpadding="0" cellspacing="0" align="center" height="65">');
        document.writeln('<tr> ');
    document.writeln('<td valign="middle" colspan="7" width=230><div align=center><img src="/img/logo.gif" width="200" height="45"><div></td>');
        document.writeln('<td width="540"> ');
        document.writeln('<div align="center">'+imgName+'</div>');
        document.writeln('</td></tr> ');
        document.writeln('</table><table width="770" border="0" cellpadding="0" cellspacing="0" align="center"> ');
        document.writeln('<tr bgcolor="#FFFFFF"> <td colspan="2" height="3"> <div align="left"><img src='+banner+' width="730" height="19" usemap="#menuMap" border="0"><map name="menuMap"><area shape="rect" coords="8,4,66,18" target="_top" href="/index.html"><area shape="rect" coords="74,2,144,18" target="_top" href="/products/entrance.php?ps_action=home"><area shape="rect" coords="154,2,230,18" target="_top" href="/memory/"><area shape="rect" coords="245,3,313,18" target="_top" href="/myalbum/index.php"><area shape="rect" coords="327,3,388,18" target="_top" href="/pod/"><area shape="rect" coords="411,3,474,18" target="_top" href="/show/index.php"><area shape="rect" coords="495,3,555,18" target="_top" href="/photo/index.html"><area shape="rect" coords="573,3,646,18" target="_top" href="/print/"><area shape="rect" coords="654,3,725,18" target="_top" href="/em_shop/index.html"></map></div></td></tr> ');
        document.writeln('</table><table width="770" border="0" height="15" cellpadding="0" cellspacing="0" align="center"> ');
        document.writeln('<tr> <td width="770" height="13" bgcolor='+color+'> ');
        document.writeln('<div align="right" class="textCopy"><A target="_top" HREF="/user/netuser/form_login.php"><SPAN CLASS="textCopy">登录</SPAN></A>　<A target="_top" HREF="/user/pro_exit.php" onclick="if (!confirm('+"'确实要注销吗?'"+')) return false;"><SPAN CLASS="textCopy">注销</SPAN></A>　<A target="_top" HREF="/user/index.php"><SPAN CLASS="textCopy">会员中心</SPAN></A>　<A target="_top" HREF="/em_shop/order/CheckOut_PreView.php3"><SPAN CLASS="textCopy"  '+"onclick=\"window.open('/em_shop/order/CheckOut_PreView.php3','basket','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=1,resizable=1,width=600,top=0,left=200,height=360');return false\""+'>查看购物车</SPAN></A>　<A target="_top" HREF="javascript:to_help()" ><SPAN CLASS="textCopy">帮助</SPAN></A>　<A target="_top" HREF="/sitemap/index.html"><SPAN CLASS="textCopy">导航</SPAN></A>　<SPAN CLASS="textCopy">关于我们</SPAN>　<a target="_top" href="/zhaopin/index.html"><SPAN CLASS="textCopy">诚聘英才</SPAN></a></div>');
    document.writeln('</td>');
    document.writeln('<td width="5" bgcolor='+color+' valign="top"><img src='+corner+' width="5" height="5"></td>');
        document.writeln('</tr> ');
        document.writeln('</table>');
        //document.writeln('<script src="http://'+location.hostname+'/user/pro_record_logininfo.php"></script>');
        document.close();
}

function to_help(){//根据原来的页面选择帮助页
        src_url=""+window.location;
        if(src_url.indexOf("/products/")>=0){
                to_url="/help/products.htm";
        }else if(src_url.indexOf("/photo/")>=0){
                to_url="/help/photo.htm";
        }else if(src_url.indexOf("/show/")>=0){
                to_url="/help/show.htm";
        }else if(src_url.indexOf("/myalbum/")>=0){
                to_url="/help/album.htm";
        }else if(src_url.indexOf("/dayrecord/")>=0){
                to_url="/help/dayrecord.htm";
        }else if(src_url.indexOf("/memory/")>=0){
                to_url="/help/memory.htm";
        }else{
                to_url="/help/index.html";
        }

        top.window.location=to_url;
}

function get_bannerImgSrc(){//根据原来的页面选择banner图片和链接地址
        src_url=""+window.location;
        if(src_url.indexOf("/products/")>=0){
                pic_path='<a target="_top" href="/show/"><img border=0 src="/banner/products.gif"></a>';
        }else if(src_url.indexOf("/photo/")>=0){
                pic_path='<a target="_top" href="/memory/"><img border=0 src="/banner/photo.gif"></a>';
        }else if(src_url.indexOf("/show/")>=0){
                pic_path='<a target="_top" href="/products/entrance.php?ps_action=home"><img border=0 src="/banner/show.gif"></a>';
        }else if(src_url.indexOf("/myalbum/")>=0){
                pic_path='<a target="_top" href="/memory/"><img border=0 src="/banner/myalbum.gif"></a>';
        }else if(src_url.indexOf("/memory/")>=0){
                pic_path='<a target="_top" href="/photo/"><img border=0 src="/banner/memory.gif"></a>';
        }else if(src_url.indexOf("/print/")>=0){
                pic_path='<a target="_top" href="/products/entrance.php?ps_action=home"><img border=0 src="/banner/print.gif"></a>';
        }else{
                pic_path='<a target="_top" href="/products/entrance.php?ps_action=home"><img border=0 src="/img/title2.gif"></a>';
        }

		//pic_path='<a target="_top" href="/tournament/"><img border=0 src="/tournament/img/title2.gif"></a>';
        return pic_path;
}