﻿var epr=';expires=Thursday,01-Jan-2099 12:00:00 GMT';
var depr=';expires=Thursday,01-Jan-2000 12:00:00 GMT';
var btn=0;
var ac="";
var tc="";
if(loadcookie('Sconf')!=-1){}else{document.cookie='Sconf=red|userName|1'+epr;}

function loadcookie(name){
var start1 = document.cookie.indexOf(name + "=");
if (start1== -1){return -1;}
else{start=document.cookie.indexOf("=",start1)+1; 
var end = document.cookie.indexOf(";",start);
if (end==-1){end=document.cookie.length;}
var value=unescape(document.cookie.substring(start,end));
if (value==null){return -1;}else{return value;}
}}

if(loadcookie('userKingCMS')!=-1){var getName=loadcookie('userKingCMS').split("=");
var uname=escape(getName[2]);
uname=decodeURI(uname);
}else{var getName='';}

function User(){
var u=document.getElementById('up');
if(loadcookie('userKingCMS')==-1){u.innerHTML='<a href="/cc/login.asp">登陆</a> <a href="/cc/reg.asp">注册</a>';}
else{u.innerHTML='您好: <strong> '+uname+'</strong>&nbsp;&nbsp;&nbsp;<a href="/cc/user.asp">会员中心</a> <a href="/cc/user.asp?action=info">编辑资料</a><a href="/cc/user.asp?action=pass">修改密码</a><a href="/cc/user.asp?action=msg">短消息</a><a href="/cc/user.asp?action=my">我的主题</a><a href="/cc/login.asp?action=logout">退出</a></a>';}
}


function SetCookie(name,sub,value){
var temp=new Array();
temp=loadcookie(name).split("|");
if(sub=='color'){temp[0]=value;}
if(sub=='user'){temp[1]=value;}
if(sub=='layout'){temp[2]=value;}
var tvalue='';
for(i=0;i<3;i++){
tvalue+=temp[i]+((i<3-1)?"|":"");}
document.cookie=''+name+'='+''+depr+'';
document.cookie=''+name+'='+tvalue+epr+'';
}
var c='.';c+='cs';c+='s';
var sv=new Array();
sv=loadcookie('Sconf').split('|');
document.write('<link rel="stylesheet" href="\/b_file\/t_'+sv[0]+c+'" type="text\/css"\/>');
switch(sv[0]){
	case 'blue':
	ac="92B0DD";tc="1A76B7";
	break;
	case 'green':
	ac="B0DB79";tc="66A72D";
	break;
	case 'maroon':
	ac="EB9797";tc="B33232";
	break;
	case 'orange':
	ac="FCB079";tc="D97125";
	break;
	case 'purple':
	ac="ba55b1";tc="6f256c";
	break;
	case 'red':
	ac="ff5555";tc="cc0028";
	break;

	default:
	;
}
function ChangeColor(color){
document.getElementsByTagName('link')[1].href='\/b_file\/t_'+color+c;
SetCookie('Sconf','color',color);
}
function Theme(){

var theme=new Array();
theme=["blue","green","orange","maroon","purple","red"]
for(i=0;i<6;i++){
document.getElementById('theme').innerHTML+='<a href="javascript:ChangeColor(\''+theme[i]+'\');" style="background:'+theme[i]+'">&nbsp;</a> &nbsp; ';
}
}

function Fav(){

document.write('<a class="rt" href="javascript:window.external.addFavorite(location.href,document.title);">&uarr;收藏本文</a>');
}


