//Tivol North jQuery
//By Shaun Robinson
$(function(){
	$('.boxcaption').click(function(){
		//alert('a');
		window.location = $('h4 a', this).attr('href');
	});
	
	var hours_are_displayed = false;
	var map_is_displayed = false; 
	
	
	$('a#show-hours').click(function(){
		if (!hours_are_displayed) {
			$('.biz-hours').slideDown();
			hours_are_displayed = true;
			$(this).html('Hide Business Hours');
		}else{
			$('.biz-hours').slideUp();
			hours_are_displayed = false;
			$(this).html('Show Business Hours');
		}
	});
	
	
	
	$('a#show-map').click(function(){
		if (!map_is_displayed) {
			$('#map').slideDown();
			map_is_displayed = true;
			$(this).html('Hide Map');
		}else{
			$('#map').slideUp();
			map_is_displayed = false;
			$(this).html('Show Map');
		}
	});
	
	
	
	//make biz boxes clickable
	
	$('.bizindex-item').click(function(){
		window.location = $('h4 a', this).attr('href');
	});
	
	
	

});

