$(document).ready(function() {
	// General
	$('div.pub').animate({"opacity": '0.7'}, 0);
	
	$('div.pub').hover(function() {
		$(this).stop().animate({"opacity": '1'}, 'slow');
	}, function() {
		$(this).stop().animate({"opacity": '0.7'}, 'slow');
	});
	
	// Haunstetter Hof
	$('div.pub.hh').hover(function() {
		$(this).css({"background-image" : 'url(gfx/hh_bg_hover.jpg)'});
	}, function() {
		$(this).css({"background-image" : 'url(gfx/hh_bg.jpg)'});
	});	
	
	// Gasthof zum Ochsen
	$('div.pub.gzo').hover(function() {
		$(this).css({"background-image" : 'url(gfx/gzo_bg_hover.jpg)'});
	}, function() {
		$(this).css({"background-image" : 'url(gfx/gzo_bg.jpg)'});
	});
	
	// Zeughausstuben
	$('div.pub.zh').hover(function() {
		$(this).css({"background-image" : 'url(gfx/zh_bg_hover.jpg)'});
	}, function() {
		$(this).css({"background-image" : 'url(gfx/zh_bg.jpg)'});
	});		
	
	// Weisser Hase
	$('div.pub.wh').hover(function() {
		$(this).css({"background-image" : 'url(gfx/wh_bg_hover.jpg)'});
	}, function() {
		$(this).css({"background-image" : 'url(gfx/wh_bg.jpg)'});
	});
	
	// Silvester
	$('#close_silvester').click(function() {
		$(this).parent('div').fadeOut(2000);
	});
});
