function isDefined(variable){return eval("(typeof("+variable+") != 'undefined');")}function initializePage(n,t,i){document.readyState!=="complete"&&(document.readyState==="loading"||document.documentElement.doScroll)||(Globals.UI.isSiteThemeEnabled()?(Globals.UI.modernizeHTMLElements(),Globals.UI.knotiaFlatAttachHoverEvents(),expandShortPages(),$(".hasDatepicker").datepicker("hide"),SetDivTops(),CalculateHomepageHeadlineArrow()):(typeof n=="boolean"&&(glb_bUseFixedNavigation=n),typeof i=="boolean"&&(glb_bForceLargeStylesheet=i),n?(t&&setProperNavigationStylesheet(),setDivHeights(),window.setTimeout(function(){setDivHeights()},500)):setDivHeightsForOtherBrowsers()),StoreScreenSizeCookies(),glb_bInitializePageCalled||HideSessionTrackerDropdown(),checkForCookieAcceptanceCookie(),glb_bInitializePageCalled=!0)}function ToggleShowNewLookCookie(n){let t={oldValue:Globals.Utilities.isUndefinedOrNull(Globals.Cookies.readCookie("ShowNewLook"))?"undefined":Globals.Cookies.readCookie("ShowNewLook").toString(10),newValue:n.toString(10),currentPage:window.location.href};Globals.Ajax.postRequest("/Services/KnotiaInsightsService.svc/LogSwitchbackEvent",{JSONParams:JSON.stringify(t)},null,null,null,this);Globals.Cookies.createCookie("ShowNewLook",n,{IsPersistent:!0});document.location.reload(!0)}function CalculateHomepageHeadlineArrow(){var t=$("#divDocumentBody").find(".headline-selected"),n,i;Globals.Utilities.isUndefinedOrNull(t)||(n=t.attr("id"),i=$.trim(n)+"Content",document.SubscriptionPanelManager.toggleHeadlineSection({divContentPanelDivID:i,divHeadlineDivID:n}))}function hideHomePageRightPanel(){$(".home-right-panel").hide();$(".subscription-content-panel").css("width","79%")}function showHomePageRightPanel(){$(".home-right-panel").show();$(".subscription-content-panel").css("width","54%")}function HideSessionTrackerDropdown(){Globals.UI.isJqueryDialogOpen("divSessionTrackerClientWrapper")?Globals.UI.closejQueryToolbarDialog("divSessionTrackerClientWrapper",function(){glb_hiddenClientListDiv.appendTo($("#divClientListWrapper"))}):glb_hiddenClientListDiv=$("#divClientList")}function expandShortPages(){var i=$("#divRightNavContent"),e=0,r=$("#divLeftNavigation"),o=0,s=$("#divDocumentOptionsWrapper"),u=0,f=$("#divDocumentBody"),n=$("#divPageBody"),h=$("#divPageHeader").outerHeight(!0),c=$(window).height(),a,t,l;f.length!==0&&(n.length===0&&(n=$("#divPageBodyLong")),n.length===0&&(n=$("#divPageBodyLongest")),i.length>0&&(e=i.height()),r.length===0&&i.length===0&&f.css("width","100%"),r.length>0&&(o=r.height()),s.length>0&&(u=s.outerHeight(!0)),a=c-h-$(n).outerHeight(),t=Math.max(e,200,o,c-h),f.css("min-height",t-u+"px"),n.css("min-height",t-u+"px"),l=$("#pageBottomCookieNotificationBanner"),l.length>0&&(t-=400),Globals.Utilities.isUndefinedOrNull(r)||r.css("min-height",t+"px"),Globals.Utilities.isUndefinedOrNull(i)||i.css("min-height",t+"px"))}function setProperNavigationStylesheet(){var e=document.body?document.body.clientWidth:self.innerWidth,n="Navigation_Huge",f="Navigation_Large",t,i,r,u;for(e<1260&&(n="Navigation_Large",f="Navigation_Huge"),document.glb_PageLayout_ScreenStyle=n,t=0;i=document.getElementsByTagName("link")[t];t++){if(r=i.getAttribute("href"),Globals.Utilities.isNullOrWhitespace(r))return;r.indexOf("Navigation_")!=-1&&(u=$(i),u.attr("href",u.attr("href").replace(f,n)))}}function setDivHeights(){var e=200,r=document.getElementById("divDocumentBody"),n,i,s,t;if(r!=null){n=document.getElementById("divPageBody");n==null&&(n=document.getElementById("divPageBodyLong"));n==null&&(n=document.getElementById("divPageBodyLongest"));var u=document.getElementById("divLeftNavigation"),f=$(window).height(),v=$(window).width();if(f==0&&(f=document.body.clientHeight),v>=1020||glb_bForceLargeStylesheet){var h=$("#divDocumentOptionsWrapper"),c=0,l=e;h.length>0&&(c=h.outerHeight());l=$(window).innerHeight()==0?window.innerHeight:parseInt($(window).innerHeight(),10);t=Math.max(l-$("#divPageHeader").innerHeight(),e);n!=null&&$(n).css("height",t-c+"px");u!=null&&$(u).css("height",t+"px");var o=document.getElementById("divRightNavigation"),a=document.getElementById("divRightNavContent"),y=document.getElementById("divSecondaryLogo");o!==null&&(i=0,i=Math.max(f-Math.ceil(o.offsetTop+r.offsetTop),e),$(o).css("height",i+"px"),y!=null?(s=0,s=i-91,$(a).css("height",s+"px")):$(a).css("height",i+"px"))}else r!=null&&u!=null&&(t=Math.max(f,r.offsetHeight),$(u).height(t))}}function setDivHeightsForOtherBrowsers(){var u=document.getElementById("divDocumentBody"),n=document.getElementById("divPageBody"),t;n==null&&(n=document.getElementById("divPageBodyLong"));n==null&&(n=document.getElementById("divPageBodyLongest"));var i=document.getElementById("divLeftNavigation"),f=document.getElementById("divRightNavigation"),r=$(window).height();n!=null&&i!=null&&(t=Math.max(r,u.offsetHeight+n.offsetHeight),$(i).height(t),t=Math.max(r,n.offsetHeight),$(f).height(t))}function MaximizeScreenWidth(){if($("#hdnMaximizeScreenWidth").length>0&&$("#hdnMaximizeScreenWidth").val()==1){var n=Math.max($(window).width(),1020),t=0,i=$("#divDocumentBody").offset();$("#divOuterDiv").css("width",+n+"px");$("#divPageHeader").css("width",n+"px");$("#divPageTitle").css("width",n+"px");$("#divDocumentBody").css("width",n-i.left+"px");$("#divPageBodyLong").length>0&&$("#divPageBodyLong").css("width",$("#divDocumentBody").innerWidth()+"px");$("#divRightNavigation").length>0&&($("#divRightNavigation").css("display")==="none"?$("#divRightNavigation").remove():t=$("#divRightNavigation").width());$("#divPageBody").css("width",n-i.left-t+"px")}}function SetDivTops(){if(Globals.UI.isSiteThemeEnabled()){var n=0;$("#divPageTitle").length>0&&(n=$("#divPageTitle").offset().top+$("#divPageTitle").outerHeight(!0));$("#divPageHeader").css("height",n+"px")}}function RemoveAutoScrollFromRightNav(){var n=document.getElementById("divRightNavContent");n!=null&&(n.style.overflow="visible")}function ScrollBodyToCoords(){window.setTimeout("DelayInitialScroll()",50)}function DelayInitialScroll(){var n,t;try{n=document.getElementById("divPageBody");$(window).width()<1e3&&(n=document.body);t=parseInt(document.getElementById("yCoordHolder").value);t>0&&(n.scrollTop=t);CaptureBodyCoords()}catch(i){}}function CaptureBodyCoords(){try{var n=document.getElementById("divPageBody");$(window).width()<1e3&&(n=document.body);document.getElementById("xCoordHolder").value=n.scrollLeft.toString();document.getElementById("yCoordHolder").value=n.scrollTop.toString();window.setTimeout("CaptureBodyCoords()",200)}catch(t){}}function StoreSessionTrackerState(){var t,n;isDefined("bIsTrackerOn")&&bIsTrackerOn?(t="",n=new Date,t="sessiontracker="+iSTCurrentSessionId+"&client="+iSTCurrentClient+"&stTimer="+document.getElementById("sessionTrackerTimer").firstChild.nodeValue+"&clientTime="+n,n.setDate(n.getDate()+30),t+="; path=/",document.cookie=t):(n=new Date,n.setDate(n.getDate()-30),document.cookie="sessiontracker=; expires="+n.toGMTString()+"; path=/")}function openCopyrightDetailsWindow(n){createCenteredPopupDiv("<p class='medium' style='width:400px;height:120'>"+n+"<\/p>",!1,"","",!1)}function RemoveFrameSet(){return}function StoreScreenSizeCookies(){var t=$(window).width(),n;CreateCookie("ScreenXSize",t,7);n=$(window).height();CreateCookie("ScreenYSize",n,7)}function CreateCookie(n,t,i){var u="",r;i>0&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="expires="+r.toGMTString()+"; ");document.cookie=n+"="+t+"; "+u+"path=/"}function PrettyPrintDisable(){$("#divPagePrint").removeClass("show_PrintPrettyOnly");$("#divOuterDiv").removeClass("hide_PrintPrettyOnly");$("#divDocumentBody").removeClass("hide_PrintPrettyOnly")}function PrettyPrintEnable(){$("#divPagePrint").addClass("show_PrintPrettyOnly");$("#divOuterDiv").addClass("hide_PrintPrettyOnly");$("#divDocumentBody").addClass("hide_PrintPrettyOnly")}function format(n){for(var t=1;t<arguments.length;t++)n=n.replace("{"+(t-1)+"}",arguments[t]);return n}function CheckRadio(n){n.disabled||(n.checked=!0)}function OpenPrintDialog(n,t,i,r,u,f,e){var s,o,h;t==null&&(t=!0);i==null&&(i=!0);r==null&&(r=!0);u==null&&(u=!0);f==null&&(f=!0);e==null&&(e=!0);s="<form name='formPrintDialog' id='formPrintDialog'>                        <p class='medium' id='elPrintDocument' "+(t?"":"style='display:none;'")+">                        <input type='radio' name='iPrintWhat' value='0' checked>                        <a onclick='CheckRadio(document.formPrintDialog.iPrintWhat[0])'>{0}<\/a>                        <\/p>                                                <p class='medium print-option' id='elPrintSelectedText' "+(i?"":"style='display:none;'")+">                        <input type='radio' name='iPrintWhat' value='1'>                        <a onclick='CheckRadio(document.formPrintDialog.iPrintWhat[1])'>{1}<\/a>                        <\/p>                                                <p class='medium print-option' id='elPrintCheckedBoxes' "+(r?"":"style='display:none;'")+">                        <input type='radio' name='iPrintWhat' value='2'>                        <a onclick='CheckRadio(document.formPrintDialog.iPrintWhat[2])'>{2}<\/a>                        <\/p>                                                <p class='medium print-option' id='elPrintSearchResultDocuments' "+(u?"":"style='display:none;'")+">                        <input type='radio' name='iPrintWhat' value='3'>                        <a onclick='CheckRadio(document.formPrintDialog.iPrintWhat[3])'>{3}<\/a>                        <\/p>                                                <p class='medium print-option' id='elPrintTaggedRecords' "+(e?"":"style='display:none;'")+">                        <input type='radio' name='iPrintWhat' value='4'>                        <a onclick='CheckRadio(document.formPrintDialog.iPrintWhat[4])'>{4}<\/a>                        <\/p>                                                <p class='medium' style='diplay:none'id='elProcessingRow'> &nbsp; &nbsp; &nbsp; &nbsp; <img src='/Images/ProcessingYourRequest.gif' border='0' align='texttop'> Processing ... <\/p>                                                <\/form>                    ";s=format(s,GetString("str_Print_PrintThisDocument"),GetString("str_Print_PrintSelectedText"),GetString("str_Print_PrintCheckedBoxes"),GetString("str_Print_PrintSearchResultDocuments"),GetString("str_Print_PrintTableOfContents"),GetString("str_Print_PrintTaggedParagraphs"));o=$("<div id='printDialog' title='"+GetString("str_Print_PrintOptions")+"'><\/div>").appendTo("body");o.dialog({modal:!0,close:function(){$(this).remove()}});o.html(s);o.dialog("option","position",["middle",o.height()*.5]);h=[{id:"btnPrintPreview",text:GetString("str_Print_Preview"),"class":"normal-text-resizable",click:function(){printPreview()}},{id:"btnPrint",text:GetString("str_Print_Print"),"class":"normal-text-resizable",click:function(){doPrint()}}];o.dialog("option","buttons",h);$("<div id='hiddenPrintContents'><\/div>").appendTo("body");initWindowDialog()}function printPreview(){var t,i,n,r;for(bPrintPreview=!0,glb_printTarget=window.open("","printPreview","toolbar=no,scrollbars=yes,resizeable=yes,location=0,status=no"),t=0;document.styleSheets!=null&&t<document.styleSheets.length;t++){if(i=document.styleSheets[t].href,n="",Globals.Utilities.isUndefinedOrNull(i))continue;else n=i.toString();n.toLowerCase().indexOf("print_")>=0&&n.toLowerCase().indexOf(".css")>0?glb_printTarget.document.write(format("<link rel='stylesheet' type='text/css' href='{0}' media='print' />",n)):n.toLowerCase().indexOf("fixednavigation_")<0&&n.toLowerCase().indexOf(".css")>0&&glb_printTarget.document.write(format("<link rel='stylesheet' type='text/css' href='{0}' media='all' />",n))}r="<form id='PrintPreviewForm'><table align='center' width='100%'><tr class='hide_Print'><td align='center'><input id='btnPrint' type='button' class='small' value='&nbsp; &nbsp; &nbsp; "+GetString("str_Print_Print")+" &nbsp; &nbsp; &nbsp;' onclick=\"window.print();\" /> <input id='btnClose' type='button' class='small' value='&nbsp; &nbsp; &nbsp; "+GetString("str_Print_Close")+" &nbsp; &nbsp; &nbsp;' onclick='window.close()' /><\/td><\/tr><\/table><\/form>";glb_printTarget.document.write(r);getPrintText();bPrintPreview=!1;glb_printTarget.document.close()}function CleanDoc(n){var t=n.replace(/<script[^>]*?>[\s\S]*?<\/script>/gi,"");return t=t.replace(/onmouseover=/gi,"nothing="),t=t.replace(/onmouseout=/gi,"nothing="),t=t.replace(/onmousedown=/gi,"nothing="),t=t.replace(/onclick=/gi,"nothing="),t.replace(/onmouseup=/gi,"nothing=")}function doPrint(){getPrintText()}function initWindowDialog(){testSelectedText()?document.formPrintDialog.iPrintWhat[1].checked=!0:(document.getElementById("elPrintSelectedText").style.color="#A1A192",document.formPrintDialog.iPrintWhat[1].disabled=!0);document.getElementById("elPrintCheckedBoxes").style.color="#A1A192";$("form[name=formPrintDialog]").find("input[name=iPrintWhat]:eq(2)").attr("disabled","disabled");document.getElementById("elPrintSearchResultDocuments").style.color="#A1A192";$("form[name=formPrintDialog]").find("input[name=iPrintWhat]:eq(3)").attr("disabled","disabled");document.getElementById("elPrintTaggedRecords").style.color="#A1A192";$("form[name=formPrintDialog]").find("input[name=iPrintWhat]:eq(4)").attr("disabled","disabled");document.getElementById("elProcessingRow").style.display="none"}function getPrintText(){!Globals.Utilities.isUndefinedOrNull(document.formPrintDialog)&&Globals.Utilities.isArray(document.formPrintDialog.iPrintWhat)&&document.formPrintDialog.iPrintWhat[1].checked?getSelectedText():getDocumentText()}function getFirefoxRememberedText(n){var t=$("#rememberFirefoxSelectedText"),i;if(t.length>0){if(i=t.html(),i.length>0)return i;n&&t.html("")}return null}function testSelectedText(){var t=getFirefoxRememberedText(!1),n="";if(t!=null)n=t;else if(window.getSelection)n=window.getSelection();else if(document.getSelection)n=document.getSelection();else if(document.selection&&(n=document.selection.createRange().text,n.length!==0))return!0;return n.toString().length!==0?!0:!1}function getSelectedText(){var r=getFirefoxRememberedText(!0),t,u,i,f,n;if(document.selection)n=document.selection,n.type=="Text"&&(n=n.createRange(),bPrintPreview?glb_printTarget.document.write(n.htmlText):($("#divPagePrint").html(n.htmlText+$("#divCopyright").html()),$("#printDialog").remove(),$("#divPagePrint").cpaPrint({addClasses:[]})));else if(r!=null||window.getSelection()){if(t="",r!=null)t=r;else for(u=window.getSelection(),i=0;i<u.rangeCount;i++)f=document.createElement("span"),n=u.getRangeAt(i),f.appendChild(n.cloneContents()),t+=f.innerHTML;bPrintPreview?glb_printTarget.document.write(t):($("#divPagePrint").html(t),$("#printDialog").remove(),$("#divPagePrint").cpaPrint({addClasses:[]}))}}function getDocumentText(){var n="";n=document.getElementById("divPageBodyLongest")!=null?CleanDoc(document.getElementById("divPageBodyLongest").innerHTML):document.getElementById("divPageBody")==null?CleanDoc(document.getElementById("divPageBodyLong").innerHTML):CleanDoc(document.getElementById("divPageBody").innerHTML);bPrintPreview?glb_printTarget.document.write(n):(document.getElementById("divPagePrint").innerHTML=n,$("#printDialog").remove(),window.print())}function GetWordSave(n,t,i){document.frmHiddenForSave.lsDocumentItems.value=n+","+t+","+i;document.frmHiddenForSave.method="post";document.frmHiddenForSave.action="/Knowledge/GetWordDocument.aspx";document.frmHiddenForSave.submit()}function printCleanDoc(n){var t=n.replace(/<a name=[^>]*?>([\s\S]*?)<\/a>/g/i,"$1");return t.replace(/<a href=[^>]*?>([\s\S]*?)<\/a>/g/i,"$1")}function detailCFMInitPagePrint(){var n="";try{n=printCleanDoc(CleanDoc(document.getElementById("divPageBody").innerHTML))}catch(t){try{n=printCleanDoc(CleanDoc(document.getElementById("divPageBody").innerHTML))}catch(i){n=""}}PrettyPrintEnable();document.getElementById("divPagePrint").innerHTML=n}function ShowHideSubCat(n,t){var i=n.split("_");i="PlusImg_"+i[1]+"_"+i[2]+"_"+i[3]+"_"+i[4];$("#"+i).attr("alt")=="+"?($("#"+i).attr("src","../knowledge/images/CheckboxMinus9px.gif"),$("#"+i).attr("alt","-")):($("#"+i).attr("src","../knowledge/images/CheckboxPlus9px.gif"),$("#"+i).attr("alt","+"));$("#"+n).is(":hidden")?Globals.Utilities.isUndefinedOrNull(t)?$("#"+n).slideDown("slow"):$("#"+n).slideDown(0):Globals.Utilities.isUndefinedOrNull(t)?$("#"+n).slideUp("slow"):$("#"+n).slideUp(0)}function ShowHideMoreNode(n,t){if($("#hiddenUl"+n).is(":hidden")?Globals.Utilities.isUndefinedOrNull(t)?$("#hiddenUl"+n).slideDown("slow"):$("#hiddenUl"+n).slideDown(0):($(".Node_SubCategory:visible").each(function(n,t){ShowHideSubCat(t.id)}),t==null?$("#hiddenUl"+n+"").slideUp("slow"):$("#hiddenUl"+n+"").slideUp(0)),$("#"+n+"_Max").is(":hidden")){var i="$('#"+n+"_Max').toggle()";setTimeout(i,700)}else $("#"+n+"_Max").toggle()}function bindKeyDownToText(){$("#validator_destination").keyup(function(){var n=$("#validator_destination").val();$.trim(n).length>0?($(document).queue("ajaxRequests",function(){$(document).queue("ajaxRequests").length>0&&(willBeFirstResponse=!1);$.getJSON("/KnowledgeAdmin/VerifyDestination.aspx?destination="+n,updateConfirmation)}),willBeFirstResponse&&$(document).dequeue("ajaxRequests")):$("#confirmation").html("")})}function updateConfirmation(n){n.isValid?($("#confirmation").html("<img src='/KnowledgeAdmin/_IncludeFiles/Images/valid.png'>"),$("#destinationIsValid").val("1"),$("#pointId").val(n.pointId.toString())):($("#confirmation").html("<img src='/KnowledgeAdmin/_IncludeFiles/Images/invalid.png'>"),$("#destinationIsValid").val("0"));$(document).dequeue("ajaxRequests");$(document).queue("ajaxRequests").length==0&&(willBeFirstResponse=!0)}function ShowLearningInlineMedia(n){var t="http://www.taxnavigator.ca",i=t+"/Knowledge/View/_IncludeFiles/styles/video-js.css",r=t+"/Knowledge/View/_IncludeFiles/Scripts/video.js";$("head").append(format('<link rel="stylesheet" href="{0}" type="text/css" />',i));$.getScript(r,null).done(function(){var i="";n==1&&(i=t+"/Courses/CourseContent/BTS/QTD/video-mpeg.mp4",_V_.options.flash.swf="/Courses/CourseContent/BTS/QTD/video-flash.swf");n==2&&(i=t+"/Courses/CourseContent/Tax_Leadership/EGAN/video-mpeg.mp4",_V_.options.flash.swf="/Courses/CourseContent/Tax_Leadership/EGAN/video-flash.swf");n==3&&(i=t+"/Courses/CourseContent/Tax_Leadership/INDIRECTTAX/video-mpeg.mp4",_V_.options.flash.swf="/Courses/CourseContent/Tax_Leadership/INDIRECTTAX/video-flash.swf");n==4&&(i=t+"/Courses/CourseContent/VideoAnnotations/qfFitaTraining/video-mpeg.mp4",_V_.options.flash.swf="/Courses/CourseContent/VideoAnnotations/qfFitaTraining/video-flash.swf");var r="<video id='example_video_1' class='video-js vjs-default-skin' controls preload='none' width='640' height='480' poster='images/video-image.jpg' data-setup='{}'><source src='"+i+"' type='video/mp4'/><source src='video/template.webm' type='video/webm' /><source src='video/template.ovg' type='video/ogg' /><track kind='captions' src='captions.vtt' srclang='en' label='English' /><\/video>",u=createButtonPopup("divNavigationTabs",!1,"");$("#popUpDivFromButton").dialog({width:660,height:530});u.html(r)})}function makePageScrollNormally(){var n,r,u,f,e,t;if(!Globals.UI.isSiteThemeEnabled()){$("body").css("overflow-y","scroll");$("body").css("overflow-x","auto");n=getWindowWidth();r=isIE9()?"#e3e3e3":$("#divLeftNavigation").css("background-color");u=$("#divCopyright").html();$("#divCopyright").empty();$("#divCopyright").remove();f=$("#divLeftNavigation").html();$("#divLeftNavigation").empty();$("#divLeftNavigation").remove();e=$("#divPageBodyLong").html();$("#divPageBodyLong").empty();$("#divPageBodyLong").remove();$("#divDocumentBody").hide();t=n*.99;t>1300&&(t=1300);var i="<br clear='all' /><table cellpadding=0 cellspacing=0 border=0' style='position:absolute; left:0px; top:"+$("#divOuterDiv").height().toString()+"px; width:"+t.toString()+"px'><tr><td valign='top' rowspan='2' style='width:195px; background-color:"+r+";'>"+f+"<p id='divLeftNavigation2'><\/p><\/td><td rowspan='2' style='width:10px;'>&nbsp;<\/td><td valign='top'><br/><br/>"+e+"<\/td><\/tr><tr><td>"+u+"<\/td><\/tr><\/table",o=new RegExp("<script[^>]*>","gi"),s=new RegExp("<\/script>","gi");i=i.replace(o,"").replace(s,"");$("#divOuterDiv").after(i);$("#divOuterDiv").width(n);$("#divPageHeader").width(n);$("#divPageTitle").width(n-parseInt($("#divPageTitle").css("padding-left").replace(/px/,""))-parseInt($("#divPageTitle").css("padding-right").replace(/px/,"")))}}function getWindowWidth(){var n=$(window).width();return n==0&&(n=document.body.clientWidth),n}function isIE9(){return $(window).width()==0}function showMySubscriptions(n){var f,t,r,e,l,o,s;if(bOverMySubscriptionsLink==!1){f=n==null?"showMySubscriptions()":"showMySubscriptions("+n.toString()+")";bOverMySubscriptionsLink=!0;objShowMenuTimeoutID=self.setTimeout(f,150);return}t=document.getElementById("divMySubscriptions");r=$("#divNavigationTabs").offset().top+$("#divNavigationTabs").height();t.style.top=r+"px";$("#tabSUBSCRIPTIONS").offset()&&$("#divMySubscriptions").css("left",$("#tabSUBSCRIPTIONS").offset().left);Globals.UI.isSiteThemeEnabled()&&($("#tabSUBSCRIPTIONS").addClass("base-tab-hover"),$("#tabSUBSCRIPTIONS").find(".base-tab-inner-div").addClass("base-tab-inner-div-hover"));self.clearTimeout(objTimeoutID);t!=null&&(n!=null&&(e=$("#NavigationTab"+n.toString()).offset().left,$("#divMySubscriptions").css("left",e)),t.style.visibility=="hidden"&&(setMySubscriptionsDivHeight(),ChangeSelectBoxVisibility("hidden"),SetDivOpacity("divMySubscriptions",0),t.style.visibility="visible",FadeMenu("divMySubscriptions",!0),paddingFix4Element("divMySubscriptions")),n!=null&&($(".divNavTableLevel2").each(function(){var t=$(this).attr("id");t=="mySubsCategory"+n.toString()?$(this).parent().show():t.indexOf("mySubsCategory")==0&&$(this).parent().hide()}),$("#divScrollableMySubscriptions").css("height","50px"),$("#divMySubscriptions").css("height",$("#divScrollableMySubscriptions")[0].scrollHeight),$("#divScrollableMySubscriptions").css("height",$("#divScrollableMySubscriptions")[0].scrollHeight+2),paddingFix4Element("divMySubscriptions")),$("div.countryList").length>0&&document.GWTRCommon.resetCountryListSelection());try{var i=document.getElementById("divMySubRoundHeader"),u=document.getElementById("divMySubRoundFooter"),h=document.getElementById("hdnSelectedTab"),c=$("#tabSUBSCRIPTIONS").css("background-image");$("#tabSUBSCRIPTIONS").css("background-image",c.replace("_OFF","_ON"));i!=null&&u!=null&&t!=null&&h!=null&&(document.getElementById("tabSUBSCRIPTIONS").style.backgroundColor="#F8E9B8",l=window.location.pathname,i.style.visibility="visible",i.style.top=r+"px",o=i.offsetTop+10,t.style.top=o+"px",u.style.visibility="visible",s=i.offsetTop+10+document.getElementById("divScrollableMySubscriptions").offsetHeight,u.style.top=s+"px")}catch(a){}}function setMySubscriptionsDivHeight(){var n=document.getElementById("divScrollableMySubscriptions"),r=n.offsetHeight,i=n.scrollHeight+2,t=Math.max($(window).height()-$("#divPageHeader").height(),150);r>t||i>t?$(n).css("height",t+"px"):i<t&&$(n).css("height",i+"px")}function hideMySubscriptions(){self.clearTimeout(objShowMenuTimeoutID);bOverMySubscriptionsLink=!1;objTimeoutID=self.setTimeout("hideMySubscriptions_Delayed()",500)}function hideMySubscriptions_Delayed(){var n=document.getElementById("divMySubscriptions"),r;if(!bOverMySubscriptionsDiv&&n!=null){ChangeSelectBoxVisibility("visible");n.style.visibility="hidden";n.style.top="-1500px";Globals.UI.isSiteThemeEnabled()&&($("#tabSUBSCRIPTIONS").removeClass("base-tab-hover"),$("#tabSUBSCRIPTIONS").find(".base-tab-inner-div").removeClass("base-tab-inner-div-hover"));try{var t=document.getElementById("divMySubRoundHeader"),i=document.getElementById("divMySubRoundFooter"),u=document.getElementById("hdnSelectedTab");u.value!=1&&(r=$("#tabSUBSCRIPTIONS").css("background-image"),$("#tabSUBSCRIPTIONS").css("background-image",r.replace("_ON","_OFF")));t!=null&&i!=null&&(document.getElementById("tabSUBSCRIPTIONS").style.backgroundColor="#FFFFFF",t.style.visibility="hidden",t.style.top="-1500px",i.style.visibility="hidden",i.style.top="-1500px")}catch(f){}}}function MySubscriptionsDiv_onMouseOver(){bOverMySubscriptionsDiv=!0;self.clearTimeout(objTimeoutID)}function MySubscriptionsDiv_onMouseOut(){bOverMySubscriptionsDiv=!1;hideMySubscriptions()}function showMyBriefcase(n){var e,t,i,o,s,u,h,c;if(bOverMyBriefcaseLink==!1){bOverMyBriefcaseLink=!0;e=n?"showMyBriefcase(true)":"showMyBriefcase(false)";objShowMyBriefcaseMenuTimeoutID=self.setTimeout(e,250);return}t=document.getElementById("divMyBriefcase");i=$("#divNavigationTabs").offset().top+$("#divNavigationTabs").height();t.style.top=i+"px";$("#tabBRIEFCASE").offset()&&$("#divMyBriefcase").css("left",$("#tabBRIEFCASE").offset().left);Globals.UI.isSiteThemeEnabled()&&($("#tabBRIEFCASE").addClass("base-tab-hover"),$("#tabBRIEFCASE").find(".base-tab-inner-div").addClass("base-tab-inner-div-hover"));self.clearTimeout(objMyBriefcaseTimeoutID);t!=null&&t.style.visibility=="hidden"&&(n&&(o=$("#NavigationTab4").offset().left,$("#divMyBriefcase").css("left",o)),s=t.offsetHeight,u=$(window).height()-80,s>u&&(t.style.height=u.toString()+"px"),ChangeSelectBoxVisibility("hidden"),SetDivOpacity("divMyBriefcase",0),t.style.visibility="visible",FadeMenu("divMyBriefcase",!0),paddingFix4Element("divMyBriefcase"));try{var r=document.getElementById("divMyBriefcaseRoundHeader"),f=document.getElementById("divMyBriefcaseRoundFooter"),l=document.getElementById("hdnSelectedTab"),a=$("#tabBRIEFCASE").css("background-image");$("#tabBRIEFCASE").css("background-image",a.replace("_OFF","_ON"));r!=null&&f!=null&&t!=null&&l!=null&&(document.getElementById("tabBRIEFCASE").style.backgroundColor="#F8E9B8",r.style.visibility="visible",r.style.top=i+"px",h=i+10,t.style.top=h+"px",f.style.visibility="visible",c=r.offsetTop+10+document.getElementById("divMyBriefcase").offsetHeight,f.style.top=c+"px")}catch(v){}}function hideMyBriefcase(){self.clearTimeout(objShowMyBriefcaseMenuTimeoutID);bOverMyBriefcaseLink=!1;objMyBriefcaseTimeoutID=self.setTimeout("hideMyBriefcase_Delayed()",500)}function hideMyBriefcase_Delayed(){var i=document.getElementById("divMyBriefcase"),r;if(!bOverMyBriefcaseDiv&&i!=null){ChangeSelectBoxVisibility("visible");i.style.visibility="hidden";Globals.UI.isSiteThemeEnabled()&&($("#tabBRIEFCASE").removeClass("base-tab-hover"),$("#tabBRIEFCASE").find(".base-tab-inner-div").removeClass("base-tab-inner-div-hover"));try{var n=document.getElementById("divMyBriefcaseRoundHeader"),t=document.getElementById("divMyBriefcaseRoundFooter"),u=document.getElementById("hdnSelectedTab");u.value!=2&&(r=$("#tabBRIEFCASE").css("background-image"),$("#tabBRIEFCASE").css("background-image",r.replace("_ON","_OFF")));n!=null&&t!=null&&(document.getElementById("tabBRIEFCASE").style.backgroundColor="#FFFFFF",n.style.visibility="hidden",n.style.top="-1500px",t.style.visibility="hidden",t.style.top="-1500px")}catch(f){}}}function MyBriefcaseDiv_onMouseOver(){bOverMyBriefcaseDiv=!0;self.clearTimeout(objMyBriefcaseTimeoutID)}function MyBriefcaseDiv_onMouseOut(){bOverMyBriefcaseDiv=!1;hideMyBriefcase();bOverMyBriefcaseAdminMenuDiv=!1;hideMyBriefcaseAdminMenu()}function hideMyBriefcaseAdminMenu(){self.clearTimeout(objShowMyBriefcaseAdminMenuMenuTimeoutID);bOverMyBriefcaseAdminMenuLink=!1;objMyBriefcaseAdminMenuTimeoutID=self.setTimeout("hideMyBriefcaseAdminMenu_Delayed()",glb_iStrangeDelayForAdminMenu)}function hideMyBriefcaseAdminMenu_Delayed(){var n=document.getElementById("divMyBriefcaseAdminMenu");bOverMyBriefcaseAdminMenuDiv||n!=null&&(n.style.visibility="hidden")}function MyBriefcaseAdminMenuDiv_onMouseOver(){bOverMyBriefcaseDiv=!0;self.clearTimeout(objMyBriefcaseTimeoutID);bOverMyBriefcaseAdminMenuDiv=!0;self.clearTimeout(objMyBriefcaseAdminMenuTimeoutID)}function MyBriefcaseAdminMenuDiv_onMouseOut(){bOverMyBriefcaseDiv=!1;hideMyBriefcase();bOverMyBriefcaseAdminMenuDiv=!1;hideMyBriefcaseAdminMenu()}function ajaxLoadAdminMenu(n){glb_iLeft=event.clientX-32;glb_iTop=event.clientY-16;glb_AdminMenuText==""?$.ajax("/Profile/AdministrationMenuAJAX.cfm",{type:"GET",data:{ncu:n},success:afterLookup_ajaxLoadAdminMenu}):afterLookup_ajaxLoadAdminMenu()}function afterLookup_ajaxLoadAdminMenu(n){glb_AdminMenuText==""&&(glb_AdminMenuText=n);var i=!1,t=document.getElementById("divMyBriefcaseAdminMenu");t==null&&(t=document.createElement("DIV"),t.id="divMyBriefcaseAdminMenu",document.body.appendChild(t),i=!0);t.style.left=glb_iLeft.toString()+"px";t.style.top=glb_iTop.toString()+"px";i?(t.innerHTML=glb_AdminMenuText,t.style.backgroundColor="#eeeeee",t.style.position="absolute",t.style.padding="16px",$(t).height($(window).height()-glb_iTop-40),t.style.overflowY="auto",t.style.zIndex=1e3,t.style.border="solid 3px #9d9d9d",t.onmouseover=MyBriefcaseAdminMenuDiv_onMouseOver,t.focus(),t.onmouseout=MyBriefcaseAdminMenuDiv_onMouseOut,glb_iStrangeDelayForAdminMenu=500):(SetDivOpacity("divMyBriefcaseAdminMenu",0),t.style.visibility="visible",FadeMenu("divMyBriefcaseAdminMenu",!0))}function MyAccountDiv_onMouseOver(){bOverMyAccountDiv=!0;self.clearTimeout(objMyAccountTimeoutID)}function MyAccountDiv_onMouseOut(){bOverMyAccountDiv=!1;hideMyAccount()}function hideMyAccount(){self.clearTimeout(objShowMyAccountMenuTimeoutID);bOverMyAccountLink=!1;objMyAccountTimeoutID=self.setTimeout("hideMyAccount_Delayed()",500)}function hideMyAccount_Delayed(){var i=document.getElementById("divMyAccount"),r;if(!bOverMyAccountDiv&&i!=null){ChangeSelectBoxVisibility("visible");i.style.visibility="hidden";try{var n=document.getElementById("divMyAccountRoundHeader"),t=document.getElementById("divMyAccountRoundFooter"),u=document.getElementById("hdnSelectedTab");u.value!=3&&(r=$("#tabACCOUNT").css("background-image"),$("#tabACCOUNT").css("background-image",r.replace("_ON","_OFF")));n!=null&&t!=null&&(document.getElementById("tabACCOUNT").style.backgroundColor="#FFFFFF",n.style.visibility="hidden",n.style.top="-1500px",t.style.visibility="hidden",t.style.top="-1500px")}catch(f){}}}function showMyAccount(){var n,i,f,r,e,o,s;if(bOverMyAccountLink==!1){bOverMyAccountLink=!0;objShowMyAccountMenuTimeoutID=self.setTimeout("showMyAccount()",250);return}n=document.getElementById("divMyAccount");i=document.getElementById("divNavigationTabs").offsetTop+document.getElementById("divNavigationTabs").offsetHeight;self.clearTimeout(objMyAccountTimeoutID);n!=null&&n.style.visibility=="hidden"&&(f=n.offsetHeight,r=$(window).height()-80,f>r&&(n.style.height=r.toString()+"px"),ChangeSelectBoxVisibility("hidden"),SetDivOpacity("divMyAccount",0),n.style.visibility="visible",FadeMenu("divMyAccount",!0),paddingFix4Element("divMyAccount"));try{var t=document.getElementById("divMyAccountRoundHeader"),u=document.getElementById("divMyAccountRoundFooter"),h=document.getElementById("hdnSelectedTab");document.getElementById("tabACCOUNT").style.backgroundColor="#faf0d0";e=$("#tabACCOUNT").css("background-image");$("#tabACCOUNT").css("background-image",e.replace("_OFF","_ON"));t!=null&&u!=null&&n!=null&&h!=null&&(t.style.visibility="visible",t.style.top=i+"px",o=i+10,n.style.top=o+"px",u.style.visibility="visible",s=t.offsetTop+10+document.getElementById("divMyAccount").offsetHeight,u.style.top=s+"px")}catch(c){}}function hideSelectBox(){for(var n=getObj("formSelectBox"),t=1;n;)n.visibility="hidden",t=t+1,n=getObj("formSelectBox"+t)}function restoreSelectBox(){for(var n=getObj("formSelectBox"),t=1;n;)n.visibility="visible",t=t+1,n=getObj("formSelectBox"+t)}function showImage(n){var r=n+"Image",t=document[r].src,i=t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("."));i.indexOf("FX")==-1?document[r].src="/_IncludeFiles/DefinitionFiles_EYO/Images/TopMenu/"+i+"FX.gif":lockedImage=i}function hideImage(n){var i=n+"Image",t=document[i].src,r=t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("FX."));lockedImage.indexOf(r)==-1&&(document[i].src="/_IncludeFiles/DefinitionFiles_EYO/Images/TopMenu/"+r+".gif")}function PopupWindow(pageURL,winName,winDimensions){var toolbarStr,detWin;toolbarStr=PopupWindow.arguments.length==4?PopupWindow.arguments[3]:"toolbar=no,scrollbars=no,resizeable=yes";var winWidth=eval(winDimensions.substring(0,winDimensions.indexOf("x"))),winHeight=eval(winDimensions.substring(winDimensions.indexOf("x")+1,winDimensions.length)),xPos=(screen.availWidth-winWidth)/2,yPos=(screen.availHeight-winHeight)/2;toolbarStr=toolbarStr+",height="+winHeight+",width="+winWidth;detWin=window.open(pageURL,winName,toolbarStr);try{detWin.moveTo(xPos,yPos);detWin.focus()}catch(exc){}}function PopupInWindow(n,t,i){var u,r,o=i.toString(),f="str_SessionTracker_PopupScreenSize",e;Globals.Utilities.isUndefinedOrNull(glb_SiteStyle)||(f="str_SessionTracker_PopupScreenSize_"+glb_SiteStyle,i=GetString(f));u=parseInt(i.substring(0,i.indexOf("x")),10);r=parseInt(i.substring(i.indexOf("x")+1,i.length),10);r=calculateWinHeightForSessionTrackerPopUp(r);e='<iframe id="ifPopupInWin" frameBorder="0" width="'+u+'" height="'+r+'" src="'+n+'"><\/iframe>';createCenteredPopupDiv(e,!1,t,"",!1);$("#ifPopupInWin").on("load",function(){$("#popupHeadingTable .redHeader").html($("#ifPopupInWin")[0].contentWindow.document.title)})}function calculateWinHeightForSessionTrackerPopUp(n){var t=n,i;if($("#hdnUseSiteTheme").val()&&(i=Globals.Utilities.getBrowser(),i.browser==="msie"||i.browser==="ie"))switch(i.version){case 9:case 10:t+=13;break;case 11:t+=10;break;case 12:t+=5}return t}function ShowLoginMessage(n){var t=$("#LoginMessageContainer");t.css("visibility","visible");t.dialog({autoOpen:!1,width:"auto",height:"auto",modal:!0,title:n,close:function(){var n=$("#MediaElement")["0"];typeof n!="undefined"&&n!==null&&n.length!==0&&n.player.pause()},resizable:!1});t.dialog("open");$("video,audio").mediaelementplayer({enableAutosize:!0,plugins:["flash"],pluginPath:"/_IncludeFiles/Scripts/jQuery/MediaElements/",flashName:"flashmediaelement.swf",success:function(n,t){$("#"+t.id+"-mode").html("mode: "+n.pluginType)}});document.readyState!=="complete"&&(document.readyState==="loading"||document.documentElement.doScroll)||($("#me_flash_0").find('param[name="movie"]').val("/IncludeFiles/MediaElements/flashmediaelement.swf?x="+Date.now()),$(".ui-dialog-title").css("width","99.5%").css("text-align","center"),$("span.mejs-offscreen").css("display","none").css("visibility","hidden"));Globals.Utilities.generateInlineStylesFromDataStyles()}function closePopupInWin(){$("#popUpDivFromButton").length>0&&$("#popUpDivFromButton").dialog("destroy").remove()}function loadPage(n){var i=new Date,t;t=n.indexOf("?")>=0?n+"&":n+"?";t=t+"nc="+i.getTime();window.location=t}function noFrames(){parent.frames[0]&&(top.location.href=self.location)}function doNothing(){}function printWindow(n){document.submitThisFormToPrint?(document.submitThisFormToPrint.printFriendly.value="2",document.submitThisFormToPrint.target="_blank",document.submitThisFormToPrint.submit()):window.open(n,"","")}function createDelayedEvent(n,t,i){for(var r=0;r<=i;r++)glb_LeftHandNavMenus_iEventDoSoon[r]>0&&window.clearTimeout(glb_LeftHandNavMenus_iEventDoSoon[r]);glb_LeftHandNavMenus_iEventDoSoon[i]=window.setTimeout(n,t)}function LeftHandNavMenus_HighlightItem(n,t){document.all&&(n.style.borderColor="black",t&&(n.style.backgroundColor="#333333"))}function LeftHandNavMenus_UnhighlightItem(n){document.all&&(n.style.borderColor=glb_sPageColor,n.style.backgroundColor=glb_sPageColor)}function LeftHandNavMenus_PopOutIfExists(n){document.all&&document.all["elPopout_"+n]&&LeftHandNavMenus_EnablePopoutMenu(n,event)}function LeftHandNavMenus_UnpopOutIfExists(n){document.all&&document.all["elPopout_"+n]&&LeftHandNavMenus_DisablePopoutMenu()}function LeftHandNavMenus_EnablePopoutMenu(n,t){if(document.all)if(document.all["elPopout_"+n].style.top=="0px"){var i=t.clientY-6+document.body.scrollTop;createDelayedEvent("LeftHandNavMenus_private_hideAllPopoutMenus();LeftHandNavMenus_private_showPopoutMenu('"+n+"', "+i+")",kDelayTimeShow,2)}else createDelayedEvent("LeftHandNavMenus_private_hideAllPopoutMenus();LeftHandNavMenus_private_showPopoutMenu('"+n+"')",kDelayTimeShow,2)}function LeftHandNavMenus_MaintainPopoutMenu(n){document.all&&(createDelayedEvent("LeftHandNavMenus_private_showPopoutMenu('"+n+"')",kDelayTimeShow,2),LeftHandNavMenus_HighlightItem(document.all["LeftHandNavMenu_"+n],!0))}function LeftHandNavMenus_DisablePopoutMenu(){document.all&&createDelayedEvent("LeftHandNavMenus_private_hideAllPopoutMenus()",kDelayTimeHide,0)}function LeftHandNavMenus_private_showPopoutMenu(n){if(document.all){var t=null;LeftHandNavMenus_private_showPopoutMenu.arguments.length>1&&(t=LeftHandNavMenus_private_showPopoutMenu.arguments[1]);document.all["elPopout_"+n]!=null&&(document.all["elPopout_"+n].style.visibility="visible",LeftHandNavMenus_HighlightItem(document.all["LeftHandNavMenu_"+n],!0),glb_LeftHandNavMenus_DisplayedPopoutMenu=n,t!=null&&(document.all["elPopout_"+n].style.left=document.all["elPopout_"+n].style.pixelWidth-7,document.all["elPopout_"+n].style.top=t-5))}}function LeftHandNavMenus_private_hideAllPopoutMenus(){document.all&&glb_LeftHandNavMenus_DisplayedPopoutMenu!=null&&(document.all["elPopout_"+glb_LeftHandNavMenus_DisplayedPopoutMenu].style.visibility="hidden",LeftHandNavMenus_UnhighlightItem(document.all["LeftHandNavMenu_"+glb_LeftHandNavMenus_DisplayedPopoutMenu]),glb_LeftHandNavMenus_DisplayedPopoutMenu=null)}function RememberSelectedText(){var n=Globals.Utilities.getSelectedHtml(),t=$("#rememberFirefoxSelectedText");t.length===0?$("#divOuterDiv").append("<div id='rememberFirefoxSelectedText' class='display-none'>"+n+"<\/div>"):t.html(n)}function ChangeLanguagePreferenceFromPageNavigation(n){var t;t=location.protocol.toLowerCase().indexOf("https")<0?"/Knowledge/SetOneUserPreference.aspx":"/Login/SetOneUserPreference.aspx";$.ajax(t,{type:"GET",cache:!1,data:{preferenceID:1,newSetting:n},success:function(){window.location.reload(!0)}})}function openTemporaryNewsroomHelpDialog(n){n==null&&(n="<p>Our quick reference guide and FAQs are coming soon. For now, you can request help from <a href='mailto:ustaxalertshelp@ey.com'>ustaxalertshelp@ey.com<\/a>.<\/p>");Globals.UI.showSimpleDialog(n,"Help")}function setCookieAcceptanceCookie(){Globals.Cookies.createCookie("cookieAcceptanceAcknowledged","yes",{NumberOfDays:390,IsPersistent:!0});$("#pageBottomCookieNotificationBanner").remove()}function checkForCookieAcceptanceCookie(){Globals.Cookies.exists("cookieAcceptanceAcknowledged")?$("#pageBottomCookieNotificationBanner").remove():$("#pageBottomCookieNotificationBanner").show()}function ResizePageBody(){var u=document.getElementById("divDocumentOptions"),n,t,i,r;u!=null&&((n=u.offsetHeight+15,n<=15)||(t=document.getElementById("divPageBody"),i=t.offsetHeight-n,t.style.height=i.toString()+"px",r=document.getElementById("divRightNavigation"),r!=null&&(r.style.height=i.toString()+"px")))}function FadeMenu(n,t,i){$("#"+n).animate({opacity:1},250,i)}function SetDivOpacity(n,t){var i=document.getElementById(n);i!=null&&(i.style.opacity=t/10,i.style.filter="alpha(opacity="+t*10+")")}function ChangeSelectBoxVisibility(n){var e=document.getElementsByTagName("select"),o=e.length,i=document.getElementById("autoSuggestBox"),u=!1,f=0,r,t;for(n.toLowerCase()=="hidden"&&(objSelectBoxesAutoHidden=[],u=!0),r=0;r<o;r++)t=e[r],u?t.style.visibility.toLowerCase()!="hidden"&&(objSelectBoxesAutoHidden[f++]=t,t.style.visibility="hidden"):bSelectBoxesAreAutoHidden&&t==objSelectBoxesAutoHidden[f]&&(f++,t.style.visibility="visible");u?(bSelectBoxesAreAutoHidden=!0,i!=null&&(i.style.visibility="hidden")):(bSelectBoxesAreAutoHidden=!1,i!=null&&(i.style.visibility=""))}function ChangeVisibleMySubsList(n,t,i){var r="tblMySubscriptions"+n+t,u="tblMySubscriptions"+n+i,f=document.getElementById(r),e=document.getElementById(u);f.style.display="block";e.style.display="none";setMySubscriptionsDivHeight()}function ManageClients(){if(bIsTrackerOn){var n='<div class="normal-text-resizable">'+sAlertStopTracker+"<\/div>";Globals.UI.showjQueryToolbarDialog("divSessionTrackerClientWrapper",0,0,GetString("str_SessionTracker_ChooseClient"),n);return}ShowHideClientList()}function ShowHideClientList(){var n=document.getElementById(divClientListID),i='<div id="divClientListContent">'+$("#"+n.id).html()+"<\/div>",t;glb_hiddenClientListDiv=$("#"+n.id).detach();Globals.UI.showjQueryToolbarDialog("divSessionTrackerClientWrapper",0,0,"",i,null,10,!0,function(){glb_hiddenClientListDiv.appendTo($("#divClientListWrapper"))});$(".ui-dialog-titlebar").hide();t=[{text:GetString("str_SessionTracker_ManageClientList"),"class":"normal-text-resizable",click:function(){loadPage(js_resolveURL("~/Briefcase/SessionTrackerClientList.aspx"))}},{id:"btnClientListGo",text:GetString("str_Ok"),"class":"normal-text-resizable",click:function(){ChangeClient()}},{text:GetString("str_Cancel"),"class":"normal-text-resizable",click:function(){Globals.UI.closejQueryToolbarDialog("divSessionTrackerClientWrapper",function(){glb_hiddenClientListDiv.appendTo($("#divClientListWrapper"))})}}];Globals.UI.addButtonsTojQueryToolbarDialog("divSessionTrackerClientWrapper",t)}function hideClientList(n){var i,t;if(n==null||!n)for(i=document.getElementsByName("cbClients"),t=0;t<i.length;t++)i[t].checked=!1;document.getElementById("tbNewClient").value=sTbNewClientValue}function ChangeClient(){var t,n,i,r;if(!Globals.Utilities.isUndefinedOrNull(window.bIsTrackerOn)&&bIsTrackerOn){i='<div class="normal-text-resizable">'+sAlertSessionTrackerOn+"<\/div>";Globals.UI.showjQueryToolbarDialog("divSessionTrackerClientWrapper",0,0,GetString("str_SessionTracker_ChooseClient"),i);return}for(t=document.getElementsByName("cbClients"),n=0;n<t.length;n++)if(t[n].checked){if(parseInt(t[n].value,10)===0){if(document.getElementById("tbNewClient").value===""){i='<div class="normal-text-resizable">'+sAlertEnterNewClient+"<\/div>";Globals.UI.appendWarningTojQueryToolbarDialog("divSessionTrackerClientWrapper",i);document.getElementById("tbNewClient").focus();return}CreateNewClient_ST(document.getElementById("tbNewClient").value);return}r=$("#spanClientName_"+t[n].value).text();SwitchToClient(t[n].value,r)}}function ParentCreateNewClientFromNotice(n){document.getElementById("cbClientsNew").checked=!0;document.getElementById("tbNewClient").value=n;ChangeClient();blnIsOccurredErr?blnIsOccurredErr=!1:ShowHideClientList(!0)}function ParentSelectAndStartFromNotice(n){var t;if(n==-1||n=="-1"){CreateNewClient_ST("~GENERAL~");return}var i=document.getElementsByName("cbClients"),u=i.length,f=document.getElementById("spanCurrentClient"),r=parseInt(n,10);for(t=0;t<u;t++)i[t].checked=i[t].value==n;f.firstChild.firstChild.nodeValue=document.getElementById("spanClientName_"+r).firstChild.nodeValue;iSTCurrentClient=r;StartStopSession()}function CreateNewClient_ST(n){var t={clientName:n};EnableDisableClientList();$.ajax("/Briefcase/_IncludeFiles/Scripts/SessionTrackerEditCreateClient.aspx?npc=1&",{type:"GET",data:t,success:function(t){var i=parseInt(t.split("|")[0]);n=t.substr(i.toString().length+1);SwitchToClient(i,n)}})}function SwitchToClient(n,t){var i=document.getElementById("spanCurrentClient");i.firstChild.firstChild.nodeValue=t;iSTCurrentClient=n;hideClientList(!0);StartStopSession();Globals.UI.closejQueryToolbarDialog("divSessionTrackerClientWrapper",function(){glb_hiddenClientListDiv.appendTo($("#divClientListWrapper"))})}function StartStopSession(){var t=document.getElementById("SessionPlayStop"),i=new Date,n;if(t.src.indexOf("Play")!=-1){if(iSTCurrentClient===0){ShowHideClientList();return}$.ajax("/Briefcase/_IncludeFiles/Scripts/SessionTrackerUpdateSession.aspx?npc=1",{type:"GET",data:{stClientID:iSTCurrentClient,stAction:1},success:function(n){var t=JSON.parse(n);iSTCurrentSessionId=parseInt(t.Session.ID);EnableDisableClientList(n)}})}else n=document.getElementById("txtSTComment").value,$.ajax("/Briefcase/_IncludeFiles/Scripts/SessionTrackerUpdateSession.aspx?npc=1",{type:"GET",data:{stSessionID:iSTCurrentSessionId,stClientID:iSTCurrentClient,stAction:0,stComment:n},success:EnableDisableClientList})}function EnableDisableClientList(n){var t=document.getElementById("SessionPlayStop"),i=parseAjaxResponse(0,n),r,u;i!=null&&(i.Session.ActionTaken==1?(t.src=imgStopSrc,t.alt=GetString("str_SessionTracker_StopSession"),$("#aSessionPlayStop").prop("title",GetString("str_SessionTracker_StopSession")),StartSessionTrackerTimer(),iSTCurrentSessionId=i.Session.ID,glb_sessionTracker_isSetCookieImmediately&&(r="",u=new Date,u.setDate(u.getDate()+30),r="sessiontracker="+iSTCurrentSessionId+"&client="+iSTCurrentClient+"&stTimer="+document.getElementById("sessionTrackerTimer").firstChild.nodeValue+"&clientTime="+u,r+="; path=/",document.cookie=r)):parseInt(i.Session.ActionTaken,10)===0&&(document.getElementById("divSTComment").style.display=="block"&&ShowHideComment(),t.src=imgPlaySrc,t.alt=GetString("str_SessionTracker_StartSession"),$("#aSessionPlayStop").prop("title",GetString("str_SessionTracker_StartSession")),StopSessionTrackerTimer()))}function StopSessionTrackerTimer(){var t,n;typeof bIsTrackerOn!="undefined"&&(bIsTrackerOn&&(window.clearInterval(glb_sessionTracker_timerID),glb_sessionTracker_timerID=null),bIsTrackerOn=!1,t=document.getElementById("sessionTrackerTimer").firstChild,t.nodeValue="00:00:00",n=new Date,n.setDate(n.getDate()-30),document.cookie="sessiontracker=; expires="+n.toGMTString()+"; path=/")}function StartSessionTrackerTimer(){document.getElementById("sessionTrackerTimer").firstChild.nodeValue="00:00:00";glb_sessionTracker_timerID===null&&(glb_sessionTracker_hours=0,glb_sessionTracker_minutes=0,glb_sessionTracker_seconds=0,glb_sessionTracker_timerID=window.setInterval("UpdateSessionTrackerTimer()",1e3));bIsTrackerOn=!0}function ShowHideComment(){var n,t,i;if(!bIsTrackerOn){n='<div class="normal-text-resizable">'+sAlertStartTrackerToComment+"<\/div>";Globals.UI.showjQueryToolbarDialog("imgComment",0,0,GetString("str_SessionTracker_AddComment"),n);return}t='<div id="divSessionTrackerComment" class="normal-text-resizable">'+GetString("str_SessionTracker_AddCommentToSession")+GetString("str_Colon")+'<textarea rows="5" cols="30" class="small text ui-widget-content ui-corner-all" id="txtSessionTrackerComment">'+$("#txtSTComment").val()+"<\/textarea><\/div>";Globals.UI.showjQueryToolbarDialog("imgComment",0,0,GetString("str_SessionTracker_AddComment"),t,null,null,!0);i=[{text:GetString("str_Save"),"class":"normal-text-resizable",click:function(){SaveSTComment()}},{text:GetString("str_Cancel"),"class":"normal-text-resizable",click:function(){Globals.UI.closejQueryToolbarDialog("imgComment")}}];Globals.UI.addButtonsTojQueryToolbarDialog("imgComment",i)}function GetSessionComment(){$.ajax("/Briefcase/_IncludeFiles/Scripts/SessionTrackerGetComment.aspx?npc=1&",{type:"GET",data:{stSessionID:iSTCurrentSessionId,stClientID:iSTCurrentClient,random:document.getElementById("sessionTrackerTimer").firstChild.nodeValue.replace(":","")},success:GetSessionComment_Cont})}function GetSessionComment_Cont(n){document.getElementById("txtSTComment").value=decodeURI(n)}function SaveSTComment(){$("#txtSTComment").val($("#txtSessionTrackerComment").val());var n=document.getElementById("txtSTComment").value;$.ajax("/Briefcase/_IncludeFiles/Scripts/SessionTrackerUpdateSession.aspx?npc=1",{type:"GET",data:{stAction:2,stSessionID:iSTCurrentSessionId,stClientID:iSTCurrentClient,stComment:n},success:SaveSTComment_Cont})}function SaveSTComment_Cont(){Globals.UI.closejQueryToolbarDialog("imgComment")}function UpdateSessionTrackerTimer(){var t=!1,n;glb_sessionTracker_seconds++;glb_sessionTracker_seconds>=60&&(glb_sessionTracker_seconds=0,glb_sessionTracker_minutes++,t=!0);glb_sessionTracker_minutes>=60&&(glb_sessionTracker_minutes=0,glb_sessionTracker_hours++);n=glb_sessionTracker_hours<10?"0"+glb_sessionTracker_hours:glb_sessionTracker_hours;n+=(glb_sessionTracker_minutes<10?":0":":")+glb_sessionTracker_minutes;n+=(glb_sessionTracker_seconds<10?":0":":")+glb_sessionTracker_seconds;document.getElementById("sessionTrackerTimer").firstChild.nodeValue=n;glb_sessionTracker_timerID===null&&(glb_sessionTracker_timerID=window.setInterval(function(){UpdateSessionTrackerTimer()},1e3));t&&$.ajax("/Briefcase/_IncludeFiles/Scripts/SessionTrackerUpdateSession.aspx?npc=1",{type:"GET",data:{stSessionID:iSTCurrentSessionId,stClientID:iSTCurrentClient,stAction:2,random:glb_sessionTracker_hours.toString()+glb_sessionTracker_minutes.toString()+glb_sessionTracker_seconds.toString()},success:EnableDisableClientList})}function DoShowSessionTrackerNotification(n){var i,f,t,e;glb_sessionTracker_isSetCookieImmediately!==!0&&(glb_sessionTracker_isSetCookieImmediately=n);var r=document.getElementById("hdnSessionTrackerShowNotification"),u=document.getElementById("hdnSessionTrackerNotificationPageURL"),o=GetString("str_SessionTracker_Title");if(r&&u&&(r.value=="PromptUser"&&PopupInWindow(u.value,o,glb_SessionTrackerASCX_strSTPopUpScreenSize.toString()),i=document.getElementsByName("cbClients"),f=i.length,r.value=="AutoStart")){for(t=0;t<f;t++)i[t].value==strGeneraClientID&&(i[t].checked=!0);parseInt(strGeneraClientID,10)===0?CreateNewClient_ST("~GENERAL~"):(e=$("#spanClientName_"+strGeneraClientID).text(),SwitchToClient(parseInt(strGeneraClientID,10),e),hideClientList(!0))}}function ParentSessionTrackerHandleNotification(n,t){strChangeTypeForSessionTrackerNotification=t;n.length!==0&&t.length!==0&&$.ajax(n,{type:"GET",success:sessionTrackerSuccess})}function sessionTrackerSuccess(){var t=document.getElementsByName("cbClients"),r=t.length,n,i;if(strChangeTypeForSessionTrackerNotification=="3"){if(parseInt(strGeneraClientID,10)===0){CreateNewClient_ST("~GENERAL~");return}for(n=0;n<r;n++)t[n].checked=t[n].value==strGeneraClientID;i=$("#spanClientName_"+strGeneraClientID).text();SwitchToClient(parseInt(strGeneraClientID,10),i);hideClientList(!0)}}function GetSessionTrackerState(){var r,t,n,c,l,f,i,e,a;if(!Globals.Utilities.isUndefinedOrNull(window.bIsTrackerOn)){var o=document.cookie.split(";"),u=0,s="",h=!1;for(r=0;r<o.length;r++)if(o[r].indexOf("sessiontracker=")!==-1){for(h=!0,t=o[r].split("&"),n=0;n<t.length;n++)t[n].indexOf("clientTime")!=-1?(c=new Date(t[n].split("=")[1]),l=new Date,u=Math.round((l-c)/1e3)):t[n].indexOf("stTimer")!=-1?s=t[n].split("=")[1]:t[n].indexOf("sessiontracker")!=-1?iSTCurrentSessionId=t[n].split("=")[1]:t[n].indexOf("client")!=-1&&(iSTCurrentClient=t[n].split("=")[1]);break}h&&(f=s.split(":"),glb_sessionTracker_hours=parseInt(f[0]),glb_sessionTracker_minutes=parseInt(f[1]),glb_sessionTracker_seconds=parseInt(f[2]),i=parseInt(u/60),i>0&&(u=u-i*60,e=parseInt(i/60),e>0&&(glb_sessionTracker_hours+=e,i=i-e*60)),UpdateSessionTrackerTimer(),$("#SessionPlayStop").prop("src",imgStopSrc).prop("alt",GetString("str_SessionTracker_StopSession")),$("#aSessionPlayStop").prop("title","str_SessionTracker_StopSession"),bIsTrackerOn=!0,a=document.getElementById("spanCurrentClient"),a.firstChild.firstChild.nodeValue=document.getElementById("spanClientName_"+iSTCurrentClient).firstChild.nodeValue,GetSessionComment())}}function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(n){mejs.YouTubeApi.flashReady(n)}var glb_bUseFixedNavigation=!0,glb_bForceLargeStylesheet=!0,glb_bInitializePageCalled=!1,bPrintPreview=!1,glb_printTarget,willBeFirstResponse,glb_iStrangeDelayForAdminMenu,lockedImage,objSelectBoxesAutoHidden,bSelectBoxesAreAutoHidden,glb_Path,mejs;document.glb_PageLayout_ScreenStyle="unknown";willBeFirstResponse=!0;var objTimeoutID=null,objShowMenuTimeoutID=null,bOverMySubscriptionsDiv=!1,bOverMySubscriptionsLink=!1,mySubscriptionsListOriginalPosition=null,objMyBriefcaseTimeoutID=null,objShowMyBriefcaseMenuTimeoutID=null,bOverMyBriefcaseDiv=!1,bOverMyBriefcaseLink=!1,objMyBriefcaseAdminMenuTimeoutID=null,objShowMyBriefcaseAdminMenuMenuTimeoutID=null,bOverMyBriefcaseAdminMenuDiv=!1,bOverMyBriefcaseAdminMenuLink=!1,objMyAccountTimeoutID=null,objShowMyAccountMenuTimeoutID=null,bOverMyAccountDiv=!1,bOverMyAccountLink=!1;glb_iStrangeDelayForAdminMenu=5e3;var glb_iLeft=0,glb_iTop=0,glb_AdminMenuText="";window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("mouseover",".js--navbar-show-briefcase",function(){showMyBriefcase()})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("mouseout",".js--navbar-hide-briefcase",function(){hideMyBriefcase()})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("mouseover",".js--navbar-briefcase-div-mouse-over",function(){MyBriefcaseDiv_onMouseOver()})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("mouseout",".js--navbar-briefcase-div-mouse-out",function(){MyBriefcaseDiv_onMouseOut()})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("mouseout",".js--navbar-my-subscriptions-div-mouse-over",function(){MySubscriptionsDiv_onMouseOver()})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("mouseout",".js--navbar-my-subscriptions-div-mouse-out",function(){MySubscriptionsDiv_onMouseOut()})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("click",".js--navbar-print-click",function(n){return n.preventDefault(),OpenPrintDialog(null),!1})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("mouseover",".js--navbar-print-mouse-over",function(){RememberSelectedText()})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("click",".js--navbar-stop-session-tracker",function(){StopSessionTrackerTimer()})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("mouseover",".js--navbar-implementation-tab",function(){document.GWTRCommon.showImplementationDropDown()})});window.addEventListener("DOMContentLoaded",function(){$("#divPageHeader").on("mouseout",".js--navbar-implementation-tab",function(){document.GWTRCommon.hideImplementationDropDown()})});window.addEventListener("DOMContentLoaded",function(){var n=document.getElementById("tabImplementation");$("#divPageHeader").on("mouseover",".js--implementation-dropdown",function(){n.classList.add("highlight-implementation-tab")})});window.addEventListener("DOMContentLoaded",function(){var n=document.getElementById("tabImplementation");$("#divPageHeader").on("mouseout",".js--implementation-dropdown",function(){n.classList.remove("highlight-implementation-tab")})});lockedImage="NULL";var kDelayTimeShow=250,kDelayTimeHide=450,glb_LeftHandNavMenus_DisplayedPopoutMenu=null,glb_LeftHandNavMenus_iEventDoSoon=[0,0,0];bSelectBoxesAreAutoHidden=!1;var strChangeTypeForSessionTrackerNotification="",blnIsOccurredErr=!1,glb_sessionTracker_hours=0,glb_sessionTracker_minutes=0,glb_sessionTracker_seconds=0,glb_sessionTracker_isSetCookieImmediately=!1;(typeof Knotia5=="undefined"||Knotia5===null)&&(Knotia5={});Knotia5.SiteNavigationTabManager=function(){this.DefaultDropDownHeight=330;this.MaxDropDownHeight=this.DefaultDropDownHeight;this.AnimationDuration=500;this.TimerDelay=100;this.ShowMenuTimer=null;this.HideMenuTimer=null;this.MouseOverMenuStatus=!1};Globals.Utilities.isUndefinedOrNull(document.TabManager)&&(document.TabManager=new Knotia5.SiteNavigationTabManager);Knotia5.SiteNavigationTabManager.prototype.showDropDown=function(n){var t=Globals.Utilities.getMeContext("TabManager");t.MaxDropDownHeight=Globals.Utilities.isUndefinedOrNull(n.MaxDropDownHeight)?this.DefaultDropDownHeight:n.MaxDropDownHeight;t.setDropDownProperties(n);t.hidePreviouslyDisplayedDropDownExceptFor(n);clearTimeout(t.HideMenuTimer);t.ShowMenuTimer=setTimeout(function(){t.showDropDown_Delayed(n)},t.TimerDelay)};Knotia5.SiteNavigationTabManager.prototype.setDropDownProperties=function(n){var i=Globals.Utilities.getMeContext("TabManager"),t=$("#"+n.tabID),r=$("#"+n.dropDownDivID);r.css({left:t.offset().left+"px",top:t.offset().top+t.outerHeight()+"px","overflow-y":"auto"});i.MaxDropDownHeight>0&&r.css({"max-height":i.MaxDropDownHeight+"px"})};Knotia5.SiteNavigationTabManager.prototype.hidePreviouslyDisplayedDropDownExceptFor=function(n){$(".js--div--toggle-menu").not("#"+n.dropDownDivID).hide();$(".base-tab-inner-div-hover").not("#"+n.tabID).removeClass("base-tab-inner-div-hover")};Knotia5.SiteNavigationTabManager.prototype.showDropDown_Delayed=function(n){var r=Globals.Utilities.getMeContext("TabManager"),t=$("#"+n.tabID),i=$("#"+n.dropDownDivID);t.addClass("base-tab-hover");t.find(".base-tab-inner-div").addClass("base-tab-inner-div-hover");i.css("visibility","visible");i.stop(!0,!0).slideDown(r.AnimationDuration)};Knotia5.SiteNavigationTabManager.prototype.hideDropDown=function(n){var t=Globals.Utilities.getMeContext("TabManager");clearTimeout(t.ShowMenuTimer);t.HideMenuTimer=setTimeout(function(){t.hideDropDown_Delayed(n)},t.TimerDelay)};Knotia5.SiteNavigationTabManager.prototype.hideDropDown_Delayed=function(n){var t=Globals.Utilities.getMeContext("TabManager"),i=$("#"+n.dropDownDivID);i.slideUp(t.AnimationDuration,function(){t.removeOnMouseOverEffect(n.tabID)})};Knotia5.SiteNavigationTabManager.prototype.removeOnMouseOverEffect=function(n){var t=$("#"+n);t.removeClass("base-tab-hover");t.find(".base-tab-inner-div").removeClass("base-tab-inner-div-hover")};Knotia5.SiteNavigationTabManager.prototype.setMouseOverMenuStatus=function(n){var t=Globals.Utilities.getMeContext("TabManager");t.MouseOverMenuStatus=n.newStatus;t.MouseOverMenuStatus?clearTimeout(t.HideMenuTimer):t.hideDropDown(n)};(typeof Knotia5=="undefined"||Knotia5===null)&&(Knotia5={});Knotia5.SubscriptionPanelManager=function(){this.cookieNameForViewedTab="lastViewedMenuTab"};Globals.Utilities.isUndefinedOrNull(document.SubscriptionPanelManager)&&(document.SubscriptionPanelManager=new Knotia5.SubscriptionPanelManager);Knotia5.SubscriptionPanelManager.prototype.toggleSubscriptionSection=function(n){var e=Globals.Utilities.getMeContext("SubscriptionPanelManager"),r=$("#divSubscriptionContentWrapper"),i=$("#divSubscriptionMenuWrapper"),t,u,f;r.length>0&&i.length>0&&(t=$("#"+n.divSubscriptionMenuItemID),r.find(".js--div--toggle-visibility").removeClass("home-module-show").addClass("home-module-hide"),$("#"+n.divSubscriptionSectionDivID).removeClass("home-module-hide").addClass("home-module-show"),i.find(".js--div--toggle-selected").removeClass("subscription-menu-item-selected"),t.addClass("subscription-menu-item-selected"),$("#divPageBodyLongest").length>0&&$("#divDocumentBody").css("width","100%"),u=i.offset().top,f=t.offset().top+Math.round(t.height()/2)-u,$(".js--div--move-pop-over-arrow").css("top",f+"px"),Globals.Cookies.createCookie(e.cookieNameForViewedTab,n))};Knotia5.SubscriptionPanelManager.prototype.toggleHeadlineSection=function(n){var t=$("#divHeadlinePanel"),r=$("divHeadlineTitleWrapper"),i;t.length>0&&(t.find(".js--div--toggle-visibility").removeClass("home-module-show").addClass("home-module-hide"),$("#"+n.divContentPanelDivID).removeClass("home-module-hide").addClass("home-module-show"),t.find(".js--div--toggle-selected").removeClass("headline-selected"),$("#"+n.divHeadlineDivID).addClass("headline-selected"),i=Globals.Utilities.getMeContext("SubscriptionPanelManager"),i.RecalculateHeadlineArrow())};Knotia5.SubscriptionPanelManager.prototype.RecalculateHeadlineArrow=function(){var t=$("#divHeadlineTitleWrapper"),n,i,r;t.length>0&&(n=$(".headline-selected"),i=t.offset().left,n.length>0&&(r=n.offset().left+Math.round(n.width()/2),$(".js--div--move-headline-arrow").css("left",r-i+"px")))};$(window).resize(function(){var n=Globals.Utilities.getMeContext("SubscriptionPanelManager");n.RecalculateHeadlineArrow()});$(document).ready(function(){var n=Globals.Utilities.getMeContext("SubscriptionPanelManager");Globals.Utilities.isUndefinedOrNull(Globals.Cookies.readCookie(n.cookieNameForViewedTab))||n.toggleSubscriptionSection(Globals.Cookies.readCookie(n.cookieNameForViewedTab))});jQuery.fn.cpaPrint=function(n){var r,u,t;if(this.size()>1){this.eq(0).print();return}if(this.size()){if(r="printer-"+(new Date).getTime(),u=$("<iframe name='"+r+"'>"),u.css("width","1px").css("height","1px").css("position","absolute").css("left","-9999px").appendTo($("body:first")),n.addClasses!=undefined&&n.addClasses!=null)for(t=0;t<n.addClasses.length;t++)$(n.addClasses[t][0]).addClass(n.addClasses[t][1]);var f=window.frames[r],i=f.document,e=$("<div>").append($("link").clone());if(i.open(),i.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'),i.write("<html>"),i.write("<head>"),i.write("<title>"),i.write(document.title),i.write("<\/title>"),i.write(e.html()),i.write("<\/head>"),i.write("<body>"),n.addAtBeginning!=undefined&&n.addAtBeginning!=null)for(t=0;t<n.addAtBeginning.length;t++)i.write(n.addAtBeginning[t]);if(i.write(this.html()),i.write("<\/body>"),i.write("<\/html>"),i.close(),f.focus(),f.print(),n.addClasses!=undefined&&n.addClasses!=null)for(t=0;t<n.addClasses.length;t++)$(n.addClasses[t][0]).removeClass(n.addClasses[t][1]);setTimeout(function(){u.remove()},6e4)}};glb_Path="/_IncludeFiles/Scripts/jQuery/MediaElements/";mejs=mejs||{};mejs.version="2.16.2";mejs.meIndex=0;mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube","application/x-mpegURL"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]};mejs.Utility={encodeUrl:function(n){return encodeURIComponent(n)},escapeHTML:function(n){return n.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(n){var t=document.createElement("div");return t.innerHTML='<a href="'+this.escapeHTML(n)+'">x<\/a>',t.firstChild.href},getScriptPath:function(n){for(var i,r,s,t,u,f,e=0,o="",h="",c=document.getElementsByTagName("script"),l=c.length,a=n.length;l>e;e++){for(t=c[e].src,r=t.lastIndexOf("/"),r>-1?(f=t.substring(r+1),u=t.substring(0,r+1)):(f=t,u=""),i=0;a>i;i++)if(h=n[i],s=f.indexOf(h),s>-1){o=u;break}if(""!==o)break}return o},secondsToTimeCode:function(n,t,i,r){"undefined"==typeof i?i=!1:"undefined"==typeof r&&(r=25);var u=Math.floor(n/3600)%24,f=Math.floor(n/60)%60,e=Math.floor(n%60),o=Math.floor((n%1*r).toFixed(3));return(t||u>0?(10>u?"0"+u:u)+":":"")+(10>f?"0"+f:f)+":"+(10>e?"0"+e:e)+(i?":"+(10>o?"0"+o:o):"")},timeCodeToSeconds:function(n,t,i,r){"undefined"==typeof i?i=!1:"undefined"==typeof r&&(r=25);var u=n.split(":"),e=parseInt(u[0],10),o=parseInt(u[1],10),s=parseInt(u[2],10),f=0,h=0;return i&&(f=parseInt(u[3])/r),h=3600*e+60*o+s+f},convertSMPTEtoSeconds:function(n){var t;if("string"!=typeof n)return!1;n=n.replace(",",".");var r=0,u=-1!=n.indexOf(".")?n.split(".")[1].length:0,i=1;for(n=n.split(":").reverse(),t=0;t<n.length;t++)i=1,t>0&&(i=Math.pow(60,t)),r+=Number(n[t])*i;return Number(r.toFixed(u))},removeSwf:function(n){var t=document.getElementById(n);t&&/object|embed/i.test(t.nodeName)&&(mejs.MediaFeatures.isIE?(t.style.display="none",function(){4==t.readyState?mejs.Utility.removeObjectInIE(n):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))},removeObjectInIE:function(n){var t=document.getElementById(n),i;if(t){for(i in t)"function"==typeof t[i]&&(t[i]=null);t.parentNode.removeChild(t)}}};mejs.PluginDetector={hasPluginVersion:function(n,t){var i=this.plugins[n];return t[1]=t[1]||0,t[2]=t[2]||0,i[0]>t[0]||i[0]==t[0]&&i[1]>t[1]||i[0]==t[0]&&i[1]==t[1]&&i[2]>=t[2]?!0:!1},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(n,t,i,r,u){this.plugins[n]=this.detectPlugin(t,i,r,u)},detectPlugin:function(n,t,i,r){var e,f,o,u=[0,0,0];if("undefined"!=typeof this.nav.plugins&&"object"==typeof this.nav.plugins[n]){if(e=this.nav.plugins[n].description,e&&("undefined"==typeof this.nav.mimeTypes||!this.nav.mimeTypes[t]||this.nav.mimeTypes[t].enabledPlugin))for(u=e.replace(n,"").replace(/^\s+/,"").replace(/\sr/gi,".").split("."),f=0;f<u.length;f++)u[f]=parseInt(u[f].match(/\d+/),10)}else if("undefined"!=typeof window.ActiveXObject)try{o=new ActiveXObject(i);o&&(u=r(o))}catch(s){}return u}};mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(n){var i=[],t=n.GetVariable("$version");return t&&(t=t.split(" ")[1].split(","),i=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)]),i});mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(n){var t=[0,0,0,0],i=function(n,t,i,r){for(;n.isVersionSupported(t[0]+"."+t[1]+"."+t[2]+"."+t[3]);)t[i]+=r;t[i]-=r};return i(n,t,0,1),i(n,t,1,1),i(n,t,2,1e4),i(n,t,2,1e3),i(n,t,2,100),i(n,t,2,10),i(n,t,2,1),i(n,t,3,1),t});mejs.MediaFeatures={init:function(){var r,i,n=this,u=document,f=mejs.PluginDetector.nav,t=mejs.PluginDetector.ua.toLowerCase(),e=["source","track","audio","video"];for(n.isiPad=null!==t.match(/ipad/i),n.isiPhone=null!==t.match(/iphone/i),n.isiOS=n.isiPhone||n.isiPad,n.isAndroid=null!==t.match(/android/i),n.isBustedAndroid=null!==t.match(/android 2\.[12]/),n.isBustedNativeHTTPS="https:"===location.protocol&&(null!==t.match(/android [12]\./)||null!==t.match(/macintosh.* version.* safari/)),n.isIE=-1!=f.appName.toLowerCase().indexOf("microsoft")||null!==f.appName.toLowerCase().match(/trident/gi),n.isChrome=null!==t.match(/chrome/gi),n.isChromium=null!==t.match(/chromium/gi),n.isFirefox=null!==t.match(/firefox/gi),n.isWebkit=null!==t.match(/webkit/gi),n.isGecko=null!==t.match(/gecko/gi)&&!n.isWebkit&&!n.isIE,n.isOpera=null!==t.match(/opera/gi),n.hasTouch=("ontouchstart"in window),n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=0;r<e.length;r++)i=document.createElement(e[r]);n.supportsMediaTag="undefined"!=typeof i.canPlayType||n.isBustedAndroid;try{i.canPlayType("video/mp4")}catch(o){n.supportsMediaTag=!1}n.hasSemiNativeFullScreen="undefined"!=typeof i.webkitEnterFullscreen;n.hasNativeFullscreen="undefined"!=typeof i.requestFullscreen;n.hasWebkitNativeFullScreen="undefined"!=typeof i.webkitRequestFullScreen;n.hasMozNativeFullScreen="undefined"!=typeof i.mozRequestFullScreen;n.hasMsNativeFullScreen="undefined"!=typeof i.msRequestFullscreen;n.hasTrueNativeFullScreen=n.hasWebkitNativeFullScreen||n.hasMozNativeFullScreen||n.hasMsNativeFullScreen;n.nativeFullScreenEnabled=n.hasTrueNativeFullScreen;n.hasMozNativeFullScreen?n.nativeFullScreenEnabled=document.mozFullScreenEnabled:n.hasMsNativeFullScreen&&(n.nativeFullScreenEnabled=document.msFullscreenEnabled);n.isChrome&&(n.hasSemiNativeFullScreen=!1);n.hasTrueNativeFullScreen&&(n.fullScreenEventName="",n.hasWebkitNativeFullScreen?n.fullScreenEventName="webkitfullscreenchange":n.hasMozNativeFullScreen?n.fullScreenEventName="mozfullscreenchange":n.hasMsNativeFullScreen&&(n.fullScreenEventName="MSFullscreenChange"),n.isFullScreen=function(){return n.hasMozNativeFullScreen?u.mozFullScreen:n.hasWebkitNativeFullScreen?u.webkitIsFullScreen:n.hasMsNativeFullScreen?null!==u.msFullscreenElement:void 0},n.requestFullScreen=function(t){n.hasWebkitNativeFullScreen?t.webkitRequestFullScreen():n.hasMozNativeFullScreen?t.mozRequestFullScreen():n.hasMsNativeFullScreen&&t.msRequestFullscreen()},n.cancelFullScreen=function(){n.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():n.hasMozNativeFullScreen?document.mozCancelFullScreen():n.hasMsNativeFullScreen&&document.msExitFullscreen()});n.hasSemiNativeFullScreen&&t.match(/mac os x 10_5/i)&&(n.hasNativeFullScreen=!1,n.hasSemiNativeFullScreen=!1)}};mejs.MediaFeatures.init();mejs.HtmlMediaElement={pluginType:"native",isFullScreen:!1,setCurrentTime:function(n){this.currentTime=n},setMuted:function(n){this.muted=n},setVolume:function(n){this.volume=n},stop:function(){this.pause()},setSrc:function(n){for(var t,r,i=this.getElementsByTagName("source");i.length>0;)this.removeChild(i[0]);if("string"==typeof n)this.src=n;else for(t=0;t<n.length;t++)if(r=n[t],this.canPlayType(r.type)){this.src=r.src;break}},setVideoSize:function(n,t){this.width=n;this.height=t}};mejs.PluginMediaElement=function(n,t,i){this.id=n;this.pluginType=t;this.src=i;this.events={};this.attributes={}};mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:!1,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:!0,ended:!1,seeking:!1,duration:0,error:null,tagName:"",muted:!1,volume:1,currentTime:0,play:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType||this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.stopVideo():this.pluginApi.stopMedia(),this.paused=!0)},canPlayType:function(n){for(var i,r,u=mejs.plugins[this.pluginType],t=0;t<u.length;t++)if(r=u[t],mejs.PluginDetector.hasPluginVersion(this.pluginType,r.version))for(i=0;i<r.types.length;i++)if(n==r.types[i])return"probably";return""},positionFullscreenButton:function(n,t,i){null!=this.pluginApi&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(n),Math.floor(t),i)},hideFullscreenButton:function(){null!=this.pluginApi&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(n){if("string"==typeof n)this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(n)),this.src=mejs.Utility.absolutizeUrl(n);else for(var i,t=0;t<n.length;t++)if(i=n[t],this.canPlayType(i.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(i.src));this.src=mejs.Utility.absolutizeUrl(n);break}},setCurrentTime:function(n){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.seekTo(n):this.pluginApi.setCurrentTime(n),this.currentTime=n)},setVolume:function(n){null!=this.pluginApi&&(this.pluginApi.setVolume("youtube"==this.pluginType?100*n:n),this.volume=n)},setMuted:function(n){null!=this.pluginApi&&("youtube"==this.pluginType?(n?this.pluginApi.mute():this.pluginApi.unMute(),this.muted=n,this.dispatchEvent("volumechange")):this.pluginApi.setMuted(n),this.muted=n)},setVideoSize:function(n,t){this.pluginElement&&this.pluginElement.style&&(this.pluginElement.style.width=n+"px",this.pluginElement.style.height=t+"px");null!=this.pluginApi&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(n,t)},setFullscreen:function(n){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(n)},enterFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!1)},addEventListener:function(n,t){this.events[n]=this.events[n]||[];this.events[n].push(t)},removeEventListener:function(n,t){var r,i;if(!n)return this.events={},!0;if(r=this.events[n],!r)return!0;if(!t)return this.events[n]=[],!0;for(i=0;i<r.length;i++)if(r[i]===t)return this.events[n].splice(i,1),!0;return!1},dispatchEvent:function(n){var t,r,i=this.events[n];if(i)for(r=Array.prototype.slice.call(arguments,1),t=0;t<i.length;t++)i[t].apply(this,r)},hasAttribute:function(n){return n in this.attributes},removeAttribute:function(n){delete this.attributes[n]},getAttribute:function(n){return this.hasAttribute(n)?this.attributes[n]:""},setAttribute:function(n,t){this.attributes[n]=t},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(n,t,i){this.pluginMediaElements[n]=t;this.htmlMediaElements[n]=i},unregisterPluginElement:function(n){delete this.pluginMediaElements[n];delete this.htmlMediaElements[n]},initPlugin:function(n){var t=this.pluginMediaElements[n],i=this.htmlMediaElements[n];if(t){switch(t.pluginType){case"flash":t.pluginElement=t.pluginApi=document.getElementById(n);break;case"silverlight":t.pluginElement=document.getElementById(t.id);t.pluginApi=t.pluginElement.Content.MediaElementJS}null!=t.pluginApi&&t.success&&t.success(t,i)}},fireEvent:function(n,t,i){var r,u,e,f=this.pluginMediaElements[n];if(f){r={type:t,target:f};for(u in i)f[u]=i[u],r[u]=i[u];e=i.bufferedTime||0;r.target.buffered=r.buffered={start:function(){return 0},end:function(){return e},length:1};f.dispatchEvent(r.type,r)}}};mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:!1,httpsBasicAuthSite:!1,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:glb_Path+"flashmediaelement.swf",flashStreamer:"",enablePluginSmoothing:!1,enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:.8,success:function(){},error:function(){}};mejs.MediaElement=function(n,t){return mejs.HtmlMediaElementShim.create(n,t)};mejs.HtmlMediaElementShim={create:function(n,t){var i,c,s=mejs.MediaElementDefaults,r="string"==typeof n?document.getElementById(n):n,l=r.tagName.toLowerCase(),a="audio"===l||"video"===l,f=r.getAttribute(a?"src":"href"),e=r.getAttribute("poster"),o=r.getAttribute("autoplay"),u=r.getAttribute("preload"),h=r.getAttribute("controls");for(c in t)s[c]=t[c];return f="undefined"==typeof f||null===f||""==f?null:f,e="undefined"==typeof e||null===e?"":e,u="undefined"==typeof u||null===u||"false"===u?"none":u,o=!("undefined"==typeof o||null===o||"false"===o),h=!("undefined"==typeof h||null===h||"false"===h),i=this.determinePlayback(r,s,mejs.MediaFeatures.supportsMediaTag,a,f),i.url=null!==i.url?mejs.Utility.absolutizeUrl(i.url):"","native"==i.method?(mejs.MediaFeatures.isBustedAndroid&&(r.src=i.url,r.addEventListener("click",function(){r.play()},!1)),this.updateNative(i,s,o,u)):""!==i.method?this.createPlugin(i,s,e,o,u,h):(this.createErrorMessage(i,s,e),this)},determinePlayback:function(n,t,i,r,u){var f,l,a,v,s,h,y,p,c,w,b,e=[],o={method:"",url:"",htmlMediaElement:n,isVideo:"audio"!=n.tagName.toLowerCase()};if("undefined"!=typeof t.type&&""!==t.type)if("string"==typeof t.type)e.push({type:t.type,url:u});else for(f=0;f<t.type.length;f++)e.push({type:t.type[f],url:u});else if(null!==u)h=this.formatType(u,n.getAttribute("type")),e.push({type:h,url:u});else for(f=0;f<n.childNodes.length;f++)s=n.childNodes[f],1==s.nodeType&&"source"==s.tagName.toLowerCase()&&(u=s.getAttribute("src"),h=this.formatType(u,s.getAttribute("type")),b=s.getAttribute("media"),(!b||!window.matchMedia||window.matchMedia&&window.matchMedia(b).matches)&&e.push({type:h,url:u}));if(!r&&e.length>0&&null!==e[0].url&&this.getTypeFromFile(e[0].url).indexOf("audio")>-1&&(o.isVideo=!1),mejs.MediaFeatures.isBustedAndroid&&(n.canPlayType=function(n){return null!==n.match(/video\/(mp4|m4v)/gi)?"maybe":""}),mejs.MediaFeatures.isChromium&&(n.canPlayType=function(n){return null!==n.match(/video\/(webm|ogv|ogg)/gi)?"maybe":""}),!(!i||"auto"!==t.mode&&"auto_plugin"!==t.mode&&"native"!==t.mode||mejs.MediaFeatures.isBustedNativeHTTPS&&t.httpsBasicAuthSite===!0)){for(r||(w=document.createElement(o.isVideo?"video":"audio"),n.parentNode.insertBefore(w,n),n.style.display="none",o.htmlMediaElement=n=w),f=0;f<e.length;f++)if("video/m3u8"==e[f].type||""!==n.canPlayType(e[f].type).replace(/no/,"")||""!==n.canPlayType(e[f].type.replace(/mp3/,"mpeg")).replace(/no/,"")||""!==n.canPlayType(e[f].type.replace(/m4a/,"mp4")).replace(/no/,"")){o.method="native";o.url=e[f].url;break}if("native"===o.method&&(null!==o.url&&(n.src=o.url),"auto_plugin"!==t.mode))return o}if("auto"===t.mode||"auto_plugin"===t.mode||"shim"===t.mode)for(f=0;f<e.length;f++)for(h=e[f].type,l=0;l<t.plugins.length;l++)for(y=t.plugins[l],p=mejs.plugins[y],a=0;a<p.length;a++)if(c=p[a],null==c.version||mejs.PluginDetector.hasPluginVersion(y,c.version))for(v=0;v<c.types.length;v++)if(h==c.types[v])return o.method=y,o.url=e[f].url,o;return"auto_plugin"===t.mode&&"native"===o.method?o:(""===o.method&&e.length>0&&(o.url=e[0].url),o)},formatType:function(n,t){return n&&!t?this.getTypeFromFile(n):t&&~t.indexOf(";")?t.substr(0,t.indexOf(";")):t},getTypeFromFile:function(n){n=n.split("?")[0];var t=n.substring(n.lastIndexOf(".")+1).toLowerCase();return(/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(t)?"video":"audio")+"/"+this.getTypeFromExtension(t)},getTypeFromExtension:function(n){switch(n){case"mp4":case"m4v":case"m4a":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return n}},createErrorMessage:function(n,t,i){var r=n.htmlMediaElement,u=document.createElement("div");u.className="me-cannotplay";try{u.style.width=r.width+"px";u.style.height=r.height+"px"}catch(f){}u.innerHTML=t.customError?t.customError:""!==i?'<a href="'+n.url+'"><img src="'+i+'" width="100%" height="100%" /><\/a>':'<a href="'+n.url+'"><span>'+mejs.i18n.t("Download File")+"<\/span><\/a>";r.parentNode.insertBefore(u,r);r.style.display="none";t.error(r)},createPlugin:function(n,t,i,r,u,f){var k,a,l,s=n.htmlMediaElement,v=1,y=1,h="me_"+n.method+"_"+mejs.meIndex++,o=new mejs.PluginMediaElement(h,n.method,n.url),c=document.createElement("div"),w,b,p,d,e;for(o.tagName=s.tagName,w=0;w<s.attributes.length;w++)b=s.attributes[w],1==b.specified&&o.setAttribute(b.name,b.value);for(a=s.parentNode;null!==a&&"body"!==a.tagName.toLowerCase()&&null!=a.parentNode;){if("p"===a.parentNode.tagName.toLowerCase()){a.parentNode.parentNode.insertBefore(a,a.parentNode);break}a=a.parentNode}switch(n.isVideo?(v=t.pluginWidth>0?t.pluginWidth:t.videoWidth>0?t.videoWidth:null!==s.getAttribute("width")?s.getAttribute("width"):t.defaultVideoWidth,y=t.pluginHeight>0?t.pluginHeight:t.videoHeight>0?t.videoHeight:null!==s.getAttribute("height")?s.getAttribute("height"):t.defaultVideoHeight,v=mejs.Utility.encodeUrl(v),y=mejs.Utility.encodeUrl(y)):t.enablePluginDebug&&(v=320,y=240),o.success=t.success,mejs.MediaPluginBridge.registerPluginElement(h,o,s),c.className="me-plugin",c.id=h+"_container",n.isVideo?s.parentNode.insertBefore(c,s):document.body.insertBefore(c,document.body.childNodes[0]),l=["id="+h,"isvideo="+(n.isVideo?"true":"false"),"autoplay="+(r?"true":"false"),"preload="+u,"width="+v,"startvolume="+t.startVolume,"timerrate="+t.timerRate,"flashstreamer="+t.flashStreamer,"height="+y,"pseudostreamstart="+t.pseudoStreamingStartQueryParam],null!==n.url&&l.push("flash"==n.method?"file="+mejs.Utility.encodeUrl(n.url):"file="+n.url),t.enablePluginDebug&&l.push("debug=true"),t.enablePluginSmoothing&&l.push("smoothing=true"),t.enablePseudoStreaming&&l.push("pseudostreaming=true"),f&&l.push("controls=true"),t.pluginVars&&(l=l.concat(t.pluginVars)),n.method){case"silverlight":c.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+h+'" name="'+h+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="initParams" value="'+l.join(",")+'" /><param name="windowless" value="true" /><param name="background" value="black" /><param name="minRuntimeVersion" value="3.0.0.0" /><param name="autoUpgrade" value="true" /><param name="source" value="'+t.pluginPath+t.silverlightName+'" /><\/object>';break;case"flash":mejs.MediaFeatures.isIE?(k=document.createElement("div"),c.appendChild(k),k.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+h+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="movie" value="'+t.pluginPath+t.flashName+"?x="+new Date+'" /><param name="flashvars" value="'+l.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="scale" value="default" /><\/object>'):c.innerHTML='<embed id="'+h+'" name="'+h+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+t.pluginPath+t.flashName+'" flashvars="'+l.join("&")+'" width="'+v+'" height="'+y+'" scale="default"class="mejs-shim"><\/embed>';break;case"youtube":-1!=n.url.lastIndexOf("youtu.be")?(p=n.url.substr(n.url.lastIndexOf("/")+1),-1!=p.indexOf("?")&&(p=p.substr(0,p.indexOf("?")))):p=n.url.substr(n.url.lastIndexOf("=")+1);youtubeSettings={container:c,containerId:c.id,pluginMediaElement:o,pluginId:h,videoId:p,height:y,width:v};mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])?mejs.YouTubeApi.createFlash(youtubeSettings):mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case"vimeo":d=h+"_player";(o.vimeoid=n.url.substr(n.url.lastIndexOf("/")+1),c.innerHTML='<iframe src="//player.vimeo.com/video/'+o.vimeoid+"?api=1&portrait=0&byline=0&title=0&player_id="+d+'" width="'+v+'" height="'+y+'" frameborder="0" class="mejs-shim" id="'+d+'" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>',"function"==typeof $f)?(e=$f(c.childNodes[0]),e.addEvent("ready",function(){function n(n,t,i,r){var u={type:i,target:t};"timeupdate"==i&&(t.currentTime=u.currentTime=r.seconds,t.duration=u.duration=r.duration);t.dispatchEvent(u.type,u)}$.extend(e,{playVideo:function(){e.api("play")},stopVideo:function(){e.api("unload")},pauseVideo:function(){e.api("pause")},seekTo:function(n){e.api("seekTo",n)},setVolume:function(n){e.api("setVolume",n)},setMuted:function(n){n?(e.lastVolume=e.api("getVolume"),e.api("setVolume",0)):(e.api("setVolume",e.lastVolume),delete e.lastVolume)}});e.addEvent("play",function(){n(e,o,"play");n(e,o,"playing")});e.addEvent("pause",function(){n(e,o,"pause")});e.addEvent("finish",function(){n(e,o,"ended")});e.addEvent("playProgress",function(t){n(e,o,"timeupdate",t)});o.pluginElement=c;o.pluginApi=e;mejs.MediaPluginBridge.initPlugin(h)})):console.warn("You need to include froogaloop for vimeo to work")}return s.style.display="none",s.removeAttribute("autoplay"),o},updateNative:function(n,t){var r,i=n.htmlMediaElement;for(r in mejs.HtmlMediaElement)i[r]=mejs.HtmlMediaElement[r];return t.success(i,i),i}};mejs.YouTubeApi={isIframeStarted:!1,isIframeLoaded:!1,loadIframeApi:function(){var n,t;this.isIframeStarted||(n=document.createElement("script"),n.src="//www.youtube.com/player_api",t=document.getElementsByTagName("script")[0],t.parentNode.insertBefore(n,t),this.isIframeStarted=!0)},iframeQueue:[],enqueueIframe:function(n){this.isLoaded?this.createIframe(n):(this.loadIframeApi(),this.iframeQueue.push(n))},createIframe:function(n){var i=n.pluginMediaElement,t=new YT.Player(n.containerId,{height:n.height,width:n.width,videoId:n.videoId,playerVars:{controls:0},events:{onReady:function(){n.pluginMediaElement.pluginApi=t;mejs.MediaPluginBridge.initPlugin(n.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250)},onStateChange:function(n){mejs.YouTubeApi.handleStateChange(n.data,t,i)}}})},createEvent:function(n,t,i){var r={type:i,target:t},u;n&&n.getDuration&&(t.currentTime=r.currentTime=n.getCurrentTime(),t.duration=r.duration=n.getDuration(),r.paused=t.paused,r.ended=t.ended,r.muted=n.isMuted(),r.volume=n.getVolume()/100,r.bytesTotal=n.getVideoBytesTotal(),r.bufferedBytes=n.getVideoBytesLoaded(),u=r.bufferedBytes/r.bytesTotal*r.duration,r.target.buffered=r.buffered={start:function(){return 0},end:function(){return u},length:1});t.dispatchEvent(r.type,r)},iFrameReady:function(){for(this.isLoaded=!0,this.isIframeLoaded=!0;this.iframeQueue.length>0;){var n=this.iframeQueue.pop();this.createIframe(n)}},flashPlayers:{},createFlash:function(n){this.flashPlayers[n.pluginId]=n;var t,i="//www.youtube.com/apiplayer?enablejsapi=1&amp;playerapiid="+n.pluginId+"&amp;version=3&amp;autoplay=0&amp;controls=0&amp;modestbranding=1&loop=0";mejs.MediaFeatures.isIE?(t=document.createElement("div"),n.container.appendChild(t),t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+n.pluginId+'" width="'+n.width+'" height="'+n.height+'" class="mejs-shim"><param name="movie" value="'+i+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><\/object>'):n.container.innerHTML='<object type="application/x-shockwave-flash" id="'+n.pluginId+'" data="'+i+'" width="'+n.width+'" height="'+n.height+'" style="visibility: visible; " class="mejs-shim"><param name="allowScriptAccess" value="always"><param name="wmode" value="transparent"><\/object>'},flashReady:function(n){var r=this.flashPlayers[n],t=document.getElementById(n),i=r.pluginMediaElement,u;i.pluginApi=i.pluginElement=t;mejs.MediaPluginBridge.initPlugin(n);t.cueVideoById(r.videoId);u=r.containerId+"_callback";window[u]=function(n){mejs.YouTubeApi.handleStateChange(n,t,i)};t.addEventListener("onStateChange",u);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250);mejs.YouTubeApi.createEvent(t,i,"canplay")},handleStateChange:function(n,t,i){switch(n){case-1:i.paused=!0;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"loadedmetadata");break;case 0:i.paused=!1;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"ended");break;case 1:i.paused=!1;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"play");mejs.YouTubeApi.createEvent(t,i,"playing");break;case 2:i.paused=!0;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"pause");break;case 3:mejs.YouTubeApi.createEvent(t,i,"progress")}}};window.mejs=mejs;window.MediaElement=mejs.MediaElement,function(n,t){"use strict";var i={locale:{language:t.i18n&&t.i18n.locale.language||"",strings:t.i18n&&t.i18n.locale.strings||{}},ietf_lang_regex:/^(x\-)?[a-z]{2,}(\-\w{2,})?(\-\w{2,})?$/,methods:{}};i.getLanguage=function(){var n=i.locale.language||window.navigator.userLanguage||window.navigator.language;return i.ietf_lang_regex.exec(n)?n:null};"undefined"!=typeof mejsL10n&&(i.locale.language=mejsL10n.language);i.methods.checkPlain=function(n){var t,r,i={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"};n=String(n);for(t in i)i.hasOwnProperty(t)&&(r=new RegExp(t,"g"),n=n.replace(r,i[t]));return n};i.methods.t=function(n,t){return i.locale.strings&&i.locale.strings[t.context]&&i.locale.strings[t.context][n]&&(n=i.locale.strings[t.context][n]),i.methods.checkPlain(n)};i.t=function(n,t){if("string"==typeof n&&n.length>0){var r=i.getLanguage();return t=t||{context:r},i.methods.t(n,t)}throw{name:"InvalidArgumentException",message:"First argument is either not a string or empty."};};t.i18n=i}(document,mejs),function(n){"use strict";"undefined"!=typeof mejsL10n&&(n[mejsL10n.language]=mejsL10n.strings)}(mejs.i18n.locale.strings);"undefined"!=typeof jQuery?mejs.$=jQuery:"undefined"!=typeof ender&&(mejs.$=ender),function(n){mejs.MepDefaults={poster:"",showPosterWhenEnded:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(n){return.05*n.duration},defaultSeekForwardInterval:function(n){return.05*n.duration},setDimensions:!0,audioWidth:-1,audioHeight:-1,startVolume:.8,loop:!1,autoRewind:!0,enableAutosize:!0,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,autosizeProgress:!0,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,clickToPlayPause:!0,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:!0,enableKeyboard:!0,pauseOtherPlayers:!0,keyActions:[{keys:[32,179],action:function(n,t){t.paused||t.ended?n.play():n.pause()}},{keys:[38],action:function(n,t){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.min(t.volume+.1,1);t.setVolume(i)}},{keys:[40],action:function(n,t){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.max(t.volume-.1,0);t.setVolume(i)}},{keys:[37,227],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.max(t.currentTime-n.options.defaultSeekBackwardInterval(t),0);t.setCurrentTime(i)}}},{keys:[39,228],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.min(t.currentTime+n.options.defaultSeekForwardInterval(t),t.duration);t.setCurrentTime(i)}}},{keys:[70],action:function(n){"undefined"!=typeof n.enterFullScreen&&(n.isFullScreen?n.exitFullScreen():n.enterFullScreen())}},{keys:[77],action:function(n){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());n.setMuted(n.media.muted?!1:!0)}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(t,i){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(t,i);var r=this;return r.$media=r.$node=n(t),r.node=r.media=r.$media[0],"undefined"!=typeof r.node.player?r.node.player:(r.node.player=r,"undefined"==typeof i&&(i=r.$node.data("mejsoptions")),r.options=n.extend({},mejs.MepDefaults,i),r.id="mep_"+mejs.mepIndex++,mejs.players[r.id]=r,r.init(),r)};mejs.MediaElementPlayer.prototype={hasFocus:!1,controlsAreVisible:!0,init:function(){var t=this,i=mejs.MediaFeatures,f=n.extend(!0,{},t.options,{success:function(n,i){t.meReady(n,i)},error:function(n){t.handleError(n)}}),e=t.media.tagName.toLowerCase(),o,u,r,s;(t.isDynamic="audio"!==e&&"video"!==e,t.isVideo=t.isDynamic?t.options.isVideo:"audio"!==e&&t.options.isVideo,i.isiPad&&t.options.iPadUseNativeControls||i.isiPhone&&t.options.iPhoneUseNativeControls)?(t.$media.attr("controls","controls"),i.isiPad&&null!==t.media.getAttribute("autoplay")&&t.play()):i.isAndroid&&t.options.AndroidUseNativeControls||(t.$media.removeAttr("controls"),o=mejs.i18n.t(t.isVideo?"Video Player":"Audio Player"),(t.container=n('<span class="mejs-offscreen">'+o+'<\/span><div id="'+t.id+'" class="mejs-container '+(mejs.MediaFeatures.svg?"svg":"no-svg")+'" tabindex="0" role="application" aria-label="'+o+'"><div class="mejs-inner"><div class="mejs-mediaelement"><\/div><div class="mejs-layers"><\/div><div class="mejs-controls"><\/div><div class="mejs-clear"><\/div><\/div><\/div>').addClass(t.$media[0].className).insertBefore(t.$media).focus(function(){if(!t.controlsAreVisible){t.showControls(!0);var n=t.container.find(".mejs-playpause-button > button");n.focus()}}),t.container.addClass((i.isAndroid?"mejs-android ":"")+(i.isiOS?"mejs-ios ":"")+(i.isiPad?"mejs-ipad ":"")+(i.isiPhone?"mejs-iphone ":"")+(t.isVideo?"mejs-video ":"mejs-audio ")),i.isiOS)?(u=t.$media.clone(),t.container.find(".mejs-mediaelement").append(u),t.$media.remove(),t.$node=t.$media=u,t.node=t.media=u[0]):t.container.find(".mejs-mediaelement").append(t.$media),t.controls=t.container.find(".mejs-controls"),t.layers=t.container.find(".mejs-layers"),r=t.isVideo?"video":"audio",s=r.substring(0,1).toUpperCase()+r.substring(1),t.width=t.options[r+"Width"]>0||t.options[r+"Width"].toString().indexOf("%")>-1?t.options[r+"Width"]:""!==t.media.style.width&&null!==t.media.style.width?t.media.style.width:null!==t.media.getAttribute("width")?t.$media.attr("width"):t.options["default"+s+"Width"],t.height=t.options[r+"Height"]>0||t.options[r+"Height"].toString().indexOf("%")>-1?t.options[r+"Height"]:""!==t.media.style.height&&null!==t.media.style.height?t.media.style.height:null!==t.$media[0].getAttribute("height")?t.$media.attr("height"):t.options["default"+s+"Height"],t.setPlayerSize(t.width,t.height),f.pluginWidth=t.width,f.pluginHeight=t.height);mejs.MediaElement(t.$media[0],f);"undefined"!=typeof t.container&&t.controlsAreVisible&&t.container.trigger("controlsshown")},showControls:function(n){var t=this;n="undefined"==typeof n||n;t.controlsAreVisible||(n?(t.controls.css("visibility","visible").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0;t.container.trigger("controlsshown")}),t.container.find(".mejs-control").css("visibility","visible").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0})):(t.controls.css("visibility","visible").css("display","block"),t.container.find(".mejs-control").css("visibility","visible").css("display","block"),t.controlsAreVisible=!0,t.container.trigger("controlsshown")),t.setControlsSize())},hideControls:function(t){var i=this;t="undefined"==typeof t||t;!i.controlsAreVisible||i.options.alwaysShowControls||i.keyboardAction||(t?(i.controls.stop(!0,!0).fadeOut(200,function(){n(this).css("visibility","hidden").css("display","block");i.controlsAreVisible=!1;i.container.trigger("controlshidden")}),i.container.find(".mejs-control").stop(!0,!0).fadeOut(200,function(){n(this).css("visibility","hidden").css("display","block")})):(i.controls.css("visibility","hidden").css("display","block"),i.container.find(".mejs-control").css("visibility","hidden").css("display","block"),i.controlsAreVisible=!1,i.container.trigger("controlshidden")))},controlsTimer:null,startControlsTimer:function(n){var t=this;n="undefined"!=typeof n?n:1500;t.killControlsTimer("start");t.controlsTimer=setTimeout(function(){t.hideControls();t.killControlsTimer("hide")},n)},killControlsTimer:function(){var n=this;null!==n.controlsTimer&&(clearTimeout(n.controlsTimer),delete n.controlsTimer,n.controlsTimer=null)},controlsEnabled:!0,disableControls:function(){var n=this;n.killControlsTimer();n.hideControls(!1);this.controlsEnabled=!1},enableControls:function(){var n=this;n.showControls(!1);n.controlsEnabled=!0},meReady:function(t,i){var o,u,r=this,f=mejs.MediaFeatures,e=i.getAttribute("autoplay"),s=!("undefined"==typeof e||null===e||"false"===e);if(!r.created){if(r.created=!0,r.media=t,r.domNode=i,!(f.isAndroid&&r.options.AndroidUseNativeControls||f.isiPad&&r.options.iPadUseNativeControls||f.isiPhone&&r.options.iPhoneUseNativeControls)){r.buildposter(r,r.controls,r.layers,r.media);r.buildkeyboard(r,r.controls,r.layers,r.media);r.buildoverlays(r,r.controls,r.layers,r.media);r.findTracks();for(o in r.options.features)if(u=r.options.features[o],r["build"+u])try{r["build"+u](r,r.controls,r.layers,r.media)}catch(h){}r.container.trigger("controlsready");r.setPlayerSize(r.width,r.height);r.setControlsSize();r.isVideo&&(mejs.MediaFeatures.hasTouch?r.$media.bind("touchstart",function(){r.controlsAreVisible?r.hideControls(!1):r.controlsEnabled&&r.showControls(!1)}):(r.clickToPlayPauseCallback=function(){r.options.clickToPlayPause&&(r.media.paused?r.play():r.pause())},r.media.addEventListener("click",r.clickToPlayPauseCallback,!1),r.container.bind("mouseenter mouseover",function(){r.controlsEnabled&&(r.options.alwaysShowControls||(r.killControlsTimer("enter"),r.showControls(),r.startControlsTimer(2500)))}).bind("mousemove",function(){r.controlsEnabled&&(r.controlsAreVisible||r.showControls(),r.options.alwaysShowControls||r.startControlsTimer(2500))}).bind("mouseleave",function(){r.controlsEnabled&&(r.media.paused||r.options.alwaysShowControls||r.startControlsTimer(1e3))})),r.options.hideVideoControlsOnLoad&&r.hideControls(!1),s&&!r.options.alwaysShowControls&&r.hideControls(),r.options.enableAutosize&&r.media.addEventListener("loadedmetadata",function(n){r.options.videoHeight<=0&&null===r.domNode.getAttribute("height")&&!isNaN(n.target.videoHeight)&&(r.setPlayerSize(n.target.videoWidth,n.target.videoHeight),r.setControlsSize(),r.media.setVideoSize(n.target.videoWidth,n.target.videoHeight))},!1));t.addEventListener("play",function(){var t,n;for(t in mejs.players)n=mejs.players[t],n.id==r.id||!r.options.pauseOtherPlayers||n.paused||n.ended||n.pause(),n.hasFocus=!1;r.hasFocus=!0},!1);r.media.addEventListener("ended",function(){if(r.options.autoRewind)try{r.media.setCurrentTime(0);window.setTimeout(function(){n(r.container).find(".mejs-overlay-loading").parent().hide()},20)}catch(t){}r.media.pause();r.setProgressRail&&r.setProgressRail();r.setCurrentRail&&r.setCurrentRail();r.options.loop?r.play():!r.options.alwaysShowControls&&r.controlsEnabled&&r.showControls()},!1);r.media.addEventListener("loadedmetadata",function(){r.updateDuration&&r.updateDuration();r.updateCurrent&&r.updateCurrent();r.isFullScreen||(r.setPlayerSize(r.width,r.height),r.setControlsSize())},!1);r.container.focusout(function(t){if(t.relatedTarget){var i=n(t.relatedTarget);r.keyboardAction&&0===i.parents(".mejs-container").length&&(r.keyboardAction=!1,r.hideControls(!0))}});setTimeout(function(){r.setPlayerSize(r.width,r.height);r.setControlsSize()},50);r.globalBind("resize",function(){r.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||r.setPlayerSize(r.width,r.height);r.setControlsSize()});"youtube"==r.media.pluginType&&r.options.autoplay&&r.container.find(".mejs-overlay-play").hide()}s&&"native"==t.pluginType&&r.play();r.options.success&&("string"==typeof r.options.success?window[r.options.success](r.media,r.domNode,r):r.options.success(r.media,r.domNode,r))}},handleError:function(n){var t=this;t.controls.hide();t.options.error&&t.options.error(n)},setPlayerSize:function(t,i){var r=this,e,o;if(!r.options.setDimensions)return!1;if("undefined"!=typeof t&&(r.width=t),"undefined"!=typeof i&&(r.height=i),r.height.toString().indexOf("%")>0||"100%"===r.$node.css("max-width")||r.$node[0].currentStyle&&"100%"===r.$node[0].currentStyle.maxWidth){var h=function(){return r.isVideo?r.media.videoWidth&&r.media.videoWidth>0?r.media.videoWidth:null!==r.media.getAttribute("width")?r.media.getAttribute("width"):r.options.defaultVideoWidth:r.options.defaultAudioWidth}(),s=function(){return r.isVideo?r.media.videoHeight&&r.media.videoHeight>0?r.media.videoHeight:null!==r.media.getAttribute("height")?r.media.getAttribute("height"):r.options.defaultVideoHeight:r.options.defaultAudioHeight}(),f=r.container.parent().closest(":visible").width(),c=r.container.parent().closest(":visible").height(),u=r.isVideo||!r.options.autosizeProgress?parseInt(f*s/h,10):s;isNaN(u)&&(u=c);"body"===r.container.parent()[0].tagName.toLowerCase()&&(f=n(window).width(),u=n(window).height());u&&f&&(r.container.width(f).height(u),r.$media.add(r.container.find(".mejs-shim")).width("100%").height("100%"),r.isVideo&&r.media.setVideoSize&&r.media.setVideoSize(f,u),r.layers.children(".mejs-layer").width("100%").height("100%"))}else r.container.width(r.width).height(r.height),r.layers.children(".mejs-layer").width(r.width).height(r.height);e=r.layers.find(".mejs-overlay-play");o=e.find(".mejs-overlay-button");e.height(r.container.height()-r.controls.height());o.css("margin-top","-"+(o.height()/2-r.controls.height()/2).toString()+"px")},setControlsSize:function(){var t=this,e=0,i=0,r=t.controls.find(".mejs-time-rail"),u=t.controls.find(".mejs-time-total"),o=(t.controls.find(".mejs-time-current"),t.controls.find(".mejs-time-loaded"),r.siblings()),s=o.last(),f=null;if(t.container.is(":visible")&&r.length&&r.is(":visible")){t.options&&!t.options.autosizeProgress&&(i=parseInt(r.css("width"),10));0!==i&&i||(o.each(function(){var t=n(this);"absolute"!=t.css("position")&&t.is(":visible")&&(e+=n(this).outerWidth(!0))}),i=t.controls.width()-e-(r.outerWidth(!0)-r.width()));do r.width(i),u.width(i-(u.outerWidth(!0)-u.width())),"absolute"!=s.css("position")&&(f=s.position(),i--);while(null!==f&&f.top>0&&i>0);t.setProgressRail&&t.setProgressRail();t.setCurrentRail&&t.setCurrentRail()}},buildposter:function(t,i,r,u){var o=this,f=n('<div class="mejs-poster mejs-layer"><\/div>').appendTo(r),e=t.$media.attr("poster");""!==t.options.poster&&(e=t.options.poster);e?o.setPoster(e):f.hide();u.addEventListener("play",function(){f.hide()},!1);t.options.showPosterWhenEnded&&t.options.autoRewind&&u.addEventListener("ended",function(){f.show()},!1)},setPoster:function(t){var u=this,i=u.container.find(".mejs-poster"),r=i.find("img");0===r.length&&(r=n('<img width="100%" height="100%" />').appendTo(i));r.attr("src",t);i.css({"background-image":"url("+t+")"})},buildoverlays:function(t,i,r,u){var s=this;if(t.isVideo){var f=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span><\/span><\/div><\/div>').hide().appendTo(r),e=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"><\/div><\/div>').hide().appendTo(r),o=n('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button"><\/div><\/div>').appendTo(r).bind("click",function(){s.options.clickToPlayPause&&u.paused&&u.play()});u.addEventListener("play",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("playing",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("seeking",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("seeked",function(){f.hide();i.find(".mejs-time-buffering").hide()},!1);u.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||o.show()},!1);u.addEventListener("waiting",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("loadeddata",function(){f.show();i.find(".mejs-time-buffering").show();mejs.MediaFeatures.isAndroid&&(u.canplayTimeout=window.setTimeout(function(){if(document.createEvent){var n=document.createEvent("HTMLEvents");return n.initEvent("canplay",!0,!0),u.dispatchEvent(n)}},300))},!1);u.addEventListener("canplay",function(){f.hide();i.find(".mejs-time-buffering").hide();clearTimeout(u.canplayTimeout)},!1);u.addEventListener("error",function(){f.hide();i.find(".mejs-time-buffering").hide();e.show();e.find("mejs-overlay-error").html("Error loading this resource")},!1);u.addEventListener("keydown",function(n){s.onkeydown(t,u,n)},!1)}},buildkeyboard:function(t,i,r,u){var f=this;f.container.keydown(function(){f.keyboardAction=!0});f.globalBind("keydown",function(n){return f.onkeydown(t,u,n)});f.globalBind("click",function(i){t.hasFocus=0!==n(i.target).closest(".mejs-container").length})},onkeydown:function(n,t,i){var r,e;if(n.hasFocus&&n.options.enableKeyboard)for(r=0,e=n.options.keyActions.length;e>r;r++)for(var u=n.options.keyActions[r],f=0,o=u.keys.length;o>f;f++)if(i.keyCode==u.keys[f])return"function"==typeof i.preventDefault&&i.preventDefault(),u.action(n,t,i.keyCode),!1;return!0},findTracks:function(){var t=this,i=t.$media.find("track");t.tracks=[];i.each(function(i,r){r=n(r);t.tracks.push({srclang:r.attr("srclang")?r.attr("srclang").toLowerCase():"",src:r.attr("src"),kind:r.attr("kind"),label:r.attr("label")||"",entries:[],isLoaded:!1})})},changeSkin:function(n){this.container[0].className="mejs-container "+n;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.load();this.media.play()},pause:function(){try{this.media.pause()}catch(n){}},load:function(){this.isLoaded||this.media.load();this.isLoaded=!0},setMuted:function(n){this.media.setMuted(n)},setCurrentTime:function(n){this.media.setCurrentTime(n)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(n){this.media.setVolume(n)},getVolume:function(){return this.media.volume},setSrc:function(n){this.media.setSrc(n)},remove:function(){var i,t,n=this;for(i in n.options.features)if(t=n.options.features[i],n["clean"+t])try{n["clean"+t](n)}catch(r){}n.isDynamic?n.$node.insertBefore(n.container):(n.$media.prop("controls",!0),n.$node.clone().insertBefore(n.container).show(),n.$node.remove());"native"!==n.media.pluginType&&n.media.remove();delete mejs.players[n.id];"object"==typeof n.container&&n.container.remove();n.globalUnbind();delete n.node.player}},function(){function t(t,r){var u={d:[],w:[]};return n.each((t||"").split(" "),function(n,t){var f=t+"."+r;0===f.indexOf(".")?(u.d.push(f),u.w.push(f)):u[i.test(t)?"w":"d"].push(f)}),u.d=u.d.join(" "),u.w=u.w.join(" "),u}var i=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;mejs.MediaElementPlayer.prototype.globalBind=function(i,r,u){var f=this;i=t(i,f.id);i.d&&n(document).bind(i.d,r,u);i.w&&n(window).bind(i.w,r,u)};mejs.MediaElementPlayer.prototype.globalUnbind=function(i,r){var u=this;i=t(i,u.id);i.d&&n(document).unbind(i.d,r);i.w&&n(window).unbind(i.w,r)}}();"undefined"!=typeof n&&(n.fn.mediaelementplayer=function(t){return this.each(t===!1?function(){var t=n(this).data("mediaelementplayer");t&&t.remove();n(this).removeData("mediaelementplayer")}:function(){n(this).data("mediaelementplayer",new mejs.MediaElementPlayer(this,t))}),this},n(document).ready(function(){n(".mejs-player").mediaelementplayer()}));window.MediaElementPlayer=mejs.MediaElementPlayer}(mejs.$),function(n){n.extend(mejs.MepDefaults,{playText:mejs.i18n.t("Play"),pauseText:mejs.i18n.t("Pause")});n.extend(MediaElementPlayer.prototype,{buildplaypause:function(t,i,r,u){function e(n){"play"===n?(o.removeClass("mejs-play").addClass("mejs-pause"),h.attr({title:f.pauseText,"aria-label":f.pauseText})):(o.removeClass("mejs-pause").addClass("mejs-play"),h.attr({title:f.playText,"aria-label":f.playText}))}var s=this,f=s.options,o=n('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+s.id+'" title="'+f.playText+'" aria-label="'+f.playText+'"><\/button><\/div>').appendTo(i).click(function(n){return n.preventDefault(),u.paused?u.play():u.pause(),!1}),h=o.find("button");e("pse");u.addEventListener("play",function(){e("play")},!1);u.addEventListener("playing",function(){e("play")},!1);u.addEventListener("pause",function(){e("pse")},!1);u.addEventListener("paused",function(){e("pse")},!1)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{stopText:"Stop"});n.extend(MediaElementPlayer.prototype,{buildstop:function(t,i,r,u){var f=this;n('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+f.id+'" title="'+f.options.stopText+'" aria-label="'+f.options.stopText+'"><\/button><\/div>').appendTo(i).click(function(){u.paused||u.pause();u.currentTime>0&&(u.setCurrentTime(0),u.pause(),i.find(".mejs-time-current").width("0px"),i.find(".mejs-time-handle").css("left","0px"),i.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0)),i.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0)),r.find(".mejs-poster").show())})}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{progessHelpText:mejs.i18n.t("Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.")});n.extend(MediaElementPlayer.prototype,{buildprogress:function(t,i,r,u){n('<div class="mejs-time-rail"><a href="javascript:void(0);" class="mejs-time-total mejs-time-slider"><span class="mejs-offscreen">'+this.options.progessHelpText+'<\/span><span class="mejs-time-buffering"><\/span><span class="mejs-time-loaded"><\/span><span class="mejs-time-current"><\/span><span class="mejs-time-handle"><\/span><span class="mejs-time-float"><span class="mejs-time-float-current">00:00<\/span><span class="mejs-time-float-corner"><\/span><\/span><\/a><\/div>').appendTo(i);i.find(".mejs-time-buffering").hide();var f=this,o=i.find(".mejs-time-total"),y=i.find(".mejs-time-loaded"),p=i.find(".mejs-time-current"),w=i.find(".mejs-time-handle"),e=i.find(".mejs-time-float"),b=i.find(".mejs-time-float-current"),s=i.find(".mejs-time-slider"),c=function(n){var t,i=o.offset(),f=o.outerWidth(!0),s=0,r=0,c=0;t=n.originalEvent.changedTouches?n.originalEvent.changedTouches[0].pageX:n.pageX;u.duration&&(t<i.left?t=i.left:t>f+i.left&&(t=f+i.left),c=t-i.left,s=c/f,r=.02>=s?0:s*u.duration,h&&r!==u.currentTime&&u.setCurrentTime(r),mejs.MediaFeatures.hasTouch||(e.css("left",c),b.html(mejs.Utility.secondsToTimeCode(r)),e.show()))},h=!1,v=!1,l=0,a=!1,k=t.options.autoRewind,d=function(){var n=u.currentTime,t=mejs.i18n.t("Time Slider"),i=mejs.Utility.secondsToTimeCode(n),r=u.duration;s.attr({"aria-label":t,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":n,"aria-valuetext":i,role:"slider",tabindex:0})},g=function(){var n=new Date;n-l>=1e3&&u.play()};s.bind("focus",function(){t.options.autoRewind=!1});s.bind("blur",function(){t.options.autoRewind=k});s.bind("keydown",function(n){new Date-l>=1e3&&(a=u.paused);var r=n.keyCode,i=u.duration,t=u.currentTime;switch(r){case 37:t-=1;break;case 39:t+=1;break;case 38:t+=Math.floor(.1*i);break;case 40:t-=Math.floor(.1*i);break;case 36:t=0;break;case 35:t=i;break;case 10:return void(u.paused?u.play():u.pause());case 13:return void(u.paused?u.play():u.pause());default:return}return t=0>t?0:t>=i?i:Math.floor(t),l=new Date,a||u.pause(),t<u.duration&&!a&&setTimeout(g,1100),u.setCurrentTime(t),n.preventDefault(),n.stopPropagation(),!1});o.bind("mousedown touchstart",function(n){(1===n.which||0===n.which)&&(h=!0,c(n),f.globalBind("mousemove.dur touchmove.dur",function(n){c(n)}),f.globalBind("mouseup.dur touchend.dur",function(){h=!1;e.hide();f.globalUnbind(".dur")}))}).bind("mouseenter",function(){v=!0;f.globalBind("mousemove.dur",function(n){c(n)});mejs.MediaFeatures.hasTouch||e.show()}).bind("mouseleave",function(){v=!1;h||(f.globalUnbind(".dur"),e.hide())});u.addEventListener("progress",function(n){t.setProgressRail(n);t.setCurrentRail(n)},!1);u.addEventListener("timeupdate",function(n){t.setProgressRail(n);t.setCurrentRail(n);d(n)},!1);f.loaded=y;f.total=o;f.current=p;f.handle=w},setProgressRail:function(n){var r=this,t=void 0!==n?n.target:r.media,i=null;t&&t.buffered&&t.buffered.length>0&&t.buffered.end&&t.duration?i=t.buffered.end(0)/t.duration:t&&void 0!==t.bytesTotal&&t.bytesTotal>0&&void 0!==t.bufferedBytes?i=t.bufferedBytes/t.bytesTotal:n&&n.lengthComputable&&0!==n.total&&(i=n.loaded/n.total);null!==i&&(i=Math.min(1,Math.max(0,i)),r.loaded&&r.total&&r.loaded.width(r.total.width()*i))},setCurrentRail:function(){var n=this,t,i;void 0!==n.media.currentTime&&n.media.duration&&n.total&&n.handle&&(t=Math.round(n.total.width()*n.media.currentTime/n.media.duration),i=t-Math.round(n.handle.outerWidth(!0)/2),n.current.width(t),n.handle.css("left",i))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"<span> | <\/span>"});n.extend(MediaElementPlayer.prototype,{buildcurrent:function(t,i,r,u){var f=this;n('<div class="mejs-time" role="timer" aria-live="off"><span class="mejs-currenttime">'+(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00")+"<\/span><\/div>").appendTo(i);f.currenttime=f.controls.find(".mejs-currenttime");u.addEventListener("timeupdate",function(){t.updateCurrent()},!1)},buildduration:function(t,i,r,u){var f=this;i.children().last().find(".mejs-currenttime").length>0?n(f.options.timeAndDurationSeparator+'<span class="mejs-duration">'+(f.options.duration>0?mejs.Utility.secondsToTimeCode(f.options.duration,f.options.alwaysShowHours||f.media.duration>3600,f.options.showTimecodeFrameCount,f.options.framesPerSecond||25):(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"<\/span>").appendTo(i.find(".mejs-time")):(i.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"),n('<div class="mejs-time mejs-duration-container"><span class="mejs-duration">'+(f.options.duration>0?mejs.Utility.secondsToTimeCode(f.options.duration,f.options.alwaysShowHours||f.media.duration>3600,f.options.showTimecodeFrameCount,f.options.framesPerSecond||25):(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"<\/span><\/div>").appendTo(i));f.durationD=f.controls.find(".mejs-duration");u.addEventListener("timeupdate",function(){t.updateDuration()},!1)},updateCurrent:function(){var n=this;n.currenttime&&n.currenttime.html(mejs.Utility.secondsToTimeCode(n.media.currentTime,n.options.alwaysShowHours||n.media.duration>3600,n.options.showTimecodeFrameCount,n.options.framesPerSecond||25))},updateDuration:function(){var n=this;n.container.toggleClass("mejs-long-video",n.media.duration>3600);n.durationD&&(n.options.duration>0||n.media.duration)&&n.durationD.html(mejs.Utility.secondsToTimeCode(n.options.duration>0?n.options.duration:n.media.duration,n.options.alwaysShowHours,n.options.showTimecodeFrameCount,n.options.framesPerSecond||25))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),allyVolumeControlText:mejs.i18n.t("Use Up/Down Arrow keys to increase or decrease volume."),hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical"});n.extend(MediaElementPlayer.prototype,{buildvolume:function(t,i,r,u){var w;if(!mejs.MediaFeatures.isAndroid&&!mejs.MediaFeatures.isiOS||!this.options.hideVolumeOnTouchDevices){var f=this,c=f.isVideo?f.options.videoVolume:f.options.audioVolume,o="horizontal"==c?n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><\/div><a href="javascript:void(0);" class="mejs-horizontal-volume-slider"><span class="mejs-offscreen">'+f.options.allyVolumeControlText+'<\/span><div class="mejs-horizontal-volume-total"><\/div><div class="mejs-horizontal-volume-current"><\/div><div class="mejs-horizontal-volume-handle"><\/div><\/a>').appendTo(i):n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><a href="javascript:void(0);" class="mejs-volume-slider"><span class="mejs-offscreen">'+f.options.allyVolumeControlText+'<\/span><div class="mejs-volume-total"><\/div><div class="mejs-volume-current"><\/div><div class="mejs-volume-handle"><\/div><\/a><\/div>').appendTo(i),e=f.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),s=f.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),y=f.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),a=f.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),h=function(n,t){var i,r,u,l,f;if(!e.is(":visible")&&"undefined"==typeof t)return e.show(),h(n,!0),void e.hide();n=Math.max(0,n);n=Math.min(n,1);0===n?o.removeClass("mejs-mute").addClass("mejs-unmute"):o.removeClass("mejs-unmute").addClass("mejs-mute");i=s.position();"vertical"==c?(r=s.height(),u=r-r*n,a.css("top",Math.round(i.top+u-a.height()/2)),y.height(r-u),y.css("top",i.top+u)):(l=s.width(),f=l*n,a.css("left",Math.round(i.left+f-a.width()/2)),y.width(Math.round(f)))},p=function(n){var t=null,i=s.offset(),r,f,e,o;if("vertical"===c){if(r=s.height(),f=(parseInt(s.css("top").replace(/px/,""),10),n.pageY-i.top),t=(r-f)/r,0===i.top||0===i.left)return}else e=s.width(),o=n.pageX-i.left,t=o/e;t=Math.max(0,t);t=Math.min(t,1);h(t);u.setMuted(0===t?!0:!1);u.setVolume(t)},l=!1,v=!1;o.hover(function(){e.show();v=!0},function(){v=!1;l||"vertical"!=c||e.hide()});w=function(){var n=Math.floor(100*u.volume);e.attr({"aria-label":mejs.i18n.t("volumeSlider"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,"aria-valuetext":n+"%",role:"slider",tabindex:0})};e.bind("mouseover",function(){v=!0}).bind("mousedown",function(n){return p(n),f.globalBind("mousemove.vol",function(n){p(n)}),f.globalBind("mouseup.vol",function(){l=!1;f.globalUnbind(".vol");v||"vertical"!=c||e.hide()}),l=!0,!1}).bind("keydown",function(n){var i=n.keyCode,t=u.volume;switch(i){case 38:t+=.1;break;case 40:t-=.1;break;default:return!0}return l=!1,h(t),u.setVolume(t),!1}).bind("blur",function(){e.hide()});o.find("button").click(function(){u.setMuted(!u.muted)});o.find("button").bind("focus",function(){e.show()});u.addEventListener("volumechange",function(n){l||(u.muted?(h(0),o.removeClass("mejs-mute").addClass("mejs-unmute")):(h(u.volume),o.removeClass("mejs-unmute").addClass("mejs-mute")));w(n)},!1);f.container.is(":visible")&&(h(t.options.startVolume),0===t.options.startVolume&&u.setMuted(!0),"native"===u.pluginType&&u.setVolume(t.options.startVolume))}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{usePluginFullScreen:!0,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});n.extend(MediaElementPlayer.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,buildfullscreen:function(t,i,r,u){var l,f,e,s,a;if(t.isVideo){if((t.isInIframe=window.location!=window.parent.location,mejs.MediaFeatures.hasTrueNativeFullScreen)&&(l=function(){t.isFullScreen&&(mejs.MediaFeatures.isFullScreen()?(t.isNativeFullScreen=!0,t.setControlsSize()):(t.isNativeFullScreen=!1,t.exitFullScreen()))},t.globalBind(mejs.MediaFeatures.fullScreenEventName,l)),f=this,e=(t.container,n('<div class="mejs-button mejs-fullscreen-button"><button type="button" aria-controls="'+f.id+'" title="'+f.options.fullscreenText+'" aria-label="'+f.options.fullscreenText+'"><\/button><\/div>').appendTo(i)),"native"!==f.media.pluginType&&(f.options.usePluginFullScreen||mejs.MediaFeatures.isFirefox))if(s=null,a=function(){var t,n=document.createElement("x"),i=document.documentElement,r=window.getComputedStyle;return"pointerEvents"in n.style?(n.style.pointerEvents="auto",n.style.pointerEvents="x",i.appendChild(n),t=r&&"auto"===r(n,"").pointerEvents,i.removeChild(n),!!t):!1}(),a&&!mejs.MediaFeatures.isOpera){var h,v,c=!1,y=function(){if(c){for(var n in o)o[n].hide();e.css("pointer-events","");f.controls.css("pointer-events","");f.media.removeEventListener("click",f.clickToPlayPauseCallback);c=!1}},o={},p=["top","left","right","bottom"],w=function(){var i=e.offset().left-f.container.offset().left,n=e.offset().top-f.container.offset().top,u=e.outerWidth(!0),t=e.outerHeight(!0),r=f.container.width(),s=f.container.height();for(h in o)o[h].css({position:"absolute",top:0,left:0});o.top.width(r).height(n);o.left.width(i).height(t).css({top:n});o.right.width(r-i-u).height(t).css({top:n,left:i+u});o.bottom.width(r).height(s-t-n).css({top:n+t})};for(f.globalBind("resize",function(){w()}),h=0,v=p.length;v>h;h++)o[p[h]]=n('<div class="mejs-fullscreen-hover" />').appendTo(f.container).mouseover(y).hide();e.on("mouseover",function(){if(!f.isFullScreen){var n=e.offset(),i=t.container.offset();u.positionFullscreenButton(n.left-i.left,n.top-i.top,!1);e.css("pointer-events","none");f.controls.css("pointer-events","none");f.media.addEventListener("click",f.clickToPlayPauseCallback);for(h in o)o[h].show();w();c=!0}});u.addEventListener("fullscreenchange",function(){f.isFullScreen=!f.isFullScreen;f.isFullScreen?f.media.removeEventListener("click",f.clickToPlayPauseCallback):f.media.addEventListener("click",f.clickToPlayPauseCallback);y()});f.globalBind("mousemove",function(n){if(c){var t=e.offset();(n.pageY<t.top||n.pageY>t.top+e.outerHeight(!0)||n.pageX<t.left||n.pageX>t.left+e.outerWidth(!0))&&(e.css("pointer-events",""),f.controls.css("pointer-events",""),c=!1)}})}else e.on("mouseover",function(){null!==s&&(clearTimeout(s),delete s);var n=e.offset(),i=t.container.offset();u.positionFullscreenButton(n.left-i.left,n.top-i.top,!0)}).on("mouseout",function(){null!==s&&(clearTimeout(s),delete s);s=setTimeout(function(){u.hideFullscreenButton()},1500)});else e.click(function(){var n=mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||t.isFullScreen;n?t.exitFullScreen():t.enterFullScreen()});t.fullscreenBtn=e;f.globalBind("keydown",function(n){(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||f.isFullScreen)&&27==n.keyCode&&t.exitFullScreen()})}},cleanfullscreen:function(n){n.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var t=this,i;if("native"===t.media.pluginType||!mejs.MediaFeatures.isFirefox&&!t.options.usePluginFullScreen){if(n(document.documentElement).addClass("mejs-fullscreen"),normalHeight=t.container.height(),normalWidth=t.container.width(),"native"===t.media.pluginType)if(mejs.MediaFeatures.hasTrueNativeFullScreen)mejs.MediaFeatures.requestFullScreen(t.container[0]),t.isInIframe&&setTimeout(function r(){if(t.isNativeFullScreen){var u=window.devicePixelRatio||1,f=u*n(window).width(),i=screen.width,e=Math.abs(i-f),o=i*.002;e>o?t.exitFullScreen():setTimeout(r,500)}},500);else if(mejs.MediaFeatures.hasSemiNativeFullScreen)return void t.media.webkitEnterFullscreen();if(t.isInIframe&&(i=t.options.newWindowCallback(this),""!==i)){if(!mejs.MediaFeatures.hasTrueNativeFullScreen)return t.pause(),void window.open(i,t.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no");setTimeout(function(){t.isNativeFullScreen||(t.pause(),window.open(i,t.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no"))},250)}t.container.addClass("mejs-container-fullscreen").width("100%").height("100%");t.containerSizeTimeout=setTimeout(function(){t.container.css({width:"100%",height:"100%"});t.setControlsSize()},500);"native"===t.media.pluginType?t.$media.width("100%").height("100%"):(t.container.find(".mejs-shim").width("100%").height("100%"),t.media.setVideoSize(n(window).width(),n(window).height()));t.layers.children("div").width("100%").height("100%");t.fullscreenBtn&&t.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");t.setControlsSize();t.isFullScreen=!0;t.container.find(".mejs-captions-text").css("font-size",screen.width/t.width*100+"%");t.container.find(".mejs-captions-position").css("bottom","45px")}},exitFullScreen:function(){var t=this;return clearTimeout(t.containerSizeTimeout),"native"!==t.media.pluginType&&mejs.MediaFeatures.isFirefox?void t.media.setFullscreen(!1):(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||t.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen(),n(document.documentElement).removeClass("mejs-fullscreen"),t.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight),"native"===t.media.pluginType?t.$media.width(normalWidth).height(normalHeight):(t.container.find(".mejs-shim").width(normalWidth).height(normalHeight),t.media.setVideoSize(normalWidth,normalHeight)),t.layers.children("div").width(normalWidth).height(normalHeight),t.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen"),t.setControlsSize(),t.isFullScreen=!1,t.container.find(".mejs-captions-text").css("font-size",""),void t.container.find(".mejs-captions-position").css("bottom",""))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{speeds:["2.00","1.50","1.25","1.00","0.75"],defaultSpeed:"1.00",speedChar:"x"});n.extend(MediaElementPlayer.prototype,{buildspeed:function(t,i,r,u){var f=this,e,c;if("native"==f.media.pluginType){var o=null,s=null,h='<div class="mejs-button mejs-speed-button"><button type="button">'+f.options.defaultSpeed+f.options.speedChar+'<\/button><div class="mejs-speed-selector"><ul>';for(-1===n.inArray(f.options.defaultSpeed,f.options.speeds)&&f.options.speeds.push(f.options.defaultSpeed),f.options.speeds.sort(function(n,t){return parseFloat(t)-parseFloat(n)}),e=0,c=f.options.speeds.length;c>e;e++)h+='<li><input type="radio" name="speed" value="'+f.options.speeds[e]+'" id="'+f.options.speeds[e]+'" '+(f.options.speeds[e]==f.options.defaultSpeed?" checked":"")+' /><label for="'+f.options.speeds[e]+'" '+(f.options.speeds[e]==f.options.defaultSpeed?' class="mejs-speed-selected"':"")+">"+f.options.speeds[e]+f.options.speedChar+"<\/label><\/li>";h+="<\/ul><\/div><\/div>";o=n(h).appendTo(i);s=o.find(".mejs-speed-selector");playbackspeed=f.options.defaultSpeed;s.on("click",'input[type="radio"]',function(){var t=n(this).attr("value");playbackspeed=t;u.playbackRate=parseFloat(t);o.find("button").html("test"+t+f.options.speedChar);o.find(".mejs-speed-selected").removeClass("mejs-speed-selected");o.find('input[type="radio"]:checked').next().addClass("mejs-speed-selected")});s.height(o.find(".mejs-speed-selector ul").outerHeight(!0)+o.find(".mejs-speed-translations").outerHeight(!0)).css("top",-1*s.height()+"px")}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""});n.extend(MediaElementPlayer.prototype,{hasChapters:!1,buildtracks:function(t,i,r,u){var f,e,o;if(0!==t.tracks.length){if(e=this,e.domNode.textTracks)for(f=e.domNode.textTracks.length-1;f>=0;f--)e.domNode.textTracks[f].mode="hidden";for(t.chapters=n('<div class="mejs-chapters mejs-layer"><\/div>').prependTo(r).hide(),t.captions=n('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position mejs-captions-position-hover" role="log" aria-live="assertive" aria-atomic="false"><span class="mejs-captions-text"><\/span><\/div><\/div>').prependTo(r).hide(),t.captionsText=t.captions.find(".mejs-captions-text"),t.captionsButton=n('<div class="mejs-button mejs-captions-button"><button type="button" aria-controls="'+e.id+'" title="'+e.options.tracksText+'" aria-label="'+e.options.tracksText+'"><\/button><div class="mejs-captions-selector"><ul><li><input type="radio" name="'+t.id+'_captions" id="'+t.id+'_captions_none" value="none" checked="checked" /><label for="'+t.id+'_captions_none">'+mejs.i18n.t("None")+"<\/label><\/li><\/ul><\/div><\/div>").appendTo(i),o=0,f=0;f<t.tracks.length;f++)"subtitles"==t.tracks[f].kind&&o++;for(e.options.toggleCaptionsButtonWhenOnlyOne&&1==o?t.captionsButton.on("click",function(){lang=null===t.selectedTrack?t.tracks[0].srclang:"none";t.setTrack(lang)}):(t.captionsButton.on("mouseenter focusin",function(){n(this).find(".mejs-captions-selector").css("visibility","visible")}).on("click","input[type=radio]",function(){lang=this.value;t.setTrack(lang)}),t.captionsButton.on("mouseleave focusout",function(){n(this).find(".mejs-captions-selector").css("visibility","hidden")})),t.options.alwaysShowControls?t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover"):t.container.bind("controlsshown",function(){t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden",function(){u.paused||t.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")}),t.trackToLoad=-1,t.selectedTrack=null,t.isLoadingTrack=!1,f=0;f<t.tracks.length;f++)"subtitles"==t.tracks[f].kind&&t.addTrackButton(t.tracks[f].srclang,t.tracks[f].label);t.loadNextTrack();u.addEventListener("timeupdate",function(){t.displayCaptions()},!1);""!==t.options.slidesSelector&&(t.slidesContainer=n(t.options.slidesSelector),u.addEventListener("timeupdate",function(){t.displaySlides()},!1));u.addEventListener("loadedmetadata",function(){t.displayChapters()},!1);t.container.hover(function(){t.hasChapters&&(t.chapters.css("visibility","visible"),t.chapters.fadeIn(200).height(t.chapters.find(".mejs-chapter").outerHeight()))},function(){t.hasChapters&&!u.paused&&t.chapters.fadeOut(200,function(){n(this).css("visibility","hidden");n(this).css("display","block")})});null!==t.node.getAttribute("autoplay")&&t.chapters.css("visibility","hidden")}},setTrack:function(n){var i,t=this;if("none"==n)t.selectedTrack=null,t.captionsButton.removeClass("mejs-captions-enabled");else for(i=0;i<t.tracks.length;i++)if(t.tracks[i].srclang==n){null===t.selectedTrack&&t.captionsButton.addClass("mejs-captions-enabled");t.selectedTrack=t.tracks[i];t.captions.attr("lang",t.selectedTrack.srclang);t.displayCaptions();break}},loadNextTrack:function(){var n=this;n.trackToLoad++;n.trackToLoad<n.tracks.length?(n.isLoadingTrack=!0,n.loadTrack(n.trackToLoad)):(n.isLoadingTrack=!1,n.checkForTracks())},loadTrack:function(t){var r=this,i=r.tracks[t],u=function(){i.isLoaded=!0;r.enableTrackButton(i.srclang,i.label);r.loadNextTrack()};n.ajax({url:i.src,dataType:"text",success:function(n){i.entries="string"==typeof n&&/<tt\s+xml/gi.exec(n)?mejs.TrackFormatParser.dfxp.parse(n):mejs.TrackFormatParser.webvtt.parse(n);u();"chapters"==i.kind&&r.media.addEventListener("play",function(){r.media.duration>0&&r.displayChapters(i)},!1);"slides"==i.kind&&r.setupSlides(i)},error:function(){r.loadNextTrack()}})},enableTrackButton:function(t,i){var r=this;""===i&&(i=mejs.language.codes[t]||t);r.captionsButton.find("input[value="+t+"]").prop("disabled",!1).siblings("label").html(i);r.options.startLanguage==t&&n("#"+r.id+"_captions_"+t).prop("checked",!0).trigger("click");r.adjustLanguageBox()},addTrackButton:function(t,i){var r=this;""===i&&(i=mejs.language.codes[t]||t);r.captionsButton.find("ul").append(n('<li><input type="radio" name="'+r.id+'_captions" id="'+r.id+"_captions_"+t+'" value="'+t+'" disabled="disabled" /><label for="'+r.id+"_captions_"+t+'">'+i+" (loading)<\/label><\/li>"));r.adjustLanguageBox();r.container.find(".mejs-captions-translations option[value="+t+"]").remove()},adjustLanguageBox:function(){var n=this;n.captionsButton.find(".mejs-captions-selector").height(n.captionsButton.find(".mejs-captions-selector ul").outerHeight(!0)+n.captionsButton.find(".mejs-captions-translations").outerHeight(!0))},checkForTracks:function(){var n=this,t=!1;if(n.options.hideCaptionsButtonWhenEmpty){for(i=0;i<n.tracks.length;i++)if("subtitles"==n.tracks[i].kind){t=!0;break}t||(n.captionsButton.hide(),n.setControlsSize())}},displayCaptions:function(){if("undefined"!=typeof this.tracks){var n,t=this,i=t.selectedTrack;if(null!==i&&i.isLoaded){for(n=0;n<i.entries.times.length;n++)if(t.media.currentTime>=i.entries.times[n].start&&t.media.currentTime<=i.entries.times[n].stop)return t.captionsText.html(i.entries.text[n]).attr("class","mejs-captions-text "+(i.entries.times[n].identifier||"")),void t.captions.show().height(0);t.captions.hide()}else t.captions.hide()}},setupSlides:function(n){var t=this;t.slides=n;t.slides.entries.imgs=[t.slides.entries.text.length];t.showSlide(0)},showSlide:function(t){if("undefined"!=typeof this.tracks&&"undefined"!=typeof this.slidesContainer){var r=this,u=r.slides.entries.text[t],i=r.slides.entries.imgs[t];"undefined"==typeof i||"undefined"==typeof i.fadeIn?r.slides.entries.imgs[t]=i=n('<img src="'+u+'">').on("load",function(){i.appendTo(r.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()}):i.is(":visible")||i.is(":animated")||i.fadeIn().siblings(":visible").fadeOut()}},displaySlides:function(){if("undefined"!=typeof this.slides)for(var t=this,i=t.slides,n=0;n<i.entries.times.length;n++)if(t.media.currentTime>=i.entries.times[n].start&&t.media.currentTime<=i.entries.times[n].stop)return void t.showSlide(n)},displayChapters:function(){for(var t=this,n=0;n<t.tracks.length;n++)if("chapters"==t.tracks[n].kind&&t.tracks[n].isLoaded){t.drawChapters(t.tracks[n]);t.hasChapters=!0;break}},drawChapters:function(t){var i,e,r=this,u=0,f=0;for(r.chapters.empty(),i=0;i<t.entries.times.length;i++)e=t.entries.times[i].stop-t.entries.times[i].start,u=Math.floor(e/r.media.duration*100),(u+f>100||i==t.entries.times.length-1&&100>u+f)&&(u=100-f),r.chapters.append(n('<div class="mejs-chapter" rel="'+t.entries.times[i].start+'" style="left: '+f.toString()+"%;width: "+u.toString()+'%;"><div class="mejs-chapter-block'+(i==t.entries.times.length-1?" mejs-chapter-block-last":"")+'"><span class="ch-title">'+t.entries.text[i]+'<\/span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(t.entries.times[i].start)+"&ndash;"+mejs.Utility.secondsToTimeCode(t.entries.times[i].stop)+"<\/span><\/div><\/div>")),f+=u;r.chapters.find("div.mejs-chapter").click(function(){r.media.setCurrentTime(parseFloat(n(this).attr("rel")));r.media.paused&&r.media.play()});r.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvtt:{pattern_timecode:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(t){for(var u,f,e,i=0,r=mejs.TrackFormatParser.split2(t,/\r?\n/),o={text:[],times:[]};i<r.length;i++){if(u=this.pattern_timecode.exec(r[i]),u&&i<r.length){for(i-1>=0&&""!==r[i-1]&&(e=r[i-1]),i++,f=r[i],i++;""!==r[i]&&i<r.length;)f=f+"\n"+r[i],i++;f=n.trim(f).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1<\/a>");o.text.push(f);o.times.push({identifier:e,start:0===mejs.Utility.convertSMPTEtoSeconds(u[1])?.2:mejs.Utility.convertSMPTEtoSeconds(u[1]),stop:mejs.Utility.convertSMPTEtoSeconds(u[3]),settings:u[5]})}e=""}return o}},dfxp:{parse:function(t){var o,s,r,h;t=n(t).filter("tt");var f,c,i=0,l=t.children("div").eq(0),u=l.find("p"),a=t.find("#"+l.attr("style")),e={text:[],times:[]};if(a.length&&(o=a.removeAttr("id").get(0).attributes,o.length))for(f={},i=0;i<o.length;i++)f[o[i].name.split(":")[1]]=o[i].value;for(i=0;i<u.length;i++){if(r={start:null,stop:null,style:null},u.eq(i).attr("begin")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("begin"))),!r.start&&u.eq(i-1).attr("end")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i-1).attr("end"))),u.eq(i).attr("end")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("end"))),!r.stop&&u.eq(i+1).attr("begin")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i+1).attr("begin"))),f){s="";for(h in f)s+=h+":"+f[h]+";"}s&&(r.style=s);0===r.start&&(r.start=.2);e.times.push(r);c=n.trim(u.eq(i).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1<\/a>");e.text.push(c);0===e.times.start&&(e.times.start=2)}return e}},split2:function(n,t){return n.split(t)}};3!="x\n\ny".split(/\n/gi).length&&(mejs.TrackFormatParser.split2=function(n,t){for(var u=[],r="",i=0;i<n.length;i++)r+=n.substring(i,i+1),t.test(r)&&(u.push(r.replace(t,"")),r="");return u.push(r),u})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(n){return"undefined"==typeof n.enterFullScreen?null:mejs.i18n.t(n.isFullScreen?"Turn off Fullscreen":"Go Fullscreen")},click:function(n){n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}},{render:function(n){return mejs.i18n.t(n.media.muted?"Unmute":"Mute")},click:function(n){n.setMuted(n.media.muted?!1:!0)}},{isSeparator:!0},{render:function(){return mejs.i18n.t("Download Video")},click:function(n){window.location.href=n.media.currentSrc}}]});n.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(t){t.contextMenu=n('<div class="mejs-contextmenu"><\/div>').appendTo(n("body")).hide();t.container.bind("contextmenu",function(n){if(t.isContextMenuEnabled)return(n.preventDefault(),t.renderContextMenu(n.clientX-1,n.clientY-1),!1)});t.container.bind("click",function(){t.contextMenu.hide()});t.contextMenu.bind("mouseleave",function(){t.startContextMenuTimer()})},cleancontextmenu:function(n){n.contextMenu.remove()},isContextMenuEnabled:!0,enableContextMenu:function(){this.isContextMenuEnabled=!0},disableContextMenu:function(){this.isContextMenuEnabled=!1},contextMenuTimeout:null,startContextMenuTimer:function(){var n=this;n.killContextMenuTimer();n.contextMenuTimer=setTimeout(function(){n.hideContextMenu();n.killContextMenuTimer()},750)},killContextMenuTimer:function(){var n=this.contextMenuTimer;null!=n&&(clearTimeout(n),delete n,n=null)},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(t,i){for(var o,r=this,f="",e=r.options.contextMenuItems,u=0,s=e.length;s>u;u++)e[u].isSeparator?f+='<div class="mejs-contextmenu-separator"><\/div>':(o=e[u].render(r),null!=o&&(f+='<div class="mejs-contextmenu-item" data-itemindex="'+u+'" id="element-'+1e6*Math.random()+'">'+o+"<\/div>"));r.contextMenu.empty().append(n(f)).css({top:i,left:t}).show();r.contextMenu.find(".mejs-contextmenu-item").each(function(){var i=n(this),u=parseInt(i.data("itemindex"),10),t=r.options.contextMenuItems[u];"undefined"!=typeof t.show&&t.show(i,r);i.click(function(){"undefined"!=typeof t.click&&t.click(r);r.contextMenu.hide()})});setTimeout(function(){r.killControlsTimer("rev3")},100)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")});n.extend(MediaElementPlayer.prototype,{buildpostroll:function(t,i,r){var u=this,f=u.container.find('link[rel="postroll"]').attr("href");"undefined"!=typeof f&&(t.postroll=n('<div class="mejs-postroll-layer mejs-layer"><a class="mejs-postroll-close" onclick="$(this).parent().hide();return false;">'+u.options.postrollCloseText+'<\/a><div class="mejs-postroll-layer-content"><\/div><\/div>').prependTo(r).hide(),u.media.addEventListener("ended",function(){n.ajax({dataType:"html",url:f,success:function(n){r.find(".mejs-postroll-layer-content").html(n)}});t.postroll.show()},!1))}})}(mejs.$),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}}),function(n){var t=!1,r,i;typeof define=="function"&&define.amd&&(define(n),t=!0);typeof exports=="object"&&(module.exports=n(),t=!0);t||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var o,h,l,e,s;if(typeof document!="undefined"){if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(h=new Date,h.setMilliseconds(h.getMilliseconds()+f.expires*864e5),f.expires=h);try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(y){}return u=i.write?i.write(u,t):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",u,f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join("")}t||(o={});for(var a=document.cookie?document.cookie.split("; "):[],v=/(%[0-9A-Z]{2})+/g,c=0;c<a.length;c++){l=a[c].split("=");e=l.slice(1).join("=");e.charAt(0)==='"'&&(e=e.slice(1,-1));try{if(s=l[0].replace(v,decodeURIComponent),e=i.read?i.read(e,s):i(e,s)||e.replace(v,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(y){}if(t===s){o=e;break}t||(o[s]=e)}catch(y){}}return o}}return r.set=r,r.get=function(n){return r.call(r,n)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t(function(){})});(typeof Globals=="undefined"||Globals===null)&&(Globals={});Globals.Cookies={exists:function(n){return!Globals.Utilities.isUndefinedOrNull(Cookies.get(n))},createCookie:function(n,t,i){var r=0,u=!1,f=!1,e="/",o;Globals.Utilities.isUndefinedOrNull(i)||(Globals.Utilities.isUndefinedOrNull(i.IsPersistent)||(u=i.IsPersistent),Globals.Utilities.isUndefinedOrNull(i.Path)||(e=i.Path),u&&(r=365,Globals.Utilities.isUndefinedOrNull(i.NumberOfDays)||(r=i.NumberOfDays)),Globals.Utilities.isUndefinedOrNull(i.IsSecure)||(f=i.IsSecure));o={expires:r,secure:f,path:e};Cookies.set(n,t,o)},readCookie:function(n,t){var r,i;return Globals.Cookies.exists(n)&&(i=!0,Globals.Utilities.isUndefinedOrNull(t)||(i=t),r=i?Globals.Cookies.getParsedCookieData(n):Globals.Cookies.getStringifiedCookieData(n)),r},getParsedCookieData:function(n){var t=Cookies.getJSON(n);if(!Globals.Utilities.isUndefinedOrNull(t))return t},getStringifiedCookieData:function(n){var t=Cookies.get(n);if(!Globals.Utilities.isUndefinedOrNull(t))return t},deleteCookie:function(n,t){var i,r;Globals.Cookies.exists(n)&&(i="/",Globals.Utilities.isUndefinedOrNull(t)||(i=t),r={path:i},Cookies.remove(n,r))}};(typeof KnotiaInsights=="undefined"||KnotiaInsights===null)&&(KnotiaInsights={});KnotiaInsights.Tracker=function(){this.LocalStorageKeyPrefix="KnotiaInsights_";this.Tracker=0;this.MaxNumHoursToConsider=8;this.SavingIntervalPeriod=12e4;this.LocalStorageIsAvailable=!1;this.KnotiaInsightsLocalStorageKeys=[];this.FetchIDTextBoxID=""};Globals.Utilities.isUndefinedOrNull(document.KnotiaInsightsTracker)&&(document.KnotiaInsightsTracker=new KnotiaInsights.Tracker);KnotiaInsights.Tracker.prototype.enableTracker=function(){var n=Globals.Utilities.getMeContext("KnotiaInsightsTracker");document.addEventListener?document.addEventListener("click",function(n){Promise.resolve().then(function(){document.KnotiaInsightsTracker.logActivity(n)})}):document.attachEvent&&document.attachEvent("onclick",function(){document.KnotiaInsightsTracker.logActivity(event)})};KnotiaInsights.Tracker.prototype.logActivity=function(n){var r=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),t=n.target||n.srcElement,k=t.tagName.toLowerCase(),u,f,s,i,h,w,c,b;if(k==="a"&&(u=r.logThisEvent(t),u[0]&&(f=u[1],typeof glb_SiteElementsToTrack[f]!="undefined"))){var l=glb_SiteElementsToTrack[f],e=l.LogEntryName,o=l.TextElementID,a=new Date,d=Globals.Date.toYYYYMMDDHHMMTT(a),g=a.toISOString(),v=Globals.Utilities.generateGUID(),y=window.location.href,p=$('#divBodyContent P.medium span.graymedium:contains("Document ID:")');p!==null&&(s=p.text().replace("Document ID:","").trim(),s.trim().length>0&&(y=s));i={};h=t.text.trim();o.length>0&&(w=$("#"+o),Globals.Utilities.isUndefinedOrNull(w.val())||(h=$("#"+o).val().trim()));i[e]={EventID:v,Link:t.href.toLowerCase().trim(),Text:h,DateAccessed:d,Page:y};typeof $(t).attr("type")!="undefined"&&(i[e].Type=$(t).attr("type").trim());typeof $(t).attr("group")!="undefined"&&(i[e].Group=$(t).attr("group").trim());c=JSON.stringify(i);r.LocalStorageIsAvailable?(b=r.LocalStorageKeyPrefix+v+"_"+g,window.localStorage.setItem(b,c)):r.SaveClickedItemDetails(c);return}};KnotiaInsights.Tracker.prototype.logThisEvent=function(n){var o=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i=!1,e=n.tagName.toLowerCase(),r="",t,u,f;if(e==="a")for(t in glb_SiteElementsToTrack)u=$(n).hasClass(t),f=$(n).closest("div."+t).length>0,(u||f)&&(r=t,i=!0);return[i,r]};KnotiaInsights.Tracker.prototype.checkIfReactReduxEventShouldBeLogged=function(n){return glb_EnableSiteTracking&&!Globals.Utilities.isUndefinedOrNull(glb_SiteElementsToTrackByLogEntryName[n])?!0:!1};KnotiaInsights.Tracker.prototype.logReactReduxEvent=function(n){var t,i,r;try{if(t=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i=n.eventType,!t.checkIfReactReduxEventShouldBeLogged(i))return;r=t.getBaseEventObject(n);t.SaveEventObject(i,r)}catch(u){}};KnotiaInsights.Tracker.prototype.getBaseEventObject=function(n){var t=Globals.Utilities.generateGUID(),i=window.location.href;return{EventID:t,Data:n,DateAccessed:null,Page:i}};KnotiaInsights.Tracker.prototype.SaveEventObject=function(n,t){var i=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),f=new Date,o=f.toISOString(),r,u,e;t.DateAccessed=Globals.Date.toYYYYMMDDHHMMTT(f);r={};r.FeatureTracking=t;u=JSON.stringify(r);i.LocalStorageIsAvailable?(e=i.LocalStorageKeyPrefix+t.EventID+"_"+o,window.localStorage.setItem(e,u)):i.SaveClickedItemDetails(u)};KnotiaInsights.Tracker.prototype.SaveClickedItemDetailsToLocalStorage=function(){var n,t,f;if(!window.location.href.toLowerCase().includes("login")&&(n=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),window.localStorage.length>0)){for(var i=[],r=Object.keys(window.localStorage),u=r.length;u--;)t=r[u],t.indexOf(n.LocalStorageKeyPrefix)===0&&(f=t.split("_")[2],n.discardItemLogged(f)||(n.KnotiaInsightsLocalStorageKeys[n.KnotiaInsightsLocalStorageKeys.length]=t,i[i.length]=window.localStorage.getItem(t)));n.KnotiaInsightsLocalStorageKeys.length>0&&n.SaveClickedItemDetails(i)}};KnotiaInsights.Tracker.prototype.SaveClickedItemDetail=function(n,t){var r=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i={};i[n]={EventID:Globals.Utilities.generateGUID(),Text:t};r.SaveClickedItemDetails(JSON.stringify(i))};KnotiaInsights.Tracker.prototype.SaveClickedItemDetails=function(n){var t=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i=n,r;typeof n!="string"&&(i=n.join("|"));r={ClickedItemDetails:i};Globals.Ajax.postRequest("/Services/KnotiaInsightsService.svc/SaveClickedItemDetails",r,t.successfulLogging,t.failedDisplayGrid,"SaveClickedItemDetails")};KnotiaInsights.Tracker.prototype.removeFromLocalStorage=function(n){for(var i=n.length,t=0;t<i;t++)window.localStorage.removeItem(n[t])};KnotiaInsights.Tracker.prototype.successfulLogging=function(){var n=Globals.Utilities.getMeContext("KnotiaInsightsTracker");n.LocalStorageIsAvailable&&n.KnotiaInsightsLocalStorageKeys.length>0&&n.removeFromLocalStorage(n.KnotiaInsightsLocalStorageKeys);return};KnotiaInsights.Tracker.prototype.failedLogging=function(){return};KnotiaInsights.Tracker.prototype.discardItemLogged=function(n){var t=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i=new Date,r=new Date(n),u=Math.abs(i.getTime()-r.getTime()),f=parseInt(u/36e5%24);return f<=t.MaxNumHoursToConsider?!1:!0};KnotiaInsights.Tracker.prototype.isSupported=function(){try{var n=window.localStorage;const t=Globals.Utilities.generateGUID();return n.setItem(t,t),n.removeItem(t),!0}catch(t){return!1}};KnotiaInsights.Tracker.prototype.initializeGlobalSiteElementsToTrackByLogEntryName=function(){var t,n;if(window.glb_SiteElementsToTrackByLogEntryName={},!Globals.Utilities.isUndefinedOrNull(window.glb_SiteElementsToTrack)){for(t in glb_SiteElementsToTrack)n=glb_SiteElementsToTrack[t],!Globals.Utilities.isUndefinedOrNull(n)&&!Globals.Utilities.isUndefinedOrNull(n.LogEntryName)&&n.LogEntryName.length>0&&(glb_SiteElementsToTrackByLogEntryName[n.LogEntryName]=n);return}};KnotiaInsights.Tracker.prototype.initializeSessionTracker=function(){var n=Globals.Utilities.getMeContext("KnotiaInsightsTracker");typeof glb_EnableSiteTracking!="undefined"&&glb_EnableSiteTracking===1&&(n.initializeGlobalSiteElementsToTrackByLogEntryName(),n.enableTracker(),n.LocalStorageIsAvailable=n.isSupported(),n.LocalStorageIsAvailable&&(window.onbeforeunload=function(){n.SaveClickedItemDetailsToLocalStorage()},window.setInterval(function(){n.SaveClickedItemDetailsToLocalStorage()},n.SavingIntervalPeriod)))};(glb_EnableKnotiaNext===0||glb_EnableResearchUX===0)&&document.addEventListener("DOMContentLoaded",function(){var n=Globals.Utilities.getMeContext("KnotiaInsightsTracker");n.initializeSessionTracker()})