// JavaScript Document
//添加收藏夹
function AddFavorite()
{
	try
	{
		var strTitle=document.title;
		var strUrl=document.location.href;
		if (window.sidebar)
		{
			window.sidebar.addPanel(strTitle, strUrl,"");
			}
			else if ( window.opera && window.print )
			{
				var mbm = document.createElement('a');
				mbm.setAttribute('rel','sidebar');
				mbm.setAttribute('href',strUrl);
				mbm.setAttribute('title',strTitle);
				mbm.click();
				}
				else if ( document.all )
				{
					window.external.AddFavorite(strUrl, strTitle);
					}
		}catch(e){}
	}
        function SetHome(obj,vrl)   
        {   
            try   
            {   
                    obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);   
            }   
            catch(e){   
                    if(window.netscape) {   
                            try {   
                                    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");    
                            }    
                            catch (e) {    
                                    alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'");    
                            }   
                            var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);   
                            prefs.setCharPref('browser.startup.homepage',vrl);   
                     }   
            }   
        }   
		

document.write('<DIV class=Head_Nav>'); 
document.write('<DIV class=Nav_Box>'); 
document.write('<table width="100%" border="0" cellspacing="2" cellpadding="0">'); 
document.write('<tr>'); 
document.write('<td width="45%"><div id="Cloginbox"><span id="unlogin">您好，欢迎光临红颜佳人婚纱礼服！<A title=请登录 href="user.asp?act=login">[请登录]</A>'); 
document.write('<A title=免费注册 href="user.asp?act=reg">[免费注册]</A></span></div></td>'); 
document.write('<td align="right"><a href="javascript:void(0)" onclick="SetHome(this,window.location)">设为首页</a>'); 
document.write('　|　<a onclick="AddFavorite(window.location,document.title)" href="#">加入收藏</a>');   																																																	document.write('　|　<A title=联系我们 href="contactus.html">联系我们</A>'); 																																																																																																									document.write('　|　<A title=关于我们 href="about.html">关于我们</A>'); 																																																																																																																																																																																																																																				document.write('　|　<A title=网站导航 href="zffs.html">付款方式</A></td>'); 
document.write('<td width=90 align="right"><img src="images/head/24hours.gif"/></td>'); 
document.write('</tr>'); 
document.write('</table>'); 
document.write('</DIV></DIV>'); 
document.write('<DIV class=Head>'); 
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">'); 
document.write('<tr>'); 
document.write('<td rowspan="2"><DIV class=Logo><A title=红颜佳人 href="http://www.fuwangsy.cn/index.html"><SPAN>红颜佳人</SPAN></A></DIV></td>'); 
document.write('<td rowspan="2">&nbsp;</td>'); 
document.write('<td align=right><DIV id=Txtt><span>咨询热线:0595-28160016</span></DIV></td>'); 
document.write('</tr>'); 
document.write('<tr>'); 
document.write('<td align=right>'); 
document.write('<A href="shopcart.asp"><IMG height=18 src="images/head/btn_mycart.png" width=110></A> '); 
document.write('<A href="shopcart.asp"><IMG height=18 src="images/head/btn_checkout.png" width=70></A>&nbsp;</td>'); 
document.write('</tr>'); 
document.write('</table>'); 
document.write('</DIV>'); 

document.write('<DIV class=Menu>'); 
document.write('<DIV class=Left>'); 
document.write('<UL class=Ul_menu>'); 
document.write('  <LI><A href="index.html">首页</A>'); 
document.write('  <LI><A href="pro_155_141.html">精品婚纱</A>'); 
document.write('  <LI><A href="pro_155_185.html">时尚礼服</A>'); 
document.write('  <LI><A href="pro_131.html">唐装旗袍</A>'); 
document.write('  <LI><A href="pro_155_187.html">小礼服</A>'); 
document.write('  <LI><A href="pro_153.html">婚纱配件</A>'); 
document.write('  <LI><A href="news.html">婚纱资讯</A>'); 
document.write('  <LI><A href="pfhz.html">批发合作</A></LI>'); 
document.write('  <LI><A href="hslfcccl.html">婚纱礼服尺寸测量</A></LI></UL></DIV>'); 
document.write('</DIV>'); 
document.write('<DIV class=Search>'); 
document.write('<FORM id=searchForm name=searchForm action=search.asp method=get>'); 
document.write('<input class=Intext id=keyword name=keyword><INPUT class=Inbtn type=submit value="">'); 
document.write('<SPAN>热门关键字：　<A title=新娘婚纱 href="pro_155_141.html">精品婚纱</A>　|　'); 
document.write(' <A title=婚纱礼服 href="pro_155_185.html">时尚礼服</A>　|　'); 
document.write('<A title=小礼服 href="pro_155_187.html">小礼服</A>　|　'); 
document.write('<A title=新娘旗袍 href="pro_131.html">唐装旗袍</A>　|　'); 
document.write('<A title=婚纱配件 href="pro_153.html">婚纱配件</A></SPAN>'); 
document.write(' <IMG alt="" src="images/i_ws_022.gif" style="margin-left:150px">'); 
document.write('<A class=Adv_Info style="FONT-WEIGHT: bold; COLOR: #8F0304;margin-left:10px" href="news.html">婚纱资讯</A></FORM></DIV>'); 
document.write('<DIV class=Other style="margin-top:5px"><IMG alt="" src="images/head/img001.jpg"></DIV>'); 


		$.ajax({
		   type: "POST",
		   url: "Cmd.asp",
		   data: "action=ajaxCheckLogin",
		   success: function(msg){
		   	  //alert(msg);
			 if(msg!=""&&msg!="unlogin"){
			 	$("#Cloginbox").html(msg);
			 }else{
				 $("#unlogin").css("display","block");
			 }
		   }
		});

		
