
//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]
  }
}
*/

// Rifatto da Michele - Kabal -x compatibilità reale browser
function thisMovie() 
{
	if (navigator.appName.indexOf ("Microsoft") !=-1) 
	{
		return document.getElementById("jackpotswf2");
	}
	else 
	{
		return document.getElementById("emb_jackpotswf2");
	}
}

function jackpotswf_DoFSCommand(command,args) { 
	//alert(thisMovie(movieName).GetVariable("_root.V1"));
	ScrollFlashCounters();
}

function ScrollFlashCounters(){ 
	var sl = '';
	var s = '';
 //if (movieIsLoaded(thisMovie(movieName))) {
  for(a=1;a<=11;a++){
   JP[a] += (Inc[a] );	
    s1 = num2dollar(JP[a]/100);
    s = "_root.V" + a;

   	thisMovie().SetVariable(s,s1);
  	//  alert(thisMovie().GetVariable("_root.V1"));
   }
  
}

function StartJackPot(){
	setInterval( "ScrollFlashCounters()",1000); 
}


