text: function Variant(){function a(){$(".viu").html($("#veu").html()),cb=$("#veu"),db=$(".viu"),eb="undefined"!==$("body").attr("mrv_namespace")?$("body").attr("mrv_namespace"):"mrv_variant.default",fb=$("body").attr("mrv_contentTarget")?$("#veu "+$("body").attr("mrv_contentTarget")):cb,gb=$("body").attr("mrv_contentTarget")?$(".viu "+$("body").attr("mrv_contentTarget")):db,hb=$("body").attr("mrv_navTarget")?$("#veu "+$("body").attr("mrv_navTarget")):fb,mrv_pageNavTarget=$("body").attr("mrv_navTarget")?$(".viu "+$("body").attr("mrv_navTarget")):gb,ib=$("body").attr("mrv_footerTarget")?$("#veu "+$("body").attr("mrv_footerTarget")):fb,jb=$("body").attr("mrv_footerTarget")?$(".viu "+$("body").attr("mrv_footerTarget")):gb}function b(){var a;$(".vhv").css("height",$(window).height()),a=$(".vlv").height()-$(".vlv .vlq").height()-$(".vlv .vls").height()-$(".vlv .vlw").height()-2*$(".vlv .vho").height()-$(".vac").height()-64,$(".vem").css("max-height",a);var b=$(window).height()-$(".vem").outerHeight(!1)-$(".vlv .vls").height()-$(".vlz").height()-9;$(".vgm").css("height",b);var c=$(window).height()-$(".vlo .vls").height()-$(".vlo .vlq").height()-$(".vgc").height()-32;$(".vfw").css("max-height",c),fa()}function c(a){var c,d,e=$("#"+a).find("section, header, footer").clone(),f=g($(e));ib.selector!=fb.selector?$(e).addClass(a+"-"+f).appendTo(fb):(c=$(fb).find("footer"),c.length?$(e).addClass(a+"-"+f).insertBefore(c):$(e).addClass(a+"-"+f).appendTo(fb)),$(".vem").append('<div class="vaa data-vfs="'+a+'" vbq="'+a+"-"+f+'"><div class="vab"><span class="vir" contenteditable="true">'+$("#"+a).attr("vbr")+'</span></div><i class="vca variant-icon variant-close-circle" vbq="'+a+"-"+f+'"></i></div>'),ha(),Z(),h(a+"-"+f),b(),d=$(".vem"),layoutMapHeight=d[0].scrollHeight,d.animate({scrollTop:layoutMapHeight},480)}function d(a,b){if($("#veu nav, .viu nav").remove(),"vir"==b){var c=$("#"+a).clone();$(c).find("script.options").remove(),hb.prepend(c.html()),hb.find("nav").addClass("vir").attr("nav-id",a),g(hb.find("nav")),sa(a)}"vhz"==b&&(c=Va($("#vbn [via="+a+"]").get(0),!0),hb.prepend(c),sa($("#vbn [via="+a+"]").attr("nav-id"))),Z(),h()}function e(a,b){if($("#veu footer").remove(),"vir"==b){var c=$("#"+a).html();ib.append(c),ib.find("footer").addClass("vir"),g(ib.find("footer"))}"vhz"==b&&(c=Va($("#vbl [vhy="+a+"]").get(0),!0),ib.append(c)),Z(),h()}function f(){var a=$(gb.selector),b=$(fb.selector),c=a.find("footer"),d=b.find("footer");$(".vem .vaa").each(function(){var e=$(this).attr("vbq"),f=b.find("."+e),g=f.clone(),h=b.find("[vik="+e+"]"),i=h.clone();h.remove(),d.length?i.insertBefore(d):i.appendTo(b),f.remove(),d.length?g.insertBefore(d):g.appendTo(b),f=a.find("."+e),g=f.clone(),h=a.find("[vik="+e+"]"),i=h.clone(),h.remove(),c.length?i.insertBefore(c):i.appendTo(a),f.remove(),c.length?g.insertBefore(c):g.appendTo(a)}),Z(),h()}function g(a){var b=(new Date).getTime(),c="vjs-"+b;return $(a).is("section, nav, header, footer, .divider-background")&&($(a).attr("vic",c),$(a).addClass(c)),$(a).find("p, span, a, h1, h2, h3, h4, h5, h6, strong, em, ul, li, div, i, img, section, header, figure, video, iframe, input, textarea, blockquote, figcaption, tbody, tr, td, th, form, label, address").not(".vog").each(function(a){var b=c+"-"+a;$(this).attr("vic",b),$(this).addClass(b),$(this).is("nav, nav li, .slides > li, .slides .owl-item > li, ul, div, i, img, section, header, figure, .veo, video, iframe, input, textarea, form, tbody, tr, td, .vjx")||($(this).addClass("vir"),$(this).attr("contenteditable","true")),$(this).is("a, strong, em, i")||$(this).parent().removeAttr("contenteditable")}),b}function h(a){function b(a){var b=".viu";"undefined"!=typeof a&&(b=".viu "+a),$(b).find("[no-src]").each(function(){$(this).attr("src",$(this).attr("no-src")).removeAttr("no-src")})}var c=$(".viu").get(0).scrollTop;$(".viu "+$("body").attr("mrv_contentTarget"));$(".viu").empty().html($("#veu").html()),setTimeout(function(){"undefined"==typeof mr?(b(),reInit(".viu")):(b(),mr.documentReady(mr.setContext(".viu")),mr.windowLoad(mr.setContext(".viu"))),pa(),qa(),ga(),$(".viu .embedded-video-holder").each(function(){$(this).addClass("vju")}),Ia(),$(".viu").get(0).scrollTop=c,$(".viu .vnx").trigger("mouseenter")},100)}function i(a){return String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function j(){$(".global-vfr").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function k(a){$(".vfc").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){$(".vga").val(""),setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function l(){var a,b=(new Date).getTime(),c="via-"+b,d=$(".vgb").val();$(".vfj").closest(".vho").find(".vly").text(d),$(".vgb").val(""),$("#veu nav").removeClass("vir").addClass("vhz").addClass(c).attr("via",c).attr("vio",d),$(".viu nav").removeClass("vir").addClass("vhz").addClass(c).attr("via",c).attr("vio",d),$("#vbn").append($("#veu nav").clone()),a=$("#vbn").html(),$.localStorage(eb+".vbo",a),m($("."+c))}function m(a){$(".vfj").append('<li class="vfi" nav-id="'+$(a).attr("via")+'" vit="vhz">'+$(a).attr("vio")+'<span class="vby oi" data-glyph="x"></span></li>')}function n(){$("#vbn").append($.localStorage(eb+".vbo")),$("#vbn nav").each(function(){m($(this))})}function o(){var a=$(".viu nav"),b=a.attr("via");$("#veu ."+b).html(a.html()).attr("class",a.attr("class")),$("#vbn ."+b).html(a.html()).attr("class",a.attr("class")),$("#vbn .vjb").removeClass("vjb"),$.localStorage(eb+".vbo",$("#vbn").html())}function p(){var a=$(".viu footer"),b=a.attr("vhy");$("#veu ."+b).html(a.html()),$("#vbl ."+b).html(a.html()),$("#vbl .vjb").removeClass("vjb"),$.localStorage(eb+".vbm",$("#vbl").html())}function q(a){$(".vfb").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){$(".vfy").val(""),setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function r(){var a,b=(new Date).getTime(),c="vhy-"+b,d=$(".vfz").val();$(".vdm").closest(".vho").find(".vly").text(d),$(".vfz").val(""),$("#veu footer").removeClass("vir").addClass("vhz").addClass(c).attr("vhy",c).attr("vie",d),$(".viu footer").removeClass("vir").addClass("vhz").addClass(c).attr("vhy",c).attr("vie",d),$("#vbl").append($("#veu footer").clone()),a=$("#vbl").html(),$.localStorage(eb+".vbm",a),s($("."+c))}function s(a){$(".vdm").append('<li class="vdl" vid="'+$(a).attr("vhy")+'" vdn="'+$(a).attr("vhy")+'" vit="vhz">'+$(a).attr("vie")+'<span class="vbx oi" data-glyph="x"></span></li>')}function t(){$("#vbl").append($.localStorage(eb+".vbm")),$("#vbl footer").each(function(){s($(this))})}function u(){$(".vjq").removeClass("vgq"),$(".vad").toggleClass("vgq")}function v(a){$(".vcw").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){$(".vgp").addClass("vih");var c=$("."+a);c.hasClass("ven")?$(".vcq").text("for Lightbox Image"):Y(),$(".vcu").val($("."+a).attr("href").replace("../img/","img/")),$(".vcv").val(a),$(".vcz").removeAttr("selected"),"undefined"!=typeof $("."+a).attr("target")?$(".vcy").val($("."+a).attr("target")):$(".vcy").val("_self"),setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function w(a){$(".vcl").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){$(".vdx").html($("#vdp").html()),$(".vcp").attr("src",$("."+a).attr("src")),$(".vcm .veb").text($("."+a).get(0).naturalWidth+"x"+$("."+a).get(0).naturalHeight+" pixels"),$(".vco").val($("."+a).attr("src").replace("../img/","img/")),$(".vck").val(a),$(".vcf").val($("."+a).attr("alt")),$(".vdx .vdy").each(function(a){var a=$(this).find("img").get(0),b=$(this).find(".vec");b.text(a.naturalWidth+"x"+a.naturalHeight)}),setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){O(),$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function x(a){$(".vcd").modal({autoResize:!0,overlayClose:!0,opacity:0,minHeight:620,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){$("#vgo").val(a),setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),Na(),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function y(a){$(".vde").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){$(".vdd").val(a),$(".vda").val($("."+a+' > source[type="video/mp4"]').attr("src").replace("../video/","video/")),$(".vdg").val($("."+a+' > source[type="video/webm"]').attr("src").replace("../video/","video/")),$(".vdb").val($("."+a+' > source[type="video/ogg"]').attr("src").replace("../video/","video/")),setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function z(){$(".vge").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){$(".vgf").val(""),setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function A(a,c){a="undefined"!=typeof a?a:"",c="undefined"!=typeof c?c:"",$(".vag").text(a),$(".vae").html(c),$(".vaf").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function B(a,b,c){var d,e,f,g,h=b||a.data("vip");d=$(a).find(h.selector+"["+h.attribute+"]").length?$("#veu "+$(a).attr("vic")).find(h.selector+"["+h.attribute+"]"):$("#veu ."+$(a).attr("vic")),f="undefined"!=typeof h.modalInputIcon?h.modalInputIcon:"pencil",g="undefined"!=typeof h.refresh?h.refresh:"false",e=d.attr(h.attribute),$(".vbk").text(h.modalTitle),$(".vbh").text(h.modalIntro),$(".vbf").text(h.modalInputLabel),$(".vkh").attr("data-glyph",f),$(".vbg").val(e),$(".vbe").val($(d).attr("vic")).attr("vnn",g),$(".vbc").val(h.attribute),$(".vbk").text(h.modalTitle),"undefined"!=typeof c&&c===!0?C():$(a).is("section, header")?$(".vgk").text(h.buttonText).attr("data-glyph",f).removeClass("vih"):$(".vdh").text(h.buttonText).attr("data-glyph",f).removeClass("vih")}function C(){$(".vbi").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}})}function D(){var a=$("#veu ."+$(".vbe").val()),b=$(".vbg").val(),c=$(".vbc").val();$(a).closest("[data-vip]").data("vip");-1!==b.indexOf("<")&&(!$(b).is("iframe")||"src"!==c&&"no-src"!==c&&"data-src"!==c||(b=$(b).attr("src"),"//"===b.substring(0,2)&&(b="https:"+b),-1!==b.indexOf("youtube.com")&&(b+="?showinfo=0&rel=0&modestbranding=1",a.hasClass("youtube-bg-iframe")&&(b+="&enablejsapi=1&autoplay=1&controls=0&loop=1&iv_load_policy=3")),-1!==b.indexOf("vimeo.com")&&(b+="?badge=0&title=0&byline=0"))),$(a).is("iframe")&&"no-src"==c?($(a).attr(c,b),$(".viu ."+$(".vbe").val()).attr("src",b)):($(a).attr(c,b),$(".viu ."+$(".vbe").val()).attr(c,b)),Z(),"true"===$(".vbe").attr("vnn")&&h(a.attr("vic")),$(".vbe").removeAttr("refresh")}function E(a){var b,c,d,e;return $("#veu ."+a).attr("vht")?a="parent"==$("#veu ."+a).attr("vht")?$("#veu ."+a).parent().attr("vic"):$("#veu ."+a).closest($("#veu ."+a).attr("vht")).attr("vic"):$("#veu ."+a).closest(".vpe").length&&(a=$("#veu ."+a).closest(".vpe").attr("vic")),b=$(".viu ."+a).not("ul.slides .clone ."+a).clone(),c=$("#veu ."+a).clone(),d=(new Date).getTime(),e="vjs-"+d,b.find(".vnw").remove(),b.attr("vic",e),c.attr("vic",e),b.alterClass("vjs-*",""),c.alterClass("vjs-*",""),b.addClass(e),c.addClass(e),b.find("p, span, a, h1, h2, h3, h4, h5, h6, strong, em, ul, li, div, i, img, iframe, blockquote, figcaption, tbody, tr, td, th, form, label, address").each(function(a){var b="vjs-"+d+"-"+a;$(this).attr("vic",b),$(this).alterClass("vjs-*",""),$(this).addClass(b)}),c.find("p, span, a, h1, h2, h3, h4, h5, h6, strong, em, ul, li, div, i, img, iframe, blockquote, figcaption, tbody, tr, td, th, form, label, address").each(function(a){var b="vjs-"+d+"-"+a;$(this).attr("vic",b),$(this).alterClass("vjs-*",""),$(this).addClass(b)}),b.addClass("vpf").insertAfter($(".viu ."+a)),c.insertAfter($("#veu ."+a)),c.insertAfter($("#vbn ."+a)),Z(),$(".vhw").hide(),$("#veu ."+a).is(lb)?void h(a):void $(".viu ."+a).parents().each(function(){return $(this).is(mb)?(h(a),!1):void 0})}function F(a,b){var c=$(".viu ."+a).parents(),d=$("#veu ."+a).is(lb)?!0:!1;$("#veu ."+a).attr("vht")?a="parent"==$("#veu ."+a).attr("vht")?$("#veu ."+a).parent().attr("vic"):$("#veu ."+a).closest($("#veu ."+a).attr("vht")).attr("vic"):$("#veu ."+a).closest(".vpe").length&&(a=$("#veu ."+a).closest(".vpe").attr("vic")),$("#veu ."+a).attr("vjw")?also=$("#veu ."+a).closest("nav, section, header, footer").find($("#veu ."+a).attr("vjw")).attr("vic"):also=a,b="undefined"!=typeof b?!0:!1,b===!0&&($(".viu ."+a).remove(),$("#veu ."+a).remove()),$(".vdv").length?($(".viu ."+a+", .viu ."+also).addClass("vjb").removeClass("vjm"),$("#veu ."+a+", #veu ."+also).addClass("vjb").removeClass("vjm")):($(".viu ."+a+", .viu ."+also).addClass("vib").removeClass("vjm"),$("#veu ."+a+", #veu ."+also).addClass("vib").removeClass("vjm")),d?h(a):c.each(function(){return $(this).is(mb)?(h(a),!1):void 0}),Z(),$(".vhw").hide()}function G(a){var b=$("#veu ."+a),c=$(".viu ."+a),d=$("#veu ."+Ua(b)),e=$(".viu ."+Ua(c));b.is(":first-child")||(b.detach().insertBefore(d),c.detach().find(".vnw").remove(),c.insertBefore(e),b.is(lb)?h(a):c.parents().each(function(){return $(this).is(mb)?(h(a),!1):void 0}))}function H(a){var b=$("#veu ."+a),c=$(".viu ."+a),d=b.next(),e=c.next();b.is(":last-child")||(b.detach().insertAfter(d),c.detach().find(".vnw").remove(),c.insertAfter(e),b.is(lb)?h(a):c.parents().each(function(){return $(this).is(mb)?(h(a),!1):void 0}))}function I(a){if($(a).siblings().length)return void $(a).remove();if($(a).parent().length){var b=$(a).parent();return $(a).remove(),I(b)}}function J(){var a=$("."+$(".vcv").val()),b=$(".vcu").val(),c=$(".vcy").val();a.hasClass("ven")&&(a.find("img[alt]").length&&a.attr("data-title",a.find("img").attr("alt")),"img/"==b.substring(0,4)&&(b=b.replace("img/","../img/"))),a.removeClass("inner-link").attr("href",b).attr("target",c),-1!=b.indexOf("#")&&a.addClass("inner-link"),Z()}function K(){var a=$(".vco").val(),b=$("."+$(".vck").val());refreshTarget=$(".vck").val(),"img/"==a.substring(0,4)&&(a=a.replace("img/","../img/")),b.attr("src",a),b.attr("alt",$(".vcf").val()),b.closest("a.ven").length&&b.closest("a.ven").attr("data-title",b.attr("alt")).attr("href",a),b.is(".background-image, .background-image-holder img")?h(refreshTarget):b.parents().find(mb).length&&h(refreshTarget),Z()}function L(){var a=$(".vda").val(),b=$(".vdg").val(),c=$(".vdb").val(),d=$("."+$(".vdd").val()),e=$(".vdd").val();a.length&&"video/"==a.substring(0,6)&&(a=a.replace("video/","../video/")),b.length&&"video/"==b.substring(0,6)&&(b=b.replace("video/","../video/")),c.length&&"video/"==c.substring(0,6)&&(c=c.replace("video/","../video/")),d.find('source[type="video/mp4"]').attr("src",a),d.find('source[type="video/webm"]').attr("src",b),d.find('source[type="video/ogg"]').attr("src",c),h(e),Z()}function M(a){var b,c,d,e=a.target.files;for(d=$(".vdx .vmh").first(),d.children().length>d.next(".vdx .vmh").children().length&&(d=d.next(".vdx .vmh")),d.children().length>d.next(".vdx .vmh").children().length&&(d=d.next(".vdx .vmh")),b=0;c=e[b];b++)$('#vdp [vis="'+c.name+'"]').length||($('#vdp [vis="'+c.name+'"]').remove(),$(d).append('<div class="vdy"><img class="vcj" src="../img/'+c.name+'" vis="'+c.name+'" onerror="window.mr_variant.chooserImageError(this)"/><span class="vjn"></span><span class="vec"></span></div>')),d=$(d).is(".vdx .vmh:last")?$(".vdx .vmh:first"):$(d).next(".vdx .vmh");O()}function N(){var a=$("<div />").addClass("vmh"),b=$("<div />").addClass("vmh"),c=$("<div />").addClass("vmh"),d="";if($.localStorage(eb+".gallery.images"))$("#vdp").html($.localStorage(eb+".gallery.images")),$("#vdp div").each(function(){$(this).find("img").length||$(this).remove(),$(this).hasClass("no-image")&&$(this).remove()});else{var e=$(".vdz").attr("vbv").split(",");e.forEach(function(e,f){d='<div class="vdy"><img class="vcj" delay-src="../img/'+e+'" vis="'+e+'" onerror="window.mr_variant.defaultImageError(this)"/><span class="vec"></span></div>',f%3===0?c.append(d):f%2===0?b.append(d):a.append(d),$("#vdp").append(a).append(b).append(c)})}}function O(){$.localStorage(eb+".gallery.images",$(".vdx").html()),$("#vdp").html($(".vdx").html())}function P(a){var b=$(a).find("img");b.attr("src",""),b.attr("src","../img/"+b.attr("vis")),b.css("display","inline"),$(a).removeClass("no-image"),$(a).find(".vjn, .vec").html("")}function Q(){var a,b="",c=$('<ul class="voj">'),d=$('<ul class="variant-icon-sets-mrv">');if($("#voi").length)try{return a=JSON.parse($("#voi").html()).iconPacks,a.forEach(function(a){c.append($("<li><span>"+a.name+"</span></li>")),b='<li class="vou"><span class="vot">'+a.name+'</span> <span class="vom">'+a.icons.length+' icons </span><span class="voo"><a target="_blank" href="'+a.url+'">more info</a></span></li>',b+='<li class="vov">',a.icons.forEach(function(c){b+='<div class="vam" von="'+c.toLowerCase().replace(a.iconPrefix,"")+'"><i class="icon '+a.iconClass+" "+c+'" icon-class="'+a.iconClass+" "+c+'" title="'+c+'"></i></div>'}),b+="</li>",d.append(b)}),$(c).find("li:first").addClass("vhr"),$(d).find("li.vou:first, li.vov:first").addClass("vhr"),$(".vce").html("").append(c).append(d),a}catch(e){return JSON.parse('{"iconPacks":[]}')}}function R(){var a;if($("#vpb").length)try{return a=JSON.parse($("#vpb").html()).dynamicCSS}catch(b){return[]}}function S(){var a;if($("#vpa").length)try{return a=JSON.parse($("#vpa").html()).dynamicScripts}catch(b){return[]}}function T(){var a=$(".vgm"),b="",c=$(".vgi"),d="";$("#vgg .vim").each(function(a){var c,e=$(this),f=e.attr("vbp").split(","),g="";f.forEach(function(a){-1==d.indexOf(a)&&(d+='<div class="vgh" vbp="'+a+'">'+a+"</div>")}),c=e.attr("icons"),"undefined"!=typeof c&&c!==!1&&(c=e.attr("icons").split(","),c.forEach(function(a){g+='<img class="vgj" src="img/'+a+'.png" />'})),b+='<div class="vgl" vbp="'+$(this).attr("vbp")+'" vgv="'+$(this).attr("id")+'"><img delay-src="img/sections/'+$(this).attr("id")+'.jpg"/>'+g+'<span class="vjl">'+$(this).attr("vbr")+"</span></div>"}),a.html(b),c.append(d)}function U(a){var b=$("."+a);if($(b).is("p , div, span, figure, article, img"))if($(b).is('[class*="medium-"]')||$(b).parent().is('div [class*="medium-"]')){if($(b).parent().is('div [class*="medium-"]')&&(b=$(b).parent()),!$(b).hasClass("medium-12")){if(b.hasClass("medium-11"))return void b.removeClass("medium-11").addClass("medium-12");if(b.hasClass("medium-10"))return void b.removeClass("medium-10").addClass("medium-11");if(b.hasClass("medium-9"))return void b.removeClass("medium-9").addClass("medium-10");if(b.hasClass("medium-8"))return void b.removeClass("medium-8").addClass("medium-9");if(b.hasClass("medium-7"))return void b.removeClass("medium-7").addClass("medium-8");if(b.hasClass("medium-6"))return void b.removeClass("medium-6").addClass("medium-7");if(b.hasClass("medium-5"))return void b.removeClass("medium-5").addClass("medium-6");if(b.hasClass("medium-4"))return void b.removeClass("medium-4").addClass("medium-5");if(b.hasClass("medium-3"))return void b.removeClass("medium-3").addClass("medium-4");if(b.hasClass("medium-2"))return void b.removeClass("medium-2").addClass("medium-3");if(b.hasClass("medium-1"))return void b.removeClass("medium-1").addClass("medium-2")}}else if($(b).is('[class*="col-xs-"]:not([class*="col-md-"])')||$(b).parent().is('div [class*="col-xs-"]:not([class*="col-md-"])')){if($(b).parent().is('div [class*="col-xs-"]:not([class*="col-md-"])')&&(b=$(b).parent()),!$(b).hasClass("col-xs-12")){if(b.hasClass("col-xs-11"))return void b.removeClass("col-xs-11").addClass("col-xs-12");if(b.hasClass("col-xs-10"))return void b.removeClass("col-xs-10").addClass("col-xs-11");if(b.hasClass("col-xs-9"))return void b.removeClass("col-xs-9").addClass("col-xs-10");if(b.hasClass("col-xs-8"))return void b.removeClass("col-xs-8").addClass("col-xs-9");if(b.hasClass("col-xs-7"))return void b.removeClass("col-xs-7").addClass("col-xs-8");if(b.hasClass("col-xs-6"))return void b.removeClass("col-xs-6").addClass("col-xs-7");if(b.hasClass("col-xs-5"))return void b.removeClass("col-xs-5").addClass("col-xs-6");if(b.hasClass("col-xs-4"))return void b.removeClass("col-xs-4").addClass("col-xs-5");if(b.hasClass("col-xs-3"))return void b.removeClass("col-xs-3").addClass("col-xs-4");if(b.hasClass("col-xs-2"))return void b.removeClass("col-xs-2").addClass("col-xs-3");if(b.hasClass("col-xs-1"))return void b.removeClass("col-xs-1").addClass("col-xs-2")}}else if($(b).is('[class*="col-sm-"]:not([class*="col-md-"])')||$(b).parent().is('div [class*="col-sm-"]:not([class*="col-md-"])')){if($(b).parent().is('div [class*="col-sm-"]:not([class*="col-md-"])')&&(b=$(b).parent()),!$(b).hasClass("col-sm-12")){if(b.hasClass("col-sm-11"))return void b.removeClass("col-sm-11").addClass("col-sm-12");if(b.hasClass("col-sm-10"))return void b.removeClass("col-sm-10").addClass("col-sm-11");if(b.hasClass("col-sm-9"))return void b.removeClass("col-sm-9").addClass("col-sm-10");if(b.hasClass("col-sm-8"))return void b.removeClass("col-sm-8").addClass("col-sm-9");if(b.hasClass("col-sm-7"))return void b.removeClass("col-sm-7").addClass("col-sm-8");if(b.hasClass("col-sm-6"))return void b.removeClass("col-sm-6").addClass("col-sm-7");if(b.hasClass("col-sm-5"))return void b.removeClass("col-sm-5").addClass("col-sm-6");if(b.hasClass("col-sm-4"))return void b.removeClass("col-sm-4").addClass("col-sm-5");if(b.hasClass("col-sm-3"))return void b.removeClass("col-sm-3").addClass("col-sm-4");if(b.hasClass("col-sm-2"))return void b.removeClass("col-sm-2").addClass("col-sm-3");if(b.hasClass("col-sm-1"))return void b.removeClass("col-sm-1").addClass("col-sm-2")}}else if(($(b).is('[class*="col-md-"]')||$(b).parent().is('div [class*="col-md-"]'))&&($(b).parent().is('div [class*="col-md-"]')&&(b=$(b).parent()),!$(b).hasClass("col-md-12"))){if(b.hasClass("col-md-11"))return void b.removeClass("col-md-11").addClass("col-md-12");if(b.hasClass("col-md-10"))return void b.removeClass("col-md-10").addClass("col-md-11");if(b.hasClass("col-md-9"))return void b.removeClass("col-md-9").addClass("col-md-10");if(b.hasClass("col-md-8"))return void b.removeClass("col-md-8").addClass("col-md-9");if(b.hasClass("col-md-7"))return void b.removeClass("col-md-7").addClass("col-md-8");if(b.hasClass("col-md-6"))return void b.removeClass("col-md-6").addClass("col-md-7");if(b.hasClass("col-md-5"))return void b.removeClass("col-md-5").addClass("col-md-6");if(b.hasClass("col-md-4"))return void b.removeClass("col-md-4").addClass("col-md-5");if(b.hasClass("col-md-3"))return void b.removeClass("col-md-3").addClass("col-md-4");if(b.hasClass("col-md-2"))return void b.removeClass("col-md-2").addClass("col-md-3");if(b.hasClass("col-md-1"))return void b.removeClass("col-md-1").addClass("col-md-2")}Z()}function V(a){var b=$("."+a);if($(b).is("p , div, span, figure, article, img"))if($(b).is('[class*="medium-"]')||$(b).parent().is('div [class*="medium-"]')){if($(b).parent().is('div [class*="medium-"]')&&(b=$(b).parent()),!$(b).hasClass("medium-1")){if(b.hasClass("medium-12"))return void b.removeClass("medium-12").addClass("medium-11");if(b.hasClass("medium-11"))return void b.removeClass("medium-11").addClass("medium-10");if(b.hasClass("medium-10"))return void b.removeClass("medium-10").addClass("medium-9");if(b.hasClass("medium-9"))return void b.removeClass("medium-9").addClass("medium-8");if(b.hasClass("medium-8"))return void b.removeClass("medium-8").addClass("medium-7");if(b.hasClass("medium-7"))return void b.removeClass("medium-7").addClass("medium-6");if(b.hasClass("medium-6"))return void b.removeClass("medium-6").addClass("medium-5");if(b.hasClass("medium-5"))return void b.removeClass("medium-5").addClass("medium-4");if(b.hasClass("medium-4"))return void b.removeClass("medium-4").addClass("medium-3");if(b.hasClass("medium-3"))return void b.removeClass("medium-3").addClass("medium-2");if(b.hasClass("medium-2"))return void b.removeClass("medium-2").addClass("medium-1")}}else if($(b).is('[class*="col-xs-"]:not([class*="col-md-"])')||$(b).parent().is('div [class*="col-xs-"]:not([class*="col-md-"])')){if($(b).parent().is('div [class*="col-xs-"]:not([class*="col-md-"])')&&(b=$(b).parent()),!$(b).hasClass("col-xs-1")){if(b.hasClass("col-xs-12"))return void b.removeClass("col-xs-12").addClass("col-xs-11");if(b.hasClass("col-xs-11"))return void b.removeClass("col-xs-11").addClass("col-xs-10");if(b.hasClass("col-xs-10"))return void b.removeClass("col-xs-10").addClass("col-xs-9");if(b.hasClass("col-xs-9"))return void b.removeClass("col-xs-9").addClass("col-xs-8");if(b.hasClass("col-xs-8"))return void b.removeClass("col-xs-8").addClass("col-xs-7");if(b.hasClass("col-xs-7"))return void b.removeClass("col-xs-7").addClass("col-xs-6");if(b.hasClass("col-xs-6"))return void b.removeClass("col-xs-6").addClass("col-xs-5");if(b.hasClass("col-xs-5"))return void b.removeClass("col-xs-5").addClass("col-xs-4");if(b.hasClass("col-xs-4"))return void b.removeClass("col-xs-4").addClass("col-xs-3");if(b.hasClass("col-xs-3"))return void b.removeClass("col-xs-3").addClass("col-xs-2");if(b.hasClass("col-xs-2"))return void b.removeClass("col-xs-2").addClass("col-xs-1")}}else if($(b).is('[class*="col-sm-"]:not([class*="col-md-"])')||$(b).parent().is('div [class*="col-sm-"]:not([class*="col-md-"])')){if($(b).parent().is('div [class*="col-sm-"]:not([class*="col-md-"])')&&(b=$(b).parent()),!$(b).hasClass("col-sm-1")){if(b.hasClass("col-sm-12"))return void b.removeClass("col-sm-12").addClass("col-sm-11");if(b.hasClass("col-sm-11"))return void b.removeClass("col-sm-11").addClass("col-sm-10");if(b.hasClass("col-sm-10"))return void b.removeClass("col-sm-10").addClass("col-sm-9");if(b.hasClass("col-sm-9"))return void b.removeClass("col-sm-9").addClass("col-sm-8");if(b.hasClass("col-sm-8"))return void b.removeClass("col-sm-8").addClass("col-sm-7");if(b.hasClass("col-sm-7"))return void b.removeClass("col-sm-7").addClass("col-sm-6");if(b.hasClass("col-sm-6"))return void b.removeClass("col-sm-6").addClass("col-sm-5");if(b.hasClass("col-sm-5"))return void b.removeClass("col-sm-5").addClass("col-sm-4");if(b.hasClass("col-sm-4"))return void b.removeClass("col-sm-4").addClass("col-sm-3");if(b.hasClass("col-sm-3"))return void b.removeClass("col-sm-3").addClass("col-sm-2");if(b.hasClass("col-sm-2"))return void b.removeClass("col-sm-2").addClass("col-sm-1")}}else if(($(b).is('[class*="col-md-"]')||$(b).parent().is('div [class*="col-md-"]'))&&($(b).parent().is('div [class*="col-md-"]')&&(b=$(b).parent()),!$(b).hasClass("col-md-1"))){if(b.hasClass("col-md-12"))return void b.removeClass("col-md-12").addClass("col-md-11");if(b.hasClass("col-md-11"))return void b.removeClass("col-md-11").addClass("col-md-10");if(b.hasClass("col-md-10"))return void b.removeClass("col-md-10").addClass("col-md-9");if(b.hasClass("col-md-9"))return void b.removeClass("col-md-9").addClass("col-md-8");if(b.hasClass("col-md-8"))return void b.removeClass("col-md-8").addClass("col-md-7");if(b.hasClass("col-md-7"))return void b.removeClass("col-md-7").addClass("col-md-6");if(b.hasClass("col-md-6"))return void b.removeClass("col-md-6").addClass("col-md-5");if(b.hasClass("col-md-5"))return void b.removeClass("col-md-5").addClass("col-md-4");if(b.hasClass("col-md-4"))return void b.removeClass("col-md-4").addClass("col-md-3");if(b.hasClass("col-md-3"))return void b.removeClass("col-md-3").addClass("col-md-2");if(b.hasClass("col-md-2"))return void b.removeClass("col-md-2").addClass("col-md-1")}Z()}function W(a){var b,c,d;$("[vik="+$(a).parent().parent().attr("vbq")+"]").length?(c=$("[vik="+$(a).parent().parent().attr("vbq")+"]").attr("id"),d=$('.viu[href="#'+$("[vik="+$(a).parent().parent().attr("vbq")+"]").attr("id")+'"], #veu [href="#'+$("[vik="+$(a).parent().parent().attr("vbq")+"]").attr("id")+'"]'),d.attr("href","#"+X($(a).text())),o(),$("[vik="+$(a).parent().parent().attr("vbq")+"]").attr("id",X($(a).text())).attr("vij",$(a).text())):(b=$("."+$(a).parent().parent().attr("vbq")),b.before('<a id="'+X($(a).text())+'" class="in-page-link" vij="'+$(a).text()+'" vik="'+$(a).parent().parent().attr("vbq")+'"></a>'))}function X(a){return a.toLowerCase().replace(/[^\w ]+/g,"").replace(/ +/g,"-")}function Y(){$(".vgp").addClass("vih");var a=$(fb).find(".in-page-link");a.length&&(output='<option value="">Select an in-page navigation link</option>',a.each(function(){var a=$(this);output+='<option value="#'+a.attr("id")+'">'+a.attr("vij")+"</option>"}),$(".veh").html(output),$(".vgp").removeClass("vih"))}function Z(){var a=$.localStorage(eb+".vhh");$(".vhe").addClass("vih"),o(),p(),$.localStorage(eb+".vhh")?($.localStorage(eb+".state.veu."+a,$("#veu").html()),$.localStorage(eb+".state.vem."+a,$(".vem").html()),$.localStorage(eb+".vhj."+a,$(".vei").text()),$.localStorage(eb+".vhf."+a,$(".vay").attr("vhx")),$.localStorage(eb+"vmp."+a,$(".vms").attr("vmr")),$.localStorage(eb+".vkp."+a,"undefined"!=typeof $("#vkk").attr("class")?$("#vkk").attr("class"):" ")):($.localStorage(eb+".state.veu",$("#veu").html()),$.localStorage(eb+".state.vem",$(".vem").html()),$.localStorage(eb+".vhj",$(".vei").text()),$.localStorage(eb+".vhf",$(".vay").attr("vhx")),$.localStorage(eb+"vmp",$(".vms").attr("vmr")),$.localStorage(eb+".vkp","undefined"!=typeof $("#vkk").attr("class")?$("#vkk").attr("class"):" "))}function _(){var a=(new Date).getTime();newStateName=$(".vgf").val(),stateID="viy-"+a,$("#vhl").append('<li class="viy" viy="'+stateID+'" vjh="'+newStateName+'" page-title="'+$(".vei").text()+'"></li>'),
  aa(newStateName,stateID),$('#vhl [viy="'+$.localStorage(eb+".vhh")+'"]').attr("page-title",$(".vei").text()),$.localStorage(eb+".vhk",$("#vhl").html()),$.localStorage(eb+".state.veu."+stateID,$("#veu").html()),$.localStorage(eb+".state.vem."+stateID,$(".vem").html()),$.localStorage(eb+".vhj."+stateID,$(".vei").text()),$.localStorage(eb+".vhf."+stateID,$(".vay").attr("vhx")),$.localStorage(eb+"vmp."+stateID,$(".vms").attr("vmr")),$.localStorage(eb+".vkp."+stateID,$("#vkk").attr("class")),$.localStorage(eb+".vhh",stateID),$.localStorage(eb+".vhg",newStateName),$(".vcr").text(newStateName).removeClass("vih")}function aa(a,b){$(".vfw").prepend('<div class="ves" vjh="'+a+'" state-id="'+b+'"><span class="oi vdj" data-glyph="data-transfer-download"></span><span class="vfx">'+a+'</span><span class="vbz oi" data-glyph="x"></span></div>'),nb&&$(".vdj").remove()}function ba(b,c){$(".vei").removeClass("vlx"),$(".vhe").addClass("vih");var d,e="undefined"!=typeof b?b:"",c="undefined"!=typeof c?c:"",f=$.localStorage(eb+".vhj");""==e&&(e=$.localStorage(eb+".vhh"),c=$.localStorage(eb+".vhg")),stateHTML=".state.veu."+e,d=".state.vem."+e,colourScheme=".vhf."+e,fontOption="vmp."+e,bodyClasses=".vkp."+e,$('#vhl [viy="'+e+'"]').attr("page-title")?f=$('#vhl [viy="'+e+'"]').attr("page-title"):($(".vei").text("Edit title tag"),document.title="Variant HTML Builder by Medium Rare"),$.localStorage(eb+".vhh",e),$.localStorage(eb+".vhg",c),e||(stateHTML=".state.veu",d=".state.vem",colourScheme=".vhf",fontOption="vmp",bodyClasses=".vkp",f=$.localStorage(eb+".vhj")),$.localStorage(eb+stateHTML)&&(c=c?c:"Unnamed page",$(".vcr").text(c).removeClass("vih"),$(".vei").text(f),document.title=f,$("#veu").html($.localStorage(eb+stateHTML)),$(".vem").html($.localStorage(eb+d)),Fa($.localStorage(eb+bodyClasses)),ma($.localStorage(eb+colourScheme),!1),na($.localStorage(eb+fontOption),!1),ha(),a(),sa(),h()),$(".vem").find(".vaa").length?$(".vem").removeClass("empty-vem"):$(".vem").addClass("empty-vem")}function ca(a){var b,c,d,e,f,g,h=new JSZip,i=[],j=new Date;return $("#vhl .viy").length?("all"==a?($("#vhl .viy").each(function(){i.push($(this).attr("viy"))}),b="variant-exported-"+X(j.toDateString())):i.push(a),i.forEach(function(a,b){c=$.localStorage(eb+".state.veu."+a),d=$.localStorage(eb+".state.vem."+a),colourScheme=$.localStorage(eb+".vhf."+a),fontOption=$.localStorage(eb+"vmp."+a),bodyClasses=$.localStorage(eb+".vkp."+a),pageName=$('#vhl [viy="'+a+'"]').attr("vjh"),pageTitle=$('#vhl [viy="'+a+'"]').attr("page-title"),pageTitle="undefined"!=typeof pageTitle?pageTitle:"",e={stateID:a,templateName:eb,pageName:pageName,pageTitle:pageTitle,colourScheme:colourScheme,fontOption:fontOption,bodyClasses:bodyClasses,layoutMap:d,masterHtml:c},f=JSON.stringify(e),h.file(X(pageName)+"-"+j.getTime()+".page",f)}),h.file(eb+".navs",$("#vbn").html()),h.file(eb+".footers",$("#vbl").html()),"all"!=a&&(b=X(pageName)),g=h.generate({type:"blob",compression:"deflate"}),void saveAs(g,b+".variant")):void A("Export .variant file","There is nothing to export.<br /><br />Save at least one page before exporting.")}function da(a,b){for(var c,d="undefined"!=typeof a.target?a.target.files:a,e="",b=1==b?!0:!1,f=0;c=d[f];f++){var g=new FileReader;g.onload=function(a){return function(c){try{var d=new JSZip(c.target.result),f='<span class="vjl">Imported the following:</span>';excludedHead='<span class="vjl">Excluded these:</span>',fileNames="<ul>",excluded="<ul>",$.each(d.files,function(a,b){var c,d;b.name==eb+".navs"?(c=b.asText().trim(),c=$('<div id="variant-temp-navs-mrv" />').html(c),$(c).find("nav").each(function(){$('#vbn [via="'+$(this).attr("via")+'"]').length?excluded+="<li>Nav - "+$(this).attr("vio")+" (already exists)</li>":(m($(this)),$("#vbn").append($(this)),$.localStorage(eb+".vbo",$("#vbn").html()),fileNames+="<li>Nav - "+$(this).attr("vio")+"</li>")})):b.name==eb+".footers"?(footers=b.asText().trim(),footers=$('<div id="vjj" />').html(footers),$(footers).find("footer").each(function(){$('#vbl [vhy="'+$(this).attr("vhy")+'"]').length?excluded+="<li>Footer - "+$(this).attr("vie")+" (already exists)</li>":(s($(this)),$("#vbl").append($(this)),$.localStorage(eb+".custom-footers",$("#vbl").html()),fileNames+="<li>Footer - "+$(this).attr("vie")+"</li>")})):(d=JSON.parse(b.asText()),d.templateName==eb?$('#vhl [viy="'+d.stateID+'"]').length?excluded+="<li>Page - "+d.pageName+" (already exists)</li>":(fileNames+="<li>Page - "+d.pageName+"</li>",stateID=d.stateID,$("#vhl").append('<li class="viy" viy="'+d.stateID+'" vjh="'+d.pageName+'" page-title="'+d.pageTitle+'"></li>'),aa(d.pageName,d.stateID),$.localStorage(eb+".state.veu."+stateID,d.masterHtml),$.localStorage(eb+".state.vem."+stateID,d.layoutMap),$.localStorage(eb+".vhf."+stateID,d.colourScheme),$.localStorage(eb+"vmp."+stateID,d.fontOption),$.localStorage(eb+".vkp."+stateID,d.bodyClasses)):excluded+="<li>Page - "+d.pageName+" (not designed for this template)</li>",e={id:d.stateID,name:d.pageName})}),$.localStorage(eb+".vhk",$("#vhl").html()),fileNames+="</ul>",excluded+="</ul>","<ul></ul>"!=fileNames&&(fileNames=f+fileNames),"<ul></ul>"!=excluded&&(excluded=excludedHead+excluded),b?($(".vhe").remove(),ba(e.id,e.name)):A("Import",fileNames+"<br />"+excluded),setTimeout(function(){$(".vfw").find(".ves").length?$(".vfw").removeClass("empty-vfw"):$(".vfw").addClass("empty-vfw")},100)}catch(c){A("Page Import Error","Error reading "+a.name+" : <br /><br />"+c.message)}}}(c),g.readAsArrayBuffer(c)}$(".vef").val("")}function ea(){$("#vhl").html($.localStorage(eb+".vhk")),$("#vhl li").each(function(){aa($(this).attr("vjh"),$(this).attr("viy"))})}function fa(){$("#simplemodal-container").draggable({handle:".vfa"})}function ga(){$(".viu section, .viu header, .viu footer").each(function(){var a="."+$(this).attr("vic");$(this).find("div.row, .vjd").not(".masonry, .voz").sortable({items:"> div:not('.voh')",cancel:"[contenteditable], nav, input, textarea, .vnw, .voz",scroll:!0,opacity:1,zIndex:999999,forcePlaceholderSize:!0,forceHelperSize:!1,cursor:"move",connectWith:a+" div.row, "+a+" .vjd",helper:function(a,b){var c=b.children(),d=b.clone();return d.children().each(function(a){$(this).width(c.eq(a).width())}),d.css("box-shadow","0px 7px 30px 0px rgba(50, 50, 50, 0.5)"),d.removeClass("vdw").css("border","none !important"),d},appendTo:".viu",placeholder:"vje",tolerance:"pointer",revert:"300",update:function(a,b){var c,d,e,f;c=b.item.attr("vic"),e=b.item,d=$(".viu ."+c).next().attr("vic"),parentID=b.item.parent().attr("vic"),f=b.item.parent(),b.item.is(":last-child")?$("#veu ."+c).detach().appendTo("#veu ."+parentID):$("#veu ."+c).detach().insertBefore("#veu ."+d),Z()},start:function(a,b){}})}),$(".viu table > tbody").not(".voz").each(function(){var a="."+$(this).attr("vic");$(this).sortable({items:" > tr",cancel:"[contenteditable], .vnw, .voz",scroll:!0,opacity:1,zIndex:999999,forcePlaceholderSize:!0,forceHelperSize:!1,cursor:"move",connectWith:a,helper:function(a,b){var c=(b.closest("table").clone(),b.children()),d=b.clone();return d.children().each(function(a){$(this).width(c.eq(a).width())}),d.css("box-shadow","0px 7px 30px 0px rgba(50, 50, 50, 0.5)").removeClass("vdw").addClass("vnz").css("border","none !important").css("transition: all 0s ease !important"),d},appendTo:"parent",placeholder:"",tolerance:"pointer",revert:"100",update:function(a,b){var c,d,e,f;c=b.item.attr("vic"),e=b.item,d=$(".viu ."+c).next().attr("vic"),parentID=b.item.parent().attr("vic"),f=b.item.parent(),b.item.is(":last-child")?$("#veu ."+c).detach().appendTo("#veu ."+parentID):$("#veu ."+c).detach().insertBefore("#veu ."+d),Z()},start:function(a,b){b.placeholder.children().each(function(){}),b.placeholder.appendTo(b.placeholder.parent().parent())}})}),$(".viu nav").each(function(){"."+$(this).attr("vic");$(this).find(".vjd").not(".voz").sortable({items:"> li",cancel:"[contenteditable], .subnav li, .vnw, .voz",scroll:!0,opacity:1,zIndex:999999,forcePlaceholderSize:!0,forceHelperSize:!0,cursor:"move",helper:"clone",appendTo:".viu nav:first",placeholder:"vje",tolerance:"pointer",revert:"300",update:function(a,b){var c,d,e,f;c=b.item.attr("vic"),e=b.item,d=$(".viu ."+c).next().attr("vic"),parentID=b.item.parent().attr("vic"),f=b.item.parent(),b.item.is(":last-child")?$("#veu ."+c).detach().appendTo("#veu ."+parentID):$("#veu ."+c).detach().insertBefore("#veu ."+d),Z()},start:function(a,b){b.helper.css("box-shadow","0px 7px 30px 0px rgba(50, 50, 50, 0.5)"),b.helper.removeClass("vdw").css("border","none !important")}})})}function ha(){$(".vem").sortable({items:"> .vaa",revert:!1,cursor:"move",opacity:.7,delay:150,cancel:"[contenteditable]",update:function(){f()}})}function ia(){var a;try{a=JSON.parse($(".vaz").html()),$(".vho").eq(2).removeClass("vih"),ka("Original",a.original.colours,"theme"),$(".vay").attr("viq",a.original.originalFileName+".css").attr("vhx",a.original.originalFileName+".css"),$(a.schemes).each(function(){ka(this.name,this.colours,"theme-"+this.name),oa("theme-"+this.name.toLowerCase()+".css")}),$(".viw").remove(),$(".vnb").removeClass("empty-vmd")}catch(b){return}}function ja(){var a;try{a=JSON.parse($(".vmq").html()),$(".vmy").removeClass("vih"),$(".vmz").text(a.title),la(a.originalSet),$(a.optionalSets).each(function(){la(this)}),$(".vnb").removeClass("empty-vmd")}catch(b){return}}function ka(a,b,c){var d,e="",f=a+": ",g=100/b.length;$(b).each(function(a,b){e+='<div class="vax" style="width: '+g+"%; background-color: "+b+'"></div>',f+=" "+b}),d='<li title="'+f+'" class="vhu" viz="'+c.toLowerCase()+'.css">',$(".vay").append(d+e+"</li>")}function la(a){var b=$("<li>").addClass("vmv").attr("vmw",a.setName);a.css.length>0?b.attr("vmo",a.css):b.attr("vmo","vir"),$(a.fonts).each(function(){b.append($("<img>").attr("src","img/fonts/"+X(this.fontName)+".png"))}),$(".vms").append(b)}function ma(a,b){try{colourSchemes=JSON.parse($(".vaz").html());var c=a,d=$('[href*="'+$(".vay").attr("vhx")+'"]').attr("href"),e=$(".vay").attr("vhx");c=d.replace(e,c),$('[href*="'+$(".vay").attr("vhx")+'"]').attr("href",c),$(".vay").attr("vhx",a),1==b&&Z()}catch(f){}}function na(a,b){try{var c=(JSON.parse($(".vmq").html()),$("[vmw="+a+"]").attr("vmo"));$("head link.vmx").remove(),$("head").append('<link class="vmx" href="'+c+'" rel="stylesheet" type="text/css">').append('<link class="vmx" href="../css/font-'+X(a)+'.css" rel="stylesheet" type="text/css">'),$(".vms").attr("vmr",a),$(".vmv.vhr").removeClass("vhr"),$('.vmv[vmw="'+a+'"]').addClass("vhr"),1==b&&Z()}catch(d){}}function oa(a){$("head").append('<link class="viw" href="theme/css/'+a+'" rel="alternate stylesheet" type="text/css" media="all">')}function pa(){$(".vjy").unbind("click").click(function(){return!1})}function qa(){$(".viu form").unbind("submit").bind("submit",function(a){return a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1}),$('.viu button[type="submit"]').unbind("click").bind("click",function(a){return a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1})}function ra(){try{var a=JSON.parse($("#vkk").html());$("<div>").addClass("vkq").append('<div class="vlq"><span>Page Options</span></div>').append('<div class="vmd"><ul class="vkx"></ul></div>').appendTo(".vmb");$.isArray(a.options)?$(a.options).each(function(){za(this,".vkx","body, #vkk",!0)}):za(a.options,".vkx","body, #vkk",!0)}catch(b){return}}function sa(a){arguments.length||(a=$("#veu nav").attr("nav-id")),$(".vmm").closest(".vkq").remove();try{var b=JSON.parse($("#"+a+" script.options").html());$("<div>").addClass("vkq").append('<div class="vlq"><span>Nav Options</span></div>').append('<div class="vmd"><ul class="vmm"></ul></div>').appendTo(".vmb");$.isArray(b.options)?$(b.options).each(function(){za(this,".vmm",mrv_pageNavTarget.selector+" nav, "+hb.selector+" nav",!0)}):za(b.options,".vmm",mrv_pageNavTarget.selector+" nav, "+hb.selector+" nav",!0)}catch(c){return}}function ta(){try{return JSON.parse($("#voy").html())}catch(a){return JSON.parse('{"options":[]}')}}function ua(a,b){var c,d=$("."+a),e="",b=b;_a.options.forEach(function(a){c=a.disposableSelector||a.selector,"undefined"!=typeof a.closest&&(d=$("."+$(d).closest(a.closest).attr("vic"))),"undefined"!=typeof a.menu&&(e="."+a.menu),$(d).is(c)&&(za(a,".vnc"+e,d.selector,!0),"undefined"!=typeof b&&1==b&&$(".vnc"+e).removeClass("vih"))})}function va(){try{return JSON.parse($("#vnd").html())}catch(a){return JSON.parse('{"options":[]}')}}function wa(a){var b=$("."+a);$("ul.vnc li").remove(),$(ab.options).each(function(){b.is(this.selector)&&B(b,this)})}function xa(a){var b,c,d,e,f,g=0,h=0,i=0,j=$(".viu ."+a),k=j.attr("vic"),l=j.position(),m=j.offset(),n=Math.max($(".viu nav:nth-of-type(1)").outerHeight(!0),$(".viu .nav-container:nth-of-type(1)").outerHeight(!0)),o=$(".viu nav").css("position"),p=$(".viu"),q=j.width(),r=($(window).width(),$(window).height()),s=n/r,t=0,u=Math.round(m.left+q-14);n=s>.9?0:n,$.find('.viu .vne[vnt="'+k+'"]').length||($(".viu .vne").remove(),b=$('<div class="vne" />'),j.is(":first-child")||"absolute"!=o&&"fixed"!=o||(n=0),b.css("top",Math.round(l.top+10+n)),b.attr("vnt",k),c=$("<ul></ul>"),c.append('<li class="vni"><span class="vnm oi" data-glyph="cog"></span><ul class="vnc utility"></ul></li>'),_a.options.forEach(function(a){j.is(a.selector)&&g++}),ab.options.forEach(function(a){1===j.find(a.selector).length&&"true"==a.sectionControl?(d=ya(a,!1,j.find(a.selector).first().attr("vic")),c.append(d),u-=48,t+=48,h++):j.is(a.selector)&&"true"==a.sectionControl&&(d=ya(a,!1,j.attr("vic")),c.append(d),u-=48,t+=48,h++)}),e=j.find(".background-image-holder > img:not(.lightbox-gallery-mrv img, .voh img ,ul.slides .background-image-holder > img):first"),1==e.length&&(c.append(Aa(e.attr("vic"),!1,"li","vni")),u-=48,t+=48,i++),1==j.find("img").length?1==j.find("img:not(.background-image-holder > img, ul.slides > li img, ul.slides .owl-item > li img)").length?(c.append(Aa(j.find("img:not(.background-image-holder > img, ul.slides > li img, ul.slides .owl-item > li img):first").attr("vic"),!1,"li","vni")),u-=48,t+=48,i++):e=j.find("img:not(.background-image-holder > img, ul.slides > li img, ul.slides .owl-item > li img)").each(function(){$(this).parent().is(".background-image-holder")||"absolute"!=$(this).css("position")||$(this).hasClass("vib")||(c.append(Aa($(this).attr("vic"),!1,"li","vni")),u-=48,t+=48,i++)}):j.find("img:not(.background-image-holder > img, ul.slides > li img, ul.slides .owl-item > li img)").each(function(){"absolute"==$(this).css("position")&&($(this).parents().find("[data-address], .masonry").length||(c.append(Aa($(this).attr("vic"),!1,"li","vni")),u-=48,t+=48,i++))}),1===j.find("video").length&&(f=j.find("video"),c.append(Ba(f.attr("vic"),!1)),u-=48,t+=48,i++),g+h>0&&(b.append(c),u-=48,t+=48),g+h+i>0&&(b.css("width",t).css("left",u).attr("data-left",u),b.addClass("vnj").appendTo(p),ua(a)))}function ya(a,b,c){var d,e=a.modalInputIcon||"pencil";return d=$("<li />"),d.addClass("vno"),d.append('<span class="oi" data-glyph="'+e+'"></span><span class="vnp">'+a.buttonText+"</span>"),d.data("vnq",a),d.attr("vnr",c),d.attr("title",a.buttonText),b===!1?d:void $(b).append(d)}function za(a,b,c,d){var e,f="undefined"!=typeof d?d:!1,c="undefined"!=typeof c?c:!1,g="on"==a.initial?"on":"off",h=$("<li>"),i=$("<div>"),j="";return e="undefined"!=typeof a.refresh&&"true"==a.refresh?"refresh":"",h.addClass("vmk"),a.title&&h.append("<span>"+a.title+"</span>"),"choice"==a.type&&("on"==g&&1==f&&$(c).addClass(a["class"]),i.addClass("vky").attr("optionalclass",a["class"]).attr("classtarget",c),i.append('<div class="vks choice-button-on '+e+" "+("on"==g&&f===!0?"vkr":"")+($(c).hasClass(a["class"])&&f!==!0?"vkr":"")+'">'+a.onText+"</div>"),i.append('<div class="vks choice-button-off '+e+" "+("off"==g&&f===!0?"vkr":"")+($(c).hasClass(a["class"])||f===!0?"":"vkr")+'">'+a.offText+"</div>"),h.append(i)),"toggle"==a.type&&("on"==g&&1==f&&$(classtarget).addClass(a["class"]),j="on"==g&&f===!0?" vku":"",j="auto"===a.initial&&$(c).hasClass(a["class"])?" vku":j,i.addClass("vkz").attr("optionalclass",a["class"]).attr("classtarget",c),i.append('<span class="oi" data-glyph="'+a.icon+'"></span><span>'+a.text+"</span>"),i.append('<div class="vkt'+j+" "+e+'"><div class="vmi"></div></div>'),h.append(i)),"multi"==a.type&&(i.addClass("vmj").attr("classtarget",c),$.each(a.classes,function(b,c){i.append('<div class="vkv '+e+" "+(a.initial==b+1&&f===!0?"vkw":"")+'" optionalclass="'+(""!==c["class"]?c["class"]:" ")+'">'+c.text+"</div>")}),h.append(i)),"undefined"!=typeof a.submenu&&($(b).find('li.vnk[submenu-name="'+a.submenu+'"]').length||$(b).append('<li class="vnk" submenu-name="'+a.submenu+'"><span class="vnl">'+a.submenu+"</span><ul></ul></li>"),b=$(b).find('li.vnk[submenu-name="'+a.submenu+'"] ul')),b===!1?h:void $(b).append(h)}function Aa(a,b,c,d){var e,f,g="undefined"!=typeof c&&"string"==typeof c&&""!==c?c:"div",h="undefined"!=typeof d&&"string"==typeof d&&""!==d?d:"",i=b!==!1?$(".viu ."+b):!1,j=i?i.outerWidth():null,k="10px",l=i&&"img"===i.prop("tagName").toLowerCase()?!0:!1,m=i&&"absolute"===i.css("position")?!0:!1,e=Da("image","Edit Image",g,h),n=$('<div class="vnu"></div>'),o=$('<div class="vnw"></div>');if($(e).unbind("click").bind("click",function(b){return w($("."+a).attr("vic")),b.stopPropagation&&b.stopPropagation(),b.returnValue=!1,!1}).attr("vof",$("."+a).attr("vic")),100>=j&&(k="2px"),b!==!1){if(l)return m?!0:(f=i.parent(),i.parent().is(".vnu")||(f=n,""!==i.css("float")&&f.css("float",i.css("float")),""!==i.css("padding")?f.css("padding",i.css("padding")):(""!==i.css("padding-left")&&(f.css("padding-left",i.css("padding-left")),i.css("padding-left","0px")),""!==i.css("padding-right")&&(f.css("padding-right",i.css("padding-right")),i.css("padding-right","0px"))),""!==i.css("margin-right")&&(f.css("margin-right",i.css("margin-right")),i.css("margin-right","0px")),""!==i.css("margin-left")&&(f.css("margin-left",i.css("margin-left")),i.css("margin-left","0px")),i.hasClass("pull-right")&&f.addClass("pull-right"),i.hasClass("pull-left")&&f.addClass("pull-left"),f.css("max-width",j),i.wrap(f)),$(o).css("padding",k).css("width",i.innerWidth()).append(e),i.parent().append(o),!0);$(o).css("padding",k).css("width",j).append(e),i.append(o)}return b===!1?e:void 0}function Ba(a,b){var c,d=$(".viu ."+b);d.width();return c=Da("video","Edit Video"),$(c).unbind("click").bind("click",function(b){return y($("."+a).attr("vic")),b.stopPropagation&&b.stopPropagation(),b.returnValue=!1,!1}).attr("vof",$("."+a).attr("vic")),b===!1?c:void 0}function Ca(a){var b=$(".viu ul.slides."+a),c=$(".viu nav").css("position");numSlides=0,offsetTop=0,"absolute"!=c&&"fixed"!=c||!b.closest("section").is(".viu section:nth-of-type(1), .viu header:nth-of-type(1)")||(offsetTop=Math.max($(".viu nav").outerHeight(!0),$(".viu .nav-container").outerHeight(!0))),numSlides=b.find(" > li, .owl-item > li").not(".clone").length,b.find(" > li, .owl-item > li").not(".clone").each(function(a){var c,d,e=$(this),f="",g="",h="",i="",j="";c=$('<div class="vnw"></div>'),c.css("padding-top",offsetTop+10),b.find("img").length||c.addClass("vny"),b.find("li > p, li > span").length&&c.addClass("vny"),e.find(".vnv").length||(numSlides>1&&(f=Da("arrow-thick-left","Show Previous Slide"),$(f).unbind("click").bind("click",function(a){try{b.parent().flexslider("prev")}catch(c){}try{b.closest(".slider").flexslider("prev")}catch(c){}try{b.trigger("prev.owl.carousel")}catch(c){}return a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1}),g=Da("arrow-thick-right","Show next Slide"),$(g).unbind("click").bind("click",function(a){try{b.parent().flexslider("next")}catch(c){}try{b.closest(".slider").flexslider("next")}catch(c){}try{b.trigger("next.owl.carousel")}catch(c){}return a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1}),h=Da("minus","Delete Slide"),$(h).unbind("click").bind("click",function(a){return F(e.attr("vic"),!0),a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1})),d=Da("plus","Clone Slide"),$(d).unbind("click").bind("click",function(a){return E(e.attr("vic")),a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1}),e.find(" > div.background-image-holder img").length&&(i=Aa(e.find(" > div.background-image-holder img").attr("vic"),!1)),1==e.find("img").length&&(i=Aa(e.find("img").attr("vic"),!1)),1==e.find("video").length&&(j=Ba(e.find("video").attr("vic"),!1)),c.append(f).append(h).append(i).append(j).append(d).append(g),e.prepend(c))})}function Da(a,b,c,d){var e,f="string"==typeof c&&""!==c?c:"div",g="undefined"!=typeof d&&"string"==typeof d&&""!==d?d+" ":"";return e=$("<"+f+' data-glyph="'+a+'" class="'+g+'oi vnv" title="'+b+'"></'+f+">")}function Ea(a,b,c){var d,e=a.modalInputIcon||"pencil";return d=$('<div data-glyph="'+e+'" class="oi vnv" title="'+a.buttonText+'"></div>'),d.addClass("vno"),d.data("vnq",a),d.attr("vnr",c),b===!1?d:void $(b).append(d)}function Fa(a){var a="undefined"!=typeof a?a:"";$("#vkk").removeAttr("class").addClass(a),$("body").addClass(a),$(".vkx .vky").each(function(){$(this).find(".vks").removeClass("vkr"),-1!==a.indexOf($(this).attr("optionalclass"))?$(this).find(".choice-button-on").addClass("vkr"):($(this).find(".choice-button-off").addClass("vkr"),$("body").removeClass($(this).attr("optionalclass")))}),$(".vkx .vkz").each(function(){$(this).find(".vkt").removeClass("vku"),-1!==a.indexOf($(this).attr("optionalclass"))?$(this).find(".vkt").addClass("vku"):$("body").removeClass($(this).attr("optionalclass"))}),$(".vkx .vkv").removeClass("vkw"),$('.vkx .vkv[optionalclass=" "]').addClass("vkw"),$(".vkx .vkv").each(function(){-1!==a.indexOf($(this).attr("optionalclass"))&&" "!==$(this).attr("optionalclass")?($(this).addClass("vkw"),$('.vkx .vkv[optionalclass=" "]').removeClass("vkw")):$("body").removeClass($(this).attr("optionalclass"))})}function Ga(a,b){var c=a.replace(/(\r\n|\n|\r)/gm,","),d=c.split(","),e=!1,f=a;return b=" "==b?"":b,-1===a.indexOf("[optional-body-classes]")?a:(d.forEach(function(c){-1!==c.indexOf("[optional-body-classes]")&&(""!=b?-1!==c.indexOf('class="')?(f=String(a).replace("[optional-body-classes]",b),e=!0):(f=String(a).replace("[optional-body-classes]",'class="'+b+'"'),e=!0):(f=String(a).replace(" [optional-body-classes]",""),f=String(f).replace("[optional-body-classes]",""),e=!0))}),e?f:void 0)}function Ha(a,b){var c,d=a,e="";return"undefined"!=typeof b&&b.length>0&&"vir"!==$('.vmv[vmw="'+b+'"]').attr("vmo")&&(e=$('.vmv[vmw="'+b+'"]').attr("vmo"),c='&#13;&#10;        &lt;link href="'+e+'" rel="stylesheet" type="text/css"&gt;&#13;&#10;',c+='        &lt;link href="css/font-'+X(b)+'.css" rel="stylesheet" type="text/css"&gt;&#13;&#10;    &lt;/head&gt;\n',d=d.replace(/\t\&lt;\/head\&gt;/g,c),d=d.replace(/[\s]*\&lt;\/head\&gt;/g,c)),d}function Ia(){void 0!=window.mr_parallax&&(setTimeout(window.mr_parallax.profileParallaxElements,100),void 0!=window.mr_parallax.callback&&$(".viu .parallax").each(function(){window.mr_parallax.callback(this)}))}function Ja(){$.localStorage(eb+".vhh")?($(".vet span").html("Load "+$.localStorage(eb+".vhg")),$(".vhe").removeClass("vih")):$.localStorage(eb+".state.veu")?($(".vet span").removeClass("vih"),$(".vhe").removeClass("vih")):$(".vhd").removeClass("vih"),nb&&$(".vah, .vdi, .vgy").remove()}function Ka(){var a=Ra("demo");if(null!==a){var b=new XMLHttpRequest;b.open("GET","../demos/"+a+".variant",!0),b.responseType="blob",b.onload=function(a){var c=[b.response];da(c,!0)},b.onerror=function(a){A("Could not load specified demo file.")},b.send()}}function La(a){$(".vce").addClass("variant-filtered-mrv"),$(".vcd ul.variant-icon-sets-mrv div.vam").addClass("vih"),$(".vcd ul.variant-icon-sets-mrv div.vam span.vor").remove(),$('.vcd ul.variant-icon-sets-mrv div.vam[von*="'+a+'"]').each(function(){choosableIcon=$(this),choosableIcon.append('<span class="vor">'+choosableIcon.attr("von").replace(a,"<strong>"+a+"</strong>")+"</span>"),choosableIcon.removeClass("vih")}),Na()}function Ma(){$(".vce").removeClass("variant-filtered-mrv"),$(".vcd .variant-icon-sets-mrv li div.vam.vih").removeClass("vih"),$(".vok").val(""),$(".vcd .vol").addClass("vih"),$(".vcd ul.variant-icon-sets-mrv div.vam span.vor").remove(),Na()}function Na(){var a,b=!0;$(".vow").remove(),$(".vcd ul.variant-icon-sets-mrv li.vov").each(function(c,d){a=$(this).find("div.vam:not(.vih)").length,0==a?$(this).addClass("vih").prev().addClass("vih"):(a>70?$(".vce").addClass("variant-scroll-shadow-mrv"):$(".vce").removeClass("variant-scroll-shadow-mrv"),$(this).removeClass("vih").prev().removeClass("vih"),b=!1),$(".vcd .variant-icon-sets-mrv li span.vom").eq(c).text(a+" icon"+(a>1?"s":"")+" "+(""!==$(".vok").val()?"found":"in this pack")+" ")}),b&&($(".vce").append('<span class="vow">None Found</span>'),$(".vce").removeClass("variant-scroll-shadow-mrv"))}function Oa(a,b,c){var d,e,f,g,h,i=a;return Ya.forEach(function(a,j){d=$("<textarea>").append(b).append(c),e=$("<div>").html(d.text()),i=i.replace("\n        "+a.headString.replace(/&quot;/g,'"')+"\n","\n"),i=i.replace(a.headString.replace(/&quot;/g,'"')+"\n",""),g="undefined"!=typeof a.iconClass&&""!==a.iconClass?'i[class*="'+a.iconClass+'"]':"",h="undefined"!=typeof a.iconPrefix&&""!==a.iconPrefix?(""!==g?",":"")+'i[class*="'+a.iconPrefix+'"]':"",f="undefined"!=typeof a.requiredBy&&""!==a.requiredBy?(g+h!==""?",":"")+a.requiredBy:"",$(e).find(g+h+f).length&&(i=i.replace("\n        &lt;link ","\n        "+a.headString+"\n        &lt;link "))}),i}function Pa(a,b,c){var d,e,f=a;return Za.forEach(function(a,g){d=$("<textarea>").append(b).append(c),e=$("<div>").html(d.text()),$(e).find(a.requiredBy).length||(f=f.replace(a.styleRef,"\n").replace(/\n[ ]+\n/g,""))}),f}function Qa(a,b,c){var d,e,f=c;return $a.forEach(function(a,g){d=$("<textarea>").append(b).append(c),e=$("<div>").html(d.text()),$(e).find(a.requiredBy).length||(f=f.replace(a.scriptRef,"\n").replace(/\n[ ]+\n/g,""))}),f}function Ra(a){return decodeURIComponent((new RegExp("[?|&]"+a+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function Sa(a,b){var c=a.attr("vic"),d="undefined"!=typeof b?b:"",e=a.parent().children(d).not(".vib, .vjb").first().attr("vic");return c===e?!0:!1}function Ta(a,b){var c=a.attr("vic"),d="undefined"!=typeof b?b:"",e=a.parent().children(d).not(".vib, .vjb").last().attr("vic");return c===e?!0:!1}function Ua(a){var b=a.attr("vic"),c=a.parent().children().not(".vib, .vjb"),d=c.index(a),e=d>0?c.eq(d-1).attr("vic"):b;return e}function Va(a,b){if(!a||!a.tagName)return"";var c,d,e=document.createElement("div");return e.appendChild(a.cloneNode(!1)),c=e.innerHTML,b&&(d=c.indexOf(">")+1,c=c.substring(0,d)+a.innerHTML+c.substring(d)),e=null,c}function Wa(a){if(window.getSelection){a.stopPropagation();var b=window.getSelection(),c=b.getRangeAt(0),d=document.createElement("br");return c.deleteContents(),c.insertNode(d),c.setStartAfter(d),c.setEndAfter(d),c.collapse(!1),b.removeAllRanges(),b.addRange(c),!1}return!0}function Xa(a){if(window.getSelection){a.stopPropagation();var b=window.getSelection(),c=b.getRangeAt(0),d=document.createTextNode(" ");return c.deleteContents(),c.insertNode(d),c.setStartAfter(d),c.setEndAfter(d),c.collapse(!1),b.removeAllRanges(),b.addRange(c),!1}return!0}var Ya,Za,$a,_a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb="",lb=".vnn, ul.slides > li, ul.slides .owl-item > li , .masonry .project, .accordion li, .accordion, .masonry__item",mb=".vnn, .grid-layout, .tabbed-content, .tabs",nb=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0;a(),this.removeIconButtons=!0,$(document).bind("mouseup",function(a){$(a.target).closest(".vnc, .vnj").length||1===a.which&&($(".vhw").hide(),$(".vni").removeClass("vhr"))}),$(document).ready(function(){function a(a,b,c,d){var e,f,g,h,j,k=a,l="";return _a.options&&_a.options.forEach(function(a){"undefined"!=typeof a.disposableSelector&&(l=l+" "+a.disposableSelector.replace(".",""))}),k.find("h1:empty, h2:empty, h3:empty, h4:empty, h5:empty, h6:empty, a:empty, p:empty, span:empty, li:empty, em:empty, strong:empty, blockquote:empty, figcaption:empty, table:empty, label:empty").not(".in-page-link").addClass("vib"),k.find(".vib, .vjb").each(function(){I($(this))}),k.find("div.row:not(:has(>div, >p, >h1, >h2, >h3, >h4, >h5, >h6, >span, >ul, >li, >strong, >em, >a, >i, >img, >figure, >video, >iframe, >form, >input, >textarea, >blockquote, >figcaption, >table, >form, >label, >address))").remove(),k.find(".vjd:not(:has(>div, >p, >h1, >h2, >h3, >h4, >h5, >h6, >span, >ul, >li, >strong, >em, >a, >i, >img, >figure, >video, >iframe, >form, >input, >textarea, >blockquote, >figcaption, >table, >form, >label, >address))").remove(),$(k).find("p, span, li, ul, h1, h2, h3, h4, h5, h6, nav, header, footer, strong, em, a, section, div, i, img, figure, video, iframe, form, input, textarea, blockquote, figcaption, tbody, tr, td, th, label, address").removeClass("vjm vjb").removeClass("vhz").removeClass("vir").alterClass("vjs-*","").alterClass("variant-*","").removeClass("vjd").removeClass("voz").removeClass("viv").removeClass("lightbox-gallery-mrv").removeClass("veo").removeClass("vlk").removeClass("ven").removeClass("vjy").removeClass("vdw").removeAttr("vic").removeClass("vjx").removeClass("vog").removeClass("voh").removeAttr("vij").removeAttr("vik").removeAttr("contenteditable").removeAttr("data-vip").removeAttr("vli").removeAttr("vht").removeAttr("vjw").removeAttr("vii").removeAttr("style").removeAttr("nav-id").removeClass("ui-sortable").removeClass(l).removeClass("vns").removeClass("vnx").removeClass("vpd").removeClass("vnn"),$(k).find("nav").alterClass("via-*","").removeAttr("via").removeAttr("vio").removeAttr("style"),$(k).find("footer").alterClass("vhy-*","").removeAttr("vhy").removeAttr("vie"),$(k).find('*[class=""]').removeAttr("class"),e=$("#vji").html(),e=String(e).replace("[title]",b),$("[vhx]").length&&(e=String(e).replace($("[viq]").attr("viq"),$("[vhx]").attr("vhx"))),j=Ga(e,d),e=j?j:e,e=Ha(e,c),f=$(k).html().replace(/\n/g,"\n		").replace(/\n\n/g,"\n").replace(/\n\t\t><section/g,">\n			<section").replace(/\n\t\t<header/g,"\n			<header").replace(/\t\t\t<\/header></g,"			</header>\n			<").replace(/\t\t\t<\/section></g,"			</section>\n			<").replace(/<\/a><section/g,"</a>\n			\n			<section").replace(/<\/a><header/g,"</a>\n			\n			<header").replace(/<\/section>\n\t\t\t<a/g,"</section>\n			\n			<a").replace(/<\/header>\n\t\t\t<a/g,"</header>\n			\n			<a").replace(/\t\t\t<\/section>\n\t\t\t<\/div>/g,"			</section>\n		</div>").replace(/\t\t\t<\/header>\n\t\t\t<\/div>/g,"			</header>\n		</div>").replace(/\t\t\t<\/header>\n\t\t\t<section/g,"			</header>\n			\n			<section").replace(/\t\t\t<\/section>\n\t\t\t<header/g,"			</section>\n			\n			<header").replace(/\t\t\t<\/section>\n\t\t\t<section/g,"			</section>\n			\n			<section").replace(/\t\t\t<\/header>\n\t\t\t<header/g,"			</header>\n			\n			<header"),f=i(f),g=$("#vif").html(),e=Oa(e,f,g),e=Pa(e,f,g),g=Qa(e,f,g),h=String(e+f+g),h=String(h).replace(/\.\.\/img\//g,"img/").replace(/\.\.\/video\//g,"video/").replace(/delay-src/g,"src").replace(/no-src/g,"src")}$(window).resize(b),b(),T(),N(),Ya=Q(),Za=R(),$a=S(),ea(),n(),t(),ia(),ja(),ra(),_a=ta(),ab=va(),-1!=navigator.userAgent.indexOf("NT 6.")&&$("head").append("<style>::-webkit-scrollbar { width: 8px; background-color: rgba(0,0,0,0); -webkit-border-radius: 100px; } ::-webkit-scrollbar-thumb:vertical { background: rgba(0,0,0,0.3); -webkit-border-radius: 100px; } </style>"),bb=new Date,$(".vkg").text(bb.getFullYear()),$(".vgw").click(function(){$(".vkm").toggleClass("vme"),$(".vgw").toggleClass("vmg")}),$(".viu").click(function(){$(".vjq").removeClass("vgq")}),$(".vjq .vex").click(function(){$(this).closest(".vjq").removeClass("vgq")}),$(".vjc").mouseenter(function(){$(".vkm").removeClass("vjz")}),$(".vlf li").click(function(){$(".vlf li").removeClass("vhr"),$(this).addClass("vhr");var a=$(this).index()+1;$(".vlp").removeClass("vhr"),$(".vlp:nth-child("+a+")").addClass("vhr")}),$(".vet").click(function(){$(".vet").addClass("vih"),ba()}),$(".vhd").click(function(){
  $.localStorage(eb+".vhh",""),$.localStorage(eb+".vhg",""),$(".vhe").addClass("vih"),$(".vac").trigger("click"),$(".vkm").addClass("vjz")}),$(".vac").click(function(){u(),$(".vgm").click(),$(".vlv").toggleClass("vmf"),$(".vlv").find(".vho").removeClass("vhr"),b()}),$(".vma").click(function(){$(".vgi").toggleClass("vhr"),$(this).toggleClass("vhr")}),$(".vgh").click(function(){$(".vgi").removeClass("vhr"),$(".vma").removeClass("vhr")}),$(".vlm").click(function(){j()}),$(".vev").each(function(){var a=($(this).data("vjt"),$(this).attr("id"));$(".vfj").append('<li class="vfi" nav-id="'+a+'" vit="vir">'+$(this).attr("data-vjt")+"</li>")}),$("#vdk .vim").each(function(){var a=$(this).attr("vbr"),b=$(this).attr("id");$(".vdm").append('<li class="vdl" vid="'+b+'" vit="vir">'+a+"</li>")}),$(".vei").on("blur keyup paste input",function(){document.title=$(this).text(),$.localStorage(eb+".vhh")?($('#vhl [viy="'+$.localStorage(eb+".vhh")+'"]').attr("page-title",$(this).text()),$.localStorage(eb+".vhk",$("#vhl").html())):$.localStorage(eb+".vhj",$(this).text()),Z()}),$(document).on("click focus blur keyup paste input",".vei.vlx",function(){$.localStorage(eb+".vhh",""),$.localStorage(eb+".vhg",""),$(".vhe").addClass("vih"),$(this).removeClass("vlx")}),$(".vgk").click(C),$(".vdh").click(C),$(".vga").on("click",function(){l(),$.modal.close()}),$(".vgb").keyup(function(a){13===a.keyCode&&""!=$(".vgb").val()&&(l(),$.modal.close())}),$(".vfy").on("click",function(){""!=$(".vfz").val()&&(r(),$.modal.close())}),$(".vfz").keyup(function(a){13===a.keyCode&&""!=$(".vfz").val()&&(r(),$.modal.close())}),$(".vgf").keyup(function(a){13===a.keyCode&&""!=$(".vgf").val()&&(_(),$.modal.close())}),$(".vgd").on("click",function(){""!=$(".vgf").val()&&(_(),$.modal.close())}),$(".vfw").find(".ves").length&&$(".vfw").removeClass("empty-vfw"),$(".vcx").on("click",function(){J(),$.modal.close()}),$(".vcu").keyup(function(a){13===a.keyCode&&""!=$(".vcu").val()&&(J(),$.modal.close())}),$(".veh").change(function(a){$(".vcu").val($(this).val())}),$(".vcn").on("click",function(){K(),$.modal.close()}),$(".vbj").on("click",function(){D(),$.modal.close()}),$(".vbg").keyup(function(a){13===a.keyCode&&(D(),$.modal.close())}),$(".vdf").on("click",function(){L(),$.modal.close()}),$(".vco, .vcf").keyup(function(a){13===a.keyCode&&(K(),$.modal.close())}),$(".vco").get(0).addEventListener("drop",function(a){a.stopPropagation(),a.preventDefault();var b=a.dataTransfer.getData("URL");$(".vco").val(b),$(".vcp").attr("src",b)},!1),$(".vcp").get(0).addEventListener("drop",function(a){a.stopPropagation(),a.preventDefault();var b=a.dataTransfer.getData("URL");$(".vco").val(b),$(".vcp").attr("src",b)},!1),$(".vco").get(0).addEventListener("dragover",function(a){a.preventDefault(),a.stopPropagation()},!1),$(".vda, .vdg, .vdb").keyup(function(a){13===a.keyCode&&(L(),$.modal.close())}),$(".vho span").click(function(){$(this).closest(".vho").toggleClass("vhr"),setTimeout(function(){b()},301)}),$(".vgc").click(function(){z(),$(".vfw").removeClass("empty-vfw")}),$(".ved").click(function(){$(".vef").focus().trigger("click")}),$(".vef").change(function(a){"variant"==$(this).val().split(".").pop()?da(a):A("Please select a .variant file","Variant cannot import plain HTML files. <br /><br />You can import .variant files that have been exported from Variant here, or by someone else.")}),$(".vdi").click(function(){ca("all")}),$(".vfo").click(function(){$(".vmm").closest(".vkq").remove(),$("#veu nav").remove(),$(".viu nav").remove(),$(this).closest(".vho").removeClass("vhr");var a=$(this).text();$(this).closest(".vho").find(".vly").text(a),b(),Ia(),Z(),h()}),$(".vfl").click(function(){$("#veu footer").remove(),$(".viu footer").remove(),$(this).closest(".vho").removeClass("vhr");var a=$(this).text();$(this).closest(".vho").find(".vly").text(a),b(),Ia(),Z(),h()}),$(document).on("click",".vgr",function(){$(".vib").toggleClass("vib vjb"),$(this).toggleClass("vhr vdv vgr")}),$(document).on("click",".vdv",function(){$(".vjb").toggleClass("vib vjb"),$(this).toggleClass("vgr vdv vhr")}),$(".vhp").click(function(){$(".vdz,.vcl").toggleClass("vhr")}),$(".vcp").click(function(){$(".vhp").trigger("click")}),$(".vch").change(function(a){M(a)}),$(".vee").click(function(){$(".vch").focus().trigger("click")});try{$.isFunction(a)}catch(f){$(".vml").removeClass("vih"),$(".vdq, .vah, .vgy").click(function(){A("Demo Only",'Getting HTML in the demo is disabled.<br /><br />You may export your page in a .variant file and import it when you <a href="#" target="_blank">purchase the full version</a>.')})}$(".vek").remove(),$(".vdq").click(function(){var c=$("#veu").clone(),d=document.title,e=$(".vms").attr("vmr"),f="undefined"!=typeof $("#vkk").attr("class")?$("#vkk").attr("class"):"";output=a(c,d,e,f),$(".vfu").html(""),$(".vfu").append(output),$(".vdr").modal({autoResize:!0,overlayClose:!0,opacity:0,overlayCss:{"background-color":"#3e3e3e"},closeClass:"vex",onShow:function(){switch(window.location.protocol){case"http:":case"https:":case"file:":$(".vgn").click(function(){$(".vfu").select()}),$(".vgn").show(),$(".code-copy-simple").show(),$(".vfu").select()}setTimeout(function(){$(".simplemodal-container").addClass("vko"),$(".simplemodal-overlay").addClass("vko")},100),b()},onClose:function(){setTimeout(function(){$.modal.close(),b()},300),$(".simplemodal-container").removeClass("vko"),$(".simplemodal-overlay").removeClass("vko")}}),""!=$.localStorage(eb+".vbu")&&$.localStorage(eb+".vbu",$("#image-edit-chooser").attr("vbv"))}),$(".vgy").click(function(){var a,b="",c="";b=$.localStorage(eb+".vhg"),b="undefined"!=typeof $.localStorage(eb+".vhg")?$.localStorage(eb+".vhg"):"page",c=$(".vfu").val(),a=new Blob([c],{type:"text/plain;charset=utf-8"}),saveAs(a,X(b)+".html")}),$(".vah").click(function(){var b,c,d=new JSZip,e=[],f=new Date;return $("#vhl .viy").length?($("#vhl .viy").each(function(){e.push($(this).attr("viy"))}),b="variant-exported-"+X(f.toDateString()),e.forEach(function(b,c){var e,g,h,i,j,k,l;f=new Date,k=$('#vhl [viy="'+b+'"]').attr("vjh"),l=$('#vhl [viy="'+b+'"]').attr("page-title"),h="undefined"!=typeof $.localStorage(eb+"vmp."+b)?$.localStorage(eb+"vmp."+b):"",i="undefined"!=typeof $.localStorage(eb+".vkp."+b)?$.localStorage(eb+".vkp."+b):"",e=$.localStorage(eb+".state.veu."+b),g=$('<div id="vjk" />').html(e),j=$('<textarea id="variant-temp-textarea-mrv" />').append(a(g,l,h,i)),k=1==$('#vhl [vjh="'+k+'"]').length?X(k)+".html":X(k)+"-"+f.getTime()+".html",d.file(k,j.val())}),c=d.generate({type:"blob",compression:"deflate"}),void saveAs(c,"html-pages-"+X(f.toDateString())+".zip")):void A("Export HTML","There was nothing to export.<br /><br />Save at least one page before exporting.")}),$(".vap").click(function(){$('.vfj [vit="vhz"]').remove(),$("#vbn").html(""),$.localStorage(eb+".vbo",""),$(".vap").html("Cleared").removeClass("val").addClass("vak"),setTimeout(function(){$(".vap").html("Clear Navs").removeClass("vak").addClass("val")},1500)}),$(".vao").click(function(){$('.vdm [vit="vhz"]').remove(),$.localStorage(eb+".vbm",""),$(".vao").html("Cleared").removeClass("val").addClass("vak"),setTimeout(function(){$(".vao").html("Clear Footers").removeClass("vak").addClass("val")},1500)}),$(".vaq").click(function(){var a;$("#vhl li").each(function(){var a,b=$(this).attr("viy");a=$.localStorage.io(eb+".state.veu."+b),a.remove(),a=$.localStorage.io(eb+".state.vem."+b),a.remove(),$(this).remove()}),$(".vfw div").remove(),$(".vfw").addClass("empty-vfw"),a=$.localStorage.io(eb+".state.veu"),a.remove(),a=$.localStorage.io(eb+".state.vem"),a.remove(),a=$.localStorage.io(eb+".vhj"),a.remove(),a=$.localStorage.io(eb+".vhh"),a.remove(),a=$.localStorage.io(eb+".vhg"),a.remove(),a=$.localStorage.io(eb+".vhk"),a.remove(),$(".vaq").html("Cleared").removeClass("val").addClass("vak"),setTimeout(function(){$(".vaq").html("Clear Pages").removeClass("vak").addClass("val")},1500)}),$(".vpc").click(function(){$.localStorage(eb+".gallery.images",""),setTimeout(function(){$(".vpc").html("Rebooting").removeClass("vak").addClass("val"),window.location.reload()},1500)}),$(".van").click(function(){$(".vfw div").remove(),$("#vhl li").remove(),window.localStorage.clear(),$(".van").html("Cleared").removeClass("val").addClass("vak"),setTimeout(function(){$(".van").html("Rebooting").removeClass("vak").addClass("val"),window.location.reload()},1500)}),$("img").on("dragstart",function(a){a.preventDefault()}),$(document).on("submit",".viu form",function(a){return a.preventDefault?a.preventDefault():a.returnValue=!1,!1}),$(document).on("click",".vgh",function(){if($(".vgh").removeClass("vhr"),$(this).addClass("vhr"),"*"==$(this).attr("vbp"))return $(".vgl").removeClass("vih"),void $(".vma span").text("All");$(".vgl").addClass("vih"),$('.vgl[vbp*="'+$(this).attr("vbp")+'"]').removeClass("vih");var a=$(this).text();$(".vma span").text(a),b()}),$(document).on("click",".vby",function(){var a=$(this).parent().attr("nav-id");$(this).parent().remove(),$("."+a).remove(),o()}),$(document).on("click",".vbx",function(){var a=$(this).parent().attr("vid");$(this).parent().remove(),$("."+a).remove(),p()}),$(document).on("click",".ves",function(){ba($(this).attr("state-id"),$(this).attr("vjh"))}),$(document).on("click",".vdj",function(){return ca($(this).parent().attr("state-id")),!1}),$(document).on("click",".vfi",function(){d($(this).attr("nav-id"),$(this).attr("vit")),$(this).closest(".vho").removeClass("vhr");var a=$(this).text();$(this).closest(".vho").find(".vly").text(a)}),$(document).on("click",".vdl",function(){e($(this).attr("vid"),$(this).attr("vit")),$(this).closest(".vho").removeClass("vhr"),$(".vhe").addClass("vih");var a=$(this).text();$(this).closest(".vho").find(".vly").text(a)}),$(document).on("click",".vca",function(){var a=$(this).attr("vbq");$("#veu ."+a).remove(),$(".viu ."+a).remove(),$("[vik="+a+"]").remove(),$(this).parent().remove(),h(),$(".vem").find(".vaa").length?$(".vem").removeClass("empty-vem"):$(".vem").addClass("empty-vem"),$(".viu .vnj").remove(),b(),Ia()}),$(document).on("click",".vfg",function(){var a=$("."+$(".viu nav").attr("vic"));$(".vev").each(function(){var b=$(this).data("vff");b.forEach(function(b){a.removeClass(b.className)})}),a.addClass($(this).attr("nav-class")),Z(),h()}),$(document).on("blur keyup paste input",".viu [contenteditable], .viu strong",function(a){if("paste"==a.type){a.preventDefault();var b=(a.originalEvent||a).clipboardData.getData("text/plain").replace(/\n/g,"<br>");document.execCommand("insertHtml",!1,b)}$(this).children().length?""===$(this).html()&&$(this).html("&nbsp;"):""===$(this).text()&&$(this).text(" "),$("#veu ."+$(this).attr("vic")).html($(this).html()),Z()}),$(document).on("keydown",".viu [contenteditable]",function(a){return 13===a.keyCode?Wa(a)?!0:!1:void 0}),$(document).on("keydown",'.viu [type="submit"]',function(a){return 32===a.keyCode?Xa(a)?!0:!1:void 0}),$(document).on("blur keyup paste input",".vir",function(){$(this).removeClass("vir").addClass("vhz")}),$(document).on("keyup paste input","nav.vir",function(){k($(this))}),$(document).on("keyup paste input",".vaa span",function(a){return 13===a.keyCode?(a.stopPropagation(),!1):(W($(this)),!0)}),$(document).on("keydown",".vaa span",function(a){return 13===a.keyCode?(a.stopPropagation(),!1):void 0}),$(document).on("keyup paste input","nav.vhz",function(){o()}),$(document).on("keyup paste input",".vgb",function(){""!=$(this).val()?$(".vga").removeClass("vih"):$(".vga").addClass("vih")}),$(document).on("keyup paste input","footer.vir",function(){q($(this))}),$(document).on("keyup paste input","footer.vhz",function(){p()}),$(document).on("keyup paste input",".vfz",function(){""!=$(this).val()?$(".vfy").show():$(".vfy").hide()}),$(document).on("keyup paste input",".vgf",function(){""!=$(this).val()?$(".vgd").removeClass("vih"):$(".vgd").addClass("vih")}),$(".viu").on("mouseenter","p , span, a, h1, h2, h3, h4, h5, h6, strong, em, li, ul, div, i, img, input, textarea, blockquote, figcaption, td, th, label, address",function(){$(this).addClass("vdw")}),$(".viu").on("mouseleave","p , span, a, h1, h2, h3, h4, h5, h6, strong, em, li, ul, div, i, img, input, textarea, blockquote, figcaption, td, th, .vnu, label, address",function(){$(this).removeClass("vdw")}),$(".viu").on("mouseenter","section, header, footer",function(){xa($(this).attr("vic"))}),$(document).on("mouseenter",'[vic] [class*="medium-"]',function(a){kb=$(this).attr("vic")}),$(document).on("mouseenter",'[vic] [class*="col-md-"]',function(a){kb=$(this).attr("vic")}),$(document).on("mouseenter",'[vic] [class*="col-sm-"]:not([class*="col-md-"])',function(a){kb=$(this).attr("vic")}),$(document).on("mouseenter",'[vic] [class*="col-xs-"]:not([class*="col-md-"])',function(a){kb=$(this).attr("vic")}),$(document).on("keyup",document,function(a){kb.length&&a.ctrlKey&&(219===a.keyCode&&V(kb),221===a.keyCode&&U(kb))}),$(document).on("click","a.vjx",function(a){return a.preventDefault?a.preventDefault():a.returnValue=!1,!1}),$(document).on("mouseenter",".viu img:not(.viu .slides > li > img, .viu .slides .owl-item img, .voh img, ul.flickr-feed img )",function(a){$('[vof="'+$(this).attr("vic")+'"]').length||Aa($(this).attr("vic"),$(this).attr("vic"))}),$(document).on("mouseenter",'.viu div[class*="col-"]',function(a){var b=$(this);b.find(".image-holder, .background-image-holder:not(.voh .background-image-holder, .viu .slides > li > img, .viu .slides .owl-item img, .viu .slides > li > .background-image-holder, .viu .slides .owl-item > li > .background-image-holder, .viu section > .background-image-holder, .viu header > .background-image-holder, .viu footer > .background-image-holder)").each(function(){var a=$(this);a.closest('div[class*="col-"]').find("div.hover-state").length&&!a.closest('div[class*="col-"]').find("div.hover-state").find(".vnv").length?$('[vof="'+a.find("img").attr("vic")+'"]').length||Aa(a.find("img").attr("vic"),a.closest('div[class*="col-"]').find(".hover-state").attr("vic")):a.find(".vnv").length||$('[vof="'+a.find("img").attr("vic")+'"]').length||Aa(a.find("img").attr("vic"),a.attr("vic"))})}),$(document).on("mouseenter",".viu .embed-video-container:not(.voh .embed-video-container, .viu .slides > li > .embed-video-container), .viu .media-embed-container:not(.voh .media-embed-container, .viu .slides > li > .media-embed-container)",function(){var a=$('<div class="vnw"></div>'),b=$(this).find("iframe");ab.options.forEach(function(c){b.is(c.selector)&&(attributeButton=Ea(c,!1,b.attr("vic")),a.append(attributeButton))}),b.closest(".embed-video-container, .media-embed-container").append(a)}),$(document).on("mouseenter",".viu .local-video-container video:not(.voh .local-video-container video, .viu .slides > li > .local-video-container video, .viu .slides .owl-item > li > .local-video-container video)",function(){var a=$(this).closest(".local-video-container").find(".vnw").length?$(this).closest(".local-video-container").find(".vnw"):$('<div class="vnw"></div>'),b=$(this);a.find('[vof="'+b.attr("vic")+'"]').length||(editVideoButton=Ba(b.attr("vic"),!1),a.append(editVideoButton),b.closest(".local-video-container").append(a))}),$(document).on("mouseenter",".viu ul.slides:not(.vjx)",function(a){var b=$(this);try{b.parent().flexslider("pause")}catch(c){}try{b.closest(".slider").flexslider("pause")}catch(c){}try{$(this).trigger("stop.owl.autoplay")}catch(c){}b.addClass("paused"),$("#veu .vnx").removeClass("vnx"),Ca(b.attr("vic")),$("#veu ."+b.attr("vic")).addClass("vnx")}),$(document).on("mouseleave",".viu ul.slides.paused:not(.vjx)",function(a){var b=$(this);try{b.parent().flexslider("play")}catch(c){}try{b.closest(".slider").flexslider("play")}catch(c){}try{"undefined"!=typeof b.attr("data-autoplay")&&"false"!==b.attr("data-autoplay")&&b.trigger("play.owl.autoplay")}catch(c){}b.removeClass("paused")}),$(document).on("mouseleave",'.viu .vnu, .viu div[class*="col-"], .viu .embed-video-container, .viu .local-video-container, .viu .media-embed-container, .viu ul.slides, .viu .voh',function(a){window.mr_variant.removeIconButtons===!0&&$(this).find(".vnw").remove()}),$(document).on("mouseenter",".viu .voh:not(.vib, .vjb)",function(a){var b,c,d,e,f="",g=$(".viu ."+$(this).attr("vic")),h=g.parent().find(".voh").not(".vjb , .vib").length>1?!0:!1,i=Sa(g,".voh"),j=Ta(g,".voh");b=$('<div class="vnw"></div>'),h&&!i&&(e=Da("arrow-thick-left","Sort Previous"),$(e).unbind("click").bind("click",function(a){return G(g.attr("vic"),!0),a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1}),b.append(e)),h&&(c=Da("minus","Delete"),$(c).unbind("click").bind("click",function(a){return F(g.attr("vic")),a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1}),b.append(c)),moleculeImages=g.find("img:not(.vib)"),moleculeImages.each(function(){var a=$(this);b.append(Aa(a.attr("vic"),!1))}),ab.options.forEach(function(a){g.is(a.selector)&&(attributeButton=Ea(a,!1,g.attr("vic")),b.append(attributeButton))}),d=Da("plus","Clone"),$(d).unbind("click").bind("click",function(a){return E(g.attr("vic"),!0),a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1}),b.append(d),h&&!j&&(f=Da("arrow-thick-right","Sort Next"),$(f).unbind("click").bind("click",function(a){return H(g.attr("vic"),!0),a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,!1}),b.append(f)),g.append(b)}),$(document).on("click",".vni",function(){$(this).toggleClass("vhr")}),$(document).on("contextmenu",".vni",function(a){a.stopPropagation(),$(this).trigger("click")}),$(document).on("contextmenu","[vic]",function(a){if(a.shiftKey)return!0;$(".vaw").removeClass("vih"),$(".vcg").text("Edit Image"),$(".vct").text("Edit Link"),$(".vfq").addClass("vih");var c,d,e,f,g,h,i,j,k,l=$("#veu ."+$(this).attr("vic"));$(l).closest("section");return htmlTags={SECTION:"Section",LI:"List Item",H1:"Heading",H2:"Heading",H3:"Heading",H4:"Heading",H5:"Heading",H6:"Heading",P:"Paragraph",SPAN:"Span",UL:"Unordered List",DIV:"Div",IMG:"Image",STRONG:"Strong Text",EM:"Emphasised Text",I:"Icon",A:"Link",INPUT:"Input",BLOCKQUOTE:"Quote",FIGCAPTION:"Caption",TD:"Teble Cell",TH:"Table Heading",FORM:"Form",ADDRESS:"Address"},$(".vau").text(htmlTags[l.get(0).tagName]).removeClass("vih"),$(l).data("vip")?B(l,!1,!1):$(l).closest("[data-vip]").length&&B($(l).closest("[data-vip]"),!1,!1),wa($(this).attr("vic")),l.is("p , span, h1, h2, h3, h4, h5, h6, strong, em, li:not(ul.slides > li, ul.slides .owl-item > li), ul, div, blockquote, figcaption, address")&&($(".var").unbind("click").bind("click",function(){E(l.attr("vic"))}),$(".vbw").unbind("click").bind("click",function(){F(l.attr("vic"))})),l.is("a")&&($(".vct").removeClass("vih"),$(".vct").unbind("click").bind("click",function(){v(l.attr("vic"))}),$(".var").unbind("click").bind("click",function(){E(l.attr("vic"))}),$(".vbw").unbind("click").bind("click",function(){F(l.attr("vic"))})),l.closest("a").length&&($(".vct").removeClass("vih"),l.closest("a").hasClass("ven")&&($(".vau").text("Lightbox Thumbnail"),$(".vct").text("Edit Lightbox Link"),$(".vcg").text("Edit Thumbnail Image")),g=l.closest("a").attr("vic"),$(".vct").unbind("click").bind("click",function(){v(g)})),l.closest("section, header").find(".video-wrapper").children("video").length&&(l.is(".overlay")&&($(".vau").text("Video Background"),$(".var").addClass("vih"),$(".vbw").addClass("vih")),video=l.closest("section, header").find(".video-wrapper").children("video"),$(".vdc").removeClass("vih"),$(".vdc").unbind("click").bind("click",function(){y($(video).attr("vic"))}),l.closest("section, header").find(".background-image-holder").children(".background-image").length&&($(".vcg").text("Edit Poster Image"),$(".vcg").removeClass("vih"),$(".vcg").unbind("click").bind("click",function(){w(l.closest("section, header").find(".background-image-holder").children(".background-image").attr("vic"))})),l.closest(".divider-background").find(".background-image").length&&($(".vcg").text("Edit Poster Image"),$(".vcg").removeClass("vih"),$(".vcg").unbind("click").bind("click",function(){w(l.closest(".divider-background").find(".background-image").attr("vic"))}))),l.closest(".slides li").find(".video-wrapper").children("video").length&&(l.is(".overlay")&&($(".vau").text("Video Slide Background"),$(".var").addClass("vih"),$(".vbw").addClass("vih")),video=l.closest(".slides li").find(".video-wrapper").children("video"),$(".vcg").text("Edit Poster Image"),$(".vdc").removeClass("vih"),$(".vdc").unbind("click").bind("click",function(){y($(video).attr("vic"))})),l.closest("video").length&&($(".vau").text("Video"),$(".var").addClass("vih"),$(".vbw").addClass("vih"),video=l.closest("video"),$(".vdc").removeClass("vih"),$(".vdc").unbind("click").bind("click",function(){y($(video).attr("vic"))})),l.closest(".slides li").find(".video-wrapper").children("video").length&&l.closest(".slides li").find(".background-image-holder").children(".background-image").length&&($(".vcg").text("Edit Poster Image"),$(".vcg").removeClass("vih"),$(".vcg").unbind("click").bind("click",function(){w(l.closest(".slides li").find(".background-image-holder").children(".background-image").attr("vic"))})),l.is("p , div, span, figure, article, img")&&(l.closest('[class*="medium-"]').length&&(closestElement=l.closest('[class*="medium-"]'),closestElement.hasClass("medium-12")||($(".veg").removeClass("vih"),$(".veg").unbind("click").bind("click",function(){U(closestElement.attr("vic"))})),closestElement.hasClass("medium-1")||($(".vbt").removeClass("vih"),$(".vbt").unbind("click").bind("click",function(){V(closestElement.attr("vic"))}))),l.parent().is('div [class*="medium-"]')&&(l.parent().hasClass("medium-1")||($(".vbt").removeClass("vih"),$(".vbt").unbind("click").bind("click",function(){V(l.attr("vic"))})),l.parent().hasClass("medium-12")||($(".veg").removeClass("vih"),$(".veg").unbind("click").bind("click",function(){U(l.attr("vic"))}))),l.closest('[class*="col-md-"]').length&&(closestElement=l.closest('[class*="col-md-"]'),closestElement.hasClass("col-md-12")||($(".veg").removeClass("vih"),$(".veg").unbind("click").bind("click",function(){U(closestElement.attr("vic"))})),closestElement.hasClass("col-md-1")||($(".vbt").removeClass("vih"),$(".vbt").unbind("click").bind("click",function(){V(closestElement.attr("vic"))}))),l.closest('[class*="col-sm-"]:not([class*="col-md-"])').length&&(closestElement=l.closest('[class*="col-sm-"]:not([class*="col-md-"])'),closestElement.hasClass("col-sm-12")||($(".veg").removeClass("vih"),$(".veg").unbind("click").bind("click",function(){U(closestElement.attr("vic"))})),closestElement.hasClass("col-sm-1")||($(".vbt").removeClass("vih"),$(".vbt").unbind("click").bind("click",function(){V(closestElement.attr("vic"))}))),l.closest('[class*="col-xs-"]:not([class*="col-md-"])').length&&(closestElement=l.closest('[class*="col-xs-"]:not([class*="col-md-"])'),closestElement.hasClass("col-xs-12")||($(".veg").removeClass("vih"),$(".veg").unbind("click").bind("click",function(){U(closestElement.attr("vic"))})),closestElement.hasClass("col-xs-1")||($(".vbt").removeClass("vih"),$(".vbt").unbind("click").bind("click",function(){V(closestElement.attr("vic"))})))),l.is(".cover-wrapper, .hover-state")&&(c=l.closest("figure").find("img").get(0),d=l.closest("a").first(),$(c).is("img")&&($(".vcg").removeClass("vih"),$(".vcg").unbind("click").bind("click",function(){w($(c).attr("vic"))})),l.closest("figure").length&&(h=l.closest("figure").attr("vic"),h.length&&($(".var").unbind("click").bind("click",function(){E(h)}),$(".vbw").unbind("click").bind("click",function(){F(h)})))),(l.parents("nav").length||l.is("nav"))&&(l.is("nav")?(f=l.attr("nav-id"),$(".vau").text("Nav"),$(".vaw").addClass("vih")):(f=l.closest("nav").attr("nav-id"),$(".vau").text("Nav > "+$(".vau").text())),$(".vfe").removeClass("vih"),$(".vfg[nav-id="+f+"]").each(function(){$(".viu nav").hasClass($(this).attr("nav-class"))||$(this).removeClass("vih")}),$(".vhw .vaw").not(".vih").length||$(".vfe .vfm").removeClass("vih")),l.closest(".hover-background").length&&(c=l.closest("section").find(".hover-background .background-image").get(0),$(c).is("img")&&($(".vcg").text("Edit Background Image").removeClass("vih"),$(".vcg").unbind("click").bind("click",function(){w($(c).attr("vic"))})),$(l).closest(".hover-background").find(".foreground-image-holder .background-image").each(function(a){var b=a+1,c=$(this);newButton=$(".vcg").clone(),newButton.removeClass("vcg").addClass("vkd edit-foreground-"+b),newButton.text("Edit Layer "+b+" Image"),$(this).attr("src"),newButton.unbind("click").bind("click",function(){w(c.attr("vic"))}),newButton.insertBefore($(".vcg"))})),l.is("i")&&($(".vau").text("Icon"),$(".vcc").removeClass("vih"),$(".vcc").unbind("click").bind("click",function(){x(l.attr("vic"))}),$(".var").unbind("click").bind("click",function(){E(l.attr("vic"))}),$(".vbw").unbind("click").bind("click",function(){F(l.attr("vic"))})),l.is("img")&&($(".vcg").removeClass("vih"),$(".vcg").unbind("click").bind("click",function(){w(l.attr("vic"))}),$(".var").unbind("click").bind("click",function(){E(l.attr("vic"))}),$(".vbw").unbind("click").bind("click",function(){F(l.attr("vic"))})),l.is("section")&&($(".vau").text("Section"),$(".var").unbind("click").addClass("vih"),$(".vbw").unbind("click").addClass("vih")),l.is("header")&&($(".vau").text("Section"),$(".var").unbind("click").addClass("vih"),$(".vbw").unbind("click").addClass("vih")),l.closest(".veo").length&&(e=$(l).closest(".veo"),c=$(l).closest(".veo").find("img"),$(".vcg").removeClass("vih"),$(".vcg").unbind("click").bind("click",function(){w(c.attr("vic"))}),$(".var").removeClass("vih").unbind("click").bind("click",function(){E(e.attr("vic"))}),$(".vbw").removeClass("vih").unbind("click").bind("click",function(){F(e.attr("vic"))})),l.hasClass("vns")&&$(".var").unbind("click").addClass("vih"),ua($(this).attr("vic"),!0),i=$("body > .vhw"),i.find(".vaw:not(.vih)").length?(j=$(window).width(),k=$(window).height(),a.pageX+i.outerWidth()>j?i.css("left",j-i.outerWidth()):i.css("left",a.pageX),a.pageY+i.outerHeight()>k?i.css("top",k-i.outerHeight()):i.css("top",a.pageY),b(),i.show()):i.hide(),!1}),$(document).on("click",".vkd",function(){$(".vkd").remove()}),$(document).on("click",".vjb",function(){$(this).removeClass("vjb vib").addClass("vjm"),$("#veu ."+$(this).attr("vic")).removeClass("vjb vib").addClass("vjm"),$(this).attr("vjw")&&(also=$(this).closest("nav, header, section, footer").find($(this).attr("vjw")).attr("vic"),$(".viu ."+also).removeClass("vjb vib").addClass("vjm"),$("#veu ."+also).removeClass("vjb vib").addClass("vjm")),o(),p(),Z()}),$(document).on("click",".vcj",function(){var a=$(this).get(0);$(".vco").val($(this).attr("src").replace("../img/","img/")),$(".vcp").attr("src",$(this).attr("src")),$(".veb").text(a.naturalWidth+"x"+a.naturalHeight+" pixels"),$(".vdz,.vcl").toggleClass("vhr")}),$(document).on("click",".vgl",function(){var a=$(this);a.hasClass("catch-double-click")?$(".vad").toggleClass("vhr"):(a.addClass("catch-double-click"),setTimeout(function(){a.removeClass("catch-double-click")},300),c($(this).attr("vgv"))),$(".vem").removeClass("empty-vem"),b()}),$(document).on("click",".no-image",function(){P(this)}),$(document).on("click",".vav",function(){$(".vhw").hide()}),$(document).on("keyup paste input",".vcd .vok",function(){var a=$(".vcd .vok").val();""!==a?(La(a),$(".vcd .vol").removeClass("vih")):Ma()}),$(document).on("click",".voj li:not(.vhr)",function(){var a=$(this);$(".voj li.vhr, .variant-icon-sets-mrv li.vhr").removeClass("vhr"),a.addClass("vhr"),$(".variant-icon-sets-mrv li.vou").eq(a.index()).addClass("vhr"),$(".variant-icon-sets-mrv li.vov").eq(a.index()).addClass("vhr")}),$(document).on("click",".vcd .vol",function(){Ma()}),$(document).on("click",".viu i",function(){var a=$(this);a.hasClass("catch-double-click")?x(a.attr("vic")):(a.addClass("catch-double-click"),setTimeout(function(){a.removeClass("catch-double-click")},300))}),$(document).on("click",".viu a, .viu nav a",function(){var a=$(this);return a.hasClass("catch-double-click")?v(a.attr("vic")):(a.addClass("catch-double-click"),setTimeout(function(){a.removeClass("catch-double-click")},300)),!1}),$(document).on("click",".viu img",function(){var a=$(this);a.hasClass("catch-double-click")?w(a.attr("vic")):(a.addClass("catch-double-click"),setTimeout(function(){a.removeClass("catch-double-click")},300))}),$(document).on("click","div.vam",function(){var a=$("."+$("#vgo").val()),b=$(this).find("i");a.hasClass("icon-large")&&a.addClass("keep-large-icon").removeClass("icon-large"),a.hasClass("icon-lg")&&a.addClass("keep-lg-icon").removeClass("icon-lg"),a.hasClass("icon--lg")&&a.addClass("keep--lg-icon").removeClass("icon--lg"),a.hasClass("icon-sm")&&a.addClass("keep-sm-icon").removeClass("icon-sm"),a.hasClass("icon--sm")&&a.addClass("keep--sm-icon").removeClass("icon--sm"),Ya.forEach(function(b){a.alterClass(b.iconPrefix+"*",""),a.removeClass(b.iconClass)}),a.addClass(b.attr("icon-class")),a.hasClass("keep-large-icon")&&a.removeClass("keep-large-icon").addClass("icon-large"),a.hasClass("keep-lg-icon")&&a.removeClass("keep-lg-icon").addClass("icon-lg"),a.hasClass("keep--lg-icon")&&a.removeClass("keep--lg-icon").addClass("icon--lg"),a.hasClass("keep-sm-icon")&&a.removeClass("keep-sm-icon").addClass("icon-sm"),a.hasClass("keep--sm-icon")&&a.removeClass("keep--sm-icon").addClass("icon--sm"),Na(),Z()}),$(document).on("click",".vbz",function(){var a,b=$(this).parent().attr("state-id");return b==$.localStorage(eb+".vhh")&&($(".vet").addClass("vih"),$.localStorage(eb+".vhh",""),$.localStorage(eb+".vhg","")),$("#vhl [viy="+b+"]").remove(),$.localStorage(eb+".vhk",$("#vhl").html()),setTimeout(function(){$(".vfw").find(".ves").length?$(".vfw").removeClass("empty-vfw"):$(".vfw").addClass("empty-vfw")},50),a=$.localStorage.io(eb+".state.veu."+b),a.remove(),a=$.localStorage.io(eb+".state.vem."+b),a.remove(),$(this).parent().remove(),!1}),$(document).on("click",".vhu",function(){ma($(this).attr("viz"),!0)}),$(document).on("click",".vmv",function(){na($(this).attr("vmw"),!0)}),$(document).on("click",".vks",function(){if(!$(this).hasClass("vkr")){var a=$(this).parent().attr("optionalclass"),b=$(this).parent().attr("classtarget");$(this).parent().find(".vks").toggleClass("vkr"),$(this).hasClass("choice-button-on")?$(b).addClass(a):$(b).removeClass(a)}$(b).each(function(){""==$(this).attr("class")&&$(this).removeAttr("class")}),$(this).hasClass("refresh")&&h(b),Z()}),$(document).on("click",".vkt",function(a){var b=$(this).parent().attr("optionalClass"),c=$(this).parent().attr("classtarget"),d="";a.stopPropagation(),$(this).hasClass("vku")?($(c).removeClass(b),d=!1):($(c).addClass(b),d=!0),$(this).toggleClass("vku"),$(c).each(function(){""==$(this).attr("class")&&$(this).removeAttr("class")}),$(this).hasClass("refresh")&&h(c),"parallax"==b&&(Ia(),"undefined"!=typeof window.mr_parallax&&window.mr_parallax.callback(c)),"scroll-assist"==b&&"undefined"!=typeof window.mr_parallax&&(window.mr_parallax.mr_scrollAssist=d),Z()}),$(document).on("click",".vkv",function(){if(!$(this).hasClass("vkr")){var a=$(this).attr("optionalclass"),b=$(this).parent().attr("classtarget");removeClass=$(this).parent().find(".vkv.vkw").attr("optionalclass"),$(this).parent().find(".vkv").removeClass("vkw"),$(this).addClass("vkw"),$(b).removeClass(removeClass).addClass(a)}$(b).each(function(){""==$(this).attr("class")&&$(this).removeAttr("class")}),Z(),$(this).hasClass("refresh")&&h(b)}),$(document).on("click",".vno",function(){B("."+$(this).attr("vnr"),$(this).data("vnq"),!0)})}),$(window).load(function(){var a=window.navigator.userAgent,c=a.indexOf("MSIE "),d=0;(c>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&($("#if-ie").removeClass("vih"),d=1),0==d&&setTimeout(function(){$(".vhc").addClass("vba"),$(".vhv").removeClass("vba"),setTimeout(function(){$(".vhc").remove(),Ja(),b()},300)},100),$("[delay-src]").each(function(a,b){$(this).attr("src",$(this).attr("delay-src")).removeAttr("delay-src")}),Ya.forEach(function(a){var b=a.headString;
  b=b.replace("href=&quot;css/",'href="theme/css/').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"'),$("head").prepend(b)}),Ka()}),this.chooserImageError=function(a){$(a).parent().addClass("no-image"),$(a).parent().find(".vjn").html("Copy <strong>"+$(a).attr("vis")+"</strong> to your img folder then click here to refresh."),$(a).css("display","none")},this.defaultImageError=function(a){$(a).parent().remove(),$(a).remove()},$.fn.focusEnd=function(){$(this).focus();var a=$("<span />").appendTo($(this)),b=a.get(0),c=null,d=null;return document.selection?(c=document.body.createTextRange(),c.moveToElementText(b),c.select()):window.getSelection&&(c=document.createRange(),c.selectNode(b),d=window.getSelection(),d.removeAllRanges(),d.addRange(c)),a.remove(),this}}function findStrings(){for(var a="",b=0,c=String(Variant),d=0,e=c.length;e>d;d++)"'"==c[d]?(a+=c[d],0==b?b=1:(a+=",",b=0)):1==b&&(a+=c[d]);var f=a.split(",");allStringsSorted=f.sort()}window.mr_variant=new Variant;var removeDuplicatesInPlace=function(a){var b,c,d,e;for(b=a.length-1;b>=0;b--)for(d=a[b],e=!1,c=b-1;!e&&c>=0;c--)d===a[c]&&(b!==c&&a.splice(b,1),e=!0);return a};