﻿

/**
* jQuery cycle plugin
*/
(function(g) { var h = "2.32"; var c = g.browser.msie && /MSIE 6.0/.test(navigator.userAgent); function d() { if (window.console && window.console.log) { window.console.log("[cycle] " + Array.prototype.join.call(arguments, "")) } } g.fn.cycle = function(j) { if (this.length == 0) { d("terminating; zero elements found by selector" + (g.isReady ? "" : " (DOM not ready)")); return this } var k = arguments[1]; return this.each(function() { if (j === undefined || j === null) { j = {} } if (j.constructor == String) { switch (j) { case "stop": if (this.cycleTimeout) { clearTimeout(this.cycleTimeout) } this.cycleTimeout = 0; g(this).data("cycle.opts", ""); return; case "pause": this.cyclePause = 1; return; case "resume": this.cyclePause = 0; if (k === true) { j = g(this).data("cycle.opts"); if (!j) { d("options not found, can not resume"); return } if (this.cycleTimeout) { clearTimeout(this.cycleTimeout); this.cycleTimeout = 0 } b(j.elements, j, 1, 1) } return; default: j = { fx: j} } } else { if (j.constructor == Number) { var s = j; j = g(this).data("cycle.opts"); if (!j) { d("options not found, can not advance slide"); return } if (s < 0 || s >= j.elements.length) { d("invalid slide index: " + s); return } j.nextSlide = s; if (this.cycleTimeout) { clearTimeout(this.cycleTimeout); this.cycleTimeout = 0 } b(j.elements, j, 1, s >= j.currSlide); return } } if (this.cycleTimeout) { clearTimeout(this.cycleTimeout) } this.cycleTimeout = 0; this.cyclePause = 0; var y = g(this); var t = j.slideExpr ? g(j.slideExpr, this) : y.children(); var o = t.get(); if (o.length < 2) { d("terminating; too few slides: " + o.length); return } var l = g.extend({}, g.fn.cycle.defaults, j || {}, g.metadata ? y.metadata() : g.meta ? y.data() : {}); if (l.autostop) { l.countdown = l.autostopCount || o.length } y.data("cycle.opts", l); l.container = this; l.elements = o; l.before = l.before ? [l.before] : []; l.after = l.after ? [l.after] : []; l.after.unshift(function() { l.busy = 0 }); if (l.continuous) { l.after.push(function() { b(o, l, 0, !l.rev) }) } if (c && l.cleartype && !l.cleartypeNoBg) { e(t) } var A = this.className; l.width = parseInt((A.match(/w:(\d+)/) || [])[1]) || l.width; l.height = parseInt((A.match(/h:(\d+)/) || [])[1]) || l.height; l.timeout = parseInt((A.match(/t:(\d+)/) || [])[1]) || l.timeout; if (y.css("position") == "static") { y.css("position", "relative") } if (l.width) { y.width(l.width) } if (l.height && l.height != "auto") { y.height(l.height) } if (l.startingSlide) { l.startingSlide = parseInt(l.startingSlide) } if (l.random) { l.randomMap = []; for (var p = 0; p < o.length; p++) { l.randomMap.push(p) } l.randomMap.sort(function(B, w) { return Math.random() - 0.5 }); l.randomIndex = 0; l.startingSlide = l.randomMap[0] } else { if (l.startingSlide >= o.length) { l.startingSlide = 0 } } var r = l.startingSlide || 0; t.css({ position: "absolute", top: 0, left: 0 }).hide().each(function(w) { var B = r ? w >= r ? o.length - (w - r) : r - w : o.length - w; g(this).css("z-index", B) }); g(o[r]).css("opacity", 1).show(); if (g.browser.msie) { o[r].style.removeAttribute("filter") } if (l.fit && l.width) { t.width(l.width) } if (l.fit && l.height && l.height != "auto") { t.height(l.height) } if (l.containerResize) { var u = 0, n = 0; for (var p = 0; p < o.length; p++) { var m = g(o[p]), x = m.outerWidth(), q = m.outerHeight(); u = x > u ? x : u; n = q > n ? q : n } y.css({ width: u + "px", height: n + "px" }) } if (l.pause) { y.hover(function() { this.cyclePause++ }, function() { this.cyclePause-- }) } var z = g.fn.cycle.transitions[l.fx]; if (g.isFunction(z)) { z(y, t, l) } else { if (l.fx != "custom") { d("unknown transition: " + l.fx) } } t.each(function() { var w = g(this); this.cycleH = (l.fit && l.height) ? l.height : w.height(); this.cycleW = (l.fit && l.width) ? l.width : w.width() }); l.cssBefore = l.cssBefore || {}; l.animIn = l.animIn || {}; l.animOut = l.animOut || {}; t.not(":eq(" + r + ")").css(l.cssBefore); if (l.cssFirst) { g(t[r]).css(l.cssFirst) } if (l.timeout) { l.timeout = parseInt(l.timeout); if (l.speed.constructor == String) { l.speed = g.fx.speeds[l.speed] || parseInt(l.speed) } if (!l.sync) { l.speed = l.speed / 2 } while ((l.timeout - l.speed) < 250) { l.timeout += l.speed } } if (l.easing) { l.easeIn = l.easeOut = l.easing } if (!l.speedIn) { l.speedIn = l.speed } if (!l.speedOut) { l.speedOut = l.speed } l.slideCount = o.length; l.currSlide = r; if (l.random) { l.nextSlide = l.currSlide; if (++l.randomIndex == o.length) { l.randomIndex = 0 } l.nextSlide = l.randomMap[l.randomIndex] } else { l.nextSlide = l.startingSlide >= (o.length - 1) ? 0 : l.startingSlide + 1 } var v = t[r]; if (l.before.length) { l.before[0].apply(v, [v, v, l, true]) } if (l.after.length > 1) { l.after[1].apply(v, [v, v, l, true]) } if (l.click && !l.next) { l.next = l.click } if (l.next) { g(l.next).bind("click", function() { return i(o, l, l.rev ? -1 : 1) }) } if (l.prev) { g(l.prev).bind("click", function() { return i(o, l, l.rev ? 1 : -1) }) } if (l.pager) { a(o, l) } l.addSlide = function(B, C) { var w = g(B), D = w[0]; if (!l.autostopCount) { l.countdown++ } o[C ? "unshift" : "push"](D); if (l.els) { l.els[C ? "unshift" : "push"](D) } l.slideCount = o.length; w.css("position", "absolute"); w[C ? "prependTo" : "appendTo"](y); if (C) { l.currSlide++; l.nextSlide++ } if (c && l.cleartype && !l.cleartypeNoBg) { e(w) } if (l.fit && l.width) { w.width(l.width) } if (l.fit && l.height && l.height != "auto") { t.height(l.height) } D.cycleH = (l.fit && l.height) ? l.height : w.height(); D.cycleW = (l.fit && l.width) ? l.width : w.width(); w.css(l.cssBefore); if (l.pager) { g.fn.cycle.createPagerAnchor(o.length - 1, D, g(l.pager), o, l) } if (typeof l.onAddSlide == "function") { l.onAddSlide(w) } }; if (l.timeout || l.continuous) { this.cycleTimeout = setTimeout(function() { b(o, l, 0, !l.rev) }, l.continuous ? 10 : l.timeout + (l.delay || 0)) } }) }; function b(o, j, n, q) { if (j.busy) { return } var m = j.container, s = o[j.currSlide], r = o[j.nextSlide]; if (m.cycleTimeout === 0 && !n) { return } if (!n && !m.cyclePause && ((j.autostop && (--j.countdown <= 0)) || (j.nowrap && !j.random && j.nextSlide < j.currSlide))) { if (j.end) { j.end(j) } return } if (n || !m.cyclePause) { if (j.before.length) { g.each(j.before, function(p, t) { t.apply(r, [s, r, j, q]) }) } var k = function() { if (g.browser.msie && j.cleartype) { this.style.removeAttribute("filter") } g.each(j.after, function(p, t) { t.apply(r, [s, r, j, q]) }) }; if (j.nextSlide != j.currSlide) { j.busy = 1; if (j.fxFn) { j.fxFn(s, r, j, k, q) } else { if (g.isFunction(g.fn.cycle[j.fx])) { g.fn.cycle[j.fx](s, r, j, k) } else { g.fn.cycle.custom(s, r, j, k, n && j.fastOnEvent) } } } if (j.random) { j.currSlide = j.nextSlide; if (++j.randomIndex == o.length) { j.randomIndex = 0 } j.nextSlide = j.randomMap[j.randomIndex] } else { var l = (j.nextSlide + 1) == o.length; j.nextSlide = l ? 0 : j.nextSlide + 1; j.currSlide = l ? o.length - 1 : j.nextSlide - 1 } if (j.pager) { g.fn.cycle.updateActivePagerLink(j.pager, j.currSlide) } } if (j.timeout && !j.continuous) { m.cycleTimeout = setTimeout(function() { b(o, j, 0, !j.rev) }, f(s, r, j, q)) } else { if (j.continuous && m.cyclePause) { m.cycleTimeout = setTimeout(function() { b(o, j, 0, !j.rev) }, 10) } } } g.fn.cycle.updateActivePagerLink = function(j, k) { g(j).find("a").removeClass("activeSlide").filter("a:eq(" + k + ")").addClass("activeSlide") }; function f(n, l, m, k) { if (m.timeoutFn) { var j = m.timeoutFn(n, l, m, k); if (j !== false) { return j } } return m.timeout } function i(j, k, n) { var m = k.container, l = m.cycleTimeout; if (l) { clearTimeout(l); m.cycleTimeout = 0 } if (k.random && n < 0) { k.randomIndex--; if (--k.randomIndex == -2) { k.randomIndex = j.length - 2 } else { if (k.randomIndex == -1) { k.randomIndex = j.length - 1 } } k.nextSlide = k.randomMap[k.randomIndex] } else { if (k.random) { if (++k.randomIndex == j.length) { k.randomIndex = 0 } k.nextSlide = k.randomMap[k.randomIndex] } else { k.nextSlide = k.currSlide + n; if (k.nextSlide < 0) { if (k.nowrap) { return false } k.nextSlide = j.length - 1 } else { if (k.nextSlide >= j.length) { if (k.nowrap) { return false } k.nextSlide = 0 } } } } if (k.prevNextClick && typeof k.prevNextClick == "function") { k.prevNextClick(n > 0, k.nextSlide, j[k.nextSlide]) } b(j, k, 1, n >= 0); return false } function a(k, l) { var j = g(l.pager); g.each(k, function(m, n) { g.fn.cycle.createPagerAnchor(m, n, j, k, l) }); g.fn.cycle.updateActivePagerLink(l.pager, l.startingSlide) } g.fn.cycle.createPagerAnchor = function(m, n, k, l, o) { var j = (typeof o.pagerAnchorBuilder == "function") ? o.pagerAnchorBuilder(m, n) : '<a href="#">' + (m + 1) + "</a>"; if (!j) { return } var p = g(j); if (p.parents("body").length == 0) { p.appendTo(k) } p.bind(o.pagerEvent, function() { o.nextSlide = m; var r = o.container, q = r.cycleTimeout; if (q) { clearTimeout(q); r.cycleTimeout = 0 } if (typeof o.pagerClick == "function") { o.pagerClick(o.nextSlide, l[o.nextSlide]) } b(l, o, 1, o.currSlide < m); return false }); if (o.pauseOnPagerHover) { p.hover(function() { o.container.cyclePause++ }, function() { o.container.cyclePause-- }) } }; function e(l) { function k(m) { var m = parseInt(m).toString(16); return m.length < 2 ? "0" + m : m } function j(o) { for (; o && o.nodeName.toLowerCase() != "html"; o = o.parentNode) { var m = g.css(o, "background-color"); if (m.indexOf("rgb") >= 0) { var n = m.match(/\d+/g); return "#" + k(n[0]) + k(n[1]) + k(n[2]) } if (m && m != "transparent") { return m } } return "#ffffff" } l.each(function() { g(this).css("background-color", j(this)) }) } g.fn.cycle.custom = function(u, o, j, l, k) { var t = g(u), p = g(o); p.css(j.cssBefore); var m = k ? 1 : j.speedIn; var s = k ? 1 : j.speedOut; var n = k ? null : j.easeIn; var r = k ? null : j.easeOut; var q = function() { p.animate(j.animIn, m, n, l) }; t.animate(j.animOut, s, r, function() { if (j.cssAfter) { t.css(j.cssAfter) } if (!j.sync) { q() } }); if (j.sync) { q() } }; g.fn.cycle.transitions = { fade: function(k, l, j) { l.not(":eq(" + j.startingSlide + ")").css("opacity", 0); j.before.push(function() { g(this).show() }); j.animIn = { opacity: 1 }; j.animOut = { opacity: 0 }; j.cssBefore = { opacity: 0 }; j.cssAfter = { display: "none" }; j.onAddSlide = function(m) { m.hide() } } }; g.fn.cycle.ver = function() { return h }; g.fn.cycle.defaults = { fx: "fade", timeout: 4000, timeoutFn: null, continuous: 0, speed: 1000, speedIn: null, speedOut: null, next: null, prev: null, prevNextClick: null, pager: null, pagerClick: null, pagerEvent: "click", pagerAnchorBuilder: null, before: null, after: null, end: null, easing: null, easeIn: null, easeOut: null, shuffle: null, animIn: null, animOut: null, cssBefore: null, cssAfter: null, fxFn: null, height: "auto", startingSlide: 0, sync: 1, random: 0, fit: 0, containerResize: 1, pause: 0, pauseOnPagerHover: 0, autostop: 0, autostopCount: 0, delay: 0, slideExpr: null, cleartype: 0, nowrap: 0, fastOnEvent: 0} })(jQuery); (function(a) { a.fn.cycle.transitions.scrollUp = function(c, d, b) { c.css("overflow", "hidden"); b.before.push(function(g, e, f) { a(this).show(); f.cssBefore.top = e.offsetHeight; f.animOut.top = 0 - g.offsetHeight }); b.cssFirst = { top: 0 }; b.animIn = { top: 0 }; b.cssAfter = { display: "none"} } })(jQuery);
/**
* Web developer public js class
* @author gaoli
* @date 2010-10-30
*/

