function getImgJackpot (started,growing,startpoints,theme){               
  var ts = Math.round(new Date().getTime() / 1000);
  currentjackpot = (((ts - started) / growing) + startpoints);
  currentjackpot = currentjackpot.toFixed(2);
  numlenght = currentjackpot.length;
  cjackpot = "";
    
    for( a = 1 ; a <= (9 - numlenght) ; a++ )
     {
     	num = "<img src='./components/com_casino/images/themes/"+theme+"/num0.gif' title='' alt=''/>";
     	cjackpot = cjackpot + num;                  	
     }

    for( a = 1 ; a <= (numlenght) ; a++ )
     {
     	num =  "<img src='./components/com_casino/images/themes/"+theme+"/num"+currentjackpot.substring(a-1,a)+".gif' title='' alt='' />";         	
     	cjackpot = cjackpot + num;
     } 

  window.document.getElementById("jackpotnum").innerHTML = cjackpot;
}

function getJackpot(jstarted,growing,startpoints,gameid){
  var ts = Math.round(new Date().getTime() / 1000); // unix time
  currentjackpot = (((ts - jstarted) / growing) *1 + startpoints);
  currentjackpot=currentjackpot.toFixed(2);
  window.document.getElementById("jackpot"+ gameid).innerHTML = currentjackpot;
}
