var loc_url	=	location.href;
var url_arr	=	loc_url.split('http://');
var url_dom_arr	=	url_arr[1].split('/');
var loc_domain	=	url_dom_arr[0];

var domain_arr	=	loc_domain.split('.');
var dom_length	=	domain_arr.length;
if(domain_arr[(domain_arr.length-1)]	==	'')
{
	var add	=	1;
}
else
{
	var add	=	0;
}
var mydomain = domain_arr[(dom_length-(2+parseInt(add)))]+'.'+domain_arr[(dom_length-(1+parseInt(add)))];
var SITE_HOST = 7;
var loc_referrer	=	document.referrer;
if(loc_referrer	!=	'')
{
	if(loc_referrer.indexOf(loc_domain)	<	0)
	{
		loc_referrer	=	encodeURIComponent(loc_referrer);
		var expires = new Date();
		expires.setTime(expires.getTime() + 60 * 60 * 1000);
		document.cookie	=	("REG_URL_COOKIE="+loc_referrer+";expires=" + expires.toGMTString());
	}
}

function _head_wr(str)
{
	document.writeln(str);
}

function mycopy_head()
{
	var clipBoardContent=''; 
	clipBoardContent+=document.getElementById('head_url').value;
	window.clipboardData.setData("Text",clipBoardContent);
	alert('复制成功，您可以转发给您QQ或MSN上好友！');
}

function get_request_head_value(Name)
{
	var search = Name+"=";
	if (location.href.length > 0)
	{
		offset = location.href.indexOf(search);
		if (offset != -1)
		{
			offset += search.length;
			end = location.href.indexOf("&", offset);
			if (end == -1)
			{
				end = location.href.length;
			}
			var returnvalue=unescape(location.href.substring(offset, end));
		}
	}
	return returnvalue;
}

function get_head_cookie(c_name)
{
	if (document.cookie.length>0)
  {
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start!=-1)
		{ 
			c_start=c_start + c_name.length+1;
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1)
				c_end=document.cookie.length;
			return decodeURIComponent(document.cookie.substring(c_start,c_end));
		}
	}
	return null;
}

//  添加收藏夹
function AddFav(title,url)
{
	if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))//Gecko
	{
		window.sidebar.addPanel(title,url,'');
	}
	else//IE
	{
		window.external.AddFavorite(url,title);
	}
}

function validate_head_loginform() 
{
	var js_errorMsg="";
	var c =document.getElementById('name');

	var reg_mobile	=/^13\d{9}$/gi;
	var reg_email		=/^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/gi;

	if ((c.value=="" || c.value.indexOf("@") == -1 || c.value.indexOf(".") == -1)	&&	!reg_mobile.test(c.value))
	{
		js_errorMsg+='请用您注册的Email地址登录';
	}

	if (js_errorMsg.length>0) 
	{
		alert(js_errorMsg);
		return false;
	}
	return true;
}

var mod	=	get_request_head_value('mod');
var mod_code	=	0;
//alert(mod);
if(!mod)
{
	var _url	=	location.href;
	_url	=	_url.replace('http://','');
	//alert(_url);
	var _url_arr	=	_url.split('/');
	//alert(_url_arr);
	mod	=	_url_arr[1];
}
var SITE_MOD = mod;
if(!mod)
{
	mod_code	=	0;
	var	iframe	=	'index';
}
else
{
	switch (mod)
	{
		case 'usercp':
			mod_code	=	1;
			var	iframe	=	'usercp';
			break;
			case 'newmember':
			mod_code	=	12;
			var	iframe	=	'newmember';
			break;
		case 'ques':
			mod_code	=	9;
			var	iframe	=	'ques';
			break;
		case 'paper':
			mod_code	=	9;
			var	iframe	=	'ques';
			break;
		case 'msg':
			mod_code	=	1;
			var	iframe	=	'usercp';
			break;
		case 'charge':
			mod_code	=	1;
			var	iframe	=	'usercp';
			break;
		case 'search':
			mod_code	=	2;
			var	iframe	=	'search';
			break;
		case 'party':
			mod_code	=	3;
			var	iframe	=	'party';
			break;
		case 'article':
			mod_code	=	4;
			var	iframe	=	'diary';
			break;
		case 'diary':
			mod_code	=	4;
			var	iframe	=	'diary';
			break;
		case 'online':
			mod_code	=	5;
			var	iframe	=	'online';
			break;
		case 'story':
			mod_code	=	6;
			var	iframe	=	'success';
			break;
		case 'love':
			mod_code	=	6;
			var	iframe	=	'success';
			break;
		case 'wedding':
			mod_code	=	10;
			var	iframe	=	'wedding';
			break;
		case 'student':
			mod_code	=	7;
			var	iframe	=	'index';
			break;
		case 'master':
			mod_code	=	8;
			var	iframe	=	'master';
			break;
		case 'my':
			mod_code	=	0;
			var	iframe	=	'self';
			break;
		case 'photo':
			mod_code	=	0;
			var	iframe	=	'self';
			break;
		case 'profile':
			mod_code	=	0;
			var	iframe	=	'self';
			break;
		case 'new':
			mod_code	=	0;
			var	iframe	=	'new';
			break;
		case 'help':
			mod_code	=	0;
			var	iframe	=	'help';
			break;
		case 'gonggao':
			mod_code	=	0;
			var	iframe	=	'ad';
			break;
		default:
			mod_code	=	0;
			var	iframe	=	'index';
			break;
	}
}

