var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); if(jQuery(function(o){function e(e){return body=parseInt(o("body").css(e)||0),html=parseInt(o("html").css(e)||0),body+html}o(document).on("eboxInit",function(){$mats=o(".rstboxes .eb-pageslide"),$mats.length&&($mats.each(function(e,t){$mat=o(t),$mat.css({height:$mat.css("height")}),$mat.on("beforeOpen",function(){window.scrollTo(0,0)}),$mat.on("afterOpen",function(){o("html").addClass("eboxWelcomeMat")}).on("afterClose",function(){o("html").removeClass("eboxWelcomeMat")})}),o("
").addClass("rstboxes eboxWelcomeMats").prependTo("body").css({margin:[-(e("padding-top")+e("margin-top")+e("border-top-width")),-(e("padding-right")+e("margin-right")+e("border-right-width")),0,-(e("padding-left")+e("margin-left")+e("border-left-width"))].join("px ")+"px"}),$mats.appendTo(o("body .eboxWelcomeMats")))})}),void 0===rstbox)var rstbox={};void 0===rstbox.jQuery&&(rstbox.jQuery=jQuery.noConflict()),function(h){h(document).ready(function(){var t="[RSTBox]",e=h(".rstboxes").last();if(e.children().length){var s="rstbox_"+e.data("site")+"_",b=(h(window).height(),h(document).height(),e.data("debug"));h("*[data-ebox], *[data-ebox-cmd]").on("click",function(e){if(boxID=parseInt(h(this).data("ebox")),box=boxID?h(".rstboxes > #rstbox_"+boxID).first():h(this).closest("div.rstbox"),box){switch(h(this).data("ebox-cmd")){case"open":box.trigger("open");break;case"close":box.trigger("close");break;case"closeKeep":box.trigger("closeKeep");break;default:box.is(":visible")?box.trigger("close"):box.trigger("open")}"0"!=h(this).data("ebox-prevent")&&e.preventDefault()}}),h("*[data-rstbox], *[data-rstbox-command], *[data-rstbox-cmd]").on("click",function(e){if(boxID=parseInt(h(this).data("rstbox")),boxID?box=h(".rstboxes > #rstbox_"+boxID).first():box=h(this).closest("div.rstbox"),box){var t=h(this).data("rstbox-cmd");switch(boxCommand=void 0!==t&&!1!==t?t:h(this).data("rstbox-command"),boxCommand){case"open":box.trigger("open");break;case"close":box.trigger("close");break;case"closeKeep":box.trigger("closeKeep");break;default:box.is(":visible")?box.trigger("close"):box.trigger("open")}"0"!=h(this).data("rstbox-prevent")&&e.preventDefault()}}),e.find("> .rstbox").each(function(){var n=h(this),i=n.attr("id").replace("rstbox_",""),e=0,t=n.data("trigger").split(":")[0],o="pageload"!=t&&n.data("trigger").split(":")[1],r=v(i),a="1"==x(n,"testmode",0);if(n.on("open",function(){y(n,!0)}),n.on("close",function(){y(n,!1)}),n.on("closeKeep",function(){!function(e){y(e,!1),a||(cookieType=e.data("cookietype"),"session"==cookieType&&(m(i,"session"),p("Box "+i+" Session cookie set")),"ever"==cookieType&&(m(i,"ever"),p("Box "+i+" Cookie set for ever")),"seconds"!=cookieType&&"minutes"!=cookieType&&"days"!=cookieType&&"hours"!=cookieType||(cook=parseInt(e.data("cookietime")),0",{id:"overlay_"+n.attr("id"),class:"rstbox_overlay",css:{"background-color":overlay[0]}}).insertAfter(n),overlayClick=parseInt(overlay[1]),overlayClick&&overlayObject.on("click",function(){n.trigger("closeKeep")}),n.on("beforeClose",function(){n.next(".rstbox_overlay").remove()})))}),n.on("beforeOpen",function(){parseInt(x(n,"preventpagescroll",0))&&h("html").addClass("eboxPageNoScroll")}),n.on("afterOpen",function(){n.addClass("rstbox_visible"),h("body").addClass(n.attr("id")),p("Box "+i+" opened")}),n.on("afterClose",function(){n.removeClass("rstbox_visible"),h("body").removeClass(n.attr("id")),h("html").removeClass("eboxPageNoScroll"),p("Box "+i+" closed")}),a&&p("Box "+i+" is on test mode"),!r||a){if("element"==t){if(0==(u=h(o).filter(":first")).length)return void p("Box "+i+" Can't find element \""+o+'". Not showing box.');var s="load resize scroll.box"+parseInt(i),l=0!=parseInt(x(n,"autohide",0));(c=function(){v(i)||(e&&clearTimeout(e),e=window.setTimeout(function(){!function(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(u)?y(n,!1):(l||h(window).off(s,c),y(n,!0))},50))})(),h(window).on(s,c),n.on("afterClose",function(){v(i)&&(p("Box "+i+" Unbinding Scroll Check"),h(window).off(s,c))})}if("pageheight"==t){s="load resize scroll.box"+parseInt(i),l=0!=parseInt(x(n,"autohide",0));var c,d=parseInt(o);p("Box "+i+" is going to be triggered on "+d+"% of page height."),(c=function(){v(i)||(e&&clearTimeout(e),e=window.setTimeout(function(){var e=h(window).scrollTop(),t=h(document).height(),o=h(window).height();d