document.createElement("header");document.createElement("section");document.createElement("article");document.createElement("footer");$(document).on("click", ".galerie .thumbs img", function(){var name = $(this).attr("src");var title = $(this).attr("alt");$(".galerie .active img").attr("src", name);$(".galerie .active div").remove();if(title != ""){ $(".galerie .active").append("<div>" + title + "</div>"); }return false;});$(function(){$("a.scroll").click(function(){if($(window).width() < 1024){ var naviHeight = 0; }else{ var naviHeight = $(".navi1").height(); }naviHeight -= 2;var $target = $(this.hash);var targetOffset = $target.offset().top-naviHeight;$("html,body").animate({scrollTop: targetOffset}, 600);return false;});});function naviShow(){$(".menu").click(function(){ $(".navi2 .links").slideToggle(300); });}function naviSwitch(){var winWidth = $(window).width();if(winWidth > 1024){ $(".navi2 .links").show(); } else{ $(".navi2 .links").hide(); }}function naviFixed(){var winWidth = $(window).width();var scrollTop = $(window).scrollTop();var sectionFirstHeight = $("section.home").height() - $(".navi1").height();if((scrollTop > 30) && (winWidth > 1024)){ $(".navi1").addClass("navi1-fixed"); }else{ $(".navi1").removeClass("navi1-fixed"); }return false;}function sectionActive(){var browserTop = $(window).scrollTop() + 110;$("section").each(function(i){if($(this).position().top <= browserTop){$(".navi2 .links .active").removeClass("active");$(".navi2 .links a").eq(i).addClass("active");}});}
