//This navigates to url depending on what option is selected in otherSitesCmb
function NavigateTo() {
	//get the object
	var otherSitesCmb = document.getElementById('otherEdexcelSites');
	//redirect to site depending on what is selected.
	document.location.href=otherSitesCmb.options[otherSitesCmb.selectedIndex].value;
}

function popupWindow(page, width, height) {
	var options = 'width=' + width + ',height=' + height + ',top=20,left=20,resizable=1,menubar=1,scrollbars=1,location=1,status=1';
	var popup;
	
	popup =  window.open(page, 'PopupWindow', options);
	
	if (document.layers) {
		popup.setResizable(true);
	}
	
	popup.resizeTo(width, height);
	popup.focus();
}

function doRollupNav(whichNav) {
	eval(document.forms[whichNav].submit());
}




function showImage()
{

		var theImages = new Array()

theImages[0] = 'images/eggy.jpg'
theImages[1] = 'images/peachy.jpg'
theImages[2] = 'images/spongy.jpg'

var j = 0
var p = theImages.length;
var preBuffer = new Array()

for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

document.body.style.backgroundImage='url('+theImages[whichImage]+')';
}

function showImageSmall()
{

		var theImages = new Array()

theImages[0] = 'images/egg.jpg'
theImages[1] = 'images/peach.jpg'
theImages[2] = 'images/sponge.jpg'

var j = 0
var p = theImages.length;
var preBuffer = new Array()

for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

document.getElementById('pageHeaderSupplement').style.backgroundImage='url('+theImages[whichImage]+')';
}

