﻿(function (a) {
    function f(b, c, e) {
        var g = e.relative ? b.position().top : b.offset().top, d = e.relative ? b.position().left : b.offset().left, f = e.position[0]; a.fn.textWidth = function () { var b = a(this).html(); a(this).html("<span>" + b + "</span>"); var c = a(this).find("span:first").width(); a(this).html(b); return c }; g -= c.outerHeight() - e.offset[0]; d += b.textWidth() + e.offset[1]; /iPad/i.test(navigator.userAgent) && (g -= a(window).scrollTop()); var k = c.outerHeight() + b.outerHeight(); "center" == f && (g += k / 2); "bottom" == f && (g += k); f = e.position[1];
        b = c.outerWidth() + b.outerWidth(); "center" == f && (d -= b / 2); "left" == f && (d -= b); return { top: g, left: d}
    } function j(b, c) {
        var e = this, g = b.add(e), d, j = 0, k = 0, n = b.attr("title"), p = b.attr("data-tooltip"), q = o[c.effect], m, r = b.is(":input"), t = r && b.is(":checkbox, :radio, select, :button, :submit"), s = b.attr("type"), l = c.events[s] || c.events[r ? t ? "widget" : "input" : "def"]; if (!q) throw 'Nonexistent effect "' + c.effect + '"'; l = l.split(/,\s*/); if (2 != l.length) throw "Tooltip: bad events configuration for " + s; b.bind(l[0], function (a) {
            clearTimeout(j);
            c.predelay ? k = setTimeout(function () { e.show(a) }, c.predelay) : e.show(a)
        }).bind(l[1], function (a) { clearTimeout(k); c.delay ? j = setTimeout(function () { e.hide(a) }, c.delay) : e.hide(a) }); n && c.cancelDefault && (b.removeAttr("title"), b.data("title", n)); a.extend(e, { show: function (i) {
            i && i.currentTarget && "ManLink" == i.currentTarget.className && a(".ManLink").each(function () { a(this).tooltip().hide() }); if (!d && (p ? d = a(p) : c.tip ? d = a(c.tip).eq(0) : n ? d = a(c.layout).addClass(c.tipClass).appendTo(document.body).hide().append(n) : (d = b.next(),
d.length || (d = b.parent().next())), !d.length)) return; if (e.isShown()) return e; d.stop(!0, !0); var h = f(b, d, c); c.tip && d.html(b.data("title")); i = a.Event(); i.type = "onBeforeShow"; g.trigger(i, [h]); if (i.isDefaultPrevented()) return e; h = f(b, d, c); d.css({ position: "absolute", top: h.top, left: h.left }); m = !0; q[0].call(e, function () { i.type = "onShow"; m = "full"; g.trigger(i) }); h = c.events.tooltip.split(/,\s*/); d.data("__set") || (d.unbind(h[0]).bind(h[0], function () { clearTimeout(j); clearTimeout(k) }), h[1] && !b.is("input:not(:checkbox, :radio), textarea") &&
d.unbind(h[1]).bind(h[1], function (a) { a.relatedTarget != b[0] && b.trigger(l[1].split(" ")[0]) }), c.tip || d.data("__set", !0)); return e
        }, hide: function (b) { if (!d || !e.isShown()) return e; b = a.Event(); b.type = "onBeforeHide"; g.trigger(b); if (!b.isDefaultPrevented()) return m = !1, o[c.effect][1].call(e, function () { b.type = "onHide"; g.trigger(b) }), e }, isShown: function (a) { return a ? "full" == m : m }, getConf: function () { return c }, getTip: function () { return d }, getTrigger: function () { return b } 
        }); a.each(["onHide", "onBeforeShow", "onShow",
"onBeforeHide"], function (b, d) { a.isFunction(c[d]) && a(e).bind(d, c[d]); e[d] = function (b) { b && a(e).bind(d, b); return e } })
    } a.tools = a.tools || { version: "@VERSION" }; a.tools.tooltip = { conf: { effect: "toggle", fadeOutSpeed: "fast", predelay: 0, delay: 30, opacity: 1, tip: 0, fadeIE: !1, position: ["center", "right"], offset: [0, 0], relative: !1, cancelDefault: !1, events: { def: "mouseenter,mouseleave", input: "focus,blur", widget: "focus mouseenter,blur mouseleave", tooltip: "mouseenter,mouseleave" }, layout: "<div/>", tipClass: "tooltip" }, addEffect: function (a,
c, e) { o[a] = [c, e] } 
    }; var o = { toggle: [function (a) { var c = this.getConf(), e = this.getTip(), c = c.opacity; 1 > c && e.css({ opacity: c }); e.show(); a.call() }, function (a) { this.getTip().hide(); a.call() } ], fade: [function (b) { var c = this.getConf(); !a.browser.msie || c.fadeIE ? this.getTip().fadeTo(c.fadeInSpeed, c.opacity, b) : (this.getTip().show(), b()) }, function (b) { var c = this.getConf(); !a.browser.msie || c.fadeIE ? this.getTip().fadeOut(c.fadeOutSpeed, b) : (this.getTip().hide(), b()) } ] }; a.fn.tooltip = function (b) {
        var c = this.data("tooltip");
        if (c) return c; b = a.extend(!0, {}, a.tools.tooltip.conf, b); "string" == typeof b.position && (b.position = b.position.split(/,?\s/)); this.each(function () { c = new j(a(this), b); a(this).data("tooltip", c) }); return b.api ? c : this
    } 
})(jQuery); function DockInit(a) { var f = a.get_id(), j = f.lastIndexOf("_"), f = f.substring(j + 1) + "Title", f = document.getElementById(f); $telerik.addExternalHandler(f, "click", function () { ExpandCollapse(a) }) } function ExpandCollapse(a) { a.set_collapsed(!a.get_collapsed()) }
function openChat() { var a = window.open("http://chat.platt.com/Chat.aspx?ReferringSite=" + window.location, "chat", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=477,height=420"); a.focus(); a.opener = window } function removeHTMLTags() { if (document.getElementById && document.getElementById("txtKeyword")) { var a = document.getElementById("txtKeyword").value; document.getElementById("txtKeyword").value = htmlEntities(a) } }
function htmlEntities(a) { return ("" + a).replace(/&/g, "").replace(/</g, "").replace(/>/g, "").replace(/"/g, "") } function escapeHTML(a) { var f = document.createElement("div"), a = document.createTextNode(a); f.appendChild(a); return f.innerHTML }
function viewAtt(a) { "none" == document.getElementById(a.id + "Content").style.display ? (document.getElementById(a.id + "Content").style.display = "block", document.getElementById(a.id + "Plus").innerHTML = document.getElementById(a.id + "Plus").innerHTML.replace("downArrow", "upArrow")) : (document.getElementById(a.id + "Content").style.display = "none", document.getElementById(a.id + "Plus").innerHTML = document.getElementById(a.id + "Plus").innerHTML.replace("upArrow", "downArrow")); $(a).toggleClass("headerCollapse") }
jQuery(function () { jQuery.support.placeholder = !1; test = document.createElement("input"); "placeholder" in test && (jQuery.support.placeholder = !0) });
$(function () { if (!$.support.placeholder) { var a = document.activeElement; $(":text").focus(function () { $(this).attr("placeholder") && $(this).val() == $(this).attr("placeholder") && $(this).val("").removeClass("placeholder") }).blur(function () { $(this).attr("placeholder") && ("" == $(this).val() || $(this).val() == $(this).attr("placeholder")) && $(this).val($(this).attr("placeholder")).addClass("placeholder") }); $(":text").blur(); $(a).focus(); $("form").submit(function () { $(this).find(".placeholder").each(function () { $(this).val("") }) }) } });
$(document).ready(function () { $(".ManLink").tooltip({ relative: !0, offset: [0, 5], delay: 50, predelay: 50 }); $(".DropDownLink").tooltip({ relative: !0, position: "bottom center", offset: [0, -75], delay: 50, predelay: 50 }); $(".sendFeedback").tooltip({ relative: !0, position: "bottom center", offset: [0, 100], delay: 2E5, predelay: 1500 }); $(".myAccntDrop").tooltip({ relative: !0, position: "bottom center", offset: [0, 75], delay: 50, predelay: 0 }) });