if(_url_arr)
{
	if(_url_arr.length	==	2)
	{
		if(_url_arr[1]	>	0)
		{
			var _arr_tmp	=	_url_arr[1].split('.');
			if(_arr_tmp.length	==	1)
			{
				var	iframe	=	'self';
			}
		}
	}
}
var class_arr	=	new Array();

for(var i=0;i<13;i++)
{
	if(i	==	mod_code)
	{
		class_arr[i]	=	'on';
	}
	else
	{
		class_arr[i]	=	'';
	}
}
var rand_show	=	Math.random();
/*if(rand_show	<	0.5)
{
	if(location.href.substr(0,23)	==	'http://www.love21cn.com')
	{
		document.domain	=	"love21cn.com";
		//_head_wr('<iframe src="http://click.love21cn.com/www_index.html" width="0" height="0"></iframe>');
	}
}*/

profile = get_head_cookie('PROFILE');
host_name = location.hostname ;
index_1 = 'http://' + host_name + '/';
index_2 = 'http://' + host_name;
index_3 = 'http://' + host_name + '/index.html';
current_url = location.href ;
current_url = escape(current_url) ;
if(current_url == index_1 || current_url == index_2 || current_url == index_3)
{
	current_url = '';
}

//document.domain	=	mydomain;
//遮罩 
_head_wr('<div id="bgdiv" style="position:absolute;display:none; left:0px; top:0px; width:100%; height:100%; filter:alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3; background-color:#000000; z-index:1000;"></div>');

//登录提示框
_head_wr('<div id="msgdiv" class="prompt_box" style="position:absolute;display:none; z-index:1001;">');
_head_wr('<h2></h2>');
_head_wr('<dl>');
_head_wr('<dt class="prompt_title" id="mytitle"></dt>');
_head_wr('<dd class="prompt_list" id="mycontent"></dd>');
_head_wr('<dd class="prompt_bnlist" id="mybutton"></dd>');
_head_wr('</dl>');
_head_wr('</div>');
//登录提示框

