
var movieName = "jackpotswf";

/*
function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName];
  }	else {
    return document[movieName];
  }
}
*/



function thisMovie(movieName) 
{
	if(document.embeds[movieName])
	return document.embeds[movieName];
	if(window.document[movieName])
	return window.document[movieName];
	if(window[movieName])
	return window[movieName];
	if(document[movieName])
	return document[movieName];
	
	return null;
}

function jackpotswf_DoFSCommand(command,args) { 
	//alert(command)
	ScrollFlashCounters();
}

var browserName;
function isIE()
{
	browserName=navigator.appName; 

	return browserName

}

document.onload = setTimeout('jackpotswf_DoFSCommand(\'command\',\'\')',3000)

function ScrollFlashCounters(){ 
// if (movieIsLoaded(thisMovie(movieName))) {
	var sl = 0;
	var s = ' ';
	
	try
	{
		var num = JP[0];
	}
	catch(err)
	{
		window.setTimeout( "ScrollFlashCounters()",1000);
	}
	
		for(a=1; a<=14; a++)
		{
			JP[a] += (Inc[a] );	
			s1 = num2dollar(JP[a]/100);
			s = '_root.jackpot.jack' + (a-1) + '.valore';
			
			var flashObject = thisMovie(movieName);
			flashObject.SetVariable(s,s1);
		}
   
	window.setTimeout( "ScrollFlashCounters()",1000); 
}

/*
function ScrollFlashCounters(){ 

 //if (movieIsLoaded(thisMovie(movieName))) {
  for(var a=1;a<=14;a++){
   JP[a] += ( Inc[a] );	
    s1 = num2dollar(JP[a]/100);
   // s = "_root.VettoreJackpot[" + a + "]" ;
   s = '_root.jackpot.jack' + (a-1) + '.valore'
   thisMovie(movieName).SetVariable(s,s1);
   //alert( "flash: " + thisMovie(movieName).GetVariable(s) );
   }
  
}

function StartJackPot(){
	setInterval( "ScrollFlashCounters()",1000); 
	//alert( "flash: " + thisMovie(movieName).GetVariable("_root.dimjack") )
	//alert( thisMovie(movieName).name )
}
*/

