// funzione per far aprire un pop up
function gowindow(str,titolo,w,h)
{
	openwin = window.open(str,titolo,'width='+ w +',height='+ h +',status=no,scrollbars=no,resizable=no,location=no,toolbar=no');
	return false;
}

$(document).ready(function() {
	// creazione offerte
	if (document.getElementById("myController")) {
		$("#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: "185px",
			height: "85px",
			duration: 500,
			interval: 7000, // this is the amount of milliseconds before the switch happens
			prev: ".jFlowPrev", // must be class, use . sign
			next: ".jFlowNext" // must be class, use . sign
		});
	}
});
