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 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 _dom_arr	=	_url_arr[0].split('.');
	if(_dom_arr[0]	!=	'www')
	{
		mod	=	_dom_arr[0];
	}
}


if(!mod)
{
	mod_code	=	0;
	var	iframe	=	'index';
}
else
{
	switch (mod)
	{
		case 'usercp':
			mod_code	=	1;
			var	iframe	=	'usercp';
			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<11;i++)
{
	if(i	==	mod_code)
	{
		class_arr[i]	=	' index_active';
	}
	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');


//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); 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;
	document.getElementById('bgdiv').style.width	=	document.body.clientWidth;
	document.getElementById('bgdiv').style.display	=	'';
	document.getElementById('msgdiv').style.display	=	'';
	document.getElementById('msgdiv').style.left=document.body.clientWidth/2-200;  
	document.getElementById('msgdiv').style.top=screen.height/2-240;
	var selects = document.getElementsByTagName('select');
	for(i=0;i<selects.length;i++)
	{
		selects[i].style.visibility = 'hidden';
	}
	document.body.scroll="no";
}

_head_wr('<iframe src="" name="login_run" width=0 height=0></iframe>');

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 ;
if(current_url == index_1 || current_url == index_2 || current_url == index_3)
{
	current_url = '';
}










_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/w3/global/';
var HEAD_FRA_URL = 'http://images.love21cn.com/w3/html/';

_head_wr('<style type="text/css">');
	_head_wr('*{');
	_head_wr('	margin: 0;');
	_head_wr('	padding: 0;');
	_head_wr('}');
	_head_wr('div, td, table, ul, li, ol, dd, dl,dt {');
	_head_wr('	margin: 0;');
	_head_wr('	padding: 0;');
	_head_wr('}');
	_head_wr('html {');
	_head_wr('	width: 100%;');
	_head_wr('	margin: auto;');
	_head_wr('}');
	_head_wr('body{');
	_head_wr('	margin: 0;');
	_head_wr('	padding: 0;');
	_head_wr('	text-align: center;');
	_head_wr('	font-size: 12px');
	_head_wr('}');
	_head_wr('table{');
	_head_wr('	border: none;');
	_head_wr('	border-collapse: collapse;');
	_head_wr('}');
	_head_wr('div, td {');
	_head_wr('	word-wrap: break-word;');
	_head_wr('	word-break: break-all;');
	_head_wr('	font-size: 12px;');
	_head_wr('}');
	_head_wr('img, img a, img a:hover{');
	_head_wr('	border: none;');
	_head_wr('}');
	_head_wr('h1,h2,h3,h4,h5,h6{');
	_head_wr('	font-size: 12px;');
	_head_wr('	font-weight: normal;');
	_head_wr('}');
	_head_wr('a {');
	_head_wr('	color: #393939;');
	_head_wr('	text-decoration: none;');
	_head_wr('}');
	_head_wr('a:hover{');
	_head_wr('	color: #F60;');
	_head_wr('	text-decoration: underline;');
	_head_wr('}');
	_head_wr('ul, ol{');
	_head_wr('	list-style: none;');
	_head_wr('}');
	_head_wr('marquee{');
	_head_wr('	font: 12px/1.5  "宋体",Verdana;');
	_head_wr('}');
	_head_wr('em, i{');
	_head_wr('	font-style: normal;');
	_head_wr('}');
	/* IE hack */
	_head_wr('.clearline {');
	_head_wr('	clear: both;');
	_head_wr('	height: 0;');
	_head_wr('	overflow: hidden;');
	_head_wr('}');
	_head_wr('.hackbox{');
	_head_wr('	display: table;');
	_head_wr('}');
	_head_wr('/* center_wapper */');
	
	_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('}');

	/* 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: 550px;');
	_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('.index_bn02{');
	_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/index_bn02.jpg) no-repeat;');
	_head_wr('	border: none;');
	_head_wr('	width: 79px;');
	_head_wr('	height: 21px;');
	_head_wr('	cursor: pointer;');
	_head_wr('}');
	_head_wr('.them_1, .them_2, .them_3, .them_4, .them_5{');
	_head_wr('	width: 11px;');
	_head_wr('	height: 11px;');
	_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/index_bg01.gif) no-repeat;');
	_head_wr('	cursor: pointer;');
	_head_wr('	margin: 7px 5px 0 5px;');
	_head_wr('	text-indent: -9999px;');
	_head_wr('	overflow: hidden;');
	_head_wr('}');
	_head_wr('.them_2{');
	_head_wr('	background-position: -21px 0;');
	_head_wr('}');
	_head_wr('.them_3{');
	_head_wr('	background-position: -42px 0;');
	_head_wr('}');
	_head_wr('.them_4{');
	_head_wr('	background-position: -63px 0;');
	_head_wr('}');
	_head_wr('.them_5{');
	_head_wr('	background-position: -84px 0;');
	_head_wr('}');
	_head_wr('.them_1on{');
	_head_wr('	background-position: -10px 0;');
	_head_wr('}');
	_head_wr('.them_2on{');
	_head_wr('	background-position: -31px 0;');
	_head_wr('}');
	_head_wr('.them_3on{');
	_head_wr('	background-position: -52px 0;');
	_head_wr('}');
	_head_wr('.them_4on{');
	_head_wr('	background-position: -73px 0;');
	_head_wr('}');
	_head_wr('.them_5on{');
	_head_wr('	background-position: -94px 0;');
	_head_wr('}');
	_head_wr('#index_nav{');
	_head_wr('	width: 950px;');
	_head_wr('	float: left;');
	_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/index_bg02.gif) no-repeat top;');
	_head_wr('	padding-top: 5px;');
	_head_wr('}');
	_head_wr('#index_nav p.logo_nav{');
	_head_wr('	float: left;');
	_head_wr('	margin-left: 5px;');
	_head_wr('	display: inline;');
	_head_wr('}');
	_head_wr('#index_nav p.banner_nav{');
	_head_wr('	width: 750px;');
	_head_wr('	height: 90px;');
	_head_wr('	float: right;');
	_head_wr('	margin-right: 5px;');
	_head_wr('	overflow: hidden;');
	_head_wr('	display: inline;');
	_head_wr('}');
	_head_wr('#index_nav ul.index_menu{');
	_head_wr('	width: 950px;');
	_head_wr('	float: left;');
	_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/index_bg04.gif) no-repeat;');
	_head_wr('	height: 29px;');
	_head_wr('	overflow: hidden;');
	_head_wr('	position: relative;');
	_head_wr('}');
	_head_wr('#index_nav li{');
	_head_wr('	font-size: 14px;');
	_head_wr('	line-height: 35px;');
	_head_wr('	font-weight: bolder;');
	_head_wr('	position: absolute;');
	_head_wr('	overflow: hidden;');
	_head_wr('	text-align: center;');
	_head_wr('	background: url('+HEAD_IMAGE_URL+'/i/index_bg03.gif) no-repeat;');
	_head_wr('}');
	_head_wr('#index_nav li a{');
	_head_wr('	color: White;');
	_head_wr('	height: 35px;');
	_head_wr('	line-height: 35px;');
	_head_wr('	display: block;');
	_head_wr('}');
	_head_wr('#index_nav li a:hover{');
	_head_wr('	color: Yellow;');
	_head_wr('	text-decoration: none;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu01{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 5px;');
	_head_wr('	background-position: -1px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu02{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 98px;');
	_head_wr('	background-position: -1px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu03{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 190px;');
	_head_wr('	background-position: -1px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu04{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 282px;');
	_head_wr('	background-position: -1px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu05{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 374px;');
	_head_wr('	background-position: -1px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu06{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 466px;');
	_head_wr('	background-position: -1px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu07{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 558px;');
	_head_wr('	background-position: -1px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu08{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 650px;');
	_head_wr('	background-position: -1px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu09{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 742px;');
	_head_wr('	background-position: -1px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_menu10{');
	_head_wr('	width: 101px;');
	_head_wr('	left: 844px;');
	_head_wr('	background-position: 10px -33px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_active{');
	_head_wr('	background-position: 0 1px;');
	_head_wr('}');
	_head_wr('#index_nav li.index_active a{');
	_head_wr('	color: #393939;');
	_head_wr('}');
	_head_wr('#index_nav li.index_active a:hover{');
	_head_wr('	color: #393939;');
	_head_wr('}');


	_head_wr('.header_form em{');
	_head_wr('	width: 800px;');
	_head_wr('	float: left;');
	_head_wr('	text-align: left;');
	_head_wr('	padding-bottom: 2px;');
	_head_wr('}');
	_head_wr('.header_form em input, .header_form em img{');
	_head_wr('	vertical-align: middle !important ;');
	_head_wr('	vertical-align: baseline;');
	_head_wr('}');
	_head_wr('.header_form em img{');
	_head_wr('	position: relative;');
	_head_wr('	top: 2px !important ;');
	_head_wr('	top: 4px;');
	_head_wr('}');
	_head_wr('.header_form em a{');
	_head_wr('	color: #BC008D;');
	_head_wr('}');
	_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('}');
	_head_wr('.header_form em i{');
	_head_wr('	margin: 0 0 0 2px;');
	_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('</style>');

_head_wr('<div class="index_centerwapper">');
_head_wr('<div class="index_centerwapper_c">');

_head_wr('<div id="index_header">');
if(profile)
{
	array_of_profile = profile.split(':');
	cookie_uid = array_of_profile[0];
	cookie_nickname = array_of_profile[1];
	_head_wr('<dl class="header_form">');
	
	_head_wr('<em>');
	_head_wr('欢迎您：<a href="http://www.jiayuan.com/'+cookie_uid+'">'+cookie_nickname+'</a>');
	_head_wr('&nbsp;&nbsp;');
	_head_wr('您在世纪佳缘的征友地址是：<input type="hidden"><input class="header_myadd" id="head_url" value="http://www.jiayuan.com/'+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://www.'+mydomain+'/login/logout.php" target="_self"><img src="'+HEAD_IMAGE_URL+'/i/header_addbn02.jpg" /></a></i>');
	_head_wr('</em>');

	//_head_wr('<em>'+cookie_nickname+'&nbsp;&nbsp;<a href="http://www.'+mydomain+'/login/logout.php" style="color: #F60; text-decoration: underline">安全退出</a></em>');
	_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><dt><input type="submit" value="" class="index_bn01" /></dt>');
	_head_wr('<dt><a href="http://www.'+mydomain+'/register/">免费注册</a></dt>');
	_head_wr('<dt><a href="http://www.'+mydomain+'/login/validate.php">忘记密码？</a></dt>');
	_head_wr('</dl>');
	_head_wr('</form>');
}
_head_wr('<span class="header_personal">');
_head_wr('<a style="cursor:pointer" onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.'+mydomain+'\')">设为主页</a>');
_head_wr('|');
_head_wr('<a style="cursor:pointer" onclick="javascript:AddFav(\'世纪佳缘交友\',\'http://www.'+mydomain+'\')">收藏</a>');
_head_wr('|');
_head_wr('<a href="http://www.'+mydomain+'/help/">帮助</a>');
_head_wr('</span>');
_head_wr('</div>');

_head_wr('</div>');


_head_wr('<div class="index_centerwapper">');
_head_wr('<div class="index_centerwapper_c">');

_head_wr('<div id="index_nav">');
_head_wr('<p class="logo_nav">');
_head_wr('<a href="http://www.jiayuan.com/"><img src="'+HEAD_IMAGE_URL+'/i/logo_head.jpg" /></a>');
_head_wr('</p>');
_head_wr('<p class="banner_nav">');

//if(iframe	==	'search')
//{
//	_head_wr('<iframe src="http://search.jiayuan.com/top.html" scrolling="no"	frameborder="0"	width="750px" height="90px"></iframe>');

//}
//else
//{
	_head_wr('<iframe src="'+HEAD_FRA_URL+iframe+'_1_20_10.html" scrolling="no"	frameborder="0"	width="750px" height="90px"></iframe>');
//}

_head_wr('</p>');
_head_wr('<ul class="index_menu">');
_head_wr('<li class="index_menu01'+class_arr[0]+'"><a href="http://www.'+mydomain+'/" title="佳缘首页">佳缘首页</a></li>');
_head_wr('<li class="index_menu02'+class_arr[1]+'"><a href="http://www.'+mydomain+'/usercp/" title="我的佳缘">我的佳缘</a></li>');
_head_wr('<li class="index_menu03'+class_arr[2]+'"><a href="http://search.'+mydomain+'/" title="高级搜索">高级搜索</a></li>');
_head_wr('<li class="index_menu04'+class_arr[5]+'"><a href="http://online.'+mydomain+'/" title="在线聊天">在线聊天</a></li>');
_head_wr('<li class="index_menu05'+class_arr[3]+'"><a href="http://party.'+mydomain+'/" title="交友活动">交友活动</a></li>');
_head_wr('<li class="index_menu06'+class_arr[9]+'"><a href="http://www.'+mydomain+'/paper/" title="爱情测试">爱情测试</a></li>');
_head_wr('<li class="index_menu07'+class_arr[4]+'"><a href="http://diary.'+mydomain+'/" title="情感博客">情感博客</a></li>');
_head_wr('<li class="index_menu08'+class_arr[6]+'"><a href="http://love.'+mydomain+'/" title="成功故事">成功故事</a></li>');
_head_wr('<li class="index_menu09'+class_arr[10]+'"><a href="http://www.'+mydomain+'/wedding/" title="集体婚礼">集体婚礼</a></li>');
_head_wr('<li class="index_menu10'+class_arr[8]+'"><a href="http://www.'+mydomain+'/master/" title="斑竹小龙女">斑竹小龙女</a></li>                                    ');
_head_wr('</ul>');
_head_wr('</div>');

_head_wr('</div>');
_head_wr('</div>');