(function(win, U, $) {

    win[U] = {
        /**
        * Registers module 
        * @param mods {Object}
        * @param cover {string}
        */
        add: function(mods, cover) {
            if (cover === undefined) cover = false;
            for (var i in mods)
                if (cover || !(i in this)) this[i] = mods[i];
            return this;
        }
    };

    win[U].add({
        /**
        * ie
        */
        ie: $.browser.msie,

        /**
        * ie6 | ie7
        */
        ie6: $.browser.msie && $.browser.version < 7,
        ie7: $.browser.msie && $.browser.version < 8,

        /**
        * hoverToggle
        * @param obj {Object}
        */
        hoverToggle: function(object) {
            $.each(object, function(obj, name) {
                $(obj).hover(function() {
                    $(this).addClass(name);
                }, function() {
                    $(this).removeClass(name);
                })
            })
        },

        /**
        * clearDefault
        * @param obj {jQueryObj}
        */
        clearDefault: function(obj, className) {
            if (className != undefined) {
                obj.addClass(className);
            }
            obj.focus(function() {
                if (this.value == this.defaultValue) {
                    this.value = "";
                    if (className != undefined)
                        $(this).removeClass(className);
                }
            }).blur(function() {
                if (this.value == '') {
                    this.value = this.defaultValue;
                    if (className != undefined)
                        $(this).addClass(className);
                }
            });
        }

    });



    /**
    * 通用二级导航
    */
    var navCity = $("#sites"),
		 navFloor = $(".nav_2010_link_main").find(".special"),
		 navMail = $(".nav_user_mail_zone"),
		 navCityShow, navCityHide, navFloorShow, navFloorHide, navMailShow, navMailHide;



    Ued.hoverToggle({
        ".nav_2010_search_txt": "search_txt_hover",
        ".nav_2010_search_btn": "search_btn_hover"
    });

    Ued.clearDefault($("#keywords"));

    $(document).ready(function() {
        /**
        * 首页导航
        */
        var navObj = $("#nav");
        if (navObj[0]) {

            Ued.clearDefault($(".seach_text"));

            $.fn.selectbox = function() {
                var obj = $(this).find("ul");
                var input = "";
                obj.find("a").click(function() {
                    obj.prev().text($(this).text());
                });

                $(this).click(function() {
                    //alert(obj.html())
                    obj.toggle();
                    //obj.show()
                    return false;
                });
                $("body").click(function() {
                    obj.hide();
                });
            };
            $(".seach_chose").selectbox();

            if ($(".nav_header").find("h3 a").length == 3) { $(this).addClass("city_name_long3"); }
        };

        /*hot_bj*/
        if ($('.hot_bj').length > 0) {
            $('.hot_bj li:last').css({ 'border-bottom-width': 0 })
            //alert($('.hot_bj li:last').length)
        }
        if ($('.zt_rr').length > 0) {
            $('.zt_rr').find('.zt_a:last').css({ 'border-bottom-width': 0 })

        }
        if ($('.hot').length > 0) {
            $('.hot li:last').css({ 'border-bottom-width': 0 })
        }
        if ($('.hot_lm').length > 0) {
            $('.hot_lm').find('.htj:last').css({ 'border-bottom-width': 0 })
            //alert($('.hot_lm li:last').length)
        }
    });
})(window, "Ued", jQuery);