function show_msg(mytitle,mycontent,mybutton)
{
	document.getElementById('mytitle').innerHTML	=  mytitle;
	document.getElementById('mycontent').innerHTML	=  mycontent;
	document.getElementById('mybutton').innerHTML	=  mybutton;
	document.getElementById('bgdiv').style.height	=  document.body.clientHeight+"px";
	document.getElementById('bgdiv').style.width	=  document.body.clientWidth+"px";
	document.getElementById('bgdiv').style.display	=  '';
	document.getElementById('msgdiv').style.display	=  '';
	document.getElementById('msgdiv').style.left    = (document.body.clientWidth/2-200)+"px";  
	document.getElementById('msgdiv').style.top     = (screen.height/2-240)+"px";
	var selects = document.getElementsByTagName('select');
	for(i=0;i<selects.length;i++)
	{
		selects[i].style.visibility = 'hidden';
	}
	document.body.scroll="no";
}
function show_msg_v2(mytitle,mycontent,mybutton)
{
	document.getElementById('mytitle').innerHTML	=  mytitle;
	document.getElementById('mycontent').innerHTML	=  mycontent;
	document.getElementById('mybutton').innerHTML	=  mybutton;
	document.getElementById('bgdiv').style.height	=  document.body.clientHeight+"px";
	document.getElementById('bgdiv').style.width	=  document.body.clientWidth+"px";
	document.getElementById('bgdiv').style.display	=  '';
	document.getElementById('msgdiv').style.display	=  '';
	document.getElementById('msgdiv').style.left    = (document.body.clientWidth/2-200)+"px";  
	document.getElementById('msgdiv').style.top     = (screen.height/2-240)+"px";
	var selects = document.getElementsByTagName('select');
	for(i=0;i<selects.length;i++)
	{
		selects[i].style.visibility = 'hidden';
	}
	document.body.scroll="no";
	profile = get_head_cookie('PROFILE');
	if(profile){
		array_of_profile = profile.split(':');
		cookie_uid = array_of_profile[0];
	//	cookie_nickname = array_of_profile[1];
		cookie_nickname_en = array_of_profile[1];
	cookie_nickname = decodeURIComponent(cookie_nickname_en);
		document.getElementById('index_header').innerHTML='<iframe src="http://news.sina.com.cn/iframe/188/2007/0702/2.html" width="950" height="75" scrolling="no" border=0></iframe>'+
		'<dl class="header_form"><em>'+
		'欢迎您：<a href="http://sina.jiayuan.com/profile/?uid='+cookie_uid+'">'+cookie_nickname+'</a>&nbsp;&nbsp;'+
		'您在世纪佳缘的征友地址是：<input type="hidden"><input style="vertical-align: middle" class="header_myadd" id="head_url" value="http://sina.jiayuan.com/profile/?uid='+cookie_uid+'"/>'+
		'<i><a href="http://sina.jiayuan.com/login/logout.php" target="_self"><img style="vertical-align: middle" src="http://images.love21cn.com/w4/global/i/hf_btn04.jpg" /></a></i></em>'+
		'<dd style="float:right"><a href="http://sina.jiayuan.com/helpcenter/">帮助</a>&nbsp;<a style="cursor:pointer" onclick="javascript:AddFav(\'世纪佳缘交友\',\'http://sina.jiayuan.com\')">收藏</a>&nbsp;<a style="cursor:pointer" onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://sina.jiayuan.com\')">设主页</a></dd></dl>';
	}
} 

var V_LINK_H = "";
function getLoginclick(){
	if(V_LINK_H==""){
		var myloc_h=get_head_cookie('myloc');
		var mysex_h=get_head_cookie('mysex');
		var myage_h=get_head_cookie('myage');
		var myuid_h=get_head_cookie('myuid');
		V_LINK_H="http://59.151.18.14/call/v.gif?s=1&location="+ myloc_h+"&sex="+mysex_h+"&age="+myage_h+"&uid="+myuid_h+"&pv=c_login";
	}
	return V_LINK_H+"&rd="+Math.random();
}


//关闭
function close_loginpop_msg(url_pop){
	var tempurl=location.href; 
	var tempurl1="";
	var tempurl2="";
	if(tempurl.length>14){
		tempurl1=tempurl.substring(tempurl.length-14,tempurl.length);
	}
	if(tempurl.length>22){ 
		tempurl2=tempurl.substring(tempurl.length-22,tempurl.length);
	}
	var url1="";
	var url2="";
	if(url_pop.length>7){
		url1=url_pop.substring(url_pop.length-7,url_pop.length);//usercp/
	}
	if(url_pop.length>15){
		url2=url_pop.substring(url_pop.length-15,url_pop.length);//usercp/#maodian
	}
	try{
	var pvurl_h = getLoginclick();
	document.getElementById('login_run').src=pvurl_h+'&url='+url_pop;
	}catch (ex){} 
		
	if(url2=="usercp/#maodian"||url1=="usercp/"){//取消按钮
		if(tempurl=="http://sina.jiayuan.com/"){//首页
			window.location=url_pop;
		}else if(tempurl1=="usercp/?lpph=1"||tempurl2=="usercp/?lpph=1#maodian"){//不在usercp下
			//直接关闭
		}else{
			window.open(url_pop);
		}
	}else{
		window.open(url_pop);
		if(tempurl=="http://sina.jiayuan.com/"){//首页
			window.location="http://sina.jiayuan.com/usercp#maodian";
		}
	}
	
	document.getElementById('bgdiv').style.display	=	'none';
	document.getElementById('msgdiv').style.display	=	'none';
	var selects = document.getElementsByTagName('select');
	for(i=0;i<selects.length;i++){
		selects[i].style.visibility = '';
	}
}
_head_wr('<iframe src="" style="display: none;" name="login_run" id="login_run" width=0 height=0></iframe>');



