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

	JP = new Array(5);
	Inc = new Array(5);
	
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 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 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('<table align="center" border="0"><tr><form name="jpform'+id+'"><td><INPUT name="progressive'+id+'" readOnly  class="ticker" size="9" height="10px"></td></form></tr></table>');
	}
	if (style == 4) {
		document.write('<form name="jpform'+id+'"><INPUT name="progressive'+id+'" readOnly  class="ticker" size="8" height="10px"></form>');
	}	
	ScrollProgressiveCounters(id, inc);
}

function popup(mylink, windowname, w, h, yn)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, windowname, 'width=' + w +',height=' + h +',scrollbars='+ yn +',resizable=yes');
	return false;
}
