// add imgs to array
// 0 = black
// 1 = white
var imgs = new Array();
imgs[imgs.length] = new Array('http://www.poststar.com/core/images/header/rotation/spring/bg01.jpg', 1);
imgs[imgs.length] = new Array('http://www.poststar.com/core/images/header/rotation/spring/bg02.jpg', 1);
imgs[imgs.length] = new Array('http://www.poststar.com/core/images/header/rotation/spring/bg03.jpg', 0);
imgs[imgs.length] = new Array('http://www.poststar.com/core/images/header/rotation/spring/bg04.jpg', 0);
imgs[imgs.length] = new Array('http://www.poststar.com/core/images/header/rotation/spring/bg05.jpg', 1);
imgs[imgs.length] = new Array('http://www.poststar.com/core/images/header/rotation/spring/bg06.jpg', 0);
imgs[imgs.length] = new Array('http://www.poststar.com/core/images/header/rotation/spring/bg07.jpg', 0);
imgs[imgs.length] = new Array('http://www.poststar.com/core/images/header/rotation/spring/bg08.jpg', 0);
imgs[imgs.length] = new Array('http://www.poststar.com/core/images/header/rotation/spring/bg09.jpg', 1);

// get random array index
i = parseInt(Math.random() * imgs.length);
i = (isNaN(i)) ? 0 : i;

// set mast imgs
document.getElementById('mast').style.background = 'url(' + imgs[i][0] + ') scroll no-repeat left top';
switch (imgs[i][1]) {
case 0: // black
	document.getElementById('logo').src = 'http://www.poststar.com/core/images/header/logo_blk.png';
	document.getElementById('weather').style.backgroundImage = 'url(http://www.poststar.com/core/images/header/weather_blk.png)';
	break;
case 1: // white
	document.getElementById('logo').src = 'http://www.poststar.com/core/images/header/logo_wht.png';
	document.getElementById('weather').style.backgroundImage = 'url(http://www.poststar.com/core/images/header/weather_wht.png)';
	break;
}

