﻿var $pc = jQuery;
var agt = navigator.userAgent.toLowerCase();
var pcj_isIe = agt.indexOf("msie") != -1;
var pcj_isIe6under = false;
if (pcj_isIe) {
    pcj_isIe6under = (agt.indexOf("msie 6") != -1 || agt.indexOf("msie 5") != -1 || agt.indexOf("msie 4") != -1)
}
var pcj_isSaf = agt.indexOf("safari") != -1;
var pcj_isFf = agt.indexOf("firefox") != -1;
var pcj_isMac = agt.indexOf("mac") != -1;
var pcj_isOpera = agt.indexOf("opera") != -1;
var pcj_pageready = false;
var pcj_dataready = false;
var pcj_processed = false;
var pcShopperId;
var pcIsTrusted;
var pcFirstName;
var pcRepName;
var pcRepExt;
var pcRepEmail;
var pcCartCt;
var pcExpDomCt;
var pcIsDiscount;
var prog_id;
var pcj_date = new Date();
var pcj_isiFlgSelectiondivOpen = false;
(function (a) {
    a.fn.pciframe = (a.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ?
    function (e) {
        e = a.extend({
            top: "auto",
            left: "auto",
            width: "auto",
            height: "auto",
            opacity: true,
            src: "javascript:false;"
        }, e);
        var b = '<iframe class="pciframe"frameborder="0"tabindex="-1"src="' + e.src + '"style="display:block;position:absolute;z-index:-1;' + (e.opacity !== false ? "filter:Alpha(Opacity='0');" : "") + "top:" + (e.top == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')" : c(e.top)) + ";left:" + (e.left == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')" : c(e.left)) + ";width:" + (e.width == "auto" ? "expression(this.parentNode.offsetWidth+'px')" : c(e.width)) + ";height:" + (e.height == "auto" ? "expression(this.parentNode.offsetHeight+'px')" : c(e.height)) + ';"/>';
        return this.each(function () {
            if (a(this).children("iframe.pciframe").length === 0) {
                this.insertBefore(document.createElement(b), this.firstChild)
            }
        })
    } : function () {
        return this
    });

    function c(b) {
        return b && b.constructor === Number ? b + "px" : b
    }
})(jQuery);
(function (a) {
    a.fn.hoverIntent = function (j, k) {
        var b = {
            sensitivityX: 28,
            sensitivityY: 7,
            interval: 100,
            timeout: 0
        };
        b = a.extend(b, k ? {
            over: j,
            out: k
        } : j);
        var d, e, m, n;
        var o = function (f) {
                d = f.pageX;
                e = f.pageY
            };
        var c = function (f, g) {
                g.hoverIntent_t = clearTimeout(g.hoverIntent_t);
                if ((Math.abs(m - d) < b.sensitivityX) && (Math.abs(n - e) < b.sensitivityY)) {
                    a(g).unbind("mousemove", o);
                    g.hoverIntent_s = 1;
                    return b.over.apply(g, [f])
                } else {
                    m = d;
                    n = e;
                    g.hoverIntent_t = setTimeout(function () {
                        c(f, g)
                    }, b.interval)
                }
            };
        var h = function (f, g) {
                g.hoverIntent_t = clearTimeout(g.hoverIntent_t);
                g.hoverIntent_s = 0;
                return b.out.apply(g, [f])
            };
        var l = function (f) {
                var r = (f.type == "mouseover" ? f.fromElement : f.toElement) || f.relatedTarget;
                while (r && r != this) {
                    try {
                        r = r.parentNode
                    } catch (f) {
                        r = this
                    }
                }
                if (r == this) {
                    return false
                }
                var g = jQuery.extend({}, f);
                var q = this;
                if (q.hoverIntent_t) {
                    q.hoverIntent_t = clearTimeout(q.hoverIntent_t)
                }
                if (f.type == "mouseover") {
                    m = g.pageX;
                    n = g.pageY;
                    a(q).bind("mousemove", o);
                    if (q.hoverIntent_s != 1) {
                        q.hoverIntent_t = setTimeout(function () {
                            c(g, q)
                        }, b.interval)
                    }
                } else {
                    a(q).unbind("mousemove", o);
                    if (q.hoverIntent_s == 1) {
                        q.hoverIntent_t = setTimeout(function () {
                            h(g, q)
                        }, b.timeout)
                    }
                }
            };
        return this.mouseover(l).mouseout(l)
    }
})(jQuery);

function pcj_callext(a, b) {
    $pc.ajax({
        dataType: "jsonp",
        jsonp: a,
        url: b
    })
}
var atl_pc_insert_styles = "atlInsertStyles";

