<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">//-----------------------------------------------------------------------------------------------
//全局变量
//
var g_TagetServer = getTagetServer(1, isLocalServer(location.hostname));
var g_TagetServer_2 = getTagetServer(2, isLocalServer(location.hostname));

var g_rf = "";
//-----------------------------------------------------------------------------------------------

var go_canClick = true, go_to;
function g(s) { if (!ckTime()) { return; } toUrl = getToUrl(s); location.href = toUrl; }
function gt(s, t) {
    if (!ckTime()) { return; } toUrl = getToUrl(s);
    t.location.href = toUrl;
}
function o(s) {
    if (!ckTime()) { return; }
    toUrl = getToUrl(s);
    window.open(toUrl);
}

function o2(s, t, l, w, h) {
    if (!ckTime()) { return; } toUrl = getToUrl(s);
    window.open(toUrl, "_blank", "top=" + t + ",left=" + l + ",menubar=0,scrollbars=1,resizable=1,width=" + w + ",height=" + h);
}
function o3(s, t, l) {
    var sw = screen.width / 2;
    var sh = screen.height / 2;
    o2(s, t, l, sw, sh);
}
function o4(s) { o3(s, 0, 0); }

function t(s) { location.href = s; }
function to(s) { window.open(s); }
function es(s) { var t = s; t = escape(t); t = t.replace(/\+/ig, "%2b"); return t; }
function wto() { go_canClick = true; }
function ckTime() {
    var r = true;
    if (go_canClick) {
        go_canClick = false;
        window.clearTimeout(go_to)
        go_to = window.setTimeout("wto()", 500);
    }
    else {
        r = false;
    }
    return r;
}
function getToUrl(s) {
    var r = "", kind = "", id = "", para = "", t = s, toUrl = "", p, a, b, z, i;
    kind = t.substr(0, 2);
    id = t.substr(2);
    p = id.indexOf("|&amp;");
    if (p &gt; -1) {
        z = id;
        id = z.substr(0, p);
        z = z.substr(p);
        a = z.split("|&amp;");
        for (i = 1; i &lt; a.length; i++) {
            z = a[i];
            p = z.indexOf("=");
            if (p &gt; -1) { para = para + "&amp;" + z.substr(0, p + 1) + es(z.substr(p + 1)); }
            else { para = para + z; }
        }
    }
    else {
        p = id.indexOf("|");
        if (p &gt; -1) {
            z = id;
            id = z.substr(0, p);
            para = z.substr(p + 1);
        }
    }
    id = es(id);

    switch (kind) {
        case "ii":
            r = "%i%?id=" + id + para; break;
        case "II":
            r = "%i%?k=2&amp;id=" + id + para; break;

        case "ft":
            r = "%forum%forumTop#aspx?forumID=" + id + para; break;
        case "fb":
            r = "%forum%forumBottom#aspx?id=" + id + "&amp;forumid=" + para; break;
        case "fl":
            r = "%forum%postList#aspx?forumid=" + id + para; break;
        case "fa":
            r = "%forum%postListAll#aspx?forumid=" + id + para; break;
        case "fg":
            r = "%forum%postGoToTop#aspx?id=" + id + "&amp;forumid=" + para; break;
        case "mr":
            r = "%forum%moreReview#aspx?id=" + id + para; break;

        case "at":
            r = "%article%articleTop#aspx?articleID=" + id + para; break;
        case "ab":
            r = "%article%articleBottom#aspx?id=" + id + "&amp;articleid=" + para; break;
        case "al":
            r = "%article%postList#aspx?articleid=" + id + para; break;
        case "aa":
            r = "%article%postListAll#aspx?articleid=" + id + para; break;
        case "ag":
            r = "%article%postGoToTop#aspx?id=" + id + "&amp;articleid=" + para; break;
        case "Mr":
            r = "%article%moreReview#aspx?id=" + id + para; break;

        case "fp":
            r = g_TagetServer + "%funpic%funPicHtml#aspx?funPicID=" + id + para; break;
        case "fP":
            //r="/funpic/html/"+para+"/p_"+id+".shtm";break;
            r = g_TagetServer + "%funpic%funPicHtml#aspx?funPicID=" + id + para; break;
        case "fB":
            //r=g_TagetServer_2+"/"+"funPic"+"/html/"+para+"D/"+id+".shtm";break;
            r = g_TagetServer + "%funpic%funPicBottom#aspx?id=" + id + "&amp;funPicID=" + para; break;
        case "fA":
            r = g_TagetServer + "%funPic%postListAll#aspx?funPicid=" + id + para; break;
        case "fG":
            r = g_TagetServer + "%funPic%postGoToTop#aspx?id=" + id + "&amp;funPicid=" + para; break;
        case "fL":
            r = g_TagetServer + "%funPic%postList#aspx?funPicid=" + id + para; break;
        case "mR":
            r = g_TagetServer + "%funPic%moreReview#aspx?id=" + id + para; break;

        case "gb":
            r = "%member%guestBook#aspx?id=" + id + para; break;
        case "mi":
            r = "%member%memberInfo#aspx?" + para; break;
        case "mf":
            r = "%makefriend%default#aspx?id=" + id + para; break;
        case "ma":
            r = "%member%marriage_add#aspx?" + para; break;
        case "rc":
            r = "%recommendation#aspx?u=" + id + para; break;

        case "ms":
            r = "%member%show#aspx?id=" + id + para; break;
        case "mp":
            r = "%member%photo_more#aspx?id=" + id + para; break;
        case "da":
            r = "%dating%dating_add#aspx?" + para; break;
        case "dt":
            r = "%dating%default#aspx?id=" + id + para; break;
        case "dd":
            r = "%dating%detail#aspx?id=" + id + para; break;
        case "se":
            r = "%member%sendEmail#aspx?id=" + id + para; break;
        case "mh":
            r = "%mh#aspx?id=" + id + para; break;

        case "cn":
            r = "/constellation/"; break;
        case "af":
            r = "%member%friends_main#aspx?id=" + id + para; break;
        case "ur":
            r = "%member%url_main#aspx?id=" + id + para; break;

        default:
    }
    p = r.indexOf("?"); //?前面的才要替换
    if (p &gt; -1) {
        z = r.substr(0, p);
        z = z.replace(/%/g, "/");
        z = z.replace(/#/g, ".");
        r = r.substr(p);
        r = z + r;
    }
    //alert("kind="+kind+"|"+"id="+id+"|"+"para="+para+"|toUrl="+toUrl);
    //alert(r);
    return r;
}

function sp(url, k) {
    var swidth = screen.width - 100;
    var sheight = screen.height - 100;
    var stop = 20;
    var sleft = (screen.width - swidth) / 2;

    switch (k) {
        //case "100":  //flash
        //	break;
        default:
            open("//tlt.7town.com/ZComImgDIY/step2.asp?imageUrl=" + url + "&amp;uid=20097&amp;a=&amp;b=&amp;c=&amp;d=&amp;e=&amp;f=", "_blank", "top=" + stop + ",left=" + sleft + ",menubar=0,scrollbars=1,resizable=1,width=" + swidth + ",height=" + sheight);
            //open("//www.caishow.com/cooperation/bigPic.asp?f=13841&amp;Title=&amp;Notify=&amp;picUrl="+url,"_blank","top="+stop+",left="+sleft+",menubar=0,scrollbars=0,resizable=1,width="+swidth+",height="+sheight);
            break;
    }

}

function ring_clk(v) {
    var StrA = v;
    var StrB = v;
    //open("//www.caishow.com/ring_body.asp?f=13841&amp;search="+StrA);
    open("//so.7town.com/Search.html?uid=20097&amp;resctype=&amp;keyword=" + escape(StrA) + "&amp;a=&amp;b=&amp;c=&amp;d=&amp;e=&amp;f=&amp;g=");

}




//-----------------------------------------------------------------------------------------------
function isLocalServer(hn) {
    /*
     hn:
     www.loveinhere.com
     www.here.love

     www.loveinhere.com.zh
     www.here.love.zh
    */

    //var hn=location.hostname;
    hn = hn.toLowerCase();
    //alert(hn);
    var t = ".zh";
    var t2 = "";
    var p = hn.lastIndexOf(t);
    if (p &gt; -1) {
        t2 = hn.substr(p);
        //alert("t2="+t2);
    }

    var isLocal = false;
    if (t == t2) {
        isLocal = true;
    }
    return isLocal;

}
function getTagetServer(s, isLocalServer) {
    var r = "";
    var localServerSuffix = ".zh";
    var hn = location.hostname;
    var p = hn.lastIndexOf("here.love");

    if (s == 1) {
        if (p &gt; -1) {
            r = "//www.here.love";
        }
        else {
            r = "//www.loveinhere.com";
        }
    }
    else if (s == 2) {
        if (p &gt; -1) {
            r = "//funPicHtml.here.love";
        }
        else {
            r = "//funPicHtml.loveinhere.com";
        }
    }

    if (isLocalServer) {
        r = r + localServerSuffix;
    }

    //alert(r);

    return r;
}
//var xxxx=getTagetServer(1,isLocalServer(location.hostname));
//alert(xxxx);
//------------------------------------------------------------------------



g_rf = document.referrer;
window.defaultStatus = "爱在这儿 " + g_TagetServer + " 您要寻找的爱就在这儿！";


//------------------------------------------------------------------------
function readCookie_go(cookieName) {
    var theCookie = "" + document.cookie;
    var i = theCookie.indexOf(cookieName + "=");
    if (i == -1 || cookieName == "") return "";
    var j = theCookie.indexOf(';', i);
    if (j == -1) j = theCookie.length;
    return unescape(theCookie.substring(i + cookieName.length + 1, j));
}
function check_member_baleful() {
    var cookieValue = "BM-3";
    if (readCookie_go("member_baleful") == cookieValue) {
        top.location.replace(g_TagetServer + "/other/bomb/bomb" + "." + "h" + "t" + "m");
    }
}
window.setTimeout("check_member_baleful()", 500);
//------------------------------------------------------------------------
</pre></body></html>