text: $(document).ready(function(){function n(){setTimeout(function(){var r=$("ul.homeSlider").offsetParent().width(),i=parseInt($("ul.homeSlider").css("margin-left"))-r;$("ul.homeSlider").animate({"margin-left":i},{queue:!1,duration:t,complete:function(){$("ul.homeSlider li:last").after($("ul.homeSlider li:first"));$("ul.homeSlider").css({"margin-left":"-100%"})}});n()},1e4)}function s(){return function(n){n=window.event||n;var s=Math.max(-1,Math.min(1,n.wheelDelta||-n.detail)),o=$(document).scrollTop();if(e.is(":animated"))event.preventDefault();else if(s<0){i=r;e.animate({scrollTop:o+i},t)}else if(s>0){i=r;e.animate({scrollTop:o-i},t)}return!1}}var e=$("html, body"),t=1500;$(window).scroll(function(){if($(this).scrollTop()>100){$(".backTop").addClass("show");$(".mainMenuWrapper").addClass("smallHeader")}else{$(".backTop").removeClass("show");$(".mainMenuWrapper").removeClass("smallHeader")}});$(".backTop").click(function(){e.animate({scrollTop:0},t);return!1});$(".page1 a").click(function(){event.preventDefault();e.stop().animate({scrollTop:$(".page.home").offset().top},t,"swing")});$(".page2 a").click(function(){event.preventDefault();e.stop().animate({scrollTop:$(".page.about").offset().top},t,"swing")});$(".page3 a").stop().click(function(){event.preventDefault();e.animate({scrollTop:$(".page.environment").offset().top},t,"swing")});$(".page4 a").stop().stop().click(function(){event.preventDefault();e.animate({scrollTop:$(".page.design").offset().top},t,"swing")});$(".page5 a").stop().stop().click(function(){event.preventDefault();e.animate({scrollTop:$(".page.team").offset().top},t,"swing")});$(".page6 a").stop().stop().click(function(){event.preventDefault();e.animate({scrollTop:$(".page.id").offset().top},t,"swing")});$("ul.homeSlider").css({"margin-left":"-100%"});$("ul.homeSlider li:last").before($("ul.homeSlider li:first"));n();$(".arrow.arrowright").click(function(){if($("ul.homeSlider").is(":animated"))return!1;var e=$("ul.homeSlider").offsetParent().width(),n=parseInt($("ul.homeSlider").css("margin-left"))-e;$("ul.homeSlider").animate({"margin-left":n},{queue:!1,duration:t,complete:function(){$("ul.homeSlider li:last").after($("ul.homeSlider li:first"));$("ul.homeSlider").css({"margin-left":"-100%"})}})});$(".arrow.arrowleft").click(function(){if($("ul.homeSlider").is(":animated"))return!1;var e=$("ul.homeSlider").offsetParent().width(),n=parseInt($("ul.homeSlider").css("margin-left"))+e;$("ul.homeSlider").animate({"margin-left":n},{queue:!1,duration:t,complete:function(){$("ul.homeSlider li:first").before($("ul.homeSlider li:last"));$("ul.homeSlider").css({"margin-left":"-100%"})}})});var r=$(window).height(),i=0;if(document.addEventListener){document.addEventListener("mousewheel",new s,!1);document.addEventListener("DOMMouseScroll",new s,!1)}else document.attachEvent("onmousewheel",new s);var o=$(".accordion");o.find("dd").hide();o.find("dt").on("click",function(){$(this).toggleClass("open").next("dd").slideToggle().siblings("dd:visible").slideUp().prev("dt").removeClass("open")});var u=-180,a=$("#next").on("click",function(){u-=500;event.preventDefault();$(".dopper").fadeTo(150,.7).fadeTo(150,1).css("background-position",u+"px -42px");$(".dopperLogo").fadeTo(150,.7).fadeTo(150,1).css("background-position",u+"px -42px")});$("#previous").on("click",function(){u+=500;event.preventDefault();$(".dopper").fadeTo(150,.7).fadeTo(150,1).css("background-position",u+"px -42px");$(".dopperLogo").fadeTo(150,.7).fadeTo(150,1).css("background-position",u+"px -42px")});$(".chosenOption").text("Mat rood",a);$(".glossRed").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_gloss_red.png')");$(".chosenOption").text("Glanzend rood",a)});$(".glossGreen").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_gloss_green.png')");$(".chosenOption").text("Glanzend groen",a)});$(".glossOrange").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_gloss_orange.png')");$(".chosenOption").text("Glanzend oranje",a)});$(".glossBlue").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_gloss_blue.png')");$(".chosenOption").text("Glanzend blauw",a)});$(".glossWhite").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_gloss_white.png')");$(".chosenOption").text("Glanzend wit",a)});$(".red").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_red.png')");$(".chosenOption").text("Mat rood",a)});$(".green").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_green.png')");$(".chosenOption").text("Mat groen",a)});$(".orange").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_orange.png')");$(".chosenOption").text("Mat oranje",a)});$(".blue").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_blue.png')");$(".chosenOption").text("Mat blauw",a)});$(".white").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_white.png')");$(".chosenOption").text("Mat wit",a)});$(".gold").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_gold.png')");$(".chosenOption").text("24k Goud",a)});$(".bronze").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_bronze.png')");$(".chosenOption").text("Brons",a)});$(".silver").on("click",function(){$(".dopper").css("background-image","url('img/config/dopper_silver.png')");$(".chosenOption").text("Zilver",a)});$(".imgUpload").on("click",function(){event.preventDefault();$(".dopperLogo").css("background-image",'url("img/config/audi.png")')})});