function toggleDiv(e, t) { var n = $(e), a = $(t), r = "none" == a.css("display"); return a.css("display", r ? "" : "none"), n.toggleClass("arrowH1C", !r).toggleClass("arrowH1E", r), !1 } function GetRadWindow() { var e = null; return window.radWindow ? e = window.radWindow : window.frameElement && window.frameElement.radWindow && (e = window.frameElement.radWindow), e } function CloseRadWnd(e) { var t = GetRadWindow(); null != t ? t.close(e) : null != window.dialogWindow && null != window.dialogWindow ? window.dialogWindow.dialog("close") : null != window && null != window.parent & null != window.parent.bootstrapModal ? window.parent.bootstrapModal.close() : null != window && null != window && window.close() } function CloseAndRefreshWnd(e) { var t = GetRadWindow(); null != t ? (t.close(e), t.BrowserWindow.location.href = t.BrowserWindow.location.href) : null != window.dialogWindow && null != window.dialogWindow ? (window.dialogWindow.dialog("close"), window.parent.location.href = window.parent.location.href) : null != window && null != window && window.close() } function getCookie(e) { return document.cookie.length > 0 && (c_start = document.cookie.indexOf(e + "="), -1 != c_start) ? (c_start = c_start + e.length + 1, c_end = document.cookie.indexOf(";", c_start), -1 == c_end && (c_end = document.cookie.length), unescape(document.cookie.substring(c_start, c_end))) : "" } function setCookie(e, t, n, a) { var r = new Date; r.setDate(r.getDate() + n), document.cookie = e + "=" + escape(t) + (null == n ? "" : ";expires=" + r.toGMTString()) + (null == a ? "" : ";domain=" + a) } function createCookieForVS(e, t, n) { if (n) { var a = new Date; a.setTime(a.getTime() + 24 * n * 60 * 60 * 1e3); var r = "; expires=" + a.toGMTString() } else r = ""; document.cookie = e + "=" + t + r + "; path=/" } function SelectField(e) { var t = document.getElementById(e); if (null != t) { t.focus(); try { void 0 !== t.select && t.select() } catch (e) { } try { void 0 !== t.scrollIntoView && t.scrollIntoView() } catch (e) { } } } function JSONPLogin(e) { try { return alert("Not implemented yet"), !1 } catch (e) { alert(e) } return !1 } function JsonPCallBack(e) { alert(e.AuthCToken), document.cookie = GUIDKey() + "=" + escape(e.AuthCToken), alert(document.cookie) } function GUIDKey() { var e = getQueryStringParams(), t = ""; return e.appCode ? t += e.appCode + "_" : t += "_", e.appVersion ? t += e.appVersion : t += "_", t += "_guid" } function getQueryStringParams(e) { var t = new Object; null == e && (e = location.search.substring(1)); for (var n = e.split("&"), a = 0; a < n.length; a++) { var r = n[a].indexOf("="); if (-1 != r) { var i = n[a].substring(0, r), o = n[a].substring(r + 1); t[i] = unescape(o) } } return t } function OpenLogin(e, t) { radopen(e + "?" + t, "LoginWnd") } function countLengthLeft(e, t, n, a, r) { if (null != e && null != t && null != n) { var o = e; if (null != a || null != a) for ("string" == typeof a && (a = a.split(",")), i = 0; i < a.length; i++) { var l = new RegExp(a[i], "g"); o = o.replace(l, "") } o.length > n ? e = o.substring(0, n) : t.innerHTML = n - o.length, null == r && null == r || (t.innerHTML += r) } } function countLengthLeftWithObj(e, t, n, a, r, o) { setTimeout(function () { if (null != e && null != t && null != n) { var l = e; if (null != a || null != a) for ("string" == typeof a && (a = a.split(",")), i = 0; i < a.length; i++) { var d = new RegExp(a[i], "g"); l.value = l.value.replace(d, "") } var s = 0, u = $(l); (s = $.browser.webkit ? u.val().replace(/(\r\n|\n|\r)/g, " ").length : u.val().replace(/\n/g, " ").length) > n && (u.val(u.val().substring(0, n)), s = n); var c = ""; o && (c += o); var p = n - s; c += p = Math.max(0, p), r && (c += r), t.innerHTML = c } }, 100) } function CitkaHelp(e, t, n) { if (document.body.clientHeight) { var a = screen.availHeight - screen.availHeight / 5, r = screen.availWidth - screen.availWidth / 5, i = (screen.availWidth - r) / 2, o = (screen.availHeight - a) / 2; AFMwindow = window.open("/faq.aspx?topicid=" + t + "&faqid=" + e + "&question=" + n, "CtkaHelp", "width=" + r + ",height=" + a + ",top=" + o + ",left=" + i + ",toolbar=0,location=0,status=1,menubar=0,resizable=1"), AFMwindow.focus() } else AFMwindow = window.open("/faq.aspx?topicid=" + t + "&faqid=" + e + "&question=" + n, "", "width=440,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1") } function CitkaContextHelp(e) { var t = "", n = "", a = function (e) { null != e && (null != e.helpId && (t = e.helpId), null != e.topicId && (n = e.topicId), "" == t && "" == n && a(e.parentElement)) }; null == e && (e = document.forms[0]), a(e), "" != t || "" != n ? CitkaHelp(t, n, "") : CitkaHelp() } function _HandleDefaultAction(e) { var t = e.srcElement || e.target; if (t && "TEXTAREA" == t.tagName) return !0; var n; document.forms[0]; t && t.defaultbutton && (n = document.getElementById(t.defaultbutton)), n && (e.srcElement ? (e.returnValue = !1, e.cancelBubble = !0) : (e.preventDefault(), e.stopPropagation()), n.click()) } var __REFERRER_PAGE_ID = __REFERRER_PAGE_ID || "refPgId", __REFERRER_PAGE = __REFERRER_PAGE || "referrerPage", __REFERRER_MODULE = __REFERRER_MODULE || "referrerModule", __REFERRER_MODULE_LAYOUT = __REFERRER_MODULE_LAYOUT || "refModSufx", removeUrlParams = ["PCUrl".toLowerCase(), __REFERRER_PAGE_ID.toLowerCase(), __REFERRER_PAGE.toLowerCase(), __REFERRER_MODULE.toLowerCase(), __REFERRER_MODULE_LAYOUT.toLowerCase()]; function interceptHrefClick(e) { var t = {}; if (e.currentTarget.href.indexOf("?") > 0) { urlParts = e.currentTarget.href.split("?"); var n = "", a = urlParts[1].split("#"); $.each(urlParts[1].split("&"), function (e, a) { var r = a.split("="); $.inArray(r[0].toLowerCase(), removeUrlParams) >= 0 ? t[r[0]] = r[1] : n += (n.length > 0 ? "&" : "") + a }), n.length > 0 && (urlParts[0] += "?" + n), 2 == a.length && a[1].length && (urlParts[0] += "#" + a[1]), post_to_url(urlParts[0], t, e.currentTarget.target) } else { urlParts = e.currentTarget.href.split("/"); n = ""; for (var r = 0 == urlParts[urlParts.length - 1].length || urlParts[urlParts.length - 1].indexOf(".") > 0 ? urlParts.length - 2 : urlParts.length - 1; r > 0; r -= 2)$.inArray(urlParts[r - 1].toLowerCase(), removeUrlParams) >= 0 && (t[urlParts[r - 1]] = urlParts[r], e.currentTarget.href = e.currentTarget.href.replace("/" + urlParts[r - 1] + "/" + urlParts[r], "")); post_to_url(e.currentTarget.href, t, e.currentTarget.target) } return !1 } function post_to_url(e, t, n, a) { var r = null != a && a.document ? a.document : document, i = r.createElement("form"); for (var o in i.target = n, i._submit_function_ = i.submit, i.setAttribute("method", "post"), i.setAttribute("action", e), t) { var l = r.createElement("input"); l.setAttribute("type", "hidden"), l.setAttribute("name", o), l.setAttribute("value", t[o]), i.appendChild(l) } r.body.appendChild(i), i._submit_function_() } function formatParamsForURLRewrite(e) { return __urlRewriteEnabled && ("&" == e[0] && (e = e.substring(1)), e = e.replace(/&/g, "/").replace(/=/g, "/")), e } function openPopup(e, t) { "Html" !== asi.page.render_type ? asi.page.render_type : "object" == typeof window.bootstrapModal ? window.bootstrapModal.open(e, t) : openDefaultDialog(e, t) } function openDefaultDialog(e, t) { $(__dialogSelector + " iframe").attr("src", e); var n = t.titleBarClass; n && (delete t.titleBarClass, $(__dialogSelector).dialog().parents(".ui-dialog").find(".ui-dialog-titlebar").removeClass("asiBlue").addClass(n), setTimeout(function () { $(__dialogSelector).dialog().parents(".ui-dialog").find(".ui-dialog-titlebar").find(".ui-button").blur() }, 50)), $(__dialogSelector).dialog(t).dialog("open") } function launchProductQuickView1(e, t, n, a, r) { destroyQuickView(), n = n + "&ProductID=" + e, null != t && "0" != t && (n = n + "&pfpAdId=" + t), null != r && (n = n + "&ItemId=" + r), openPopup(n, { title: a, width: 740, height: 610, titleBarClass: "ui-widget-header asiBlue" }) } function launchProductQuickView(e, t, n, a, r) { destroyQuickView(), a = a + "&productId=" + e + "&tab=" + n, null != t && "0" != t && (ProductService.AddClickThrough(), a = a + "&adId=" + t), openPopup(a, { title: r, width: 740, height: 610, titleBarClass: "ui-widget-header asiBlue" }) } function getInternetExplorerVersion() { var e = -1; if ("Microsoft Internet Explorer" == navigator.appName) { var t = navigator.userAgent; null != new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t) && (e = parseFloat(RegExp.$1)) } return e } function ChangeDisplayForIe8() { var e = getInternetExplorerVersion(); e > -1 && e <= 8 && $(".prvw-align").css("display", "block") } function getObjVal(e) { if (!e) return null; var t = e.val(); return t || (t = e.attr("value")), t || (t = e.attr("Value")), t } function createQuickView(e, t, n, a) { if (e.attr("src")) var r = e.attr("src"); else r = e.attr("original"); var i = ""; e.attr("alt") && (i = e.attr("alt")), r = (r = r.replace("ImageNotInCatalog110.png", "ImageNotInCatalog.png")).replace("/jpgt/", "/jpgo/"); var o = String.format("
", n, a, r, t, i); $(o).appendTo(e.parent()), updatePopupPosition(e) } function standardCreateQuickView(e, t, n, a) { if (e.attr("src")) var r = e.attr("src"); else r = e.data("original"); var i = ""; e.attr("alt") && (i = e.attr("alt")); var o = BaseUrl + "images/toolbar_icon.png", l = e.data("fail"); -1 == (r = -1 == r.indexOf("jpgt") ? r.replace("/110x110/", "/300x300/") : r.replace("/jpgt/", "/jpgo/")).indexOf("jpgo") && r.indexOf("ImageNotInCatalog110") > 0 && (r = r.replace("ImageNotInCatalog110", "ImageNotInCatalog")); var d = String.format("", n, a, o, t, r, l, i); $(d).appendTo(e.parent()), vsUpdatePopupPosition(e) } function createVSQuickView(e, t, n, a) { if (e.attr("src")) var r = e.attr("src"); else r = e.data("original"); var i = BaseUrl + "images/toolbar_icon.png", o = e.data("fail").replace("/jpgt/", "/jpgo/"), l = ""; if (e.attr("alt") && (l = e.attr("alt")), -1 != (r = (r = -1 == r.indexOf("jpgt") ? r.replace("/110x110/", "/300x300/") : r.replace("/jpgt/", "/jpgo/")).replace("wid=300", "wid=600").replace("hei=300", "hei=600")).indexOf("jpgo")) var d = String.format("", n, a, i, t, r, o, l); else d = String.format("", n, a, i, t, r, o, l); $(d).appendTo(e.parent()), vsUpdatePopupPosition(e) } function destroyQuickView() { $("#id-qk-vw").remove() } function vsUpdatePopupPosition(e) { var t = getWindowSize(), n = getPopupSize(); t.width + t.scrollLeft < e.offset().left + n.width ? $(".qk-vw .prvw-rt").css("left", -315) : $(".qk-vw .prvw-rt").css("left", 100), t.height + t.scrollTop < e.offset().top + n.height ? ($(".qk-vw img").css("top", -300), $(".qk-vw div").css("top", -300)) : ($(".qk-vw img").css("top", 40), $(".qk-vw div").css("top", 40)), ChangeDisplayForIe8(), $(".qk-vw img").lazyload({ effect: "fadeIn", failimage: BaseUrl + "images/ImageNotInCatalog.png" }).trigger("appear") } function updatePopupPosition(e) { var t = getWindowSize(), n = getPopupSize(); t.width + t.scrollLeft < e.offset().left + n.width ? $(".qk-vw .prvw-rt").css("left", -315) : $(".qk-vw .prvw-rt").css("left", 100), t.height + t.scrollTop < e.offset().top + n.height ? $(".qk-vw img").css("top", -300) : $(".qk-vw img").css("top", 40) } function getWindowSize() { return { scrollLeft: $(window).scrollLeft(), scrollTop: $(window).scrollTop(), width: $(window).width(), height: $(window).height() } } function getPopupSize() { return { width: 400, height: 400 } } function getParam(e, t) { e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var n = RegExp("[\\?&]" + e + "=([^]*)").exec(t); return null == n ? "" : n[1] } function getParameterByName(e) { e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var t = new RegExp("[\\?&]" + e + "=([^]*)").exec(window.location.href); return null == t ? "" : decodeURIComponent(t[1].replace(/\+/g, " ")) } function onRequestStart(e, t) { startAjaxDT = (new Date).getTime() } function onResponseEnd(e, t) { onEndAjaxRender() } function openRadWindow(e, t, n, a) { var r; if (null != t) r = $find(t); else if (null != n) { var i; null != a && (i = $find(a)), null != i && (r = i.open(e, n)) } return null == r && (r = $find("DefaultRadWindow")), r.show(), null != e && r.setUrl(e), r.set_keepInScreenBounds(!0), r } function Stats() { } function getElementValue(e) { var t = document.getElementById(e); return t ? t.value : null } function setElementValue(e, t) { var n = document.getElementById(e); n && (n.value = t) } function setHdnStatValues(e, t, n) { endAjaxDT = new Date, endAjaxDT = endAjaxDT.getTime(), setElementValue(__moduleLoadCntClientID, e), setElementValue(__requestTypeClientID, t), setElementValue(__eventTargetClientID, n) } function captureFrameworkStat(e, t) { var n = !0; if (null != e && "null" != e || (e = 0), e >= 0 && e <= 3e5 && t >= 0 && t <= 3e5) { var a = getElementValue(__moduleLoadCntClientID), r = getElementValue(__requestTypeClientID), i = getElementValue(__eventTargetClientID); if (e || (n = !1), n && void 0 !== Stats) { var o = getCookie("asi"), l = StatRecord.Create("OGNS11", !1); l.AddField("serverpageloadtime_ms", e), l.AddField("clientpageloadtime_ms", t), l.AddField("module_cnt", a), l.AddField("request_type", r), l.AddField("eventtarget_value", i), null != o && o.length > 0 && l.AddField("asiguid", o), l.AddField(__STATS_USERAGENT, ""), Stats.Capture(l) } } } function RecordVideoClickStats(e, t, n, a, r) { asi.StatBuffer.getInstance().addRecord(asi.app.getModule(e).getStatRecord({ schemaCode: "ACVD11", immediate: !1, adaction_cd: n, ad_id: t, link_url: a, hits_cnt: 1, position: r })) } jQuery(document).ready(function () { $("a").bind("click", function (e) { var t = $(this).attr("href"); if (/247realmedia.com/.test(t)) setCookie("__AD_CLICK", asi.app.getCode() + "=" + asi.app.getVersion(), null, null); else { var n = /PCUrl/.test(t) && !/javascript:/i.test(t); if (n && 0 == window.location.href.indexOf("https") && 0 != t.indexOf("https") && (n = !1), !n) return; e.preventDefault(); try { return interceptHrefClick(e) } catch (e) { return } } }), $("input:text").bind("keydown", function (e) { var t = 0 != $(e.target).data("causepostback"); if (13 == e.keyCode && !t) return e.preventDefault(), !1 }) }), StatRecord = function (e) { return new asi.StatRecord({ schemaCode: e }) }, StatRecord.Create = function (e, t) { return new asi.StatRecord({ schemaCode: e, immediate: t }) }, Stats.Capture = function (e, t) { !e && t && (e = new StatRecord(t)), asi.StatBuffer.getInstance().addRecord(e) }, Stats.CaptureAll = function (e) { for (var t = 0; t < e.length; t++)asi.StatBuffer.getInstance().addRecord(e[t]) }, Stats.Disable = function () { asi.stats.disable() }, Stats.Enable = function () { asi.stats.enable() }; var __onload = window.onload; function onEndRender() { null != __onload && __onload(); var e = new Date; e = e.getTime(), captureFrameworkStat("undefined" != typeof __serverPageLoadTimeClientID ? getElementValue(__serverPageLoadTimeClientID) : 0, "undefined" != typeof startDT ? e - startDT : 0) } function onEndAjaxRender() { var e = new Date; e = e.getTime(), captureFrameworkStat(endAjaxDT - startAjaxDT, e - endAjaxDT) } function disposeTree(e, t) { for (var n = t.get_panelsUpdating(), a = n.length - 1; a >= 0; a--) { for (var r = n[a], i = r.getElementsByTagName("*"), o = i.length, l = new Array(o), d = 0; d < o; d++)l[d] = i[d]; for (var s = 0, u = l.length; s < u; s++) { var c = l[s]; if (1 === c.nodeType) { c.dispose && "function" == typeof c.dispose ? c.dispose() : c.control && "function" == typeof c.control.dispose && c.control.dispose(); var p = c._behaviors; if (p) for (d = (p = Array.apply(null, p)).length - 1; d >= 0; d--)p[d].dispose() } } r.innerHTML = "" } } function isDate(e, t) { var n, a, r, i, o; return void 0 === t && (t = "/"), 3 === (n = e.split(t)).length && (r = n[0] - 1, i = n[1] - 0, !((o = n[2] - 0) < 1e3 || o > 3e3) && (a = new Date(o, r, i).getTime(), (n = new Date).setTime(a), n.getFullYear() === o && n.getMonth() === r && n.getDate() === i)) } function htmlEncode(e) { return $("").text(e).html() } function formatDate(e, t) { var n = e.getMonth() + 1, a = e.getDate(), r = e.getFullYear(); return new Date(t.replace("dd", a).replace("mm", n).replace("yy", r)) } function getToday() { var e = new Date; return e.setHours(0, 0, 0, 0), e } function compareVersions(e, t) { if ("string" != typeof e) return !1; if ("string" != typeof t) return !1; e = e.split("."), t = t.split("."); for (var n = Math.min(e.length, t.length), a = 0; a < n; a++) { if (e[a] = parseInt(e[a], 10), t[a] = parseInt(t[a], 10), e[a] > t[a]) return 1; if (e[a] < t[a]) return -1 } return e.length === t.length ? 0 : e.length < t.length ? -1 : 1 } window.onload = onEndRender;