// ticker code

function custom_ScrollProgressiveCounters()
{
	for(i=0; i<=NumberOfProgr; i++ )
    JP[i] += (Inc[i]);
 	for(c=0;c<=14;c++)
	{
		cnum = num2dollar(JP[c]/100);
		switch(c)
		{
			case 10:
			document.Flash_Movie.SetVariable("majormillions:majormillions",cnum);
			break;
			
			case 12:
			document.Flash_Movie.SetVariable("kingcashalot:kingcashalot",cnum);
			break;
			
			case 6:
			document.Flash_Movie.SetVariable("treasurenile:treasurenile",cnum);
			break;

			case 13:
			document.Flash_Movie.SetVariable("tunzamunni:tunzamunni",cnum);
			break;

			case 1:
			document.Flash_Movie.SetVariable("cashsplash:cashsplash",cnum);
			break;

			case 5:
			document.Flash_Movie.SetVariable("fruitfiesta:fruitfiesta",cnum);
			break;

			case 2:
			document.Flash_Movie.SetVariable("lotsaloot:lotsaloot",cnum);
			break;
			
			case 3:
			document.Flash_Movie.SetVariable("wowpot:wowpot",cnum);
			break;
		}

   	}
 	window.setTimeout( "custom_ScrollProgressiveCounters()",1000);
}

function custom_activator()
{
if(document.Flash_Movie.PercentLoaded() == 100)	
	{
        custom_ScrollProgressiveCounters();
	}
else To1=setTimeout( "custom_activator()",100);
}

var urlAddress = 'http://www.777onlineslots.com';
var pageName = '777OnlineSlots.com - The #1 Slots Guide';
		
function addToFavorites()
{
  if (window.external)
  {
  window.external.AddFavorite(urlAddress,pageName)
  }
  else
  { 
  alert("Sorry! Your browser doesn't support this function.");
}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function FormValidator(theForm)
{

  if (theForm.email.value == "")
  {
    alert("Please enter a valid e-mail address.");
    theForm.email.focus();
    return (false);
  }

  if (!isEmailAddr(theForm.email.value))
  {
    alert("Please enter a complete email address in the form: yourname@yourdomain.com");
    theForm.email.focus();
    return (false);
  }
   
  if (theForm.email.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.firstname.value == "")
  {
    alert("Please enter your first name.");
    theForm.firstname.focus();
    return (false);
  }
  if (theForm.lastname.value == "")
  {
    alert("Please enter your last name.");
    theForm.lastname.focus();
    return (false);
  }
  return (true);
}

// popup games console code
function PopConsole() {
	var Url = "http://www.gameinsert.com/box/777s/index.php?page=website";
	var WindowWidth = 800;
	var WindowHeight = 480;
	var WindowTop = (screen.availHeight/2) - (WindowHeight/2);
	var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
	var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=no,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
	GameWindow = window.open(Url,"ConsoleWindow",WindowProps);
	return;
}