$(function() {
	$('.nav a').tooltip({
		track: true,
		left: 0,
		top: 20,
		delay: 0,
		showURL: false,
		showBody: " - ",
		fade: "fast"
	});
});

$(document).ready(function(){
	$('.nav').css("display", "none");
	$('p.copy').css("display", "none");
	$('.logo').css("display", "none");
	$('span.telephone').css("display", "none");
	

	$('#openingtimes p').click(function() {
		if ($(this).hasClass("active") == 0) {
			$(this).addClass("active");
		}
		else {
			$(this).removeClass("active");
		}
	});
	
	$('#impressum p').click(function() {
		if ($(this).hasClass("active") == 0) {
			$(this).addClass("active");
		}
		else {
			$(this).removeClass("active");
		}
	});	
	
	$('#contact p').click(function() {
		if ($(this).hasClass("active") == 0) {
			$(this).addClass("active");
		}
		else {
			$(this).removeClass("active");
		}
	});	
		
	if (!$(".fadehover").hasClass("hoverActive")) {	
		$("img.a").hover(
			function() {
				$(this).stop().animate({"opacity": "0"}, "fast");
			},
			function() {
				$(this).stop().animate({"opacity": "1"}, "fast");
		});	
	}
	

});

$(window).load(function() {
	$('.nav').fadeIn("slow");
	$('p.copy').fadeIn("slow");
	$('.logo').fadeIn("slow");	
	$('span.telephone').fadeIn("slow");	
});
