//Rotation for big banners
function bigrotation1() {
var currentdate = 0;
var core = 0;

function big1initArray() {

this.length = big1initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = big1initArray.arguments[i];
  }
}

link = new big1initArray(
"cgi-bin/out.pl?goldenpalace",
"cgi-bin/out.pl?rubyfortune",
"cgi-bin/out.pl?clubdice",
"cgi-bin/out.pl?casinotropez",
"cgi-bin/out.pl?grandonline",
"cgi-bin/out.pl?grandonline",
"cgi-bin/out.pl?grandonline",
"cgi-bin/out.pl?goldenpalace",
"cgi-bin/out.pl?flamingoclub",
"cgi-bin/out.pl?flamingoclub",
"cgi-bin/out.pl?flamingoclub",
"cgi-bin/out.pl?24ktgold",
"cgi-bin/out.pl?24ktgold",
"cgi-bin/out.pl?24ktgold",
"cgi-bin/out.pl?vegasred",
"cgi-bin/out.pl?vegasred",
"cgi-bin/out.pl?vegasred",
"cgi-bin/out.pl?delrio",
"cgi-bin/out.pl?delrio",
"cgi-bin/out.pl?delrio"
);

image = new big1initArray(
"prefrotation/goldenpalace1.gif",
"prefrotation/rubyfortune1.gif",
"prefrotation/clubdice1.gif",
"prefrotation/casinotropez1.gif",
"prefrotation/grandonline1.gif",
"prefrotation/grandonline2.gif",
"prefrotation/grandonline3.gif",
"prefrotation/goldenpalace1.gif",
"prefrotation/flamingoclub1.gif",
"prefrotation/flamingoclub2.gif",
"prefrotation/flamingoclub3.gif",
"prefrotation/24ktgold1.gif",
"prefrotation/24ktgold2.gif",
"prefrotation/24ktgold3.gif",
"prefrotation/vegasred1.gif",
"prefrotation/vegasred2.gif",
"prefrotation/vegasred3.gif",
"prefrotation/delrio1.gif",
"prefrotation/delrio2.gif",
"prefrotation/delrio3.gif"
);

text = new big1initArray(
"Golden Palace",
"Ruby Fortune",
"Club Dice Casino",
"Casino Tropez",
"Grand Online Casino",
"Grand Online Casino",
"Grand Online Casino",
"Golden Palace Casino",
"Flamingo Club",
"Flamingo Club",
"Flamingo Club",
"24kt Gold Casino",
"24kt Gold Casino",
"24kt Gold Casino",
"Vegas Red Casino",
"Vegas Red Casino",
"Vegas Red Casino",
"Casino Del Rio",
"Casino Del Rio",
"Casino Del Rio"
);

var currentdate = new Date();
var core = currentdate.getMilliseconds() % image.length;
var ranlink  = link[core];
var ranimage = image[core];
var rantext  = text[core];

document.write('<a href=\"javascript: linkup(\'' +ranlink+ '\');\"><img src=\"'+ranimage+'\" border="0" alt=\"'+rantext+'\"></a>');
}

//Rotation for small banners, first part
function smallrotation1() {
var currentdate = 0;
var core = 0;

function small1initArray() {

this.length = small1initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = small1initArray.arguments[i];
  }
}

link = new small1initArray(
"cgi-bin/out.pl?goldenpalace",
"cgi-bin/out.pl?delrio",
"cgi-bin/out.pl?delrio",
"cgi-bin/out.pl?delrio",
"cgi-bin/out.pl?vegasred",
"cgi-bin/out.pl?vegasred",
"cgi-bin/out.pl?vegasred"
);

image = new small1initArray(
"prefrotation/small/goldenpalace1.gif",
"prefrotation/small/delrio1.gif",
"prefrotation/small/delrio2.gif",
"prefrotation/small/delrio3.gif",
"prefrotation/small/vegasred1.gif",
"prefrotation/small/vegasred2.gif",
"prefrotation/small/vegasred3.gif"
);

text = new small1initArray(
"Golden Palace",
"Casino Del Rio",
"Casino Del Rio",
"Casino Del Rio",
"Vegas Red Casino",
"Vegas Red Casino",
"Vegas Red Casino"
);

var currentdate = new Date();
var core = currentdate.getMilliseconds() % image.length;
var ranlink  = link[core];
var ranimage = image[core];
var rantext  = text[core];

document.write('<a href=\"javascript: linkup(\'' +ranlink+ '\');\"><img src=\"'+ranimage+'\" border="0" alt=\"'+rantext+'\"></a>');
}

//Rotation for small banners, second part
function smallrotation2() {
var currentdate = 0;
var core = 0;

function small2initArray() {

this.length = small2initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = small2initArray.arguments[i];
  }
}

link = new small2initArray(
"cgi-bin/out.pl?casinotropez",
"cgi-bin/out.pl?grandonline",
"cgi-bin/out.pl?grandonline",
"cgi-bin/out.pl?grandonline",
"cgi-bin/out.pl?flamingoclub",
"cgi-bin/out.pl?flamingoclub",
"cgi-bin/out.pl?flamingoclub"
);

image = new small2initArray(
"prefrotation/small/casinotropez1.gif",
"prefrotation/small/grandonline1.gif",
"prefrotation/small/grandonline2.gif",
"prefrotation/small/grandonline3.gif",
"prefrotation/small/flamingoclub1.gif",
"prefrotation/small/flamingoclub1.gif",
"prefrotation/small/flamingoclub1.gif"
);

text = new small2initArray(
"Casino Tropez Casino",
"Grand Online Casino",
"Grand Online Casino",
"Grand Online Casino",
"Flamingo Club Casino",
"Flamingo Club Casino",
"Flamingo Club Casino"
);

var currentdate = new Date();
var core = currentdate.getMilliseconds() % image.length;
var ranlink  = link[core];
var ranimage = image[core];
var rantext  = text[core];

document.write('<a href=\"javascript: linkup(\'' +ranlink+ '\');\"><img src=\"'+ranimage+'\" border="0" alt=\"'+rantext+'\"></a>');
}

function linkup(linktext) {
	window.open(linktext);
}
