function GetCalification(n) { n != null && (__Califications += n + ";") } function GetMessagesCounter(n) { n != null && (__Blogs += n + ";") } function LoadBlogCalifications() { var mBlogs, mIndex, mSpan, mCount; if (__Califications != "" && (mBlogs = __Califications.split(";"), mBlogs != null && mBlogs.length > 0)) for (mIndex = 0; mIndex < mBlogs.length; mIndex++)if (mBlogs[mIndex] != "" && (mSpan = ObtenerControl("spnBlogCal" + mBlogs[mIndex]), mSpan != null)) try { mCount = eval("_BlogCal" + mBlogs[mIndex] + "C"); mCount > 0 && SetFormatCounter(mSpan, mCount) } catch (e) { } } function LoadBlogMessages() { var mBlogs, mIndex, mSpan, mCount; if (__Blogs != "" && (mBlogs = __Blogs.split(";"), mBlogs != null && mBlogs.length > 0)) for (mIndex = 0; mIndex < mBlogs.length; mIndex++)if (mBlogs[mIndex] != "" && (mSpan = ObtenerControl("spnBlog" + mBlogs[mIndex]), mSpan != null)) try { mCount = eval("_Blog" + mBlogs[mIndex] + "C"); mCount > 0 && SetFormatCounter(mSpan, mCount) } catch (e) { } } function GetVotesCounter(n, t, i) { n != null && t != null && (__Votes += n + ":" + t + ":" + (i ? 1 : 0) + ";") } function LoadVotes() { var mVotes, mIndex, mData, mSpan, mCount; if (__Votes != "" && (mVotes = __Votes.split(";"), mVotes != null && mVotes.length > 0)) for (mIndex = 0; mIndex < mVotes.length; mIndex++)if (mVotes[mIndex] != "" && (mData = mVotes[mIndex].split(":"), mData.length > 2 && (mSpan = ObtenerControl("spnVote" + mData[0] + "-" + mData[1] + "-" + mData[2] + "Count"), mSpan != null))) try { mCount = eval("_Vote" + mData[0] + "_" + mData[1] + "_" + mData[2] + "C"); mCount > 0 && SetFormatCounter(mSpan, mCount) } catch (e) { } } function SetFormatCounter(n, t) { switch (__FormatCounter) { case 1: n.innerHTML = t; break; case 2: n.innerHTML = "(" + t + ")"; break; case 3: n.innerHTML = "{" + t + "}"; break; case 4: n.innerHTML = "[" + t + "]" } } function GetSurveyVotes(n) { n != null && (__Surveys += n + ";") } function LoadSurveyVotes() { var mSurvey, mIndex, mSpan, mCount; if (__Surveys != "" && (mSurvey = __Surveys.split(";"), mSurvey != null && mSurvey.length > 0)) for (mIndex = 0; mIndex < mSurvey.length; mIndex++)if (mSurvey[mIndex] != "" && (mSpan = ObtenerControl("spnSurvey" + mSurvey[mIndex]), mSpan != null)) try { mCount = eval("_Survey" + mSurvey[mIndex] + "C"); mCount > 0 && SetFormatCounter(mSpan, mCount) } catch (e) { } } function LoadAll() { LoadBlogMessages(); LoadBlogCalifications(); LoadSurveyVotes(); LoadVotes(); typeof DocumentReady != "undefined" && DocumentReady() } function RemoteCall(n, t) { typeof RemoteCall_After != "undefined" && RemoteCall_After(); ExecutionRemoteUrl("CallerHandler.aspx?RequestUrl=" + escape(n) + "&__CallerParam=" + t) } function RemoteCallAdd(n, t) { typeof RemoteCall_After != "undefined" && RemoteCall_After(); $.get("CallerHandler.aspx?RequestUrl=" + escape(n) + "&__CallerParam=" + t + "&WithHtml=false", function (n) { $("#GWCNavigatorControl", $("#" + t)).remove(); $("#" + t).append($(n).children()); typeof RemoteCall_Before != "undefined" && RemoteCall_Before(t) }) } function ExcepcionTratar() { var n = typeof __Exception_Title != "undefined" ? __Exception_Title : "ATENCION", t = typeof __Exception_Url != "undefined" ? __Exception_Url : "/Handlers.ASPExcepcionTratar.aspx?width=450"; OpenDialog({ src: t, title: n, width: 520, height: 220 }) } function ExecutePage(n) { var t = getXmlHttp(), i; if (t) return i = new Date, n += "&tmp=" + i.ToTimeStamp(), t.open("GET", n, !1), t.send(null), t.responseText } function ReportAbuseNotRegistered() { ShowMessage(ObtenerMensaje(62), "ReportesDeAbuso", !0, !0, null, 30) } function ReportAbuse(n, t) { var r = ExecutePage("ResourcesManager.aspx?Resource=Abuse&ReferenciaTipoId=" + n + "&ReferenciaId=" + t), i = ObtenerControl("spnAbuse-" + t); i != null && (i.innerHTML = ObtenerMensaje(63)) } function ReferenceVoteNotRegistered() { ShowMessage(ObtenerMensaje(61), "VotoNoRegistrado", !0, !0, null, 30) } function ReferenceVoted() { ShowMessage(ObtenerMensaje(60), "YaVoto", !0, !0, null, 30) } function ReferenceVote(n, t, i, r) { var u = ExecutePage("ResourcesManager.aspx?Resource=Vote&Positive=" + i + "&ReferenciaTipoId=" + n + "&ReferenciaId=" + t), f; isNaN(u) ? ShowMessage(u, "YaVoto", !0, !0, null, 30) : (f = ObtenerControl(r + "Count"), f != null && (f.innerHTML = u)) } function BlogMessageReplyMessage(n, t, i) { OpenDialog({ src: n + "?Blog=" + t + "&amp;BlogMessage=" + i, title: ObtenerMensaje(64), width: 680, height: 390 }) } function MessageSent() { ShowMessage(ObtenerMensaje(65), "BlogMessage", !0, !0, null, 30); typeof BlogMessageList_Refresh != "undefined" && BlogMessageList_Refresh(); CloseModalWindow() } function RecomendSent() { ShowMessage(ObtenerMensaje(66), "RecomendSended", !0, !0, null, 30); CloseModalWindow() } function VoteSent() { ShowMessage("Su voto ha sido enviado exitosámente.", "VoteRecomend", !0, !0, null, 30); CloseModalWindow() } function Buscar(n) { if (DataBindError = !1, typeof DateInFrom != "undefined" && DateInFrom.Validate(), typeof DateInTo != "undefined" && DateInTo.Validate(), DataBindError) alert("Debe ingresar fechas validas para efectuar la búsqueda"); else { var t = GetParentForm(n); return t.action = "NoteListSearchResults.aspx", t.submit(), !0 } } function SetSortList(n) { var t = UrlRemoveParam(window.location.href, "SORTDESC"); t.indexOf("?") == -1 && (t += "?"); window.location.href = t + "&SORTDESC=" + (n == 1 ? "1" : "0") } function __GetDomain() { var n = window.document.location.href; return n.indexOf("http://") > -1 && (n = n.split("http://")[1]), n.indexOf("https://") > -1 && (n = n.split("https://")[1]), n.indexOf("/") > -1 && (n = n.split("/")[0]), n } function __CGW_SetAd(n, t) { var u, f, r, i; t != "" && (u = $.isArray(n.P) ? n.P.join("-") : n.P, f = document.getElementById(u + "-" + n.Pg + "-" + n.No + "-" + n.Pr + "-" + n.Ca + "-" + n.Ts), f != null ? (t.indexOf("/*CGWSCI*/") == -1 ? __CGW_AdInnerHtml(f, t) : (r = t.substring(t.indexOf("/*CGWSCI*/") + 10), r = r.substring(0, r.indexOf("/*CGWSCE*/")), t = t.replace("/*CGWSCI*/" + r + "/*CGWSCE*/", "/*%Ad%*/"), i = document.createElement("IFRAME"), i.width = "0px", i.height = "0px", i.frameBorder = "0", i.marginwidth = "0px", i.marginheight = "0px", i.scrolling = "no", i.src = r + "&P=" + u + "&Pg=" + n.Pg + "&No=" + n.No + "&Pr=" + n.Pr + "&Ca=" + n.Ca + "&Ts=" + n.Ts, i.id = "IF-" + u + "-" + n.Pg + "-" + n.No + "-" + n.Pr + "-" + n.Ca + "-" + n.Ts, f.appendChild(i), $(i).load(function (n, t) { return function () { __CGW_AdPut(n, t) } }(n, t))), typeof __CGW_AdEnd != "undefined" && __CGW_AdEnd(n.P)) : window.setTimeout(function () { __CGW_SetAd(n, t) }, 250)) } function __CGW_AdPut(n, t) { var f = document.getElementById(n.P + "-" + n.Pg + "-" + n.No + "-" + n.Pr + "-" + n.Ca + "-" + n.Ts), i = document.getElementById("IF-" + n.P + "-" + n.Pg + "-" + n.No + "-" + n.Pr + "-" + n.Ca + "-" + n.Ts), r, e, u, o; if (f != null && i != null) if (r = i.contentDocument ? i.contentDocument : i.contentWindow.document, r.body.innerHTML.indexOf("googlesyndication.com") > -1) { if (e = r.getElementsByTagName("IFRAME"), e.length > 0) { u = e[0]; try { o = u.contentDocument ? u.contentDocument : u.contentWindow.document; __CGW_AdInnerHtml(f, t.replace("/*%Ad%*/", o.body.innerHTML)) } catch (s) { } } } else __CGW_AdInnerHtml(f, t.replace("/*%Ad%*/", r.body.innerHTML)) } function __CGW_AdInnerHtml(n, t) { $(t).insertBefore(n); $(n).remove() } function __CGW_DeleteObject(n) { n != null && n.parentElement != null ? n.parentElement.removeChild(n) : n != null && n.parentNode != null && n.parentNode.removeChild(n) } function __CGW_Ad(n, t) { if (typeof __CGW == "undefined") { var i = { P: n, Pg: __CGW_Page, No: __CGW_Note, Pr: __CGW_Product, Ca: __CGW_Section, Ts: t }; $.isArray(n) ? (document.write('<span id="' + i.P.join("-") + "-" + i.Pg + "-" + i.No + "-" + i.Pr + "-" + i.Ca + "-" + i.Ts + '"><\/span>'), __CGW_ExecuteAdRequest(i, "./ServerSH.aspx?ps=" + i.P.join() + "&A=" + i.Pg + "&N=" + i.No + "&R=" + i.Pr + "&C=" + i.Ca + "&T=" + i.Ts)) : (document.write('<span id="' + i.P + "-" + i.Pg + "-" + i.No + "-" + i.Pr + "-" + i.Ca + "-" + i.Ts + '"><\/span>'), __CGW_ExecuteAdRequest(i, "./ServerSH.aspx?p=" + i.P + "&A=" + i.Pg + "&N=" + i.No + "&R=" + i.Pr + "&C=" + i.Ca + "&T=" + i.Ts)) } } function __CGW_ExecuteAdRequest(n, t) { $.get(t, function (n) { return function (t) { __CGW_SetAd(n, t) } }(n)) } function ObtenerControl(n) { if (!n) return null; try { if (n.length > 0) return n.toLowerCase().indexOf("form") > -1 && window.document.forms[n] ? window.document.forms[n] : window.document.getElementById(n) } catch (t) { return null } } function getXmlHttp() { var n = !1; if (!n && typeof XMLHttpRequest != "undefined") try { n = new XMLHttpRequest } catch (t) { n = !1 } if (!n && window.createRequest) try { n = window.createRequest() } catch (t) { n = !1 } return n } function __CGW_AddToCart(n, t, i, r, u) { if (!isNaN(n) && !isNaN(r)) { var f = "ResourcesManager.aspx?Resource=AddToCart.aspx&p=" + n + "&c=" + t + "&s=" + i + "&q=" + r; __CGW_Callback(f, u) } } function __CGW_UpdateCart(n, t, i, r, u, f) { if (!isNaN(n) && !isNaN(t) && !isNaN(u)) { var e = "ResourcesManager.aspx?Resource=UpdateCart.aspx&p=" + t + "&c=" + i + "&s=" + r + "&q=" + u + "&i=" + n; __CGW_Callback(e, f) } } function __CGW_DeleteCart(n, t) { if (!isNaN(n)) { var i = "ResourcesManager.aspx?Resource=DeleteCart.aspx&i=" + n; __CGW_Callback(i, t) } } function __CGW_CheckOut(n, t, i, r, u, f) { if (!isNaN(n)) { var e = "ResourcesManager.aspx?Resource=CheckOut.aspx&m=" + n + "&s=" + t + "&b=" + i + "&o=" + r + "&f=" + u; __CGW_Callback(e, f) } } function __CGW_SetSale(n, t, i) { if (!isNaN(t)) { var r = "ResourcesManager.aspx?Resource=SetSale.aspx&c=" + n + "&e=" + t; __CGW_Callback(r, i) } } function __CGW_Stock(n, t, i, r, u) { if (!isNaN(n) && !isNaN(r)) { var f = "ResourcesManager.aspx?Resource=Stock.aspx&p=" + n + "&c=" + t + "&s=" + i + "&b=" + r; __CGW_Callback(f, u) } } function __CGW_AddRecommend(n, t, i, r) { if (!isNaN(n) && !isNaN(t) && !isNaN(i)) { var u = "ResourcesManager.aspx?Resource=Recomend.aspx&tr=" + n + "&r=" + t + "&t=" + i; __CGW_Callback(u, r) } } function __CGW_AddUserNote(n, t) { if (!isNaN(n)) { var i = "ResourcesManager.aspx?Resource=AddUserNote.aspx&n=" + n; __CGW_Callback(i, t) } } function __CGW_DeleteUserNote(n, t) { if (!isNaN(n)) { var i = "ResourcesManager.aspx?Resource=DeleteUserNote.aspx&n=" + n; __CGW_Callback(i, t) } } function __CGW_AddUserProduct(n, t) { if (!isNaN(n)) { var i = "ResourcesManager.aspx?Resource=AddUserProduct.aspx&p=" + n; __CGW_Callback(i, t) } } function __CGW_DeleteUserProduct(n, t) { if (!isNaN(n)) { var i = "ResourcesManager.aspx?Resource=DeleteUserProduct.aspx&p=" + n; __CGW_Callback(i, t) } } function __CGW_AddUserKeyword(n, t) { if (!isNaN(n)) { var i = "ResourcesManager.aspx?Resource=AddUserKeyword.aspx&k=" + n; __CGW_Callback(i, t) } } function __CGW_DeleteUserKeyword(n, t) { if (!isNaN(n)) { var i = "ResourcesManager.aspx?Resource=DeleteUserKeyword.aspx&k=" + n; __CGW_Callback(i, t) } } function __CGW_BlogCalification(n, t, i) { var r = "ResourcesManager.aspx?Resource=Calification&BlogId=" + n + "&Cal=" + t; __CGW_Callback(r, i) } function __CGW_Callback(n, t) { var i, r; n != "" && (i = getXmlHttp(), i && (r = new Date, n += "&tmp=" + r.ToTimeStamp(), i.open("GET", n, !0), i.onreadystatechange = function () { i.readyState == 4 && i.status == 200 && t != null && t(i.responseText) }, i.send(null))) } function RemoteCall_After() { ShowMessageWait(!1) } function RemoteCall_Before() { CloseMessageWait() } function __CGW_SetHit(n, t, i, r) { if (!isNaN(n) && !isNaN(t)) { var u = "ResourcesManager.aspx?Resource=Hit&Referencia=" + n + "&ReferenciaTipo=" + t; isNaN(i) || (u += "&sentu=" + i); isNaN(r) || (u += "&sent=" + r); GetURLParameter("utm_source") != null && GetURLParameter("utm_source") != "null" && (u += "&utm_source=" + GetURLParameter("utm_source"), u += "&utm_medium=" + GetURLParameter("utm_medium"), u += "&utm_term=" + GetURLParameter("utm_term"), u += "&utm_content=" + GetURLParameter("utm_content"), u += "&utm_campaign=" + GetURLParameter("utm_campaign")); GetURLParameter("nui") != null && GetURLParameter("nui") != "null" && (u += "&nui=" + GetURLParameter("nui")); __CGW_Callback(u) } } function UrlGetValue(n, t) { var r = new RegExp("[\\&\\?]?" + t + "[^=]?([^\\&]+)", "i"), i = n.match(r); if (i != null) return i[1].replace("=", "") } function GetURLParameter(n) { return decodeURI((RegExp(n + "=(.+?)(&|$)").exec(location.search) || [, null])[1]) } function GetParam(n, t) { var r = new RegExp("[?&]" + n + "=([^&#]*)", "i"), i = window.location.search.match(r); return i != null ? i[1].replace("=", "") : t } function GetTS(n) { var t = new Date; return n == null && (n = "."), t.getYear() + n + t.getMonth() + n + t.getDate() + n + t.getHours() + n + t.getMinutes() } function ObtenerUltimaVentana() { return window.top } var __Blogs = "", __Notes = "", __Surveys = "", __Votes = "", __FormatCounter = 2, __Ads = [], __Califications = ""; Date.prototype.ToTimeStamp = function () { return this.getYear() + "." + this.getMonth() + "." + this.getDate() + "." + this.getHours() + "." + this.getMinutes() + "." + this.getSeconds() + "." + this.getMilliseconds() }; OpenDialog = function (n) { var t = $.extend({ events: [], modal: !0, src: null, width: GetWidth(), height: GetHeight(), resizable: !1, title: null, onclose: null, show: null, returnValue: null, scroll: "auto" }, n), i = ObtenerUltimaVentana(), u, r; i.document != document && i.OpenDialog != null ? i.OpenDialog({ events: t.events, modal: t.modal, src: t.src, width: t.width, height: t.height, resizable: t.resizable, title: t.title, onclose: t.onclose, show: t.show, returnValue: t.returnValue, scroll: t.scroll }) : (u = new Date, r = "win" + u.ToTimeStamp().ReplaceAll(".", "_"), i.document.__CGW_ReturnValue = null, $("body").append('<iframe id="' + r + '" src="' + t.src + '" scrolling="' + t.scroll + '" style="overflow:auto;"><\/iframe>'), $("#" + r).dialog({ bgiframe: !0, modal: t.modal, width: t.width, height: t.height, minWidth: t.width, minHeight: t.height, resizable: t.resizable, title: t.title, show: t.show, getReturn: function () { return __CGW_ReturnValue }, returnValue: t.returnValue, zIndex: 1e4, close: function () { if ($(this).dialog("destroy"), $(this).remove(), t.onclose != null) t.onclose(i.document.__CGW_ReturnValue) }, open: function () { $(this).css("width", "100%") } })) }; CloseDialog = function (n) { var t = $.extend({ win_id: window.frameElement != null ? window.frameElement.id : null, returnValue: null }, n), i = ObtenerUltimaVentana(); i.document != document && i.CloseDialog != null ? i.CloseDialog({ win_id: t.win_id, returnValue: t.returnValue }) : (i.document.__CGW_ReturnValue = t.returnValue, $("#" + t.win_id).dialog("close")) };
/*end-file*/