//---------------------------------------------------------------------------------------
//	Defining the Casino object
//	Populating Casino Object
//	This file centralizes the casino information
//
//	Script by Ernesto Ramirez
//---------------------------------------------------------------------------------------


//Show a random banner from pre-defined objects
//functions separated by banner size

function ShowRandomBanner125x125() {
	var randomindex = Math.floor(Math.random() * casinoindex);
	myCasino[randomindex].BannerAndText("small");
}

function ShowRandomBanner468x60() {
	var randomindex = Math.floor(Math.random() * casinoindex);
	myCasino[randomindex].BannerAndText("large");
}

//Show a text link and the promo text below it for a given casino
function HeaderAndText(objCasino){
	var mylink = "http://www.ewalletxpresscasinos.biz/cgi-bin/out.cgi?" + objCasino.casinocode;
	line1 = "<p><a target=_blank href=\'" + mylink + "\'>" + objCasino.name + "</a>";
	line2 = "<br>" + objCasino.promotext + "</p>";
	document.write(line1, line2);
}


function ShowCasinoBannerInfo(selected_casino){
	selected_casino = selected_casino.toLowerCase();

	for (i=0; i < myCasino.length; i++) {
		if (myCasino[i].name == selected_casino) {
			return myCasino[i].BannerAndText("large");
			break;
			}
	}
	
}



//********** Defining the Casino object ***********

function Casino(name,casinocode,promotext,affiliategroup,software, all_payout,slots_payout,table_payout,poker_payout,banners125x125,banners468x60){
	this.name = name;
	this.casinocode = casinocode;
	this.promotext = promotext;
	this.software = software;
	this.affiliategroup = affiliategroup;
	this.banners125x125 = banners125x125;
	this.banners468x60 = banners468x60;
	this.BannerAndText = BannerAndText;
}
// ***********************************************

// *********** Defining the BannerAndText() method ***********
function BannerAndText(bannersize){
if (bannersize == "small") {
	var randombannerindex = Math.floor(Math.random() * this.banners125x125.length);
	var mydimensions = " width=125 height=125 border=0";
	var mybanner = "http://www.ewalletxpresscasinos.biz/banners/125x125/" + this.banners125x125[randombannerindex];
	var mystyle = "style125";
	
} else {
	var randombannerindex = Math.floor(Math.random() * this.banners468x60.length);
	var mydimensions = " width=468 height=60 border=0";
	var mybanner = "http://www.ewalletxpresscasinos.biz/banners/468x60/" + this.banners468x60[randombannerindex];
	var mystyle = "style468";


}

var mylink = "http://www.ewalletxpresscasinos.biz/cgi-bin/out.cgi?" + this.casinocode;

line1 = "<a target=_blank href=\'" + mylink + "\'>" + this.name + "</a>";
line2 = "<br><a target=_blank href=\'" + mylink + "\'>";
line3 = "<img src=\'" + mybanner + "\' " + mydimensions + " alt=\'" + this.name + "\' vspace=4></a>";
line4 = "<div class=" + mystyle + ">" + this.promotext + "</div>";

document.write(line1,line2,line3,line4);
}
// ***********************************************




//---------------------------------------------------------------------
//	Here we populate the "casino object"
//	Banners of different sizes are assigned as properties
//	NOTE: These are global variables to used by some functions in other scripts
//	DO NOT override their value (avoid these variable names in other scripts on this site)
//---------------------------------------------------------------------


myCasino = new Array();
var casinoindex = 0;  



//Slots Plus *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Slots Plus Casino";
myCasino[casinoindex].casinocode = "slotsplus";
myCasino[casinoindex].software = "Real Time Gaming";
myCasino[casinoindex].promotext = "The best bonus on the Internet! Receive a 125% BONUS on your initial Deposit FREE! Deposit $10 to $100 and get a 125% Bonus";
myCasino[casinoindex].banners125x125 = new Array("slotsplus1.gif","slotsplus1.gif","slotsplus1.gif");
myCasino[casinoindex].banners468x60 = new Array("slotsplus1.gif","slotsplus1.gif");
myCasino[casinoindex++].affiliategroup = "Mainstreet";

//Las Vegas USA *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Las Vegas USA Casino";
myCasino[casinoindex].casinocode = "lasvegasusa";
myCasino[casinoindex].software = "Real Time Gaming";
myCasino[casinoindex].promotext = "Deposits from $101 to $100,000 and get $125 FREE on the first $100 plus an extra 25% on remaining portion of your deposit!";
myCasino[casinoindex].banners125x125 = new Array("lasvegasusa1.gif","lasvegasusa1.gif");
myCasino[casinoindex].banners468x60 = new Array("lasvegasusa1.gif","lasvegasusa1.gif","lasvegasusa1.gif","lasvegasusa1.gif","lasvegasusa1.gif");
myCasino[casinoindex++].affiliategroup = "Mainstreet";