/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

_head_wr('<' + 'script src="http://images.love21cn.com/w3/global/j/tracker.js" type="text/javascript"></script' + '>');

var HEAD_IMAGE_URL = 'http://images.love21cn.com/s4/global/';
var HEAD_FRA_URL = 'http://images.love21cn.com/s4/html/';


_head_wr('<style type="text/css">');
_head_wr('<!--');
_head_wr('*{ padding: 0; margin: 0; }');
_head_wr('.hf_wapper{ width: 950px; margin: 0 auto; }');
_head_wr('.hf_wapper img, .hf_wapper img a{ border: none; }');
_head_wr('.hf_wapper .hf_top{ width: 950px; float: left; background: #92296A; height: 105px; }');
_head_wr('.hf_wapper .hf_top .hf_logo{ width: 210px; float: left; margin: 10px 0 0 0; }');
_head_wr('.hf_wapper .hf_top .hf_logor{ width: 670px; height: 75px; float: right; margin: 15px 35px 0 0; display: inline; }');
_head_wr('.hf_wapper .hf_nav{ width: 950px; float: left; background: url('+HEAD_IMAGE_URL+'i/hf_nav.jpg) repeat-x; height: 29px; overflow: hidden; }');
_head_wr('.hf_wapper .hf_nav ul{ float: left; font-size: 12px; margin-left: 10px; display: inline; list-style: none; }');
_head_wr('.hf_wapper .hf_nav li{ float: left; background: url('+HEAD_IMAGE_URL+'i/hf_navline.jpg) no-repeat right; font-weight: bolder; cursor: pointer; margin: 0; text-indent: 0; }');
_head_wr('.hf_wapper .hf_nav li a{ color: white; text-decoration: none; padding: 0 13px; line-height: 29px; display: block; }');
_head_wr('.hf_wapper .hf_nav li a:hover, .hf_wapper .hf_nav li.on a{ color: #636363; background: url('+HEAD_IMAGE_URL+'i/hf_navicon.gif) no-repeat bottom white; }');
_head_wr('.hf_wapper .hf_nav dl{ float: right; font-size: 12px; line-height: 29px; margin-right: 5px; display: inline; }');
_head_wr('.hf_wapper .hf_nav dl a{ color: white; text-decoration: none; }');
_head_wr('.hf_wapper .hf_nav dl a:hover{ color: #F60; }');
_head_wr('.hf_wapper .hf_nav dt{ float: left; }');
_head_wr('.hf_wapper .hf_nav dt img{ vertical-align: middle !important; vertical-align: baseline; *margin-top: 5px; }');
_head_wr('.hf_wapper .hf_nav dd{ float: left; margin-left: 5px; display: inline; padding-left: 10px; background: url('+HEAD_IMAGE_URL+'i/hf_navline.jpg) no-repeat left; }');

_head_wr('.header_myadd{');
_head_wr('	width: 230px;');
_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/headerinputbg.jpg) repeat-x;');
_head_wr('	border: 1px solid #E2A4D3;');
_head_wr('	text-align: center;');
_head_wr('	height: 15px;');
_head_wr('}');
	
