function Search(t) { var e = new String, n = document.getElementById("txtSearch").value; return null != n && n.length > 0 && n != $("#helpmark").val() ? (e = t + "?text=" + encodeURIComponent(n), void(window.location.href = e)) : void(window.location.href = t) } function tooltip(t, e) { $(t).each(function() { var t = $.trim($(this).attr("id")).split("_")[1], n = $(this).attr("title"); if ("" != n && null != n) { $("body").append(""); var i = $("#" + e + t); $(this).removeAttr("title").mouseover(function() { i.show() }).mousemove(function(t) { i.css({ left: t.pageX + 15, top: t.pageY + 15 }) }).mouseout(function() { i.hide() }) } }) } function textPaste(t, e) { $(t).each(function() { var t = ($.trim($(this).attr("id")).split("_")[1], $.trim($(this).attr("title"))); "" != t && null != t && $(this).removeAttr("title").after("

" + t + "

") }) } function showVideoContainer() { displayModalPanel("VideoContainer") } function showVideoContainer2() { displayModalPanel("VideoContainer2") } function showVideoContainer3() { displayModalPanel("VideoContainer3") } function showVideoContainer4() { displayModalPanel("VideoContainer4") } function showVideoContainer5() { displayModalPanel("VideoContainer5") } function showVideoContainer6() { displayModalPanel("VideoContainer6") } function showVideoContainer7() { displayModalPanel("VideoContainer7") } function HelpCenterMasterInit() { $(window).scroll(function() { if ($("a[name=comments]").length) { var t = $("a[name=comments]").offset().top - $(window).height(); $(window).scrollTop() > t ? ($("#PopupAlsoBlock").animate({ right: "0px" }, 200), $("#SeeAlsoBlock").html($("#SeeAlsoBlockLinks").html())) : $("#PopupAlsoBlock").stop(!0).animate({ right: "-430px" }, 100) } }), $("#PopupAlsoBlock .close").bind("click", function() { $(this).parent().remove() }) } function IndexPageInit(t, e, n) { $("#navitem_help").attr("class", "navCurrentItem"), $("#txtSearch").Watermark(t, "#7A7A7A"), $("#txtSearch").val(e), $("#txtSearch").unbind("keyup").bind("keyup", function(t) { return 13 == t.keyCode ? void Search(n) : void 0 }), $("#SearchExample").click(function() { $("#txtSearch").val($("#SearchExample").text()), $("#txtSearch").focus(), Search(n) }), $("#switcherMenu span").on("click", function() { var t = $(this).attr("data-name"), e = getCookie("type-menu"); $("[id$=ListMenu]").hide(), $("[id$=MainContent]").hide(), $("#switcherMenu span").removeClass("active"), $(this).addClass("active"), $("#" + t + "ListMenu").show(), $("#" + t + "MainContent").show(), e != t && setCookie("type-menu", t) }) } $(function() { $(".screenphoto").click(function() { $img = $("#" + $(this).attr("target")); var t = $img.attr("alt"), e = $("#" + $(this).attr("target")).attr("src"); $("#scrHelpContent").html($("#scrHelpTemplate").tmpl({ CurScreen: e, curalt: t })), $("#scrHelpContainer").width($img.width() + "px"), displayModalPanel("scrHelpContainer") }), $(".text-container-link").on("click", function() { $id = $("#" + $(this).attr("data-content")), $("#textHelpContent").html($id.html()), $("#textHelpContainer .tag_name").text($(this).text()), displayModalPanel("textHelpContainer") }), $(".text-container-link-changelog").on("click", function() { $id = $("#" + $(this).attr("data-content")), $("#textHelpContentChangelog").html($id.html()), $("#textHelpContainerChangelog .tag_name").text($(this).text()), displayModalPanel("textHelpContainerChangelog") }) });