﻿
var jianrong = false
try {
    var tliu = {};
    var tliua = navigator.userAgent.toLowerCase();
    var tlius;
    (tlius = tliua.match(/msie ([\d.]+)/)) ? tliu.ie = tlius[1] :
 (tlius = tliua.match(/firefox\/([\d.]+)/)) ? tliu.firefox = tlius[1] :
 (tlius = tliua.match(/chrome\/([\d.]+)/)) ? tliu.chrome = tlius[1] :
 (tlius = tliua.match(/opera.([\d.]+)/)) ? tliu.opera = tlius[1] :
 (tlius = tliua.match(/version\/([\d.]+).*safari/)) ? tliu.safari = tlius[1] : 0;
    if (tliu.ie || tliu.firefox) {
        jianrong = true
    }
} catch (err) { }
document.writeln("<div id=\"tdatu\"><table width=\"100%\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#1d1d1d\"><tr><td bgcolor=\"#fff4eb\" id=\"ttuu\"><\/td><\/tr><\/table><\/div>")
function yug() {
    document.getElementById("tdatu").style.visibility = 'hidden'
}
var tyu
function tw() {
    if (tyu == 2) { yug(); }
    tyu = 0
}
function ty(zb) {
    if (tliu.ie) {
        zb = event
    }
    var tem
    try {
        tem = zb.srcElement.id
    } catch (err) { tem = zb.target.id; }
    var yi = tem.charAt(0)
    if (yi != "p" && yi != "z") { return; }
    tem = tem.replace(yi, "")
    if (isNaN(tem)) { return; }
    document.getElementById("tdatu").style.visibility = 'visible';
    
    document.getElementById("tdatu").style.top = (document.documentElement.scrollTop + zb.clientY) + "px";
    var yt = document.getElementById("ttuu")
    if (yi == "z") {
        document.getElementById("tdatu").style.left = (zb.clientX + 1) + "px";
        tyu = 1
        yt.innerHTML = "<iframe height=\"16\" src=\"\/htm\/qt\/ti.htm?" + tem + "\" frameborder=\"0\" width=\"100%\" scrolling=\"no\" id=\"ttskj\" name=\"ttskj\"><\/iframe>"
        return
    }
    document.getElementById("tdatu").style.left = (zb.clientX + 20) + "px";
    tyu = 2
    yt.innerHTML = "<div align='center'><img id='datu' name='datu' src='" + document.getElementById("d" + tem).src + "'></div>"
    if ((document.documentElement.clientHeight - zb.clientY - document.getElementById("datu").height) < 14) {
        document.getElementById("tdatu").style.top = (document.documentElement.scrollTop + (document.documentElement.clientHeight - document.getElementById("datu").height - 14)) + "px"
    }
    if (document.getElementById("datu").width > 770) {
        document.getElementById("datu").width = 770
    }
}
function cook(name) {
    var sz = document.cookie.split("; "), s2
    for (var i = 0; i < sz.length; i++) {
        s2 = sz[i].split("=")
        if (s2[0] == name) { return decodeURIComponent(s2[1]); break; };
    }
    return "";
}
var login_user = cook("nihao")
var lo1m = cook("lo1m")
    var lo2m = cook("lo2m")
    var lo3m = cook("lo3m")
    var lo1 = cook("lo1")
    var lo2 = cook("lo2")
    var lo3 = cook("lo3")
    
    var loji = cook("loji")
    document.writeln("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td height=\"30\" align=\"center\" class=\"zhenghun huin\" id=\"tding\"><a href=\"http:\/\/wap.hunlian.cn\" target=\"_blank\">手机征婚交友网<\/a><\/td><\/tr><\/table>")
