function loadImage(objThumb, strIdDest) {
	// get thumb filename
	var strThumbName = objThumb.src;
	
	// determine full image filename
	var idx1 = strThumbName.indexOf('ic_');
	var strImgName = strThumbName.substring(0, idx1);
	strImgName += strThumbName.substring(idx1+3);
	
	//alert(strImgName);
	document.getElementById(strIdDest).src = strImgName;
	
	document.getElementById("testo_immagine").innerHTML = objThumb.getAttribute('desc');
	document.getElementById("testo_immagine").style.display = "block";
	changeOpac(opac_Iniziale,"testo_immagine");
	testDidascalia = objThumb.src + new Date().toUTCString();
	setTimeout('if (testDidascalia == "'+objThumb.src + new Date().toUTCString()+'") { opacity("testo_immagine", '+opac_Iniziale+', '+opac_dopoFade+', 1500) }',3000);
	
}

var testDidascalia = "";
var opac_Iniziale = 90;
var opac_dopoFade = 55;
var opac_over = 100;


function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
} 






function loadMovie(strMovie) {
	var strPre ="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=";
	var strPost = "&autoPlay=false&autoRewind=false";
	
	var strObj = '<object id="moviePlayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="340" height="210" id="FLVPlayer"><param name="movie" value="FLVPlayer_Progressive.swf" /><param name="salign" value="lt" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName='+strMovie+'&autoPlay=false&autoRewind=false" /><embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=../../video/MIlionario&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="340" height="210" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" /></object>';
	var strObj = "<script type='text/javascript'>AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','340','height','210','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName="+strMovie+"&autoPlay=false&autoRewind=false','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); //end AC code</script><noscript><object id='moviePlayer' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='340' height='210' id='FLVPlayer'>              <param name='movie' value='FLVPlayer_Progressive.swf' />              <param name='salign' value='lt' />              <param name='quality' value='high' />              <param name='scale' value='noscale' />              <param name='FlashVars' value='&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName="+strMovie+"&autoPlay=false&autoRewind=false' />             <embed src='FLVPlayer_Progressive.swf' flashvars='&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=../../video/MIlionario&autoPlay=false&autoRewind=false' quality='high' scale='noscale' width='340' height='210' name='FLVPlayer' salign='LT' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' /></object></noscript>";
    var FO = {
		movie: "/FLVPlayer_Progressive.swf",
		width: "340",
		height:"210",
		majorversion:"6",
		build:"40",
		
		play: "false",
		loop: "",
		menu: "",
		quality: "high",
		scale: "noscale",
		salign: "LT",
		wmode: "",
		bgcolor: "",
		base: "",
		flashvars: "&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName="+strMovie+"&autoPlay=false&autoRewind=false",
		devicefont: "",
		allowscriptaccess: "",
		seamlesstabbing: "",
		allowfullscreen: "",
		allownetworking: ""
	};
    UFO.create(FO, "pan_sup");
	//document.getElementById("moviePlayer").SetVariable("URL",strMovie);
	
}
