jQuery(document).ready(function() {
		
		$('#form-friends-open').click(function () {
			$('#friends-form').stop(true,true).animate({height: '290px'},function(){
			$('#book-form').stop(true,true).animate({height: '0px'});
			$('#friends-ie6-fix').addClass('ie6-fix');
			});
		});
		
		$('#form-friends-close').click(function () {
			$('#friends-form').stop(true,true).animate({height: '0px'});
			$('#friends-ie6-fix').removeClass('ie6-fix');
		});
		
		$('#form-friends-link').click(function () {
			$('#friends-form').stop(true,true).animate({height: '290px'},function(){
			$('#book-form').stop(true,true).animate({height: '0px'});
			$('#friends-ie6-fix').addClass('ie6-fix');
			});
		});
		
		$('#form-booking-open').click(function () {
			$('#book-form').stop(true,true).animate({height: '306px'},function(){	
			$('#friends-form').stop(true,true).animate({height: '0px'});							  
			$('#book-holder').css({'z-index': '9999'});
			$('#book-ie6-fix').addClass('ie6-fix');
			});
		});

		$('#form-booking-close').click(function () {
			$('#book-form').stop(true,true).animate({height: '0px'});
			$('#book-holder').css({'z-index': '2'})
			$('#book-ie6-fix').removeClass('ie6-fix');
			$('#friends-ie6-fix').removeClass('ie6-fix');
		});
		
		$('#form-booking-link').click(function () {
			$('#book-form').stop(true,true).animate({height: '306px'},function(){	
			$('#friends-form').stop(true,true).animate({height: '0px'});							  
			$('#book-holder').css({'z-index': '9999'});
			$('#book-ie6-fix').addClass('ie6-fix');
			});
		});

		$('#show-membership').click(function () {
			$('#membership-form').stop(true,true).animate({height: '385px'});
		});
		
		//Floorplan functions
		
		$('#groundfloor-button').click(function () {
			$('#groundfloor').show();
			$("#groundfloor-button").attr("src", "images/floorplan-button-ground2.jpg");
			$('#basement').hide();
			$("#basement-button").attr("src", "images/floorplan-button-basement.jpg");
		});
		
		$('#basement-button').click(function () {
			$('#basement').show();
			$("#basement-button").attr("src", "images/floorplan-button-basement2.jpg");
			$('#groundfloor').hide();
			$("#groundfloor-button").attr("src", "images/floorplan-button-ground.jpg");
		});
		
		$('#ground-vip').mouseenter(function() {
			$("#ground-vip").attr("src", "images/floorplan-ground-vip2.jpg");
			$("#main-image").attr("src", "images/floorplan-ground-vip-main.jpg");
		});
		
		$('#ground-vip').mouseleave(function() {
			$("#ground-vip").attr("src", "images/floorplan-ground-vip.jpg");
		});
		
		$('#ground-stools').mouseenter(function() {
			$("#ground-stools").attr("src", "images/floorplan-ground-stools2.jpg");
			$("#main-image").attr("src", "images/floorplan-ground-stools-main.jpg");
		});
		
		$('#ground-stools').mouseleave(function() {
			$("#ground-stools").attr("src", "images/floorplan-ground-stools.jpg");
		});
		
		$('#ground-rear').mouseenter(function() {
			$("#ground-rear").attr("src", "images/floorplan-ground-rear2.jpg");
			$("#main-image").attr("src", "images/floorplan-ground-rear-main.jpg");
		});
		
		$('#ground-rear').mouseleave(function() {
			$("#ground-rear").attr("src", "images/floorplan-ground-rear.jpg");
		});
		
		$('#ground-opp').mouseenter(function() {
			$("#ground-opp").attr("src", "images/floorplan-ground-opp2.jpg");
			$("#main-image").attr("src", "images/floorplan-ground-opp-main.jpg");
		});
		
		$('#ground-opp').mouseleave(function() {
			$("#ground-opp").attr("src", "images/floorplan-ground-opp.jpg");
		});
		
		$('#ground-bar').mouseenter(function() {
			$("#ground-bar").attr("src", "images/floorplan-ground-entrance2.jpg");
			$("#main-image").attr("src", "images/floorplan-ground-bar-main.jpg");
		});
		
		$('#ground-bar').mouseleave(function() {
			$("#ground-bar").attr("src", "images/floorplan-ground-entrance.jpg");
		});
	
		$('#basement-tables').mouseenter(function() {
			$("#basement-tables").attr("src", "images/floorplan-basement-tables2.jpg");
			$("#main-image").attr("src", "images/floorplan-basement-tables-main.jpg");
		});
		
		$('#basement-tables').mouseleave(function() {
			$("#basement-tables").attr("src", "images/floorplan-basement-tables.jpg");
		});
		
		$('#basement-dj').mouseenter(function() {
			$("#basement-dj").attr("src", "images/floorplan-basement-dj2.jpg");
			$("#main-image").attr("src", "images/floorplan-basement-dj-main.jpg");
		});
		
		$('#basement-dj').mouseleave(function() {
			$("#basement-dj").attr("src", "images/floorplan-basement-dj.jpg");
		});
		
		$('#basement-bar').mouseenter(function() {
			$("#basement-bar").attr("src", "images/floorplan-basement-bar2.jpg");
			$("#main-image").attr("src", "images/floorplan-basement-bar-main.jpg");
		});
		
		$('#basement-bar').mouseleave(function() {
			$("#basement-bar").attr("src", "images/floorplan-basement-bar.jpg");
		});
		
});
