$(document).ready(function(){function e(){if($(window).height()<$("#bar").height()+145){$("#bar").css("top","145px");$("#open").css("top","145px")}else{$("#bar").css("top","25%");$("#open").css("top","25%")}var a=$("#bar").offset().top+$("#bar").height();$(window).height()<a+75?$("footer").css("top",a+25):$("footer").removeAttr("style")}if(navigator.platform=="iPad"||navigator.platform=="iPhone"||navigator.platform=="iPod")$("div").removeClass("overflow-y");if(location.pathname=="/"||location.pathname==
"/index.html"){$("#imgHome").hide();$("#imgHome").fadeTo(1E3,1);$("#home").hide();$("#home").delay(1E3).fadeTo(1E3,1)}else{var b=location.pathname.split("/")[1],d=document.referrer.split("/")[3],c=false;if(b!=d)c=true;if(b=="kontakt.html"&&d=="impressum.html")c=false;if(b=="impressum.html"&&d=="kontakt.html")c=false;if(document.referrer=="http://www.profane.de/index.html"||document.referrer=="http://www.profane.de/"||c==true){b=$(window).width()+100;$("#bar").css("left",-b);$("#bar").delay(500).animate({left:0},
1E3,"easeInOutQuart")}else{$("#left").css("opacity",0);$("#left").delay(200).animate({opacity:1},500,"easeInOutQuart")}}$(".off").hover(function(){$(this).stop().animate({backgroundColor:"#F26522"},300)},function(){$(this).stop().animate({backgroundColor:"#444"},200)});$(".offSub").hover(function(){$(this).stop().animate({backgroundColor:"#AAA",color:"#FFF"},300)},function(){$(this).stop().animate({backgroundColor:"#FFF",color:"#666"},500)});$("#imprint a").hover(function(){$(this).stop().animate({color:"#EEE"},
300)},function(){$(this).stop().animate({color:"#AAA"},200)});$("#xing").hover(function(){$("#xing").stop().animate({marginTop:-10,height:47},200)},function(){$("#xing").stop().animate({marginTop:0,height:37},200)});$("#youtube").hover(function(){$("#youtube").stop().animate({marginTop:-10,height:47},200)},function(){$("#youtube").stop().animate({marginTop:0,height:37},200)});$("#facebook").hover(function(){$("#facebook").stop().animate({marginTop:-10,height:47},200);$("#facebook img").stop().animate({bottom:15},
200);$("#facebook b").stop().animate({color:"#EEE"},300)},function(){$("#facebook").stop().animate({marginTop:0,height:37},200);$("#facebook img").stop().animate({bottom:5},200);$("#facebook b").stop().animate({color:"#AAA"},300)});$("#home li").hover(function(){$(this).stop().fadeTo(400,1)},function(){$(this).stop().fadeTo(500,0.7)});$("a[href=#close]").hover(function(){$("#sub img").stop().fadeTo(200,0.99)},function(){$("#sub img").stop().fadeTo(200,0.6)});$("a[href=#close]").click(function(){var a=
$(window).width()+100;$("#bar").stop().animate({left:-a},900,"easeInOutQuart",function(){$("#bar").hide();$("#open img").fadeTo(300,0.3);$("#open").show();$("#open").animate({left:-10},400,"easeInOutQuart");$("#open").hover(function(){$("#open").stop().animate({left:-2},200);$("#open img").fadeTo(200,0.6)},function(){$("#open").stop().animate({left:-10},200);$("#open img").fadeTo(200,0.3)})});return false});$("#open").click(function(){$("#open").unbind("mouseenter mouseleave");$("#open").stop().animate({left:-50},
300,"easeInOutQuart",function(){var a=$(window).width()+100;$("#bar").css("left",-a);$("#bar").show();$("#bar").stop().animate({left:0},1E3,"easeInOutQuart")})});e();$(window).resize(function(){e()})});

