/*!
 * Code v1 by @vip
 * Copyright 2014.
 *
 * Designed and built with all the love in the world by @vip
 */
function AJAXy(){$(window).trigger("resize");loadAJAX("return");loadAJAX("cookie");loadAJAX("n");loadAJAX("l")}(function(){var d=new menuBars();var g=new socialMenu();function a(){$(".title").css("display","block");$("article > h1").eq(2).removeClass("semiFont");$("article > h1").eq(2).addClass("largeFont")}cookieAlert();function h(){$(".title").css("display","none");$("article > h1").eq(2).removeClass("largeFont");$("article > h1").eq(2).addClass("semiFont")}$(".title").css("cursor","pointer");$(".title").click(function(){window.location.replace("")});var l;if(document.createElement("detect").style.mixBlendMode===""){$(".right-top").addClass("mix-blend");l="supports blending modes"}else{$(".blendMenu2").css("display","none")}$("body").eq(0).addClass("coda");$("article").eq(0).find("h1").addClass("lobster largeFont");$("article").eq(0).find("p").eq(0).addClass("glegoo normalFont");$("article > h1").eq(1).addClass("imfell semiFont");$("article").eq(1).find("p").eq(0).addClass("oswald normalFont");$("article > h1").eq(2).addClass("arvo largeFont");$("article").eq(2).find("p").eq(0).addClass("indie normalFont");$("#footer").addClass("orbitron");$(".headRight").addClass("amaranth");$(".headLeft").addClass("arvo");function k(m,i){if(!i){return -m}else{return m+(4*(m)*i)-10}}for(var f=0;f<3;f++){var j=5;$(".alertHTML").eq(f).css("top",k(j,f)+"%");var c;if(f===0){c="#563D7C"}else{if(f===1){c="yellow"}else{if(f===2){c="blue"}}}$(".alertHTML").eq(f).css("background-color",c)}$(".alertHTML").eq(2).css("width","140px");$(".alertHTML").eq(1).css("left","-5%");$(".alertCMS").eq(0).css("top","10%");$(".alertCMS").eq(1).css("top","30%");$(".alertPs").eq(0).css("top","5%");$(".alertPs").eq(1).css("top","30%");$(".alertPs").eq(1).css("height","160px");$(".alertPs").eq(1).css("line-height","30px");$(".alertPs").eq(1).css("padding-top","30px");$(window).resize(function e(){var n=window.innerHeight,i=window.innerWidth,o=$(".title").width(),m=100*((i-o)/2)/i;$(".title").css("margin-left",m+"%");if(i<990){h();loadAJAX("s")}else{a();loadAJAX("n")}if(i<840){d.smaller();g.addToPage(g.socialToolbar(),1)}else{d.normal();g.addToPage(g.showroom(),0)}$("img.lazy").lazy({combined:true,effect:"fadeIn",effectTime:1500})});$(window).trigger("resize");function b(){loadAJAX("return");var i=document.createElement("p");i.setAttribute("id","lewy");var m=$(".jsLoadR");m.append(i);$(".title").addClass("animated bounceInDown");$(".col-lg-4").addClass("animated zoomInUp");$("footer").addClass("animated fadeInUp");$("nav").addClass("animated fadeInDown");$(".headRight").addClass("animated rotateInDownLeft");$(".headLeft").addClass("animated rotateInDownRight");$(".jsLoadR").addClass("animated zoomInLeft");$(".jsLoadL").addClass("animated zoomInRight");$(".nightly").addClass("animated fadeInDown");if(window.innerWidth<990){h()}else{a()}setTimeout(function(){correctSVG("svg","gif")},1000);setTimeout(function(){correctSVG("svg","gif");loadAJAX("n");},2000)}$(".col-lg-4").prepend("<div class='triggerR'></div>");$(".triggerR").eq(0).mouseover(function(){$(".alertHTML").css("display","block");if(($(".alertHTML").css("display"))==="block"){if($(".alertHTML").hasClass("fadeOutUp")){$(".alertHTML").removeClass("fadeOutUp")}$(".alertHTML").addClass("fadeInLeft")}else{}});$(".triggerR").eq(0).mouseleave(function(){$(".alertHTML").removeClass("fadeInDown");$(".alertHTML").addClass("fadeOutUp");setTimeout(function(){$(".alertHTML").css("diplay","none")},500)});$(".triggerR").eq(1).mouseover(function(){$(".alertCMS").css("display","block");if(($(".alertCMS").css("display"))==="block"){if($(".alertCMS").hasClass("fadeOutRight")){$(".alertCMS").removeClass("fadeOutRight")}$(".alertCMS").addClass("fadeInDown")}else{}});$(".triggerR").eq(1).mouseleave(function(){$(".alertCMS").removeClass("fadeInRight");$(".alertCMS").addClass("fadeOutRight");setTimeout(function(){$(".alertCMS").css("diplay","none")},500)});$(".triggerR").eq(2).mouseover(function(){$(".alertPs").css("display","block");if(($(".alertPs").css("display"))==="block"){if($(".alertPs").hasClass("fadeOutLeft")){$(".alertPs").removeClass("fadeOutLeft")}$(".alertPs").addClass("fadeInUp")}else{}});$(".triggerR").eq(2).mouseleave(function(){$(".alertPs").removeClass("fadeInUp");$(".alertPs").addClass("fadeOutLeft");setTimeout(function(){$(".alertPs").css("right","0px")},500)});$(".blendMenu2").children().click(function(i){$(".right-top").css("mix-blend-mode",i.target.innerHTML)});$(window).on("mousemove",function(i){$(".top-row").css("backgroundPosition","-"+i.pageX/12+"px");$(".cookieMove").css("margin-top",i.pageY/12+"px")});$(window).load(b())}());