$(document).ready(function(){
	$("#myController").jFlow({
	    
		slides: "#mySlides",
		controller: ".jFlowControl", // must be class, use . sign
		slideWrapper : "#jFlowSlide", // must be id, use # sign
		selectedWrapper: "jFlowSelected",  // just pure text, no sign
		width: "255px",
		height: "60px",
		duration: 400,
		prev: ".jFlowPrev", // must be class, use . sign
		next: ".jFlowNext" // must be class, use . sign
		
	});
	$("#mySlides").css('visibility','visible');
	$("#next").css('visibility','visible');
});


// visualizzazione dettagli stanze
function appari(cosa)
{
	var ele = (document.getElementById(cosa));
	if (ele.currentStyle) { //funzione per IE
		if ((ele.currentStyle.display == 'none') || (ele.style.display == 'none'))
		{
			ele.style.display = 'block';
			$("#"+cosa).parent().css("right","2px");
		} else
		{
			ele.style.display = 'none';
			$("#"+cosa).parent().css("right","2000px");
		}
	} else if (window.getComputedStyle)
	{ //funzione per Mozilla etc.
		var y = document.defaultView.getComputedStyle(ele,null).getPropertyValue("display");
		if ((ele.style.display == 'none') || (y == 'none'))
		{
			ele.style.display='block';
			$("#"+cosa).parent().css("right","2px");
		} else
		{
			ele.style.display='none';
			$("#"+cosa).parent().css("right","2000px");
		}
	}
}