function atlPCShowElement(a) {
    return
}
function atlPCHideElement(a, b) {
    return
}
function atlPCFindChildNode(d, c) {
    var b = null;
    if (d.hasChildNodes) {
        var a = d.firstChild;
        while (a != null) {
            if (a.id == c) {
                b = a;
                break
            }
            a = a.nextSibling
        }
    }
    return b
}
function atlPCGoToUrl(a) {
    window.location = a
}
function atlPCSetCookie(d, e) {
    var b = new Date();
    var c = new Date(Date.parse(b.getDay() + "/" + b.getMonth() + "/" + (b.getFullYear() + 1)));
    var dom = pcj_cookiedomain();
    if (dom != "") 
        dom = "; path=/; domain=" + dom;  else   dom = "; path=/HostnCom/";
    var a = d + "=" + e + "; expires=" + c.toGMTString() + dom
    document.cookie = a;
}
function atlPCFillDiv(f, e, d) {
    if ((d != null) && (f != null)) {
        if (d.StyleSheet.length > 0) {
            var c = document.getElementsByTagName("head").item(0);
            var b = atlPCFindChildNode(c, e);
            if (b == null) {
                var a = document.createElement("link");
                a.setAttribute("id", e);
                a.setAttribute("type", "text/css");
                a.setAttribute("rel", "stylesheet");
                a.setAttribute("href", d.StyleSheet);
                a.setAttribute("media", "screen");
                c.appendChild(a)
            }
        }
        f.innerHTML = pcj_wboxT() + d.Html + pcj_wboxB()
    }
}
function pcj_wboxT() {
    var a = "";
    a = a + '<table border="0" cellpadding="0" cellspacing="0"><tr>' + pcj_sdwt() + pcj_sdwl() + '<td class="bkgw t11">';
    return a
}
function pcj_wboxB() {
    return "</td>" + pcj_sdwb() + "</table>"
}
function pcj_sdwt() {
    return '<tr><td class="sdw_nw"></td><td valign=/"top/"><div class="sdw_n"></div></td><td class="sdw_ne"></td></tr>'
}
function pcj_sdwl() {
    return '<tr><td class="sdw_w"></td>'
}
function pcj_sdwb() {
    return '<td class="sdw_e"></td></tr><tr><td class="sdw_sw"></td><td valign=/"bottom/"><div class="sdw_s"></div></td><td class="sdw_se"></td></tr>'
}
function pcj_sdwr() {
    return '<td class="sdw_e"></td></tr>'
}
function pcj_gboxT() {
    var a = "";
    a = a + '<table border="0" cellpadding="0" cellspacing="0"><tr>' + pcj_sdgt() + pcj_sdgl() + '<td class="bkg88 t11">';
    return a
}
function pcj_gboxB() {
    return "</td>" + pcj_sdgb() + "</table>"
}
function pcj_sdgt() {
    return '<tr><td class="sdg_nw"></td><td valign=/"top/"><div class="sdg_n"></div></td><td class="sdg_ne"></td></tr>'
}
function pcj_sdgl() {
    return '<tr><td class="sdg_w"></td>'
}
function pcj_sdgb() {
    return '<td class="sdg_e"></td></tr><tr><td class="sdg_sw"></td><td valign=/"bottom/"><div class="sdg_s"></div></td><td class="sdg_se"></td></tr>'
}
function pcj_cssBox(a) {
    return '<div class="css-border">' + a + "</div>"
}
function pcj_showElement(a) {
    for (i = 0; i < document.getElementsByTagName(a).length; i++) {
        obj = document.getElementsByTagName(a)[i];
        if (!obj || !obj.offsetParent) {
            continue
        }
        if (pcj_isIe && (obj.readyState == 4) && (obj.tagName.toUpperCase() == "OBJECT")) {
            continue
        }
        if ((obj.id.toLowerCase().indexOf("apollo") > 0) && (obj.tagName.toUpperCase() == "OBJECT")) {
            continue
        }
        obj.style.visibility = ""
    }
}
function pcj_hideDDs(a) {
    if (a != "pct_ddc") {
        $pc("#pct_ddc").hide()
    }
    if (a != "pct_vip") {
        $pc("#pct_vip").hide()
    }
    if (a != "pct_flg_pop") {
        $pc("#pct_flg_pop").hide()
    }
    if (a != "pct_cart") {
        $pc("#chi_crncy_list").hide();
        $pc("#pct_cart").hide()
    }
    if (a != "pct_shc_dd") {
        $pc("#pct_shc_dd").hide()
    }
    if (a != "pcj_logolinksdiv") {
        $pc("#pcj_logolinksdiv").hide()
    }
    if (a != "pcsb_showallproductsdiv") {
        $pc("#pcsb_showallproductsdiv").hide()
    }
    pcj_showElement("SELECT");
    pcj_showElement("OBJECT");
    pcj_showElement("EMBED");
    pcj_isiFlgSelectiondivOpen = false;
    $pc(document).unbind("click.isi_flg_selectiondiv")
}
function pcj_otab(a) {
    if ($pc("#" + a).length > 0) {
        pcj_hideDDs(a);
        $pc("#" + a).show()
    }
}
function pcj_ctab(a) {
    if ($pc("#" + a).length > 0) {
        pcj_hideDDs(a);
        $pc("#" + a).hide()
    }
}
function pcj_fbiLink(c, a, b, d) {
    pcj_FastballPageEvent(a, b, d);
    pcj_lnk(c)
}
function pcj_fbiPopWindow(d, a, c, f, g, b, e) {
    pcj_FastballPageEvent(a, c, f);
    window.open(d, e, "left=200,top=50,resizable=yes,scrollbars=yes,width=" + g + ",height=" + b)
}
function pcj_blurlogin(a) {
    if (a == "load") {
        if (document.getElementById("loginname").value != "") {
            document.getElementById("pct_undiv").className = "off"
        }
    } else {
        if (a == "over") {
            if (document.getElementById("pct_undiv").className == "on") {
                document.getElementById("pct_undiv").className = "off"
            }
        } else {
            if (document.getElementById("loginname").value == "") {
                if (document.getElementById("login_focus").value != "true") {
                    document.getElementById("pct_undiv").className = "on";
                    if (!pct_loginnameDone) {
                        document.getElementById("pct_login").onmousemove = ""
                    }
                }
            }
        }
    }
}
function pcj_blurpass(a) {
    if (a == "load") {
        if (document.getElementById("password").value != "") {
            document.getElementById("pct_pwdiv").className = "off";
            return true
        }
    } else {
        if (a == "over") {
            if (document.getElementById("pct_pwdiv").className == "on") {
                document.getElementById("pct_pwdiv").className = "off"
            }
        } else {
            if (document.getElementById("password").value == "") {
                if (document.getElementById("pass_focus").value != "true") {
                    document.getElementById("pct_pwdiv").className = "on";
                    pct_loginnameDone = false
                }
            }
        }
    }
}
function pcj_checkpass() {
    if (!pct_loginnameDone) {
        if (pcj_blurpass("load")) {
            pct_loginnameDone = true;
            document.getElementById("pct_login").onmousemove = ""
        }
    }
}
function pcj_passwatch() {
    if ((pct_loginnameField.onfocus) && (!pct_loginnameDone)) {
        document.getElementById("pct_login").onmousemove = pcj_checkpass
    } else {
        if (pct_loginnameDone) {
            document.getElementById("pct_login").onmousemove = ""
        }
    }
}
function pcj_cancelEvent(a) {
    if (!a) {
        return false
    }
    a.returnValue = false;
    a.cancelBubble = true;
    if (a.stopPropagation) {
        a.stopPropagation()
    }
    if (a.preventDefault) {
        a.preventDefault()
    }
    return false
}
function pcj_vemail(d) {
    var c = true;
    var a = -1;
    var b = -1;
    if (c) {
        tmp = d;
        a = tmp.indexOf("@");
        if ((a > 0) && (tmp != "YourEmail@YourWebsite.com") && (tmp.length <= 500)) {
            b = tmp.indexOf(".", a);
            if (tmp.length <= b + 2) {
                c = false
            }
        } else {
            c = false
        }
    }
    return c
}
function pcj_signup() {
    var a = document.getElementById("pcf_email");
    if (a.value.length > 100) {
        alert("Email address is too long.")
    } else {
        if (pcj_vemail(a.value)) {
            var b = pcj_url_sales + "gdshop/signup.asp" + pcj_args + "13024&EmailSub=" + a.value + "&endPage=" + encodeURIComponent(document.location);
            a.value = "Thank You!";
            document.location = b
        } else {
            alert("Please enter a valid email address.")
        }
    }
}
function pchj_setIdpRedirect(a) {
    pcj_idpredirect = a
}
function pcj_login_action(a) {
    var b = (pcj_login_root_url);
    if (!pcj_isCart) {
        if (pcj_idpredirect != "") {
            b += "&" + pcj_ssoTargetKey + "=" + pcj_idpredirect
        } else {
            if (pcj_navnm == "mya") {
                var c = (pcj_url_mya + "login_redirect.aspx");
                b += "&signalnonorig=" + encodeURIComponent(c)
            } else {
                b += "&" + pcj_ssoTargetKey + "=" + encodeURIComponent(document.location.href)
            }
        }
    }
    a.action = b;
    return true
}
function pcj_key(b, a) {
    if ((a && a.which && a.which == 13) || (a && a.keyCode && a.keyCode == 13)) {
        b
    }
}
var pcj_search_id = "pct-sdd-domain";
var pcj_search_clear = true;
var pcj_action_domain = "";
var pcj_action_who = "";
var pcj_action_auction = "";
var pcj_action_support = "";
var pcj_action_community = "";
var pcj_action_site = "pcj_action_site";