var tdm
if (login_user != "") {
    tdm = "<a href=\"\/wj\/\">" + login_user + "<\/a>：欢迎您！"
    if (loji == "0" || loji =="1") {
        tdm += ("请速 <a href=\"\/yy\/\">升级为诚意会员<\/a>，沟通畅通无阻，正式踏上爱的旅程！")
    }
    tdm += ("　<a href=\"\/wj\/a0.aspx\">征婚反馈<\/a>　<a href=\"\/wj\/b1.aspx\">电脑配对<\/a>　<a href=\"\/wj\/exit.aspx\">退出<\/a>")
}else{
    tdm=("中国最大的征婚网站群：在全国 <a href=\"\/fz\/\"><strong>每个县市<\/strong><\/a> 都有本地征婚交友分站。若要开始征婚，第一步请 <strong><a href=\"\/wj\/zhu\/\">注册会员<\/a><\/strong> 或 <strong><a href=\"\/wj\/login.aspx\">登录<\/a><\/strong>")
}
var ttemp, t, losex,tlu
var houz = window.location.search
losex = cook("losex")
function coo(name, fu) {
    var sz, s2
    if (fu == "&") {
      sz=  window.location.search.replace("?", "").split("&")
    } else {
     sz= document.cookie.split("; ")
    }
    for (var i = 0; i < sz.length; i++) {
        s2 = sz[i].split("=")
        if (s2[0] == name) { return s2[1]; break; };
    }
    return "";
}
function tfor() {
var t=document.getElementById("b").value
    if (t != "") {
        window.location.href = "/wj/sear.htm?b=" + t
    }
	}
var tloid=coo("loid",";")
nifen=login_user
function tf(shei,na){
var chu=shei.split("$");
chu=chu[na]
return chu;
}
	var urq=window.location.pathname
var ur=urq.charAt(1)
if(ur=="9" || ur=="" || ur=="j")ur="i"
var hm = cook("m", "&"); hf = coo("f", "&"); hj = coo("j", "&")
if (hf == "0") { hf = ""; }
function tleft(zi, shu) {
    try {
        if (shu > 0) { return zi.substring(0, shu) }
        else { return zi }
    } catch (err) { return zi }
}
var tji=coo("j","&")
if(tji=="") tji="0"
function thuan(gl,ok){
	if(gl==""){
	gl="?"	
	}
gl=gl.replace("&"+ok, "")
gl=gl.replace(ok+"&", "")
gl=gl.replace(ok, "")
if(gl!="?"){
	if(gl.charAt(gl.length-1)!="&"){
	gl+="&"
	}
}
return gl
}
function turq(){
var wz = window.location.search
wz=thuan(wz,"f="+hf)
wz=thuan(wz,"j="+hj)
wz=thuan(wz,"m="+hm)
return wz
}
document.writeln("<div id=\"tceng\"><table width=\"350\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" class=\"bbb\" id=\"tcengb\" style=\"filter:progid:DXImageTransform.Microsoft.Shadow(Color=#333333,Direction=120,strength=5)\">");
document.writeln("  <tr>");
document.writeln("    <td class=\"gebj\">");
document.writeln("      <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("        <tr id=\"tiz\" class=\"yi\" onmousedown=\"startDrag()\" onmouseup=\"stopDrag()\" onmousemove=\"drag()\">");
document.writeln("          <td class=\"cu14\" id=\"ttii\"><\/td>");
document.writeln("          <td align=\"right\"><img alt=\"关闭\" src=\"\/image\/zx\/guan.gif\" name=\"tan\" width=\"28\" height=\"15\" id=\"tan\" style=\"cursor: pointer;\" onclick=\"tclo()\" onmouseover=\"tguo(\'l\')\" onmouseout=\"tguo(\'\')\" \/><\/td>");
document.writeln("        <\/tr>");
document.writeln("      <\/table><\/td>");
document.writeln("  <\/tr>");
document.writeln("  <tr>");
document.writeln("    <td height=\"71\" class=\"baibj hang20\" id=\"tnei\"><\/td>");
document.writeln("  <\/tr>");
document.writeln("<\/table><\/div>")
document.getElementById("tceng").style.left = ((document.body.clientWidth / 2) - 167) + "px"
function tguo(ok){
document.tan.src="/image/zx/guan"+ok+".gif"
}
var tkg = 0
function tt_an(ok) {
    try {
        document.getElementById('t_an').style.visibility = ok
    } catch (err) {
    }
}
document.getElementById('tcengb').style.filter+="Alpha(Opacity=0)"
function tclo() {
	if(tkg!=1){
	    tkg = 2
        if (tliu.ie) {
	    tt_an("hidden")
	timcl = setTimeout("tclo();",100); 
	if (document.getElementById('tcengb').filters.alpha.opacity >0){
	document.getElementById('tcengb').filters.alpha.opacity-=20
}else{
clearTimeout(timcl);
document.getElementById('tceng').style.visibility='hidden'
try
{
   clearTimeout(timsi);
}
catch(err)
{ 
}
tkg=0
}
} else {
    document.getElementById('tceng').style.visibility = 'hidden'
    tkg = 0
}
	}
}
document.getElementById('tceng').style.visibility='hidden'
function topen(ti,nei,lei){
	if(tkg!=2){
		if(tkg==0){
			document.getElementById("tceng").style.top=(200 + parseInt(document.documentElement.scrollTop)) + "px"
			document.getElementById('tceng').style.visibility='visible'
			document.getElementById("ttii").innerHTML=ti
			if(lei==1){
		nei = ("<iframe src=\"/htm/tan/"+nei+"\" name=\"ttnei\" width=\"100%\" height=\"100\" scrolling=\"No\" frameborder=\"0\" id=\"ttnei\"></iframe>")
		}
		document.getElementById("tnei").innerHTML=nei
		tkg=1
}
if (tliu.ie) {
	timop = setTimeout("topen('"+ti+"','"+nei+"',"+lei+");",100); 
if (document.getElementById('tcengb').filters.alpha.opacity <100){
	document.getElementById('tcengb').filters.alpha.opacity += 20
}else{
clearTimeout(timop);
tkg = 0
if (ti != "登陆提示") {
    tt_an("visible")
}
}
} else {
    tkg = 0
    
}
		}
}
var x0=0,y0=0,x1=0,y1=0; 
var moveable=false; 
 