var share = {
    renren: function() {//人人
        var c = "http://share.xiaonei.com/share/buttonshare.do?link=" + encodeURIComponent(document.location) + "&title=" + encodeURIComponent(document.title);
        window.open(c, "xiaonei", "toolbar=0,resizable=1,scrollbars=yes,status=1,width=626,height=436");
    },
    kaixin001: function() {//开心
        var c = "http://www.kaixin001.com/repaste/share.php?rtitle=" + encodeURIComponent(document.title) + "&rurl=" + encodeURIComponent(document.location) + "&rcontent=" + encodeURIComponent(''); //内容?
        window.open(c, "kaixin001", "location = yes,menubar=yes,resizable=1,scrollbars=yes,status=1,titlebar=yes,toolbar=yes,scrollbars=yes");
    },
    douban: function() {//豆瓣
        var c = "http://www.douban.com/recommend/?url=" + encodeURIComponent(document.location) + "&title=" + encodeURIComponent(document.title);
        window.open(c, "douban", "toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330")
    },
    sohu: function() {//搜狐白社会
        var c = "http://bai.sohu.com/share/blank/addbutton.do?link=" + document.location + "&title=" + document.title;
        window.open(c, "sohu", "location = yes,menubar=yes,resizable=1,scrollbars=yes,status=1,titlebar=yes,toolbar=yes,scrollbars=yes")
    },
    sina: function() {//新浪微博
        var c = "http://v.t.sina.com.cn/share/share.php?appkey=807225400&url=" + encodeURIComponent(document.location) + "&title=" + encodeURIComponent(document.title) + "&sourceUrl=" + encodeURIComponent(document.domain) + "&content=gb2312";
        window.open(c, "sina", "toolbar=0,resizable=1,scrollbars=yes,status=1,width=626,height=436")
    },
    qq: function() {//腾讯微博
        var _t = encodeURI(document.title);
        var _url = encodeURIComponent(document.location);
        var _appkey = encodeURI("189faa245ef744d4ae6d3e222732ce44"); //你从腾讯获得的appkey
        var _pic = encodeURI(''); //（例如：var _pic='图片url1|图片url2|图片url3....）
        var _site = ''; //你的网站地址
        var _u = 'http://v.t.qq.com/share/share.php?title=' + _t + '&url=' + _url + '&appkey=' + _appkey + '&site=' + _site + '&pic=' + _pic;
        window.open(_u, '转播到腾讯微博', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no');
    }
}


//======================= 首页版头图片轮换 ====================
function ImgInfo(id, num, class3id, linktype, title, pic) {
    $("#tmb1,#tmb2,#tmb3,#tmb4").removeClass("thubpiccur1");
    $("#tmb" + num).addClass("thubpiccur1");
    var A = "";
    A = "<a href='Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class=\"biggg\" target=\"_blank\"><div class=\"wz\"><div class=\"z\">" + title + "</div></div><img src=\"http://api.ezeem.com" + pic + "\" width=\"368\" height=\"250\" /></a>";
    $("#pic").html(A);
}

function ChildImg(url,title,pic,num) {
    $("#tmb1,#tmb2,#tmb3,#tmb4").removeClass("thubpiccur1");
    $("#tmb" + num).addClass("thubpiccur1");
    var A = "";
    A = "<a href='"+url+"' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src=\"http://api.ezeem.com" + pic + "\" width='368' height='250' /></a>";
    $("#pic").html(A);
}

function NewImg(id, num, class3id, linktype, title, pic, classid2,board,artid,gy_classid) {
    $("#tmb1,#tmb2,#tmb3,#tmb4").removeClass("thubpiccur1");
    $("#tmb" + num).addClass("thubpiccur1");

    var A = "";
    switch (classid2) {
        case 2:
            A = "<a href='Food/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
        case 82:
            A = "<a href='Hot/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
        case 43:
            A = "<a href='Child/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
        case 49:
            A = "<a href='Car/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
        case 20:
            A = "<a href='Fashion/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
        case 102:
            A = "<a href='City/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
        case 9:
            A = "<a href='Feel/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
        case 31:
            A = "<a href='Sport/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
        case 132:
            A = "<a href='Money/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
        case 70:
            A = "<a href='http://house.ezeem.com/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
         case 121: //旅游
            A = "<a href='http://www.ezeem.com/forum/read.asp?id=" + board + "&no="+ artid+"' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' />" ;
            
            break;
        default:
            if(gy_classid > 0)
                A = "<a href='http://stgy.ezeem.com/Detail.aspx?id="+ id +"&gy_id="+ gy_classid +"&type="+linktype+"' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' />" ;
            else A = "<a href='City/Detail.aspx?id=" + id + "&classid3=" + class3id + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
            break;
    }
    $("#pic").html(A);

}

function CityImgInfo(id, num, linktype, title, pic,County,LeaveType,classid3) {
    $("#tmb1,#tmb2,#tmb3,#tmb4").removeClass("thubpiccur1");
    $("#tmb" + num).addClass("thubpiccur1");
    var A = "";
    A = "<a href='Detail.aspx?id=" + id + "&ad=" + County + "&leave=" + LeaveType + "&classid3=" + classid3 + "&type=" + linktype + "' class='biggg' target='_blank'><div class='wz'><div class='z'>" + title + "</div></div><img src='http://api.ezeem.com" + pic + "' width='368' height='250' /></a>";
    $("#pic").html(A);

}

function Search() {
    var id = $('#cid').val();
    if (id == undefined) {
        id = 0;
    }
    var name = $('#keywords').val();
    $.ajax({
        url: "/Ajax/Search.ashx?id=" + id + "&name=" + encodeURI(name) + "",
        type: "get",
        dataType: "json",
        success: function(j) {
            location.href = "/Search.aspx?t=" + encodeURI(name) + "&tid=" + id;
        },
        error: function() { }
    });
}

function GetID(value) {
    var input = "";
    input = "<input type=\"hidden\" id=\"cid\" value=\"" + value + "\" />";
    $("#nav_seach").html(input);
}


function ChangeUser() {
    $('#pl').hide();
    $('#post_msg_column').show();
}

//$().ready(function() {
//    var path = document.URL;
//    var str = path.split('=');
//    $("#ms_" + str[1]).addClass("current");
//})


