//---------------------------------------------------------------------------------------
//	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.online---blackjack.com/cgi-bin/out.pl?" + 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.all_payout = all_payout;
	this.table_payout = table_payout;
	this.slots_payout = slots_payout;
	this.poker_payout = poker_payout;
	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.online---blackjack.com/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.online---blackjack.com/banners/468x60/" + this.banners468x60[randombannerindex];
	var mystyle = "style468";


}

var mylink = "http://www.online---blackjack.com/cgi-bin/out.pl?" + 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;  

// *************************************************************
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";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Online Vegas Casino";
myCasino[casinoindex].casinocode = "onlinevegas";
myCasino[casinoindex].software = "Vegas Technology";
myCasino[casinoindex].promotext = "Receive Bonuses on your First 10 Deposits up to $5,000 FREE";
myCasino[casinoindex].banners125x125 = new Array("onlinevegas1.gif");
myCasino[casinoindex].banners468x60 = new Array("onlinevegas1.gif");
myCasino[casinoindex++].affiliategroup = "Best Casino Partner";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Go Casino";
myCasino[casinoindex].casinocode = "gocasino";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "$20K Free Welcome Bonus on your First 20 Deposits and 4 Free Slot Tournament Entries Of Your Choice! Instant Play";
myCasino[casinoindex].banners125x125 = new Array("gocasino1.gif");
myCasino[casinoindex].banners468x60 = new Array("gocasino1.gif");
myCasino[casinoindex++].affiliategroup = "C-Planet";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Crazy Slots Casino";
myCasino[casinoindex].casinocode = "crazyslots";
myCasino[casinoindex].software = "Vegas Technology";
myCasino[casinoindex].promotext = "Up to $12500 FREE!";
myCasino[casinoindex].banners125x125 = new Array("crazyslots1.gif");
myCasino[casinoindex].banners468x60 = new Array("crazyslots1.gif");
myCasino[casinoindex++].affiliategroup = "C-Planet";

// *************************************************************
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 = "Slots Plus Casino";
myCasino[casinoindex].casinocode = "slotsplus";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "125% matching bonus up to $500 Totally Free! Instant Play No Download for Mac and PC";
myCasino[casinoindex].banners125x125 = new Array("slotsplus1.gif");
myCasino[casinoindex].banners468x60 = new Array("slotsplus1.gif");
myCasino[casinoindex++].affiliategroup = "Mainstreet";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Vegas Casino Online";
myCasino[casinoindex].casinocode = "vegascasinoonline";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "$125 FREE Bonus on first $100. Plus 25% on remaining portion of your deposit";
myCasino[casinoindex].banners125x125 = new Array("vegascasinoonline1.gif");
myCasino[casinoindex].banners468x60 = new Array("vegascasinoonline1.gif");
myCasino[casinoindex++].affiliategroup = "Mainstreet";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Sun Palace Casino";
myCasino[casinoindex].casinocode = "sunpalace";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "125% Initial Deposit Bonus and an EXTRA 15% up to $500 using NETeller, INSTADEBIT, Money Order or EWallet Express.";
myCasino[casinoindex].banners125x125 = new Array("sunpalace1.gif");
myCasino[casinoindex].banners468x60 = new Array("sunpalace1.gif");
myCasino[casinoindex++].affiliategroup = "Mainstreet";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Las Vegas USA Casino";
myCasino[casinoindex].casinocode = "lasvegasusa";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "up to $500 First Deposit Bonus free – 125%!";
myCasino[casinoindex].banners125x125 = new Array("lasvegasusa1.gif");
myCasino[casinoindex].banners468x60 = new Array("lasvegasusa1.gif");
myCasino[casinoindex++].affiliategroup = "Mainstreet";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "English Harbour Casino";
myCasino[casinoindex].casinocode = "englishharbour";
myCasino[casinoindex].software = "Vegas Technology";
myCasino[casinoindex].promotext = "100% up to $200 on your first four deposits!!";
myCasino[casinoindex].banners125x125 = new Array("englishharbour1.gif");
myCasino[casinoindex].banners468x60 = new Array("englishharbour1.gif");
myCasino[casinoindex++].affiliategroup = "Casino Coins";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Caribbean Gold Casino";
myCasino[casinoindex].casinocode = "caribbeangold";
myCasino[casinoindex].software = "Vegas Technology";
myCasino[casinoindex].promotext = " Get 100% up to $1000 on your 1st 4 deposits!!";
myCasino[casinoindex].banners125x125 = new Array("caribbeangold1.gif");
myCasino[casinoindex].banners468x60 = new Array("caribbeangold1.gif");
myCasino[casinoindex++].affiliategroup = "Casino Coins";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Club USA Casino";
myCasino[casinoindex].casinocode = "clubusa";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = " Up to $777 FREE welcome bonus";
myCasino[casinoindex].banners125x125 = new Array("clubusa1.gif");
myCasino[casinoindex].banners468x60 = new Array("clubusa1.gif");
myCasino[casinoindex++].affiliategroup = "Club World";

// *************************************************************
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";