<!--
  JP1   = amount.split("&");
	Inc1  = "1&1".split("&");

	JP = new Array(6);
	Inc = new Array(6);
	
for (i = 11-1; i>=0; i--) { // shift
        JP[i+1] = JP1[i];
        Inc[i+1] = Inc1[i];
}

for (i=1;i<=11;i++){
        JP[i]=parseInt(JP[i]);
        Inc[i]=parseInt(Inc[i]);
        if (Inc[i] < 0) Inc[i] = 0;
}

/////////////////////////////////////////////////////////////

function num2dollar(field){
   var tmp1 = cents = dollars = "";
   var dec = -1;
   var num,i;

   num = "" + (Math.round(field * 100)/100);
   dec = num.indexOf(".");

   cents = ((dec > 0) ? num.substring(dec,num.length) : ".00");
   if (cents.length == 2) cents += "0";

   dollars = "" + parseInt(num);
   tmp1 = insComma(dollars);
   num = String.fromCharCode("36");
   for (i = tmp1.length-1; i >= 0; i--)
   num += tmp1.charAt(i);;
   num +=  cents + "";

   return num;
}

function insComma(data){
   var count = i = 0;
   var tmpStr = "";
   var comma = ",";

   for (i = data.length-1; i >= 0; i--)
   {
      if (count == 3)
      {
         tmpStr += comma;
         count = 1;
      }
      else  count ++;
      tmpStr += data.charAt(i);
   }
   return(tmpStr);
}

/////////////////////////////////////////////////////////////


function ScrollProgressiveCounters(prId, inc){
	var objstr = "document.forms['jpform"+prId+"'].elements['progressive"+prId+"']";
	var obj = eval(objstr);
	if (obj) {
			JP[prId] += Math.floor(Math.random()*inc);
			obj.value = num2dollar(JP[prId]/100);
	}
	window.setTimeout( "ScrollProgressiveCounters("+prId+","+inc+")",1000);
}

function BuildTicker(id, inc){
	document.write('<form name="jpform'+id+'"><table background="/images/420_prog_bg.gif" width="186" height="68" align="center"><tr><td align="center"><span class="header">Progressive Jackpot</span><br/><INPUT name="progressive'+id+'" readOnly  class="ticker" size="11" height="10px"></td></tr></table></form>');
	Inc[id] = inc;
	ScrollProgressiveCounters(id);
}

function BuildTicker2(id, inc, style){
	if (style == 1) {
		document.write('<form name="jpform'+id+'"><table background="/images/420_prog_bg.gif" width="186" height="68" align="center"><tr><td align="center"><span class="header">Progressive Jackpot</span><br/><INPUT name="progressive'+id+'" readOnly  class="ticker" size="11" height="10px"></td></tr></table></form>');
	}
	if (style == 2) {
		document.write('<form name="jpform'+id+'"><table align="right" valign="bottom"><tr><td><INPUT name="progressive'+id+'" readOnly  class="ticker" size="11" height="10px"></td></tr></table></form>');
	}
	if (style == 3) {
//		document.write('<form name="jpform'+id+'">Progressive Jackpot <INPUT name="progressive'+id+'" readOnly  class="ticker" size="8" height="10px"></form>');
		document.write('<form name="jpform'+id+'"><table align="center"><tr><td><INPUT name="progressive'+id+'" readOnly  class="ticker" size="11" height="10px" style="width:135px; text-align:center;"></td></tr></table></form>');
	}
	if (style == 4) {
		document.write('<form name="jpform'+id+'"><INPUT name="progressive'+id+'" readOnly  class="ticker" size="8" height="10px"></form>');
	}	
	if (style == 5) {
		document.write('<form name="jpform'+id+'">Progressive Jackpot <INPUT name="progressive'+id+'" readOnly  class="ticker" size="13" height="10px"></form>');
    	}
    	if (style == 6) {
			document.write('<form name="jpform'+id+'"><INPUT name="progressive'+id+'" readOnly style="font-weight:bold; background-color: #000000; border: 0; color: #FFFFFF;" class="ticker" size="11" height="10px"></form>');
	}
	
	ScrollProgressiveCounters(id, inc);
}

////////////////////////////////////////////////////////////////////////
function blinklink()
{
if (!document.getElementById('blink').style.color)
	{
	document.getElementById('blink').style.color="red"
	}
if (document.getElementById('blink').style.color=="red")
	{
	document.getElementById('blink').style.color="black"
	}
else
	{
	document.getElementById('blink').style.color="red"
	}
timer=setTimeout("blinklink()",100)
}

function stoptimer()
{
clearTimeout(timer)
}
