//---------------------------------------------------------------------------------------
//	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.best-onlinecasinos.biz/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);
}





//********** Defining the Casino object ***********

function Casino(name,casinocode,promotext,affiliategroup,software, 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.best-onlinecasinos.biz/banners/125x125/" + this.banners125x125[randombannerindex];
	
} else {
	var randombannerindex = Math.floor(Math.random() * this.banners468x60.length);
	var mydimensions = " width=468 height=60 border=0";
	var mybanner = "http://www.best-onlinecasinos.biz/banners/468x60/" + this.banners468x60[randombannerindex];

}

var mylink = "http://www.best-onlinecasinos.biz/cgi-bin/out.pl?" + this.casinocode;

line1 = "<br><a target=_blank href=\'" + mylink + "\'>" + this.name + "</a>";
line2 = "<br><a target=_blank href=\'" + mylink + "\'><img src=\'" + mybanner + "\'" + mydimensions + " align=top vspace=6></a>";
line3 = "<p>" + this.promotext + "</p>"

document.write(line1,line2,line3);
}
// ***********************************************




//---------------------------------------------------------------------
//	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 = "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 = "Best Casino Partner";

// *************************************************************
myCasino[casinoindex]= new Casino();
myCasino[casinoindex].name = "Aladdins Gold Casino";
myCasino[casinoindex].casinocode = "aladdinsgold";
myCasino[casinoindex].software = "RTG";
myCasino[casinoindex].promotext = "200% Matching Bonus Up To 7 days FREE!";
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% 1st bonus up to $4,000 free";
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 = "Crazy Slots Casino";
myCasino[casinoindex].casinocode = "crazyslots";
myCasino[casinoindex].software = "Vegas Technology";
myCasino[casinoindex].promotext = "Get up to $12500 free with your first 15 deposits. Plus 4 Free Slot Tournament Entries of Your Choice!";
myCasino[casinoindex].banners125x125 = new Array("crazyslots1.gif" );
myCasino[casinoindex].banners468x60 = new Array("crazyslots1.gif");
myCasino[casinoindex++].affiliategroup = "Best Casino Partner";

// *************************************************************
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 = "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 = "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 = "Club World";

// *************************************************************
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 = "Club World";