<!--
	var ban_rotaz = new Array();
	var permanenza;
	var ban_timer;
	var ban_transizione;
	var ban_dur_trans;

	ban_rotaz[0]	= ['/images/head001.jpg','','',''];
	ban_rotaz[1]	= ['/images/head002.jpg','','',''];
	ban_rotaz[2]	= ['/images/head003.jpg','','',''];
	ban_rotaz[3]	= ['/images/head004.jpg','','',''];

	ban_timer 		= 120000; // tempo di visibilità del banner in millisecondi
	ban_transizione = 12;	// tipo di transizione
	ban_dur_trans	= 1;	// durata della transizione in secondi;



	var banrotaz = new Array();
	var j = 0;
	for(var i=0;i< ban_rotaz.length;i++) {
		if(!ban_rotaz[i]) continue;
	 	banrotaz[j++] = ban_rotaz[i];
	}

	var sup_banrotaz = banrotaz.length -1 ;
	var ban_corrente_array = new Array();
	var indice = Math.round( sup_banrotaz*(Math.random()) );
	var ind_succ;
	
	document.ban_corrente = new Array();
	for(i=0; i<banrotaz.length;i++) {
		document.ban_corrente[i] = new Image();
	}
	
	function RuotaBanner() {

		indice = ( indice < sup_banrotaz ) ? indice+1 : 0;
		if( indice+1 < sup_banrotaz) {
			ind_succ = indice + 1;
		}
		else {
			if(indice==0) {
				ind_succ=1;
			} 
			else {
				ind_succ = 0;
			}
		}

		ban_corrente_array = banrotaz[indice];
		if(!document.ban_corrente[indice].src) {
			ban_PreparaEffetto();
			document.images.agm_banner.src = ban_corrente_array[0];
			ban_EseguiEffetto();
			document.images.agm_banner.title = ban_corrente_array[3];
//			document.ban_corrente[indice] = new Image();
			document.ban_corrente[indice].src = document.images.agm_banner.src;
			document.ban_corrente[indice].title = ban_corrente_array[3];		
		}
		else{
			ban_PreparaEffetto();
			document.images.agm_banner.src = document.ban_corrente[indice].src;
			ban_EseguiEffetto();
			document.images.agm_banner.title = ban_corrente_array[3];
			}
		if(!document.ban_corrente[ind_succ].src) {
//			document.ban_corrente[ind_succ] = new Image();
			document.ban_corrente[ind_succ].src = banrotaz[ind_succ][0];
			document.ban_corrente[ind_succ].title = banrotaz[ind_succ][3];
		}


		idTemp = setTimeout("RuotaBanner()",ban_timer);
	}

	function ban_PreparaEffetto() {
		if (document.all){
			with(agm_banner.filters.revealTrans) {
				Transition=ban_transizione;
				Duration = ban_dur_trans;
				stop();
				apply();
			}
	   }
	}


	function ban_EseguiEffetto() {
		if (document.all) {
			agm_banner.filters.revealTrans.play();
		}
	}


	function ban_FormaCursore(forma) {
		if ( ban_corrente_array[1] ) document.getElementById('agm_banner').style.cursor = forma;
	
	}


	function ban_goto () {
		var ban_corr = ban_corrente_array[1];
		if(ban_corr) window.open(ban_corr,ban_corrente_array[2]);
	}

//-->