//for弹出
_head_wr('.index_centerwapper{');
_head_wr('	width: 1000px;');
_head_wr('	margin: 0 auto;');
_head_wr('}');
_head_wr('.index_centerwapper_c{');
_head_wr('	width: 950px;');
_head_wr('	padding: 0 25px;');
_head_wr('	float: left;');
_head_wr('	background: white;');
_head_wr('	color: #393939;');
_head_wr('}');
_head_wr('.prompt_bn{');
_head_wr('	width: 72px;');
_head_wr('	height: 21px;');
_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/prompt_bn01.jpg) no-repeat;');
_head_wr('	overflow: hidden;');
_head_wr('	line-height: 22px;');
_head_wr('}');
_head_wr('.prompt_bn a{');
_head_wr('	width: 72px;');
_head_wr('	height: 21px;');
_head_wr('	display: block;');
_head_wr('	color: #035B6B;');
_head_wr('	text-decoration: none;');
_head_wr('}');
_head_wr('.prompt_bn a:hover{');
_head_wr('	text-decoration: none ');
_head_wr('}');
_head_wr('.prompt_box{');
_head_wr('	width: 400px;');
_head_wr('	height: 280px;');
_head_wr('	margin: 0 auto;');
_head_wr('	overflow: hidden;');
_head_wr('}');
_head_wr('.prompt_box h2{');
_head_wr('	width: 400px;');
_head_wr('	float: left;');
_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/prompt_title.jpg) no-repeat;');
_head_wr('	height: 66px;');
_head_wr('	float: left;');
_head_wr('}');
_head_wr('.prompt_box dl{');
_head_wr('	width: 400px;');
_head_wr('	float: left;');
_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/prompt_bg.jpg) no-repeat bottom;');
_head_wr('	height: 214px;');
_head_wr('	overflow: hidden;');
_head_wr('}');
_head_wr('.prompt_box dt.prompt_title{');
_head_wr('	width: 400px;');
_head_wr('	float: left;');
_head_wr('	text-align: center;');
_head_wr('	font-size:14px;');
_head_wr('	font-weight: bolder;');
_head_wr('	color: #BC008D;');
_head_wr('	margin-top: 5px;');
_head_wr('}');
_head_wr('.prompt_box dd.prompt_list{');
_head_wr('	width: 350px;');
_head_wr('	float: left;');
_head_wr('	text-align: left;');
_head_wr('	margin: 5px 0 0 20px;');
_head_wr('	display: inline;');
_head_wr('	line-height: 1.8;');
_head_wr('}');
_head_wr('.prompt_box dd.prompt_list span, .prompt_box dd.prompt_list em{');
_head_wr('	float: left;');
_head_wr('}');
_head_wr('.prompt_box dd.prompt_list a{');
_head_wr('	color: #bc008d;');
_head_wr('	text-decoration: underline;');
_head_wr('}');
_head_wr('.prompt_box dd.prompt_list a:hover{');
_head_wr('	color: #F60;');
_head_wr('	text-decoration: underline;');
_head_wr('}');
_head_wr('.prompt_box dd.prompt_bnlist{');
_head_wr('	width: 350px;');
_head_wr('	float: left;');
_head_wr('	text-align: center;');
_head_wr('	margin: 10px 0 0 25px;');
_head_wr('	display: inline;');
_head_wr('}');

_head_wr('.prompt_box dd.prompt_bnlist a{');
_head_wr('	font-size: 14px;');
_head_wr('	font-weight: bolder;');
_head_wr('	color: #f60;');
_head_wr('}');

_head_wr('.prompt_box dd.prompt_bnlist i{');
_head_wr('	float: left;');
_head_wr('	margin: 0 5px;');
_head_wr('}');
_head_wr('.prompt_box dt.prompt_time{');
_head_wr('	width: 400px;');
_head_wr('	text-align: center;');
_head_wr('	float: left;');
_head_wr('	margin: 10px 0 0 0;');
_head_wr('}');
	
	
//for广告
_head_wr('.jiayuanchoice{');
_head_wr('	width: 250px;');
_head_wr('	float: left;');
_head_wr('	margin: 10px 0 0 0;');
_head_wr('}');
_head_wr('.jiayuanchoice iframe, .jiayuanchoice200 iframe, .jiayuanchoice950 iframe{');
_head_wr('	width: 100%;');
_head_wr('	float: left;');
_head_wr('	scrolling: no;');
_head_wr('	frameborder: 0;');
_head_wr('	margin: 0;');
_head_wr('	padding:0;');
_head_wr('}');
_head_wr('.jiayuanchoice200{');
_head_wr('	width: 200px;');
_head_wr('	float: left;');
_head_wr('	margin: 10px 0 0 0;');
_head_wr('}');
_head_wr('.jiayuanchoice950{');
_head_wr('	width: 950px;');
_head_wr('	float: left;');
_head_wr('	margin: 10px 0 0 0;');
_head_wr('}');
_head_wr('-->');

