	$(".vtabs span").click(function()
	{
		$(".vtabs span").removeClass();
		$(this).addClass("tab_active");
		if(this.childNodes[0].innerHTML == "Map" )
		{ 
			//$("#view_images").html($("#vmap").html());
			$("#view_images").hide();
			$("#view_floorplan").hide();
			document.getElementById("view_map").style.display = "block";	
			map.checkResize();
			map.setCenter(new GLatLng(lat,lng),zom);  
			if(!$("#view_map").html())
			{
				$("#view_map").css({height:"314px"});
			}
		}
		if(this.childNodes[0].innerHTML == "Gallery")
		{
			
			$("#view_floorplan").hide();
			$("#view_map").hide();			
			$("#view_images").show();
			gal.fill_large_img(document.getElementById("first_large_area"));
			if(!$("#view_images").html())
			{
				$("#view_images").css({height:"314px"});
			}
		}
		if(this.childNodes[0].innerHTML == "Floorplans")
		{
			
			$("#view_images").hide();
			$("#view_map").hide();	
			$("#view_floorplan").show();
			gal2.fill_large_img(document.getElementById("second_large_area"));
			if(!$("#view_floorplan").html())
			{
				$("#view_floorplan").css({height:"314px"});
			}
			//$("#img_container").html($("#v_img_temp").html());
		}
		
	}); 
	
	
	
/*$(".image_enlarge").cluetip(
{

	activation:'click',
	sticky:true,
	width:'400px',
	height:'360px',
	positionBy:'mouse'
});

$('.image_enlarge').cluetip({activation: 'click', width: 650});*/

$(".image_enlarge").click(function()
{
	//document.getElementById("enlarge_img").style.display = "block";	
}); 


