// JavaScript Document

//window.onload=function(){


//new_cube.src='cubes/main_cube_2.jpg';
//alert(new_cube.id);
//}

if (window.location.href.indexOf('http://todayattheoffice.com/links') != -1 ){
//test
}else{
window.location = 'http://todayattheoffice.com/links';
	}

var thecubes = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

thecubes[0] = 'cubes/main_cube.jpg';
thecubes[1] = 'cubes/main_cube_2.jpg';
thecubes[2] = 'cubes/december.jpg';

// do not edit anything below this line

var j = 0
var p = thecubes.length;
var cubeBuffer = new Array()
for (i = 0; i < p; i++){
   cubeBuffer[i] = new Image()
   cubeBuffer[i].src = thecubes[i]
}
var new_cube = Math.round(Math.random()*(p-1));

function showcube(){
	var mycube = top.document.getElementById('cube_banner');
//document.write('<img src="'+thecubes[new_cube]+'">');
//alert(thecubes[new_cube]);
mycube.src=thecubes[new_cube];
}


showcube();
