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

"+title+"

")})}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 HelpCenterMasterInit(){$(window).scroll(function(){if($("a[name=comments]").length){var distanceTop=$("a[name=comments]").offset().top-$(window).height();$(window).scrollTop()>distanceTop?($("#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(watermarkText,searchPath){$("#navitem_help").attr("class","navCurrentItem"),$("#txtSearch").Watermark(watermarkText,"#7A7A7A"),$("#txtSearch").unbind("keyup").bind("keyup",function(event){return 13==event.keyCode?void Search(searchPath):void 0}),$("#SearchExample").click(function(){$("#txtSearch").val($("#SearchExample").text()),$("#txtSearch").focus(),Search(searchPath)}),$("#switcherMenu span").on("click",function(){var type=$(this).attr("data-name"),value=getCookie("type-menu");$("[id$=ListMenu]").hide(),$("[id$=MainContent]").hide(),$("#switcherMenu span").removeClass("active"),$(this).addClass("active"),$("#"+type+"ListMenu").show(),$("#"+type+"MainContent").show(),value!=type&&setCookie("type-menu",type)})}$(function(){$(".screenphoto").click(function(){$img=$("#"+$(this).attr("target"));var alt=$img.attr("alt"),path=$("#"+$(this).attr("target")).attr("src");$("#scrHelpContent").html($("#scrHelpTemplate").tmpl({CurScreen:path,curalt:alt})),$("#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")})});