// JavaScript Document

$(document).ready(function(){

$('td.poster').mouseover(function (){

	$(this).find('img').css("border", "1px solid #666666");
	$(this).css("background", "url(/ftproot/images/dropshadowBG2.jpg) no-repeat 10px 0px")
	
});

$('td.poster').mouseout(function (){	
    $(this).find('img').css("border", "1px solid #ffffff");
    $(this).css("background", "none")

});


$('.funcArea').mouseover(function (){
	
	
	var $pointer = $(this).find('img.pointer'),
	$title = $(this).find('img.areaTitle'),	
	srcP = $pointer.attr('src'),
	srcT = $title.attr('src');

	
	
	$pointer.attr('src', srcP.replace('norm.jpg', 'hover.jpg')),
	$title.attr('src', srcT.replace('norm.jpg', 'hover.jpg'))


});
			
$('.funcArea').mouseout(function (){
	
	
	var $pointer = $(this).find('img.pointer'),
	$title = $(this).find('img.areaTitle'),	
	srcP = $pointer.attr('src'),
	srcT = $title.attr('src');

	
	
	$pointer.attr('src', srcP.replace('hover.jpg', 'norm.jpg')),
	$title.attr('src', srcT.replace('hover.jpg', 'norm.jpg'))


});
			
			
$('.funcArea').click(function (){
	
	
	
	var $pointer = $(this).find('img.pointer'),
	$title = $(this).find('img.areaTitle'),	
	srcP = $pointer.attr('src'),
	srcT = $title.attr('src');
	
	
	$('.areaDetail').slideUp('fast');
	$(this).next('.areaDetail').slideDown('fast');
	
	
	$("img.areaTitle").each(function() {
        this.src = this.src.replace("active", "norm");
    });
	$("img.pointer").each(function() {
        this.src = this.src.replace("active", "norm");
    });
	
	$pointer.attr('src', srcP.replace('hover.jpg', 'active.jpg')),
	$title.attr('src', srcT.replace('hover.jpg', 'active.jpg')); 
	
	
});

$('#beergarden').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/bars_beergarden_main.jpg');

});

$('#bistro').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/bars_bistro_main.jpg');

});

$('#fireplace').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/functions_areas_fireplace.jpg');

});

$('#horseshoe').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/functions_horseshoe.jpg');

});

$('#dancefloor').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/functions_dancefloor.jpg');

});

$('#brickwall').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/functions_brickwall.jpg');

});

$('#booths').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/functions_booth.jpg');

});

$('#courtyard').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/bars_courtyard.jpg');

});

$('#lounge').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/bars_loungebar.jpg');

});

$('#public').click(function(){

$('.functionAreaImg').attr('src', '/ftproot/images/bars_publicbar.jpg');

});

			
$('.sport1').click(function(){

$('.sportDetails').slideUp('fast');
$('#sport1').slideDown('fast');
});

$('.sport2').click(function(){

$('.sportDetails').slideUp('fast');
$('#sport2').slideDown('fast');
});
$('.sport3').click(function(){

$('.sportDetails').slideUp('fast');
$('#sport3').slideDown('fast');
});
$('.sport4').click(function(){

$('.sportDetails').slideUp('fast');
$('#sport4').slideDown('fast');
});
$('.sport5').click(function(){

$('.sportDetails').slideUp('fast');
$('#sport5').slideDown('fast');
});
$('.sport6').click(function(){

$('.sportDetails').slideUp('fast');
$('#sport6').slideDown('fast');
});


});











