var OE={},UrlVars,WEEdSiteCommon;$(document).ready(function(){OE.CssEvents.initialize();$.ajaxSetup({cache:!1})});$.fn.preloadImg=function(){var n=[];this.each(function(){n.push($("").attr("src",this))})};typeof jQuery.uaMatch=="undefined"&&(jQuery.uaMatch=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}});jQuery.browser||(matched=jQuery.uaMatch(navigator.userAgent),browser={},matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),jQuery.browser=browser);String.prototype.trim=function(){return this.replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")};String.prototype.startsWith=function(n){return this.match("^"+n)==n};String.prototype.endsWith=function(n){return this.match(n+"$")==n};UrlVars={};window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,t,i){i.indexOf("#")>0&&(i=i.substr(0,i.indexOf("#")));UrlVars[t]=i});OE.Common={getLocString:function(n){var t=WEInfoPage.Culture;for(var i in n.Items)if(t&&i.toLowerCase()==t.toLowerCase())return n.Items[i];return n.Items.DEFAULT},setLocString:function(n,t){var i=WEInfoPage.Culture;for(var r in n.Items)if(i&&r.toLowerCase()==i.toLowerCase()){n.Items[r]=t;return}n.Items.DEFAULT=t},stopPrpg:function(n){return n=n||window.event,n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation(),!1},htmlEncode:function(n){return n?$("
").text(n).html():""},htmlDecode:function(n){return n?$("").html(n).text():""}};OE.Common.Link={getPath:function(n){var t=OE.Common.getLocString(n.Links);return OE.Common.Link._convertToRelative(t)},getHref:function(n,t){var i="_top",r;t!=null&&(i=t.Target);switch(i){case"_popup":return r="this.href,'',"+t.PopupWidth+","+t.PopupHeight+","+t.PopupTop+","+t.PopupLeft+",'toolbar="+this._boolToHtml(t.PopupToolbar)+",location="+this._boolToHtml(t.PopupLocation)+",directories="+this._boolToHtml(t.PopupDirectories)+",menubar="+this._boolToHtml(t.PopupMenubar)+",status="+this._boolToHtml(t.PopupStatus)+",scrollbars="+this._boolToHtml(t.PopupScrollbars)+",resizable="+this._boolToHtml(t.PopupResizable)+"'",'onclick="return OE.Navigate.popup(event,'+r+')" href="'+n+'"';case"_blank":return'href="'+n+'" onclick="return OE.Navigate.blank(event, this.href)"';default:return'href="'+n+'"'}},_boolToHtml:function(n){return n==!0?"yes":"no"},_convertToRelative:function(n){return n.startsWith("file:///")?n:n.startsWith("http://")||n.startsWith("https://")?n:n!=""?WEInfoPage.RelativePath+n:""}};WEEdSiteCommon={GetLocalizableString:OE.Common.getLocString,LinkGetPath:OE.Common.Link.getPath};OE.CssEvents={initialize:function(){OE.CssEvents.load();$("div.BaseDiv").each(function(){OE.CssEvents.loadGlobal($(this));$.browser.msie&&parseInt($.browser.version)==7&&OE.CssEvents._autoHeightHack($(this))})},loadGlobal:function(n){var i=n.find(".OESZG_"+n.attr("id")+".OEGd"),t;(i.length>0||n.hasClass("OEGd"))&&(n.bind("mouseup.CssEvents",function(){i.add($(this)).removeClass("OE_Down")}),n.bind("mousedown.CssEvents",function(){i.add($(this)).addClass("OE_Down")}));t=n.find(".OESZG_"+n.attr("id")+".OEGo");(t.length>0||n.hasClass("OEGo"))&&(n.bind("mouseenter.CssEvents",function(){t.add($(this)).addClass("OE_Over")}),n.bind("mouseleave.CssEvents",function(){t.add($(this)).removeClass("OE_Over OE_Down")}))},removeGlobal:function(n,t,i){WEInfoPage.RenderMode=="Editor"?(n.hasClass(i)&&n.removeClass(i),t.each(function(){$(this).hasClass(i)&&$(this).removeClass(i)})):t.add(n).removeClass(i)},loadAll:function(){OE.CssEvents.load();$("div.BaseDiv").each(function(){OE.CssEvents.loadGlobal($(this))})},unLoadAll:function(){$(".OEd, .OEo, .OEGd, .OEGo").unbind(".CssEvents").removeClass("OE_Down OE_Over")},load:function(){var t=$(".OEd"),n;t.bind("mouseup.CssEvents",function(){$(this).removeClass("OE_Down")});t.bind("mousedown.CssEvents",function(){$(this).addClass("OE_Down")});n=$(".OEo");n.bind("mouseenter.CssEvents",function(){$(this).addClass("OE_Over")});n.bind("mouseleave.CssEvents",function(){$(this).removeClass("OE_Over OE_Down")})},_autoHeightHack:function(n){n.each(function(){var n=$(this).innerHeight();$(this).children("div").each(function(){var i=$(this).css("bottom"),t;i!="auto"&&(t=parseInt(i)+parseInt($(this).css("top")),t>0?$(this).height(n-t):$(this).height(n+Math.abs(t)))})})}};OE.Text={ExecutionOnlyOnline:"Unable to perform this action from openElement.\r\nYou must publish your page online.",NoResponse:"An error was encountered while sending email!<br /> Please try again later or contact the server administrator.",NoPHP:"Unable to perform this action.\r\nPHP is not installed on your web server. \r\nPlease contact your host to activate it.\r\n\r\nNote: If uploading outside of openElement, enter your PHP version in Preferences, 'Advanced' tab. Then re-save this page before uploading it.",NoMailFunction:"The form was not sent!