function pcj_sfocus() {
    if (pcj_search_clear) {
        pcj_search_clear = false;
        $pc("#pcj_search_field").val("")
    }
}
function pcj_skey(a) {
    if ((a && a.which && a.which == 13) || (a && a.keyCode && a.keyCode == 13)) {
        pcj_search(a)
    }
}
function pcj_search(a) {
    var f = $pc("#pcj_search_field").val();
    var d = $pc("#pchFS");
    var b = true;
    var c;
    switch (pcj_search_id) {
    case "pct-sdd-who":
        if (!pcj_whois(f)) {
            b = false;
            $pc("#pcj_search_field").val("")
        } else {
            c = pcj_action_who + "&domain=" + f
        }
        break;
    case "pct-sdd-auction":
        c = pcj_action_auction + "&searchKeyword=" + encodeURIComponent(f);
        break;
    case "pct-sdd-site":
        if (!pcj_site(f)) {
            b = false;
            $pc("#pcj_search_field").val("")
        } else {
            c = pcj_action_site + "&searchFor=" + f
        }
        break;
    case "pct-sdd-community":
        c = pcj_action_community + "&s=" + encodeURIComponent(f);
        break;
    case "pct-sdd-support":
        c = pcj_action_support;
        var g = window.open(c + "&q=" + encodeURIComponent(f), "_pct_help", "left=10,bottom=10,resizable=yes,scrollbars=yes,width=800,height=500");
        if (g) {
            g.focus()
        }
        b = false;
        break;
    default:
        if (!pcj_domain(f)) {
            b = false;
            $pc("#pcj_search_field").val("")
        } else {
            c = pcj_action_domain + "&domainToCheck=" + f
        }
        break
    }
    if (b) {
        d.attr("action", c);
        d.submit()
    }
    return pcj_cancelEvent(a)
}
function pcj_setSearch(a) {
    $pc("#pct_shc_dd li").removeClass("ssch");
    $pc("#" + a).addClass("ssch");
    pcj_search_id = a;
    pcj_search_clear = true;
    $pc("#pcj_search_field")[0].focus()
}
function pcj_domain(c) {
    var a = false;
    if (c != "") {
        var b = /[^a-zA-Z0-9-\s.]+/;
        if (b.test(c)) {
            alert("Invalid character in domain.\n\nOnly letters, numbers or hyphens are allowed.")
        } else {
            a = true
        }
    } else {
        alert("Please enter a domain name.")
    }
    return a
}
function pcj_site(c) {
    var a = false;
    if ((c != "") && (c.replace(" ", "") != "Search")) {
        var b = /[^a-zA-Z0-9-\s."']+/;
        if (b.test(c)) {
            alert("Invalid characters in search.")
        } else {
            a = true
        }
    } else {
        alert("Please enter a search term.")
    }
    return a
}
function pcj_whois(c) {
    var a = false;
    if (c != "") {
        var b = /[<>/\"'%;()&$#_*@{}^!:/+=~`,?\\]/;
        if (b.test(c)) {
            alert("Invalid character in domain.\n\nOnly letters, numbers or hyphens are allowed.")
        } else {
            a = true
        }
    } else {
        alert("Please enter a domain name.")
    }
    return a
}
function pcj_FastballPageEvent(a, c, d) {
    if (typeof fbiRecordFastballEvent == "function") {
        var b = new fbiEventObject(new Object(), "click", a, "");
        b.AddUserInput(c, d);
        fbiRecordFastballEvent(b)
    }
}
function pcj_win(a) {
    window.open(a, "_pct")
}
function pcj_cookieread(f) {
    var g = document.cookie;
    if (g.length == 0) {
        return ""
    }
    var j = f + "=";
    var a = g.indexOf("; " + j);
    if (a == -1) {
        a = g.indexOf(j);
        if (a != 0) {
            return ""
        }
    } else {
        a += 2
    }
    var h = g.indexOf(";", a);
    if (h == -1) {
        h = g.length
    }
    return unescape(g.substring(a + j.length, h))
}
function pcj_logClick() {
    pc_link_clicked = true
}
function pcj_lnk(a) {
    pcj_logClick();
    if (a.match(pcj_url_help)) {
        window.open(a, "_help", "left=20,top=20,resizable=yes,scrollbars=yes,width=800,height=620")
    } else {
        if (a.indexOf("webmail_redirect") != -1) {
            window.open(a, "_blank")
        } else {
            window.location = a
        }
    }
}
function pcj_lnkx(a) {
    pcj_logClick();
    window.location = a
}
function pcj_lnkNoipad(c) {
    var b = true;
    var a = navigator.userAgent.toLowerCase();
    if (a.indexOf("ipad") != -1 || a.indexOf("iphone") != -1) {
        b = false
    }
    if (b) {
        pcj_logClick();
        window.location = c
    }
}
function pcj_lnkPop(a, c, b) {
    if (b) {
        window.open(a, c, b)
    } else {
        window.open(a, c)
    }
}
function pcj_cookiedomain() {
    var b = window.location.hostname;
    if (b=="localhost") return ""; 
    var c = b.lastIndexOf(".");
    if (c < 0) {
        return "." + b
    } else {
        var a = "";
        if (b.lastIndexOf(".", c - 1) > -1) {
            a = b.substr(b.lastIndexOf(".", c - 1))
        } else {
            a = "." + b
        }
        return a
    }
}
var atl_isi_targetDiv;
var atl_isi_siteUrl;
var atl_isi_querystring = "";
var atl_isi_cachedFlag;
var atl_isi_newflagcode;

function pcj_intl(c, b, a) {
    atl_isi_targetDiv = c;
    atl_isi_siteUrl = b;
    atl_isi_querystring = a;
    atl_isi_cachedFlag = false
}
function atlIsiClearCache() {
    atl_isi_cachedFlag = false
}
function atlIsiShowInt() {
    if (atl_isi_targetDiv != null) {
        pcj_hideDDs("pct_flg_pop");
        atl_isi_targetDiv.style.display = "block";
        pcj_FastballPageEvent("22067", "AtlIntSelection", "Show");
        $pc(document).bind("click.isi_flg_selectiondiv", function (b) {
            if (pcj_isiFlgSelectiondivOpen) {
                var a = $pc(b.target).closest("#isi_flg_selectiondiv, .pc-login-top-middle");
                if (a.length === 0) {
                    atlIsiClose()
                }
            }
        });
        pcj_isiFlgSelectiondivOpen = true
    }
}
function atlIsiClose() {
    if (atl_isi_targetDiv != null) {
        pcj_flagCurrencyState.revertCurrency();
        pcj_flagCurrencyState.revertFlag();
        atl_isi_targetDiv.style.display = "none";
        pcj_isiFlgSelectiondivOpen = false;
        $pc(document).unbind("click.isi_flg_selectiondiv")
    }
}
function pcj_getCurrency(e) {
    var b = "";
    var d = pcj_getPreferencesCookieValue(e, "gdshop_currencyType");
    if (d.length > 0) {
        b = d
    } else {
        var a = "currency" + e;
        b = pcj_cookieread(a);
        if (b.length == 0) {
            b = "USD"
        } else {
            var c = b.indexOf("=");
            if ((c > -1) && (c < b.length)) {
                b = b.substring(c + 1, b.length)
            }
        }
    }
    return b
}
function pcj_getFlag(e) {
    var b = "us";
    if ($pc("#pct_flg0")) {
        var d = pcj_getPreferencesCookieValue(e, "countryFlag");
        if (d.length > 0) {
            b = d
        } else {
            var c = "flag" + e;
            b = pcj_cookieread(c);
            if (b.length > 0) {
                var a = b.indexOf("=");
                if ((a > -1) && (a < b.length)) {
                    b = b.substring(a + 1, b.length)
                }
            }
            if (b.length == 0) {
                b = "us"
            }
        }
    }
    return b
}
function pcj_getPreferencesCookieValue(e, b) {
    var a = "";
    var c = pcj_cookieread("preferences" + e);
    if (c !== null) {
        var d = c.split("&");
        if (d.length > 0) {
            $pc.each(d, function (f, h) {
                var g = h.split("=");
                if (g.length === 2) {
                    if (g[0] === b) {
                        a = g[1];
                        return false
                    }
                }
            })
        }
    }
    return a
}
function pcj_savePreferences(b, c, a) {
    var d = atl_isi_siteUrl + "external/json/savepreferences.aspx?prog_id=" + pcj_prog_id + "&currency=" + b + "&flag=" + c + "&callback=" + a;
    $pc.ajax({
        dataType: "jsonp",
        jsonp: a,
        url: d,
        async: false
    })
}
function pcj_setFlag(f, d, e) {
    var b = pcj_getFlag(f);
    if ($pc("#pct_flg0")) {
        if (b.length > 1) {
            var c = pcj_url_img + "fos/icn/country_flags_sml/" + b + ".gif";
            d.css("backgroundImage", "url(" + c + ")")
        }
        var a = pcj_getCurrency(f);
        e.html(a)
    }
    pcj_setSupportPhone(b)
}
function pcj_setSupportPhone(a) {
    if (typeof (pcj_lookupSupportPhone) == "function") {
        var b = pcj_lookupSupportPhone(a);
        if (b.length > 0) {
            $pc("#pctPhoneNum").html(b)
        }
    }
}
function pcj_showhide(b) {
    if (document.getElementById) {
        var a = document.getElementById(b);
        if (a) {
            if (a.style.display == "" || a.style.display == "block") {
                a.style.display = "none"
            } else {
                a.style.display = "block"
            }
        }
    }
}
function pcsb_pl_showhide(b) {
    if (document.getElementById) {
        var a = document.getElementById(b);
        if (a) {
            if (a.style.display == "" || a.style.display == "block") {
                a.style.display = "none"
            } else {
                a.style.display = "block"
            }
        }
    }
}
var atl_sap_targetDiv;
var atl_sap_siteUrl;
var atl_sap_querystring = "";
var atl_sap_cachedFlag = false;

function atlSapInitializeEx(c, b, a) {
    atl_sap_siteUrl = b;
    atl_sap_targetDiv = c;
    atl_sap_querystring = a
}
function atlSapShowInt() {
    if (atl_sap_targetDiv != null) {
        pcj_otab(atl_sap_targetDiv.id)
    }
}
function atlSapShow() {
    if (atl_sap_cachedFlag == true) {
        atlSapShowInt()
    } else {
        atlSapCallForContent()
    }
}
function atlSapCallForContent() {
    var a = atl_sap_siteUrl + "Products/ShowAllProductsInsert.aspx";
    if (atl_sap_querystring.length == 0) {
        a = a + "?callback=atlSapFillDiv"
    } else {
        a = a + atl_sap_querystring + "&callback=atlSapFillDiv"
    }
    atl_sap_cachedFlag = true;
    pcj_callext("atlSapFillDiv", a)
}
function atlSapFillDiv(a) {
    if ((a != null) && (atl_sap_targetDiv != null)) {
        atlPCFillDiv(atl_sap_targetDiv, atl_pc_insert_styles, a);
        $pc("#" + atl_sap_targetDiv.id).pciframe();
        atl_sap_cachedFlag = true;
        atlSapShowInt()
    }
}
function atlSapClose() {
    if (atl_sap_targetDiv != null) {
        atl_sap_targetDiv.style.display = "none"
    }
}
var atl_chi_targetDiv;
var atl_chi_siteUrl;
var atl_chi_cachedFlag = false;
var atl_chi_curchanged = false;
var atl_chi_skipshow = false;
var atl_chi_querystring = "";
var atl_chi_time = pcj_date.getTime();

function pcj_cart(c, b, a) {
    atl_chi_querystring = a;
    atl_chi_siteUrl = b;
    atl_chi_targetDiv = c;
    atl_chi_cachedFlag = false
}
function atlChiClearCache() {
    atl_chi_cachedFlag = false
}
function atlChiShowInt() {
    if (atl_chi_targetDiv != null) {
        pcj_hideDDs("pct_cart");
        atl_chi_targetDiv.style.display = "block";
        pcj_FastballPageEvent("22066", "AtlCartHeader", "Show")
    }
}
function atlChiShowEx2(a) {
    if (atl_chi_cachedFlag == true) {
        pcj_date = new Date();
        if ((pcj_date.getTime() - atl_chi_time) > 180000) {
            atl_chi_cachedFlag = false;
            atl_chi_time = pcj_date.getTime()
        }
    }
    if (atl_chi_cachedFlag == true) {
        atlChiShowInt()
    } else {
        atlChiCallForContentEx(a)
    }
}
function atlChiShowEx(a, b) {
    if (atl_chi_cachedFlag == true) {
        pcj_date = new Date();
        if ((pcj_date.getTime() - atl_chi_time) > 180000) {
            atl_chi_cachedFlag = false;
            atl_chi_time = pcj_date.getTime()
        }
    }
    if (atl_chi_cachedFlag == true) {
        atlChiShowInt()
    } else {
        atlChiCallForContentEx(a)
    }
}
function atlChiCallForContent(a) {
    atlChiCallForContentEx(a)
}
function atlChiCallForContentEx(a) {
    var b = atlChiGetInitialRequest("Cart/CartInsert.aspx", "atlChiFillDiv");
    if ((a != null) && (a != "")) {
        b = b + "&currencyType=" + a
    }
    atl_chi_cachedFlag = true;
    pcj_callext("atlChiFillDiv", b)
}
function atlChiDeleteItem(c, a, b) {
    atlChiExecuteCommandAndCallForContent("deleteItem", c, a, b)
}
function atlChiEmptyCart(b) {
    var a = confirm("You have selected the empty cart option. Please confirm that you'd like to empty the contents of your cart.");
    if (a) {
        atlChiExecuteCommandAndCallForContent("emptyCart", null, null, b)
    }
}
function atlChiExecuteCommandAndCallForContent(a, f, c, d) {
    var b = (a != null) && (a != "");
    if (b) {
        var e = atlChiGetInitialRequest("Cart/CartInsert.aspx", "atlChiFillDiv");
        e += "&action=" + a;
        if ((f != null)) {
            e += "&rowId=" + f
        }
        if ((c != null)) {
            e += "&itemId=" + c
        }
        if ((d != null)) {
            e += "&marketplace=" + d
        }
        atl_chi_cachedFlag = true;
        pcj_callext("atlChiFillDiv", e)
    }
}
function atlChiGetInitialRequest(b, a) {
    var c = atl_chi_siteUrl + b;
    if (atl_chi_querystring.length == 0) {
        c = c + "?callback=atlChiFillDiv"
    } else {
        c = c + atl_chi_querystring + "&callback=" + a
    }
    return c
}
function atlChiFillDiv(a) {
    if ((a != null) && (atl_chi_targetDiv != null)) {
        atl_chi_targetDiv.innerHTML = pcj_cssBox(a.Html);
        $pc("#" + atl_chi_targetDiv.id).pciframe();
        atl_chi_cachedFlag = true;
        var c = new Date();
        atl_chi_time = c.getTime();
        if (!atl_chi_skipshow) {
            atlChiShowInt()
        }
        if (document.getElementById("chi_cart_total")) {
            var b = document.getElementById("chi_cart_total").innerHTML;
            pcUpdateCart(b)
        }
    }
}
function atlChiClose() {
    atl_chi_skipshow = false;
    if (atl_chi_targetDiv != null) {
        $pc("#chi_crncy_list").hide();
        atl_chi_targetDiv.style.display = "none";
        if (atl_chi_curchanged) {
            var a = new RegExp("[&|?]currencytype=[^&]*", "i");
            var c = window.location.href.replace(a, "");
            var b = new RegExp("#.*", "");
            c = c.replace(b, "");
            window.location.href = c;
            setredirect();
        }
    }
}
function atlChiGoToUrl(a) {
    window.location = a
}
function atlChiChangeCurrencyEx(b, e, c) {
    var a = document.getElementById(b);
    var d = a.options[a.selectedIndex].value;
    atlChiSetCurrencyCallContents(d, e, c)
}
var pcj_atlChiSetCurrencyCallContentsCBImpl = null;

function _pcj_atlChiSetCurrencyCallContentsCBImpl(c, a) {
    if (!(this instanceof _pcj_atlChiSetCurrencyCallContentsCBImpl)) {
        return new _pcj_atlChiSetCurrencyCallContentsCBImpl(c, a)
    }
    this.selectedCurrency = c;
    this.marketplace = a;
    var b = this;
    this.invoke = function () {
        atl_chi_curchanged = true;
        atl_chi_skipshow = true;
        atlChiCallForContentEx(c, a)
    }
}
function atlChiSetCurrencyCallContentsCB(a) {
    if ((a !== null) && (a.Success) && (pcj_atlChiSetCurrencyCallContentsCBImpl instanceof _pcj_atlChiSetCurrencyCallContentsCBImpl)) {
        pcj_atlChiSetCurrencyCallContentsCBImpl.invoke()
    }
}
function atlChiSetCurrencyCallContents(b, c, a) {
    pcj_atlChiSetCurrencyCallContentsCBImpl = new _pcj_atlChiSetCurrencyCallContentsCBImpl(b, a);
    pcj_savePreferences(b, "", "atlChiSetCurrencyCallContentsCB")
}
function atlChiChangeCurrencyPreference(f, d, c, g, e) {
    var a = $pc("#CartCurrencyDDL");
    a.find(".isi_itemSelected").each(function () {
        $pc(this).removeClass("isi_itemSelected")
    });
    a.find(".isi_selectionText").each(function () {
        $pc(this).html("")
    });
    var b = $pc("#" + d);
    b.addClass("isi_itemSelected");
    b.find(".isi_selectionText").each(function () {
        $pc(this).html("Current Selection")
    });
    $pc(".chi_showValue").text($pc("#" + f).html());
    atlChiSetCurrencyCallContents($pc("#" + c).html(), g, e)
}
function atlChiShowMarketplaceTab() {
    atl_chi_skipshow = true;
    atlChiCallForContentEx("", "true")
}
function atlChiShowStandardTab() {
    atl_chi_skipshow = false;
    atlChiCallForContentEx("", "false")
}
function pcsb_showhide(c) {
    if (document.getElementById) {
        var b = document.getElementById(c);
        var a = 0;
        if (b) {
            if (b.style.display == "" || b.style.display == "block") {
                b.style.display = "none"
            } else {
                b.style.display = "";
                a = 1
            }
            pcsb_SetSidebarNodeState(c, a)
        }
    }
}
function pcsb_MyProductsOpen() {
    var b = "pcsb_myproductsdiv";
    if (document.getElementById) {
        var a = document.getElementById(b);
        if (a) {
            if (a.style.display == "none") {
                pcsb_showhide(b)
            }
        }
    }
}
function pcsb_MyProductsClose() {
    var b = "pcsb_myproductsdiv";
    if (document.getElementById) {
        var a = document.getElementById(b);
        if (a) {
            if (a.style.display != "none") {
                pcsb_showhide(b)
            }
        }
    }
}
function pcsb_MyProductsToggle() {
    pcsb_showhide("pcsb_myproductsdiv")
}
function pcsb_SetSidebarNodeState(a, b) {
    pcsb_cookie.pcsb_setCookie(a, b)
}
function pcsb_GetSidebarNodeState(a) {
    return pcsb_cookie.pcsb_getCookie(a)
}
pcsb_cookie = {
    pcsb_cookieInit: function (a) {
        pcsb_cookie._pcsb_plid = a;
        pcsb_cookie._pcsb_cookiename = "LSBNodeStates"
    },
    pcsb_getCookie: function (c) {
        var d = pcsb_cookie._pcsb_getCookieValue();
        if ((d != null) && (d != "")) {
            var a = d.split("#");
            for (i = 0; i < a.length; ++i) {
                var b = a[i].split("-");
                if (b[0] == c) {
                    if (b.length > 1) {
                        return b[1]
                    }
                    break
                }
            }
        }
        return null
    },
    pcsb_setCookie: function (c, d) {
        var b = new Date();
        b.setFullYear(b.getFullYear() + 1);
        var a = pcsb_cookie._pcsb_buildCookieString(c, d);
        pcsb_cookie._pcsb_setCookie(a, b, "/", pcsb_cookie._pcsb_getCookieDomain())
    },
    pcsb_showlaststate: function (e, d) {
        var a = pcsb_cookie.pcsb_getCookie(e);
        var b = (a == null) ? (d == 1) : (a == 1);
        if (document.getElementById) {
            var c = document.getElementById(e);
            if (c) {
                if ((b && c.style.display == "none") || (!b && c.style.display != "none")) {
                    pcsb_cookie._pcsb_showhide(e)
                }
            }
        }
    },
    _pcsb_setCookie: function (e, c, d, b) {
        if (b == "") d = "/HostnCom/";
        var a = pcsb_cookie._pcsb_cookiename + pcsb_cookie._pcsb_plid + "=" + e + ((c) ? "; expires=" + c.toGMTString() : "") + ((d) ? "; path=" + d : "") + ((b) ? "; domain=" + b : "");
        document.cookie = a
    },
    _pcsb_showhide: function (b) {
        if (document.getElementById) {
            var a = document.getElementById(b);
            if (a) {
                if (a.style.display == "" || a.style.display == "block") {
                    a.style.display = "none"
                } else {
                    a.style.display = ""
                }
            }
        }
    },
    _pcsb_getCookieValue: function () {
        var a = pcsb_cookie._pcsb_cookiename + pcsb_cookie._pcsb_plid;
        return pcj_cookieread(a)
    },
    _pcsb_buildCookieString: function (d, f) {
        var e = "";
        var b = true;
        var g = pcsb_cookie._pcsb_getCookieValue();
        if ((g != null) && (g != "")) {
            var a = g.split("#");
            for (i = 0; i < a.length; ++i) {
                var c = a[i].split("-");
                if (c[0] == d) {
                    c[1] = f;
                    a[i] = c.join("-");
                    b = false;
                    break
                }
            }
            e = a.join("#")
        }
        if (b) {
            if (e.length > 0) {
                e += "#"
            }
            e += (d + "-" + f)
        }
        return escape(e)
    },
    _pcsb_getCookieDomain: function () {
        var b = window.location.hostname;
        if (b=="localhost") return "";
        var a = "";
        var c = b.lastIndexOf(".");
        if (c < 0) {
            a = "." + b
        } else {
            if (b.lastIndexOf(".", c - 1) > -1) {
                a = b.substr(b.lastIndexOf(".", c - 1))
            } else {
                a = "." + b
            }
        }
        return a
    }
};
$pc.fn.doCall = function () {
    var a = false;
    var dom = pcj_cookiedomain();
    if ((pcj_cdomain == dom || dom == "" || dom == '.hostn.com') && (pcj_call)) {
        var b = pcj_cookieread(pcj_cname);
        if (b.length > 0) {
            a = true
        }
    }
    return (a || pcj_callov)
};

function pcj_blurBox() {
    if (!pcj_isFf) {
        $pc("input[id*='domain']").blur()
    }
}
function pcSetCart(a) {
    atlChiClearCache();
    pcUpdateCart(a)
}
function pcUpdateCart(a) {
    if ($pc("#pct_items").length && $pc("#pct_carttxt").length) {
        var c = "Cart (empty)";
        var b = "Cart is empty.";
        if (a > 0) {
            c = "Cart (" + a + ")";
            b = a + " item in your cart";
            $pc("#pct_cartgrp").attr("title", b);
            $pc("#pct_carttxt").html(c)
        } else {
            if (a < 0) {
                c = "&nbsp;&nbsp;Cart";
                b = "Click here to view cart.";
                $pc("#pct_cartgrp").attr("title", b);
                $pc("#pct_carttxt").html(c);
                $pc("#pct_cartgrp").removeAttr("onclick").click(function () {
                    pcj_lnk(pcj_url_sales + "gdshop/basket.asp" + pcj_args + "13561")
                })
            } else {
                $pc("#pct_cartgrp").attr("title", b);
                $pc("#pct_carttxt").html(c)
            }
        }
    }
}
function pcj_setdata(a) {
    if (a != null) {
        pcShopperId = a.pcShopperId;
        pcIsTrusted = a.pcIsTrusted;
        pcFirstName = a.pcFirstName;
        pcRepName = a.pcRepName;
        pcRepExt = a.pcRepExt;
        pcRepEmail = a.pcRepEmail;
        pcCartCt = a.pcCartCt;
        pcExpDomCt = a.pcExpDomCt;
        pcIsDiscount = a.pcIsDiscount;
        pcj_dataready = true;
        if ((pcj_pageready || $pc("#pcj_setgo").length) && !pcj_processed) {
            pcj_setPage()
        }
    }
}
function pcj_changeToLogin() {
    $pc("#pct_login").show();
    $pc("#pct_llk0").show();
    $pc("#pct_signin").hide();
    $pc("#pct_logout").hide()
}
function pcj_setPage() {
    if (pcIsTrusted) {
        $pc("#pct_login").hide();
        $pc("#pct_llk0").hide();
        $pc("#pct_signin").hide();
        $pc("#pct_logout").show();
        if (pcRepName.length != 0) {
            if (pcRepName.length != 0) {
                $pc("#pct_taname").html(pcRepName)
            }
            var a = "(480) 505-8885";
            if (pcRepExt.length != 0) {
                a += ("x&nbsp;" + pcRepExt)
            }
            $pc("#pct_taphone").html(a);
            if (pcRepEmail.length != 0) {
                $pc("#pct_taemail").html("&nbsp;" + pcRepEmail);
                $pc("#VIPEmail").attr("href", "mailto:" + pcRepEmail)
            }
            $pc("#pct_vip0").show()
        }
        if (pcFirstName.length != 0) {
            if (pcFirstName.length < 30) {
                $pc("#pct_sn").html("&nbsp;" + pcFirstName)
            } else {
                pcFirstName = pcFirstName.substring(0, 28);
                $pc("#pct_sn").html("&nbsp;" + pcFirstName + "...")
            }
        }
    } else {
        $pc("#pct_login").show();
        $pc("#pct_llk0").show();
        $pc("#pct_signin").hide();
        $pc("#pct_logout").hide()
    }
    if ($pc("#pct_ddc0").length) {
        if (pcIsDiscount) {
            $pc("#pct_ddc0").show()
        } else {
            $pc("#pct_ddc0").hide()
        }
    }
    if ($pc("#expCt").length) {
        if (pcExpDomCt > 0) {
            if (pcExpDomCt == 1) {
                $pc("#expCt").html(pcExpDomCt + " Domain Expiring")
            } else {
                $pc("#expCt").html(pcExpDomCt + " Domains Expiring")
            }
            $pc("#pct_exp0").show()
        } else {
            $pc("#pct_exp0").hide()
        }
    }
    pcUpdateCart(pcCartCt);
    pcj_processed = true;
    $pc(this).pcj_check_login();
    $pc(this).pcj_check_pass()
}
$pc.fn.pcj_check_login = function () {
    if ($pc("#loginname").length) {
        if ($pc("#loginname").val().length > 0) {
            $pc("#pct_undiv").addClass("off")
        } else {
            $pc("#pct_undiv").addClass("on")
        }
    }
};
$pc.fn.pcj_check_pass = function () {
    if ($pc("#password").length) {
        if ($pc("#password").val().length > 0) {
            $pc("#pct_pwdiv").addClass("off")
        } else {
            $pc("#pct_pwdiv").addClass("on")
        }
    }
};
$pc(document).ready(function () {
    pcj_pageready = true;
    if (pcj_dataready && !pcj_processed) {
        pcj_setPage()
    }
    $pc("#" + $pc("#pct_active_search").val()).css("backgroundColor", "#e4efc7");
    $pc("#searchField").val($pc("#pct_active_text").val());
    $pc("#pct_signinl").click(function () {
        $pc("#pct_signin").hide();
        $pc("#pct_login").show();
        $pc("#pct_llk0").show()
    });
    setTimeout("$pc(this).pcj_check_login()", 300);
    setTimeout("$pc(this).pcj_check_pass()", 300);
    $pc(".dropdown-list li, .td-ul li").hover(function () {
        $pc(this).addClass("dd-h")
    }, function () {
        $pc(this).removeClass("dd-h")
    })
});

function pcSetLogIn(b, a) {}
function pcSetLogInEx(e, a, c, d, b) {}
function pcSetIsDiscount(a) {}
function pcpcSetExpiring(a) {}
function atlIsiShow2(a) {
    prog_id = a;
    if (atl_isi_cachedFlag == true) {
        atlIsiShowInt()
    } else {
        atlIsiCallForContent2()
    }
}
function atlIsiCallForContent2() {
    var a = atl_isi_siteUrl + "Cart/InternationalInsert.aspx";
    if (atl_isi_querystring.length == 0) {
        a = a + "?callback=atlIsiFillDiv2"
    } else {
        a = a + atl_isi_querystring + "&callback=atlIsiFillDiv2"
    }
    atl_isi_cachedFlag = true;
    pcj_callext("atlIsiFillDiv2", a)
}
function atlIsiFillDiv2(a) {
    if ((a != null) && (atl_isi_targetDiv != null)) {
        atl_isi_targetDiv.innerHTML = a.Html;
        $pc("#" + atl_isi_targetDiv.id).pciframe();
        atl_isi_cachedFlag = true;
        atlIsiShowInt()
    }
}
function pcj_changeCountry2(b, a) {
    pcj_flagCurrencyState.saveFlag();
    atl_isi_newflagcode = a;
    $pc("#iffi_text").html(b)
}
var pcj_saveCurrency3CBImpl = null;

function _pcj_saveCurrency3CBImpl(a, c, d) {
    if (!(this instanceof _pcj_saveCurrency3CBImpl)) {
        return new _pcj_saveCurrency3CBImpl(a, c, d)
    }
    this.flag = a;
    this.selectedCountryCode = c;
    this.suffix = d;
    var b = this;
    this.invoke = function () {
         if (b.flag != b.selectedCountryCode) {
            var j = "roam" + b.suffix;
            atlPCSetCookie(j, "roam=1")
        }
        var e = new RegExp("[&|?]currencytype=[^&]*", "i");
        var h = window.location.href.replace(e, "");
        var f = new RegExp("#.*", "");
        h = h.replace(f, "");
        var g = new RegExp("[&|?]cflag=[^&]*", "i");
        h = h.replace(g, "");
        window.location.href = h
        setredirect();
    }
}
function pcj_saveCurrency3CB(a) {
    if ((a !== null) && (a.Success) && (pcj_saveCurrency3CBImpl instanceof _pcj_saveCurrency3CBImpl)) {
        pcj_saveCurrency3CBImpl.invoke()
    }
}
function pcj_saveCurrency3(a, b) {
    var f = document.getElementById("hdnPrivateLabelId").value;
    var e = b;
    var d = a;
    if (atl_isi_newflagcode != undefined) {
        d = atl_isi_newflagcode
    } else {
        d = a
    }
    var c = document.getElementById("hdnCurrentCountryFlag").value;
     A = new _pcj_saveCurrency3CBImpl(c, d, f);
     pcj_savePreferences(e, d, "pcj_saveCurrency3CB");   
    if (d !="us" || e != "USD")  setredirect();   
}

function setredirect() {
   var curloc = window.location.href.toLowerCase();
   var href = curloc.replace("localhost:49267/hostncom/", "securepaynet.net/"); // testing here
   href = href.replace("hostn.com/", "securepaynet.net/");
   if (curloc.indexOf("www.")==-1) href =  href.replace("securepaynet.", "www.securepaynet.");
   if (href.indexOf(".aspx")==-1) href += "default.aspx?prog_id=HostnCom&ci=41748"; else href +="&prog_id=HostnCom";
   window.location.href = href;
  return true
}

function pcj_Currency_ListItem_Selected(e, l, h, b) {
    pcj_flagCurrencyState.saveCurrency();
    var d = $pc("#CurrencyDDL");
    d.find(".isi_itemSelected").each(function () {
        $pc(this).removeClass("isi_itemSelected")
    });
    d.find(".isi_selectionText").each(function () {
        $pc(this).html("")
    });
    var g = $pc("#" + h);
    g.addClass("isi_itemSelected");
    g.find(".isi_selectionText").each(function () {
        $pc(this).html("Current Selection")
    });
    var c = $pc(".isi_showValue");
    var k = $pc("#" + l);
    c.text(k.html());
    var j = $pc("#hdnhidSelection");
    var a = $pc("#" + b);
    var f = document.getElementById("hdnCurrentCountryFlag").value;
    j.attr("value", a.html())
}
function pchj_lnk(a) {
    if (a.match(pcj_url_help)) {
        window.open(a, "_pch", "left=20,top=20,resizable=yes,scrollbars=yes,width=800,height=620")
    } else {
        window.open(a, "_self")
    }
}
function pcj_bookmark(c) {
    var b = c;
    var d = pcj_url_sales + "default.aspx?prog_id=" + pcj_prog_id;
    var a = pcj_isMac ? "Command/Cmd" : "CTRL";
    if (pcj_isIe) {
        window.external.AddFavorite(d, b)
    } else {
        if (pcj_isFf) {
            window.sidebar.addPanel(b, d, "")
        } else {
            if (pcj_isSaf) {
                alert("Please press " + a + " + D to bookmark this site.")
            } else {
                alert("Your browser does not support automatic bookmarks. You will need to do this manually.")
            }
        }
    }
}
var pcj_flagCurrencyState = {
    saveCurrency: function () {
        var b = $pc("#CurrencyDDL");
        if (pcj_flagCurrencyState.isi_pageCurItmSel === null) {
            pcj_flagCurrencyState.isi_pageCurItmSel = b.find(".isi_itemSelected")
        }
        if (pcj_flagCurrencyState.isi_pageCurSelTxt === null) {
            pcj_flagCurrencyState.isi_pageCurSelTxt = b.find(".isi_selectionText")
        }
        var a = $pc(".isi_showValue");
        if (pcj_flagCurrencyState.isi_pageShowValue === null) {
            pcj_flagCurrencyState.isi_pageShowValue = a.text()
        }
        if (pcj_flagCurrencyState.hdnhidSelection === null) {
            pcj_flagCurrencyState.hdnhidSelection = $pc("#hdnhidSelection").attr("value")
        }
    },
    revertCurrency: function () {
        if (pcj_flagCurrencyState.isi_pageCurItmSel !== null && pcj_flagCurrencyState.isi_pageCurSelTxt !== null) {
            var b = $pc("#CurrencyDDL");
            b.find(".isi_itemSelected").each(function () {
                $pc(this).removeClass("isi_itemSelected")
            });
            b.find(".isi_selectionText").each(function () {
                $pc(this).html("")
            });
            pcj_flagCurrencyState.isi_pageCurItmSel.addClass("isi_itemSelected");
            pcj_flagCurrencyState.isi_pageCurSelTxt.html("Current Selection");
            pcj_flagCurrencyState.isi_pageCurItmSel = null;
            pcj_flagCurrencyState.isi_pageCurSelTxt = null
        }
        if (pcj_flagCurrencyState.isi_pageShowValue !== null) {
            var a = $pc(".isi_showValue");
            a.text(pcj_flagCurrencyState.isi_pageShowValue);
            pcj_flagCurrencyState.isi_pageShowValue = null
        }
        if (pcj_flagCurrencyState.hdnhidSelection !== null) {
            $pc("#hdnhidSelection").attr("value", pcj_flagCurrencyState.hdnhidSelection);
            pcj_flagCurrencyState.hdnhidSelection = null
        }
    },
    saveFlag: function () {
        if (pcj_flagCurrencyState.countrySelectName === null) {
            pcj_flagCurrencyState.countrySelectName = $pc("#iffi_text").html()
        }
        if (pcj_flagCurrencyState.isi_newflagcode === null) {
            pcj_flagCurrencyState.isi_newflagcode = atl_isi_newflagcode
        }
    },
    revertFlag: function () {
        if (pcj_flagCurrencyState.countrySelectName !== null) {
            $pc("#iffi_text").html(pcj_flagCurrencyState.countrySelectName);
            pcj_flagCurrencyState.countrySelectName = null
        }
        if (pcj_flagCurrencyState.isi_newflagcode !== null) {
            atl_isi_newflagcode = pcj_flagCurrencyState.isi_newflagcode;
            pcj_flagCurrencyState.isi_newflagcode = null
        }
    },
    clear: function () {
        pcj_flagCurrencyState.isi_newflagcode = null;
        pcj_flagCurrencyState.countrySelectName = null;
        pcj_flagCurrencyState.hdnhidSelection = null;
        pcj_flagCurrencyState.isi_pageCurItmSel = null;
        pcj_flagCurrencyState.isi_pageCurSelTxt = null;
        pcj_flagCurrencyState.isi_pageShowValue = null
    },
    isi_newflagcode: null,
    countrySelectName: null,
    hdnhidSelection: null,
    isi_pageCurItmSel: null,
    isi_pageCurSelTxt: null,
    isi_pageShowValue: null
};

function pcj_saveFlagCurrency() {
    pcj_flagCurrencyState.clear();
    pcj_isiFlgSelectiondivOpen = false;
    $pc(document).unbind("click.isi_flg_selectiondiv");
    pcj_saveCurrency3($pc("#hdnCurrentCountryFlag").attr("value"), $pc("#hdnhidSelection").attr("value"))
};