/* header */
_head_wr('#index_header{');
_head_wr('	width: 950px;');
_head_wr('	float: left;');
_head_wr('	font-weight: normal;');
_head_wr('	padding-top: 10px;');
_head_wr('}');
_head_wr('#index_header .header_form{');
_head_wr('	float: left;');
_head_wr('	line-height: 25px;');
_head_wr('}');
_head_wr('#index_header .header_form dd{');
_head_wr('	float: left;');
_head_wr('	margin-left: 5px;');
_head_wr('}');
_head_wr('#index_header .header_form dd input{');
_head_wr('	width: 100px;');
_head_wr('	border: 1px solid black;');
_head_wr('}');
_head_wr('#index_header .header_form dt{');
_head_wr('	float: left;');
_head_wr('	margin-left: 5px;');
_head_wr('	padding: 0 0 2px 0;');
_head_wr('}');
_head_wr('#index_header .header_form dt a{');
_head_wr('	text-decoration: underline;');
_head_wr('}');
_head_wr('#index_header .header_form dt input{');
_head_wr('	vertical-align: middle;');
_head_wr('}');
_head_wr('#index_header .header_personal{');
_head_wr('	float: right;');
_head_wr('	line-height: 25px;');
_head_wr('}');
_head_wr('#index_header .header_personal ul{');
_head_wr('	display: inline-block;');
_head_wr('	*display: inline;');
_head_wr('}');
_head_wr('#index_header .header_personal li{');
_head_wr('	list-style: none;');
_head_wr('	float: left;');
_head_wr('	line-height: 25px;');
_head_wr('}');
_head_wr('#index_header .header_personal li.headerlist_top{');
_head_wr('	background: transparent;');
_head_wr('}');

_head_wr('.header_form em{');
_head_wr('	width: 650px;');
_head_wr('	float: left;');
_head_wr('	text-align: right;');
_head_wr('}');
_head_wr('.index_bn01{');
_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/index_bn01.jpg) no-repeat;');
_head_wr('	border: none;');
_head_wr('	width: 45px;');
_head_wr('	height: 17px;');
_head_wr('	cursor: pointer;');
_head_wr('}');
	
_head_wr('</style>');
_head_wr('');
_head_wr('');
_head_wr('');
_head_wr('<div class="hf_wapper confix">');
_head_wr('');

_head_wr('<div id="index_header">');
_head_wr('<iframe src="http://news.sina.com.cn/iframe/188/2007/0702/2.html" width="950" height="75" scrolling="no" border=0></iframe>');

if(profile)
{
	array_of_profile = profile.split(':');
	cookie_uid = array_of_profile[0];
//	cookie_nickname = array_of_profile[1];
	cookie_nickname_en = array_of_profile[1];
	cookie_nickname = decodeURIComponent(cookie_nickname_en);
	_head_wr('<dl class="header_form">');
	
	_head_wr('<em>');
	_head_wr('欢迎您：<a href="http://sina.jiayuan.com/profile/?uid='+cookie_uid+'">'+cookie_nickname+'</a>');
	_head_wr('&nbsp;&nbsp;');
	_head_wr('您在世纪佳缘的征友地址是：<input type="hidden"><input style="vertical-align: middle" class="header_myadd" id="head_url" value="http://sina.jiayuan.com/profile/?uid='+cookie_uid+'"/>');
	//_head_wr('<i><a href="javascript:mycopy_head();" target="_self"><img src="'+HEAD_IMAGE_URL+'/i/header_addbn01.jpg" /></a></i>');
	_head_wr('<i><a href="http://sina.jiayuan.com/login/logout.php" target="_self"><img style="vertical-align: middle" src="http://images.love21cn.com/w4/global/i/hf_btn04.jpg" /></a></i>');
	_head_wr('</em>');

	_head_wr('<dd style="float:right"><a href="http://sina.jiayuan.com/helpcenter/">帮助</a>&nbsp;<a style="cursor:pointer" onclick="javascript:AddFav(\'世纪佳缘交友\',\'http://sina.jiayuan.com\')">收藏</a>&nbsp;<a style="cursor:pointer" onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://sina.jiayuan.com\')">设主页</a></dd>');
	_head_wr('</dl>');
}
else
{
	_head_wr('<form action="/login/dologin.php?pre_url='+ current_url +'" method="post" onsubmit="return validate_head_loginform();" target="login_run">');
	_head_wr('<dl class="header_form">');
	_head_wr('<dd>注册邮箱（原新浪爱吧会员输入手机号）：<input type="text" name="name" type="text" id="name" maxlength="60" tabindex="1"/></dd>');
	_head_wr('<dd>密码：<input name="password" type="password" id="pass" value="" maxlength="60" tabindex="2"/></dd>');
	//_head_wr('<dt><input type="checkbox" id="remember" name="remem_pass" tabindex="3" />&nbsp;<label for="remember">记住我</label></dt>');
	_head_wr('<dt><input type="submit" value="" class="index_bn01" /></dt>');
	_head_wr('<dt><a href="http://sina.'+mydomain+'/register/">免费注册</a></dt>');
	_head_wr('<dt><a href="http://sina.'+mydomain+'/login/validate.php">忘记密码？</a>&nbsp;<a href="http://sina.'+mydomain+'/usercp/newbie/index.php?xin_head=1">新手上路</a></dt>');
	_head_wr('<dd style="float:right"><a href="http://sina.jiayuan.com/helpcenter/">帮助</a>&nbsp;<a style="cursor:pointer" onclick="javascript:AddFav(\'世纪佳缘交友\',\'http://sina.jiayuan.com\')">收藏</a>&nbsp;<a style="cursor:pointer" onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://sina.jiayuan.com\')">设主页</a></dd>');
	_head_wr('</dl>');
	_head_wr('</form>');
}

