$(document).ready(function(){
	
	hs.graphicsDir = '/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.8;
	hs.outlineType = 'rounded-white';
	hs.captionEval = 'this.thumb.alt';
	hs.marginBottom = 105 // make room for the thumbstrip and the controls
	hs.numberPosition = 'caption';

	// Add the slideshow providing the controlbar and the thumbstrip
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		overlayOptions: {
			className: 'text-controls',
			position: 'bottom center',
			relativeTo: 'viewport',
			offsetY: -60
		},
		thumbstrip: {
			position: 'bottom center',
			mode: 'horizontal',
			relativeTo: 'viewport'
		}
	});

	$("#showImages").bind("click", function(){
		$("#picturesRest").slideDown("slow");
		$(this).hide();
		$("#hideImages").show();
	});
	$("#hideImages").bind("click", function(){
		$("#picturesRest").slideUp("slow");
		$(this).hide();
		$("#showImages").show();
	});
	
	$("#floor_plan").click(function () {
		if($("#floorPlan").css("display") == "none"){
			$(".boxFLSP").hide(); 
			$("#floorPlan").show(); 
		}
		else{	
			$(".boxFLSP").hide(); 
			$("#floorPlan").hide(); 
		}
    });
	
	$("#location_map").click(function () { 
		if($("#locationMap").css("display") == "none"){
			$(".boxFLSP").hide();
			$("#locationMap").show(); 
		}
		else{
			$(".boxFLSP").hide();
			$("#locationMap").hide(); 
		}
    });
	
	$("#send_friend").click(function () { 
		if($("#sendFriend").css("display") == "none"){
			$(".boxFLSP").hide();
			$("#sendFriend").show(); 
		}
		else{
			$(".boxFLSP").hide();
			$("#sendFriend").hide(); 
		}
    });

});