//Sun Palace *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Sun Palace Casino";
myCasino[casinoindex].casinocode = "sunpalace";
myCasino[casinoindex].software = "Real Time Gaming";
myCasino[casinoindex].promotext = "125% Bonus. Use eWalletXpress, NETeller, INSTADEBIT or Money Order for your initial deposit and get an EXTRA 15% up to a maximum of $500 FREE!";
myCasino[casinoindex].banners125x125 = new Array("sunpalace1.gif","sunpalace1.gif","sunpalace1.gif");
myCasino[casinoindex].banners468x60 = new Array("sunpalace1.gif","sunpalace1.gif");
myCasino[casinoindex++].affiliategroup = "Mainstreet";


//Vegas Casino Online *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Vegas Casino Online";
myCasino[casinoindex].casinocode = "vegascasinoonline";
myCasino[casinoindex].software = "Real Time Gaming";
myCasino[casinoindex].promotext = "The best bonus on the Internet! Receive a 125% BONUS on your initial Deposit FREE! Deposit $10 to $100 and get a 125% Bonus";
myCasino[casinoindex].banners125x125 = new Array("vegascasinoonline1.gif","vegascasinoonline1.gif","vegascasinoonline1.gif","vegascasinoonline1.gif","vegascasinoonline1.gif","vegascasinoonline1.gif");
myCasino[casinoindex].banners468x60 = new Array("vegascasinoonline1.gif","vegascasinoonline1.gif");
myCasino[casinoindex++].affiliategroup = "Mainstreet";


//Club USA *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Club USA Casino";
myCasino[casinoindex].casinocode = "clubusa";
myCasino[casinoindex].software = "Real Time Gaming";
myCasino[casinoindex].promotext = "NEW PLAYER BONUS:  Up to $777 FREE welcome bonus";
myCasino[casinoindex].banners125x125 = new Array("clubusa1.gif","clubusa1.gif","clubusa1.gif","clubusa1.gif");
myCasino[casinoindex].banners468x60 = new Array("clubusa1.gif","clubusa1.gif","clubusa1.gif","clubusa1.gif");
myCasino[casinoindex++].affiliategroup = "Mainstreet";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Aladdins Gold Casino";
myCasino[casinoindex].casinocode = "aladdinsgold";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "Receive an incredible 200% Welcome Bonus on every deposit for 7 days!";
myCasino[casinoindex].banners125x125 = new Array("aladdinsgold1.gif");
myCasino[casinoindex].banners468x60 = new Array("aladdinsgold1.gif");
myCasino[casinoindex++].affiliategroup = "Club World";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Lucky Red Casino";
myCasino[casinoindex].casinocode = "luckyred";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "400% Slots Bonus up to $4000 or 100% Blackjack and Video Poker Bonus up to $1000!!";
myCasino[casinoindex].banners125x125 = new Array("luckyred1.gif");
myCasino[casinoindex].banners468x60 = new Array("luckyred1.gif");
myCasino[casinoindex++].affiliategroup = "Club World";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Sloto Cash Casino";
myCasino[casinoindex].casinocode = "slotocash";
myCasino[casinoindex].software = "Rival Gaming";
myCasino[casinoindex].promotext = "$7 FREE No Deposit Bonus. Up to $577 free on your first 3 deposits";
myCasino[casinoindex].banners125x125 = new Array("slotocash1.gif");
myCasino[casinoindex].banners468x60 = new Array("slotocash1.gif");
myCasino[casinoindex++].affiliategroup = "stc";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Manhattan Slots";
myCasino[casinoindex].casinocode = "manhattanslots";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "100% Bonus up to $747 on 1st 2 Deposits!";
myCasino[casinoindex].banners125x125 = new Array("manhattanslots1.gif");
myCasino[casinoindex].banners468x60 = new Array("manhattanslots1.gif");
myCasino[casinoindex++].affiliategroup = "Casino Coins";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "All Star Slots";
myCasino[casinoindex].casinocode = "allstarslots";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "Up to $787 free on 1st 2 deposits!";
myCasino[casinoindex].banners125x125 = new Array("allstarslots1.gif");
myCasino[casinoindex].banners468x60 = new Array("allstarslots1.gif");
myCasino[casinoindex++].affiliategroup = "Casino Coins";