Items = new Array();
Items[0] = new Array("Syndicate","/Covers/9928_Syndicate__thm.jpg","/rental/9928/xbox-360/syndicate.aspx");
Items[1] = new Array("Lego Indiana Jones","/Covers/8513_LegoIndian__thm.jpg","/rental/8513/nintendo-ds/lego-indiana-jones.aspx");
Items[2] = new Array("Kung Fu Panda","/Covers/8509_KungFuPand_Playstation_2_thm.jpg","/rental/8509/ps2-playstation-2/kung-fu-panda.aspx");
Items[3] = new Array("Chronicles of Narnia DS","/Covers/7051_Chronicles__thm.jpg","/rental/7051/nintendo-ds/chronicles-of-narnia-ds.aspx");
Items[4] = new Array("Harry Potter and the Deathly Hallows Part 2","/Covers/9840_HarryPotte__thm.jpg","/rental/9840/nintendo-wii/harry-potter-and-the-deathly-hallows-part-2.aspx");
Items[5] = new Array("Spec Ops The Line","/Covers/9939_SpecOpsThe__thm.jpg","/rental/9939/xbox-360/spec-ops-the-line.aspx");
Items[6] = new Array("Paint By DS","/Covers/7087_PaintByDS_Nintendo_DS_thm.jpg","/rental/7087/nintendo-ds/paint-by-ds.aspx");
Items[7] = new Array("Alvin And The Chipmunks DS","/Covers/7017_AlvinAndTh_Nintendo_DS_thm.jpg","/rental/7017/nintendo-ds/alvin-and-the-chipmunks-ds.aspx");
Items[8] = new Array("Driver San Francisco","/Covers/9856_DriverSanF_Nintendo_Wii_thm.jpg","/rental/9856/nintendo-wii/driver-san-francisco.aspx");
Items[9] = new Array("Captain America Super Soldier","/Covers/9839_CaptainAme_Nintendo_Wii_thm.jpg","/rental/9839/nintendo-wii/captain-america-super-soldier.aspx");
Items[10] = new Array("Call of Juarez The Cartel","/Covers/9831_CallofJuar_PS3___Playstation_3_thm.jpg","/rental/9831/ps3-playstation-3/call-of-juarez-the-cartel.aspx");
Items[11] = new Array("The Darkness 2 Limited Edition","/Covers/9929_TheDarknes__thm.jpg","/rental/9929/xbox-360/the-darkness-2-limited-edition.aspx");
Items[12] = new Array("Chronicles Of Narnia 2: Prince Caspian","/Covers/8511_Chronicles_Playstation_2_thm.jpg","/rental/8511/ps2-playstation-2/chronicles-of-narnia-2-prince-caspian.aspx");
Items[13] = new Array("Ridge Racer Unbounded","/Covers/9950_RidgeRacer__thm.jpg","/rental/9950/xbox-360/ridge-racer-unbounded.aspx");
Items[14] = new Array("Pokemon Mystery Dungeon Explorer of Darkness DS","/Covers/8514_PokemonMys_Nintendo_DS_thm.jpg","/rental/8514/nintendo-ds/pokemon-mystery-dungeon-explorer-of-darkness-ds.aspx");
Items[15] = new Array("Wall-E","/Covers/8783_Wall-E__thm.jpg","/rental/8783/ps2-playstation-2/wall-e.aspx");
Items[16] = new Array("Space Marine","/Covers/9861_SpaceMarin_PS3___Playstation_3_thm.jpg","/rental/9861/ps3-playstation-3/space-marine.aspx");
Items[17] = new Array("The Incredible Hulk","/Covers/8510_TheIncredi_Playstation_2_thm.jpg","/rental/8510/ps2-playstation-2/the-incredible-hulk.aspx");
Items[18] = new Array("Transformers 3 Dark of the Moon","/Covers/9825_Transforme_Nintendo_Wii_thm.jpg","/rental/9825/nintendo-wii/transformers-3-dark-of-the-moon.aspx");
Items[19] = new Array("God of War Collection 2","/Covers/9863_GodofWarCo_PS3___Playstation_3_thm.jpg","/rental/9863/ps3-playstation-3/god-of-war-collection-2.aspx");
Items[20] = new Array("UFC Trainer","/Covers/9822_UFCTrainer_Nintendo_Wii_thm.jpg","/rental/9822/nintendo-wii/ufc-trainer.aspx");
Items[21] = new Array("Max Payne 3","/Covers/9943_MaxPayne3__thm.jpg","/rental/9943/xbox-360/max-payne-3.aspx");
Items[22] = new Array("Chronicles Of Narnia 2: Prince Caspian","/Covers/8515_Chronicles_Nintendo_DS_thm.jpg","/rental/8515/nintendo-ds/chronicles-of-narnia-2-prince-caspian.aspx");
Items[23] = new Array("Alone In The Dark","/Covers/7283_AloneInThe_PS2___Playstation_2_thm.jpg","/rental/7283/ps2-playstation-2/alone-in-the-dark.aspx");
Items[24] = new Array("Splinter Cell HD Trilogy","/Covers/9862_SplinterCe__thm.jpg","/rental/9862/ps3-playstation-3/splinter-cell-hd-trilogy.aspx");
Items[25] = new Array("Garfield Gets Real DS","/Covers/7062_GarfieldGe__thm.jpg","/rental/7062/nintendo-ds/garfield-gets-real-ds.aspx");
Items[26] = new Array("Lego Indiana Jones","/Covers/8508_LegoIndian__thm.jpg","/rental/8508/ps2-playstation-2/lego-indiana-jones.aspx");
Items[27] = new Array("Mass Effect 3","/Covers/9946_MassEffect__thm.jpg","/rental/9946/xbox-360/mass-effect-3.aspx");
Items[28] = new Array("Captain America Super Soldier","/Covers/9842_CaptainAme__thm.jpg","/rental/9842/ps3-playstation-3/captain-america-super-soldier.aspx");
Items[29] = new Array("Green Lantern Rise of the Manhunters","/Covers/9823_GreenLante_Nintendo_Wii_thm.jpg","/rental/9823/nintendo-wii/green-lantern-rise-of-the-manhunters.aspx");
Items[30] = new Array("Dead Island","/Covers/9866_DeadIsland__thm.jpg","/rental/9866/ps3-playstation-3/dead-island.aspx");
Items[31] = new Array("Iron Man","/Covers/8540_IronMan__thm.jpg","/rental/8540/ps2-playstation-2/iron-man.aspx");
Items[32] = new Array("Harry Potter and the Deathly Hallows Part 2","/Covers/9843_HarryPotte__thm.jpg","/rental/9843/ps3-playstation-3/harry-potter-and-the-deathly-hallows-part-2.aspx");
Items[33] = new Array("UFC 3 Undisputed","/Covers/9942_UFC3Undisp__thm.jpg","/rental/9942/xbox-360/ufc-3-undisputed.aspx");
Items[34] = new Array("LEGO Pirates of the Caribbean","/Covers/9807_LEGOPirate_Nintendo_Wii_thm.jpg","/rental/9807/nintendo-wii/lego-pirates-of-the-caribbean.aspx");

itemLength = Items.length;
var animate;
var rotatorLink;
var title;

function newItem()
 {
 if (this.counter ==  undefined || this.counter >= itemLength -2)
    this.counter = Math.floor(Math.random()* itemLength);
else
	this.counter = this.counter+1;

if (document.all) {
        animate.style.filter='blendTrans(duration=1.0) revealTrans(duration=0.5,transition=7)';
        animate.filters(0).Apply();
        animate.filters(1).Apply();
    } 
		rotatorLink.href = Items[this.counter][2];
        title.innerHTML = Items[this.counter][0];
	    animate.src = Items[this.counter][1];

    if (document.all) {
        animate.filters(0).Play();
        animate.filters(1).Play();
    } 
}

document.observe('dom:loaded', function()
{
animate = $('RotatorImg');
rotatorLink = $('RotatorLink');
title = $('RotatorTitleName');

newItem();
$('Rotator').style.display = '';
var pe = new PeriodicalExecuter(newItem, 5);
});