_head_wr('</div>');

_head_wr('<div class="hf_top">');
_head_wr('<div class="hf_logo"><a href="http://sina.jiayuan.com/"><img src="'+HEAD_IMAGE_URL+'i/logo_head.jpg" /></a></div>');
_head_wr('<div class="hf_logor"><iframe src="'+HEAD_FRA_URL+iframe+'_1_20_10.html" scrolling="no"	frameborder="0"	width="670px" height="75px"></iframe></div>');
_head_wr('</div>');
_head_wr('');
_head_wr('<div class="hf_nav">');

_head_wr('<ul>');
_head_wr('<li class="'+class_arr[0]+'"><a href="/" title="佳缘首页">佳缘首页</a></li>');
_head_wr('<li class="'+class_arr[1]+'"><a href="/usercp/" title="我的佳缘">我的佳缘</a></li>');
_head_wr('<li class="'+class_arr[2]+'"><a href="/search/" title="搜索会员">搜索会员</a></li>');
_head_wr('<li class="'+class_arr[5]+'"><a href="/online/" title="在线聊天">在线聊天</a></li>');
_head_wr('<li class="'+class_arr[3]+'"><a href="/party/" title="交友活动">交友活动</a></li>');
_head_wr('<li class="'+class_arr[4]+'"><a href="/article/" title="情感博客">情感博客</a></li>');
_head_wr('<li class="'+class_arr[6]+'"><a href="/story/" title="成功故事">成功故事</a></li>');
_head_wr('<li class="'+class_arr[9]+'"><a href="/paper/" title="爱情测试">爱情测试</a></li>');
_head_wr('<li class="'+class_arr[8]+'"><a href="/master/" title="斑竹小龙女">斑竹小龙女</a></li>');         
_head_wr('<li class="'+class_arr[12]+'" style="background:none;"><a href="/newmember/index.php?navfrom=menu" style=" _padding-top:5px; _padding-bottom:6px;">最新会员<img src="http://images.jiayuan.com/w4/indextemp/i/bg091216.gif" /></a>');
     

/*_head_wr('<li class="'+class_arr[0]+'"><a href="http://w4.'+mydomain+'/" title="佳缘首页">佳缘首页</a></li>');
_head_wr('<li class="'+class_arr[1]+'"><a href="http://w4.'+mydomain+'/usercp/" title="我的佳缘">我的佳缘</a></li>');
_head_wr('<li class="'+class_arr[2]+'"><a href="http://w4.'+mydomain+'/search/" title="搜索会员">搜索会员</a></li>');
_head_wr('<li class="'+class_arr[5]+'"><a href="http://w4.'+mydomain+'/online" title="在线聊天">在线聊天</a></li>');
_head_wr('<li class="'+class_arr[3]+'"><a href="http://w4.'+mydomain+'/party" title="交友活动">交友活动</a></li>');
_head_wr('<li class="'+class_arr[4]+'"><a href="http://w4.'+mydomain+'/article" title="情感博客">情感博客</a></li>');
_head_wr('<li class="'+class_arr[6]+'"><a href="http://w4.'+mydomain+'/story" title="成功故事">成功故事</a></li>');
_head_wr('<li class="'+class_arr[9]+'"><a href="http://w4.'+mydomain+'/paper/" title="爱情测试">爱情测试</a></li>');
_head_wr('<li class="'+class_arr[8]+'"><a href="http://w4.'+mydomain+'/master/" title="斑竹小龙女">斑竹小龙女</a></li>');             
*/
_head_wr('</ul>');
_head_wr('</div>');
_head_wr('</div>');
