function initFlex(id,src,vars,width,height,align){
	
	// --------------JUMP BROWSER AND PROXY CACHE ------------
	// WHAT
	// Dummy url variable to jump cached flash data by proxy and/or browser.
	//
	// WHEN
	// Everytime you make a change to the flash component and need an immediately refresh
	// change dummyNumber value.
	//
	// HOW
	// Http requests (like requesting a flahs file) are based on a url string, wich 
	// enables the browser/proxy chace system if it's always the same;
	// the solution is change the string without change the filename requested:
	// it's legal to post different variables by URL so that the request is identified
	// like a new request (so the file requested will be the new version).
	//
	// appen 'dummyVar' to the source flash file requested
	var dummyNumber = 1;							// change only dummyNumber value
	var dummyVar = '?id=' + dummyNumber;			// leave inalterate
	// -------------------------------------------------
	
	// -----------------------------------------------------------------------------
	// Globals
	// Major version of Flash required
	var requiredMajorVersion = 9;
	// Minor version of Flash required
	var requiredMinorVersion = 0;
	// Minor version of Flash required
	var requiredRevision = 28;
	// -----------------------------------------------------------------------------

	
	// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
	var hasProductInstall = DetectFlashVer(6, 0, 65);

	// Version check based upon the values defined in globals
	var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

	if ( hasProductInstall && !hasRequestedVersion ) {
		// DO NOT MODIFY THE FOLLOWING FOUR LINES
		// Location visited after installation is complete if installation is required
		var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
		var MMredirectURL = window.location;
	    document.title = document.title.slice(0, 47) + " - Flash Player Installation";
	    var MMdoctitle = document.title;

		AC_FL_RunContent(
			"src", "../../../swf/playerProductInstall",
			"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
			"width", width,
			"height", height,
			"align", align,
			"id", id,
			"quality", "high",
			"bgcolor", "#ffffff",
			"name", id,
			"allowScriptAccess","sameDomain",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	} else if (hasRequestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		AC_FL_RunContent(
				"src", src + dummyVar,
				"FlashVars",vars,
				"width", width,
				"height", height,
				"align", align,
				"id", id,
				"quality", "high",
				"bgcolor", "#ffffff",
				"name", id,
				"allowScriptAccess","sameDomain",
				"type", "application/x-shockwave-flash",
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	  } else {  // flash is too old or we can't detect the plugin
	    var alternateContent = '<div style="height:50px; background:#ccc; font-family:verdana;text-align:center;padding:50px">'
		+ 'Questa sezione necessita ADOBE FLASH PLAYER. '
	   	+ '<br/><br/><a href=http://www.adobe.com/go/getflash/>Installa FLASH PLAYER</a></div>';
	    document.write(alternateContent);  // insert non-flash content
	  }
}

function initFlash(id,movie,vars,width,height,align){
	var dummyNumber = 1;							// change only dummyNumber value
	var dummyVar = '?id=' + dummyNumber;			// leave inalterate
	
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', width,
			'height', height,
			'flashVars', vars,
			'src', id + dummyVar,
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', align,
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', id,
			'bgcolor', '#ffffff',
			'name', id,
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', movie,
			'salign', ''
			); //end AC code
	}
}

function resizeApp(id, h){
	document.getElementById(id).height=h+'px';
}