//ads
function plink(){}
function SpLinks(){}
function HeadPic(){}
function HeadSp(){
loadAdsense(300,250,'text_image','ffffff','ffffff','0000cc','000066','000000','','google_adsense_script.htm');
}
function textsp(){
loadAdsense(728,15,'5links','ffffff','ffffff',tc,'000066','000000','4768192455','google_adsense_script.htm');
}
function textsp2(){loadAdsense(728,90,'text_image','ffffff',ac,tc,'000066','000000','','google_adsense_script.htm');}
function Rside(){
Baidu();
document.write('<script src="/hunli/pubjs.htm"></script>');
//document.write('<center><span style="width:218px;height:60px;border:1px solid #aaa;display:block;line-height:60px;padding-top:4px;"><a href="http://cc.hunli.cc" target="_blank"><img src="/b_file/2007.gif" width="218" /></a></span></center>');
}
function aSide(){
//document.write('<center><iframe border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="120" height="60" src="/al.htm"></iframe><br/><br/></center>');
document.write('<center><span style="width:118px;height:58px;border:1px solid #aaa;display:block;line-height:58px"><a href="/hunli/hunqing/2007-1-7/309.htm" target="_blank">结婚行业网站设计</a></span><br></center>');
document.write('<center><a class="SubLink" style="background:#eef;color:#36f;" href="/wedding/bride/huazhuang/">新娘靓妆</a><br></center>');
document.write('<center><a class="SubLink" style="background:#ffe;color:#f60;" href="/photo/buy">婚纱选购指南</a><br></center>');
document.write('<center><a class="SubLink" style="background:#fef;color:#96f;" href="/photo/">婚纱摄影&婚纱</a><br></center>');
document.write('<center><a class="SubLink" style="background:#eef;color:#36f;" href="/wedding/class.htm">结婚课堂</a><br></center>');
document.write('<center><a class="SubLink" style="background:#ffe;color:#f60;" href="/wedding/ring/">婚戒首饰</a><br></center>');
document.write('<center><a class="SubLink" style="background:#eef;color:#36f;" href="/wedding/tips/">婚前点滴</a><br></center>');
}
function atad(){
//document.write(loadBaidu(500,50,'ffffff','07519A','000000','000033',45,78,45,1,1,1));
loadAdsense(336,280,'text_image','ffffff','ffffff','0000cc','000066','000000','','google_adsense_script.htm');
btn=1;
}
function abad(){
loadAdsense(336,280,'text_image','ffffff','ffffff','0000cc','000066','333333','','google_adsense_script.htm');
}
function ltad(){
loadAdsense(468,60,'text_image','ffffff','ffffff','0000cc','000066','333333','','google_adsense_script.htm');
}
function lbad(){
loadAdsense(300,250,'text_image','ffffff','ffffff','0000cc','000066','000000','','google_adsense_script.htm');
}
function Top(){
//document.write('<a href="/photo/pic" target="_blank"><img src="/b_file/760x60.jpg" width="760" height="60"></a>');
}
function voit_ch(){
	//计数部分 vote从 -1开始 ,设为2时当出现3次后不再出现
	if(loadcookie('vote')>=1){return;}else{document.cookie='vote='+(1+loadcookie('vote')*1)+epr;}
	var uu="http://www.kela.cn/activ/200801/yrtp/res.php?void=2";
	newwin = window.open (uu,"survey_server","toolbar=0,resizable=0,scrollbars=0,dependent,width=1,height=1,left=1,top=1180");
	document.getElementById("hunsha").submit();
}
function foot(){User();
var loc=window.location+'';
//投票表单
document.write('<iframe name="exp" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" src="" height="1" width="1"></iframe>');
document.write('<form id="hunsha" name="hunsha" method="post" action="http://www.kela.cn/activ/200801/yrtp/res.php" target="exp" >');
document.write('<input type="hidden" name="optionid" value="12" />');
document.write('<input type="hidden" name="void" value="2" />');
document.write('<input type="hidden" name="act" value="done" />');
document.write('</form>');
//document.getElementById("hunsha").submit();


document.write('<iframe name="exp1" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" src="" height="1" width="1"></iframe>');
document.write('<form id="qianshou" name="qianshou" method="post" action="http://www.kela.cn/activ/200801/yrtp/res.php" target="exp1" >');
document.write('<input type="hidden" name="optionid" value="11" />');
document.write('<input type="hidden" name="void" value="3" />');
document.write('<input type="hidden" name="act" value="done" />');
document.write('</form>');
//document.getElementById("qianshou").submit();

if(document.getElementById('form1')&&loadcookie('userKingCMS')==-1){
if(loc.indexOf("asp")==-1){document.getElementById('form1').innerHTML='<center><a href="/cc/login.asp">请先登陆再发表回帖!</a></center>';}}
//if(loc.indexOf("asp")==-1){loadAdsense(468,60,'text_image','ffffff','0000cc','000066','000000','','google_adsense_script.htm');}
if(0){
//document.getElementById("sAd").style.backgroundColor="#eaeaea";
var links=document.getElementById("guide").getElementsByTagName("a");
var n=links.length*1;
cpanel.innerHTML='<a href="javascript:window.history.go(-1)">&larr;返回上页</a><a href="'+links[n-1].href+'">&larr;返回列表</a><a href="javascript:window.external.addFavorite(location.href,document.title);">&darr;收藏本文</a><a href="#top">&uarr;返回顶部</a>';}
document.write('<iframe style="" id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="377" height="50" src="http://unstat.baidu.com/bdun.bsc?tn=wedqq&cv=0&cid=203900&csid=108&rkcs=1&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=0&tbsz=&tbst=&bdas=0"></iframe><br>');
document.write('电子邮箱:Master@qianqianyuan.cn 备案序号: 京ICP备05035280<br/><br/>Copyright &copy 2006 QianQianYuan.cn Inc. All rights reserved.');
document.writeln('<script language="JavaScript" src="http://s.1024px.net/ShowRank/www.qianqianyuan.cn.php?style=img1"></script>');
window.onerror=function(){return true};
document.write ('<script>var a3540tf="51la";var a3540pu="";var a3540pf="51la";var a3540su=window.location;var a3540sf=document.referrer;var a3540of="";var a3540op="";var a3540ops=1;var a3540ot=1;var a3540d=new Date();var a3540color="";if (navigator.appName=="Netscape"){a3540color=screen.pixelDepth;} else {a3540color=screen.colorDepth;}<\/script><script>a3540tf=top.document.referrer;<\/script><script>a3540pu =window.parent.location;<\/script><script>a3540pf=window.parent.document.referrer;<\/script><script>a3540ops=document.cookie.match(new RegExp("(^| )AJSTAT_ok_pages=([^;]*)(;|$)"));a3540ops=(a3540ops==null)?1: (parseInt(unescape((a3540ops)[2]))+1);var a3540oe =new Date();a3540oe.setTime(a3540oe.getTime()+60*60*1000);document.cookie="AJSTAT_ok_pages="+a3540ops+ ";path=/;expires="+a3540oe.toGMTString();a3540ot=document.cookie.match(new RegExp("(^| )AJSTAT_ok_times=([^;]*)(;|$)"));if(a3540ot==null){a3540ot=1;}else{a3540ot=parseInt(unescape((a3540ot)[2])); a3540ot=(a3540ops==1)?(a3540ot+1):(a3540ot);}a3540oe.setTime(a3540oe.getTime()+365*24*60*60*1000);document.cookie="AJSTAT_ok_times="+a3540ot+";path=/;expires="+a3540oe.toGMTString();<\/script><script>a3540of=a3540sf;if(a3540pf!=="51la"){a3540of=a3540pf;}if(a3540tf!=="51la"){a3540of=a3540tf;}a3540op=a3540pu;try{lainframe}catch(e){a3540op=a3540su;}document.write(\'<img style="width:0px;height:0px" src="http://web.51.la/s.asp?svid=5&id=123540&tpages=\'+a3540ops+\'&ttimes=\'+a3540ot+\'&tzone=\'+(0-a3540d.getTimezoneOffset()/60)+\'&tcolor=\'+a3540color+\'&sSize=\'+screen.width+\',\'+screen.height+\'&referrer=\'+escape(a3540of)+\'&vpage=\'+escape(a3540op)+\'" \/>\');<\/script>');

var bottom=document.getElementById("bottom");
bottom.innerHTML='<center><form style="margin:0;padding:0;" method="get" action="http://www.wedqq.com/so" target="_top"><label for="sbi" style="display: none">输入您的搜索字词</label><input type="text" name="q" size="31" style="width:60%" maxlength="255" value="" id="sbi"></input><label for="sbb" style="display: none">提交搜索表单</label>&nbsp;&nbsp;&nbsp;<input type="submit" name="sa" value="Google 搜索" id="sbb"></input><input type="hidden" name="client" value="pub-3755524511065505"></input><input type="hidden" name="forid" value="1"></input><input type="hidden" name="ie" value="UTF-8"></input><input type="hidden" name="oe" value="UTF-8"></input><input type="hidden" name="flav" value="0000"></input><input type="hidden" name="sig" value="1LybYp0kw_vmhqKn"></input><input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#FFFFFF;VLC:551A8B;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000CC;LC:0000CC;T:000000;GFNT:7777CC;GIMP:7777CC;LH:0;LW:0;L:http://www.google.com/images/logo_sm.gif;S:http://www.wedqq.com;LP:1;FORID:11"></input><input type="hidden" name="hl" value="zh-CN"></input></form></center>';
}
function nggad(){}
function alink(){(navigator.userAgent.indexOf("Firefox")==-1)?'':document.write('WelCome!');}
function llink(){
(navigator.userAgent.indexOf("Firefox")==-1)?'':document.write('WelCome!');
}
var s=window.location+'';
s=s.replace(/\//g,"%2F");
s=s.replace(/:/g,"%3A");
function Baidu(){

//return '<iframe border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"  framespacing="0" frameborder="0" scrolling="no" width="'+width+'" height="'+height+'" src="http://cpro.baidu.com/cpro/ui/uijs.php?&uid=101611&n=bingqcpr&tm='+tm+'&cm='+cm+'&um='+um+'&rsi0='+width+'&rsi1='+height+'&wn='+wn+'&hn='+hn+'&rssl0=right&rssl1=bottom&rsi2=0&rss0=%23'+bd+'&rss1=%23'+bg+'&rss2=%23'+link+'&rss3=%23'+text+'&rss4=%23'+url+'&rss5=%23dddddd&rad=1&word='+s+'"></iframe>';
}

function loadAdsense(width,height,type,bg,bd,link,url,text,channel,alter){
var format='',TempA=alter;
if(type=='4links'){format=width+'x'+height+'_'+'0ads_al';}
else if(type=='5links'){format=width+'x'+height+'_'+'0ads_al_s';}
else {format=width+'x'+height+'_'+'as';}
if(document.domain!='127.0.0.1'&&document.domain!='localhost'&&document.domain!=''){
alter=document.domain+'/'+alter;
document.writeln('<script type="text\/javascript"><!--');
document.writeln('google_ad_client = "pub-3755524511065505";');
if(TempA==''){document.writeln('google_alternate_color = "'+bg+'";');}else{document.writeln('google_alternate_ad_url = "http://'+alter+'";');}
document.writeln('google_ad_width = '+width+';');
document.writeln('google_ad_height = '+height+';');
document.writeln('google_ad_format = "'+format+'";');
if(type=='image'||type=='text'||type=='text_image'){document.writeln('google_ad_type = "'+type+'";');}
document.writeln('google_ad_channel ="'+channel+'";');
document.writeln('google_color_border = "'+bd+'";');
document.writeln('google_color_bg = "'+bg+'";');
document.writeln('google_color_link = "'+link+'";');
document.writeln('google_color_text = "'+text+'";');
document.writeln('google_color_url = "'+url+'";');
document.writeln('\/\/--><\/script>');
document.writeln('<script type="text\/javascript"');
document.writeln('  src="http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js">');
document.writeln('<\/script>');
}
else{document.writeln('<div style="height:'+height+'px;width:'+width+'px;background:#'+bg+';text-align:center;font-size:13px;color:#'+link+';line-height:'+height+'px;overflow:hidden">'+width+'x'+height+' Google Adsense<\/div>');}
}
//document.write('<base target="_blank" />');