﻿function GEID(a) { return document.getElementById(a) } function hl(a, b) { a.className = b ? "tab tabselected" : "tab" } function isdefined(a) { return typeof window[a] == "undefined" ? false : true } function RadioValue(a) { a = document.getElementsByName(a); for (var b = -1, c = 0; c < a.length; c++) if (a[c].checked) { b = a[c].value; break } return b } function SelectedValue(a) { return GEID(a).options[GEID(a).selectedIndex].value }
function createCookie(a, b, c) { var d = ""; if (c) { d = new Date; d.setTime(d.getTime() + c * 24 * 60 * 60 * 1E3); d = "; expires=" + d.toGMTString() } document.cookie = a + "=" + b + d + "; path=/" } function readCookie(a) { a = RegExp(a + "=[^;]+", "i"); if (document.cookie.match(a)) return document.cookie.match(a)[0].split("=")[1]; return "" } function eraseCookie(a) { createCookie(a, "", -1) }
function Search(a) { location.href = "http://www.ispyconnect.com/search.aspx?term=" + a; }
(function (a) {
    initialized = false; a.fn.superfish = function (c) {
        if (!initialized) {
            initialized = true; var d = a.fn.superfish, g = d.c, n = a(['<span class="', g.arrowClass, '"> &#187;</span>'].join("")), i = function () { var e = a(this), f = j(e); clearTimeout(f.sfTimer); e.showSuperfishUl().siblings().hideSuperfishUl() }, k = function () {
                var e = a(this), f = j(e), h = d.op; clearTimeout(f.sfTimer); f.sfTimer = setTimeout(function () {
                    h.retainPath = a.inArray(e[0], h.$path) > -1; e.hideSuperfishUl(); h.$path.length && e.parents(["li.", h.hoverClass].join("")).length <
1 && i.call(h.$path)
                }, h.delay)
            }, j = function (e) { e = e.parents(["ul.", g.menuClass, ":first"].join(""))[0]; d.op = d.o[e.serial]; return e }; return this.each(function () {
                var e = this.serial = d.o.length, f = a.extend({}, d.defaults, c); f.$path = a("li." + f.pathClass, this).slice(0, f.pathLevels).each(function () { a(this).addClass([f.hoverClass, g.bcClass].join(" ")).filter("li:has(ul)").removeClass(f.pathClass) }); d.o[e] = d.op = f; a("li:has(ul)", this)[a.fn.hoverIntent && !f.disableHI ? "hoverIntent" : "hover"](i, k).each(function () {
                    f.autoArrows &&
a(">a:first-child", this).addClass(g.anchorClass).append(n.clone())
                }).not("." + g.bcClass).hideSuperfishUl(); var h = a("a", this); h.each(function (l) { var m = h.eq(l).parents("li"); h.eq(l).focus(function () { i.call(m) }).blur(function () { k.call(m) }) }); f.onInit.call(this)
            }).each(function () { var e = [g.menuClass]; d.op.dropShadows && !(a.browser.msie && a.browser.version < 7) && e.push(g.shadowClass); a(this).addClass(e.join(" ")) })
        } 
    }; var b = a.fn.superfish; b.o = []; b.op = {}; b.IE7fix = function () {
        var c = b.op; a.browser.msie && a.browser.version >
6 && c.dropShadows && c.animation.opacity != undefined && this.toggleClass(b.c.shadowClass + "-off")
    }; b.c = { bcClass: "sf-breadcrumb", menuClass: "sf-js-enabled", anchorClass: "sf-with-ul", arrowClass: "sf-sub-indicator", shadowClass: "sf-shadow" }; b.defaults = { hoverClass: "sfHover", pathClass: "overideThisToUse", pathLevels: 1, delay: 800, animation: { opacity: "show" }, speed: "normal", autoArrows: true, dropShadows: true, disableHI: false, onInit: function () { }, onBeforeShow: function () { }, onShow: function () { }, onHide: function () { } }; a.fn.extend({ hideSuperfishUl: function () {
        var c =
b.op, d = c.retainPath === true ? c.$path : ""; c.retainPath = false; d = a(["li.", c.hoverClass].join(""), this).add(this).not(d).removeClass(c.hoverClass).find(">ul").hide().css("visibility", "hidden"); c.onHide.call(d); return this
    }, showSuperfishUl: function () { var c = b.op, d = this.addClass(c.hoverClass).find(">ul:hidden").css("visibility", "visible"); b.IE7fix.call(d); c.onBeforeShow.call(d); d.animate(c.animation, c.speed, function () { b.IE7fix.call(d); c.onShow.call(d) }); return this } 
    })
})(jQuery);
(function (a) {
    a.fn.bgIframe = a.fn.bgiframe = function (b) {
        if (a.browser.msie && parseInt(a.browser.version) <= 6) {
            b = a.extend({ top: "auto", left: "auto", width: "auto", height: "auto", opacity: true, src: "javascript:false;" }, b || {}); var c = function (g) { return g && g.constructor == Number ? g + "px" : g }, d = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="' + b.src + '"style="display:block;position:absolute;z-index:-1;' + (b.opacity !== false ? "filter:Alpha(Opacity='0');" : "") + "top:" + (b.top == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')" :
c(b.top)) + ";left:" + (b.left == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')" : c(b.left)) + ";width:" + (b.width == "auto" ? "expression(this.parentNode.offsetWidth+'px')" : c(b.width)) + ";height:" + (b.height == "auto" ? "expression(this.parentNode.offsetHeight+'px')" : c(b.height)) + ';"/>'; return this.each(function () { a("> iframe.bgiframe", this).length == 0 && this.insertBefore(document.createElement(d), this.firstChild) })
        } return this
    }; if (!a.browser.version) a.browser.version = navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]
})(jQuery);

function handleEnter(inField, e, evalcode) {
    var charCode;

    if (e && e.which) {
        charCode = e.which;
    } else if (window.event) {
        e = window.event;
        charCode = e.keyCode;
    }

    if (charCode == 13) {
        event.cancelBubble = true;
        eval(evalcode);
        return false;
    }
}
