var currentdate = 0;
var core = 0;
var i,
adLink,
adImage,
adText,
ranlink,
ranimage,
rantext;
var InitArray = function() {
    this.length = arguments.length;
    for (i = 0; i < this.length; i += 1) {
        this[i] = arguments[i];
    }
};
adLink = new InitArray("/conference/2011/index.html",
"/conference/2011/index.html",
"/conference/2011/index.html",
"/conference/2011/index.html#roodt",
"/conference/2011/index.html#wolters",
"/conference/2011/index.html#yeagley",
"/conference/2011/index.html#taylor",
"/conference/2011/index.html#kennedy",
"/conference/2011/index.html#thomas",
"/conference/2011/index.html#dickson");
adImage = new InitArray("/conference/2011/images/defending-the-west.png",
"/conference/2011/images/register-now.png",
"/conference/2011/images/details-here.png",
"/conference/2011/images/dan-roodt.png",
"/conference/2011/images/raymond-wolters.png",
"/conference/2011/images/david-yeagley.png",
"/conference/2011/images/jared-taylor.png",
"/conference/2011/images/hugh-kennedy.png",
"/conference/2011/images/donald-thomas.png",
"/conference/2011/images/sam-dickson.png");
for (i = 0; i <= 9; i += 1) {
    adImage[i].src = adImage[i];
}
adText = new InitArray("2011 AR Conference -- Defending the West",
"Register now for the 2011 AR Conference",
"2011 AR Conference -- details here",
"Dan Roodt to speak at 2011 AR Conference",
"Raymond Wolters to speak at 2011 AR Conference",
"David Yeagley to speak at 2011 AR Conference",
"Jared Taylor to speak at 2011 AR Conference",
"Hugh Kennedy to speak at 2011 AR Conference",
"Donald Thomas to speak at 2011 AR Conference",
"Sam Dickson to speak at 2011 AR Conference");
currentdate = new Date();
core = currentdate.getSeconds() % adImage.length;
ranlink = adLink[core];
ranimage = adImage[core];
rantext = adText[core];