function startDrag(){ 
 if(event.button==1){ 
  document.getElementById("tiz").setCapture(); 
  x0 = event.clientX; 
  y0 = event.clientY;
  x1 = parseInt(document.getElementById("tceng").offsetLeft);
  y1 = parseInt(document.getElementById("tceng").offsetTop); 
  moveable = true; 
 } 
} 
function drag(obj){ 
 if(moveable){
     document.getElementById("tceng").style.left = (x1 + event.clientX - x0) + "px";
     document.getElementById("tceng").style.top = (y1 + event.clientY - y0) + "px"; 
 } 
}  
function stopDrag(obj){ 
 if(moveable){
     document.getElementById("tiz").releaseCapture(); 
  moveable = false; 
 }
}
function tgo(zhe, hao) {
    zhe.src = "/tu/zx/" + hao
}
function tt(hym, sex, na) {
    try {
        document.getElementById(na).innerHTML = "<a href='/wj/login.aspx?old=/yy/tui.aspx' target='_blank'><img src='/tu/zx/bao.png' alt='电话联系包成功' width='126' height='39' border='0' /></a>"
    } catch (err) {}
    if (losex == sex) {
        alert("对不起，你不能和同一性别的人聊天。")
        return
    }
    if (hym == "审核中") {
        alert("此会员尚未审核通过，不能私聊，请过1到3天再尝试。")
        return
    }
    try {
        if (tr_ketong != "ok") {
            alert("网页初始化还没完成，请稍候再发起聊天。\n若长久如此提示，则表明您的浏览器可能存在问题，请使用windows自带的ie浏览器（Internet Explorer）浏览本站。")
            return
        }
        lt(hym)
    } catch (err) {
        alert("网页初始化还没完成，请稍候再发起聊天。\n若长久如此提示，则表明您的浏览器可能存在问题，请使用windows自带的ie浏览器（Internet Explorer）浏览本站。")
    }
}
var tyuansu
function tbd(ok) {
tyuansu = ok
}
window.onbeforeunload = tzou;
function tzou() {
    try {
    if (tyuansu.tagName != "IMG") {
        tyuansu.innerHTML = "<img src=\'\/tu\/zx\/wait.gif\' alt=\'请稍候\' \/>"
    } else {
        tyuansu.src = "\/tu\/zx\/wait.gif"
    }
} catch (err) {}
}
function tyin() {
    wei.style.display = "none"
    yi.style.display = ""
}

