var YAHOO = window.YAHOO ||
{};
YAHOO.namespace = function(e){
    if (!e || !e.length) {
        return null
    }
    var c = e.split(".");
    var b = YAHOO;
    for (var a = (c[0] === "YAHOO") ? 1 : 0; a < c.length; ++a) {
        b[c[a]] = b[c[a]] ||
        {};
        b = b[c[a]]
    }
    return b
};
YAHOO.namespace("util");
YAHOO.namespace("widget");
YAHOO.namespace("example");
YAHOO.namespace("Fd");
YAHOO.namespace("Fp");
YAHOO.namespace("browser");
YB = YAHOO.browser;
var d = document;
YAHOO.Fp.d = d;
YAHOO.Fp.dCC = typeof(dCC) !== "undefined" ? dCC : "";
YAHOO.Fp.dD = typeof(dD) !== "undefined" ? dD : "yahoo.com";
YAHOO.Fp.$ = function(a){
    return (typeof(a) === "string") ? YAHOO.Fp.d.getElementById(a) : false
};
YAHOO.cookie = {
    get: function(f){
        var a = "", e = " " + document.cookie + ";", b = e.indexOf((" " + f + "="));
        if (b >= 0) {
            b += f.length + 2;
            a = window.unescape(e.substring(b, e.indexOf(";", b)))
        }
        return a
    },
    set: function(f, c){
        var b = arguments, e = b.length;
        document.cookie = f + "=" + c + ((e > 2 && b[2] !== "") ? ";expires=" + (new Date(b[2] * 1000)).toGMTString() : "") + ";path=" + ((e > 3 && b[3] !== "") ? b[3] : "/") + ";domain=" + ((e > 4 && b[4] !== "") ? b[4] : dD)
    },
    setFrom: function(i, e){
        var c = arguments, g = c.length, h;
        if (g > 2 && c[2] !== "") {
            var f = new Date();
            var b = f.getTime() + (c[2] * 1000);
            f.setTime(b);
            h = f.toGMTString()
        }
        document.cookie = i + "=" + e + ((g > 2 && c[2] !== "") ? ";expires=" + h : "") + ";path=" + ((g > 3 && c[3] !== "") ? c[3] : "/") + ";domain=" + ((g > 4 && c[4] !== "") ? c[4] : dD)
    },
    checksub: function(f, c){
        var e = f.split("&"), b = e.length, g;
        if (b === 1) {
            return f.indexOf(c)
        }
        else {
            for (var a = 0; a < b; a++) {
                g = e[a].split("=");
                if (g[0] === c) {
                    return a
                }
            }
        }
        return -1
    },
    getsub: function(e, a){
        var c = this.get(e);
        var b = this.checksub(c, a);
        if (b > -1) {
            return c.split("&")[b].split("=")[1]
        }
        else {
            if (c.indexOf(a) > 0) {
                return c.split("=")[1]
            }
        }
        return ""
    },
    setsub: function(j, e, c){
        var i = this.get(j), b = arguments;
        var h = i.split("&");
        var g = this.checksub(i, e);
        var f;
        if (i === "") {
            f = (e + "=" + c).toString()
        }
        else {
            if (g === -1) {
                g = h.length
            }
            h[g] = e + "=" + c;
            f = h.join("&")
        }
        return this.set(j, f, (b[3] || ""), (b[4] || "/"), (b[5] || dD))
    }
};
if (typeof(ver) === "undefined") {
    ver = "340"
}
YAHOO.Fp.pageSize = 0;
YAHOO.Fp.nScreenWidth = (screen && typeof(screen.availWidth) === "number") ? screen.availWidth : false;
YAHOO.Fp.bNarrow = (YAHOO.Fp.nScreenWidth ? (YAHOO.Fp.nScreenWidth < 1024 ? 1 : 0) : -1);
YAHOO.Fp.minMax = function(){
    if (document.getElementById("client")) {
        var a = document.getElementById("client").offsetHeight;
        document.getElementById("page").style.width = (a <= 16 ? "950px" : (a > 23 ? "1250px" : "71.25em"));
    }
};
YAHOO.Fp.LoadFP = function(){
    var a = YAHOO.cookie.get("FPS");
    if (a !== "dl" && a !== "ds" && a !== "tl" && a !== "ts") {
        if (YAHOO.Fp.bNarrow !== -1) {
            if (YAHOO.Fp.bNarrow === 0 && YAHOO.Fp.pageSize === 0) {
                YAHOO.cookie.set("FPS", "dl", 400 * 3600000)
            }
            if (YAHOO.Fp.bNarrow === 1 && YAHOO.Fp.pageSize === 0) {
                YAHOO.Fp.togglePageSize("ds")
            }
        }
    }
    else {
        if ((a === "dl" || a === "tl") && YAHOO.Fp.pageSize === 1) {
            YAHOO.Fp.togglePageSize("ds")
        }
        if ((a === "ds" || a === "ts") && YAHOO.Fp.pageSize === 0) {
            YAHOO.Fp.togglePageSize("dl")
        }
    }
};
YAHOO.Fp.togglePageSize = function(a){
    YAHOO.cookie.set("FPS", a, 400 * 3600000);
    var b = YAHOO.cookie.get("FPS");
    if (a === b) {
        location.reload()
    }
};
YB.UA = navigator.userAgent;
YB.ua = navigator.userAgent.toLowerCase();
YB.UAExps = {
    Opera: /Opera\//,
    FF: /Firefox\//,
    IE: /MSIE/,
    IE6: /MSIE 6\.0/,
    IE7: /MSIE 7\.0/
};
YB.Opera = YB.UAExps.Opera.test(YB.UA);
YB.FF = YB.UAExps.FF.test(YB.UA);
YB.IE = YB.UAExps.IE.test(YB.UA);
YB.IE6 = YB.UAExps.IE6.test(YB.UA);
YB.IE7 = YB.UAExps.IE7.test(YB.UA);
YB.MAC = YB.ua.indexOf("mac") !== -1;
YB.MACIE = YB.MAC && document.all;
YAHOO.Fp._ie = YB.IE ? 1 : 0;
YAHOO.Fp._ie6 = YB.IE6 ? 1 : 0;
YAHOO.Fp._ie7 = YB.IE7 ? 1 : 0;
YAHOO.Fp._ff = "0";
YAHOO.Fp._ffv = "0";
YAHOO.Fp._sf = "0";
YAHOO.Fp._sfv = "0";
YAHOO.Fp._op = "0";
YAHOO.Fp._mac = "0";
YAHOO.Fp._protocol = location.protocol;
YAHOO.Fp._hostname = location.hostname;
YAHOO.Fp._port = location.port;
YAHOO.Fp._sUrl = YAHOO.Fp._protocol + "//" + YAHOO.Fp._hostname + (YAHOO.Fp._port !== "" ? ":" + YAHOO.Fp._port : "");
YAHOO.Fp.kfVersion = 1.6;
YAHOO.Fp.kfPrefix = "kf_";
YAHOO.Fp.LoadFP();
var YFP, YFD;
if (YAHOO.Fp) {
    YFP = YAHOO.Fp
}
if (YAHOO.Fd) {
    YFD = YAHOO.Fd
};
