<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '/images/headers/branding/1.gif'
theImages[1] = '/images/headers/branding/2.gif'
theImages[2] = '/images/headers/branding/3.gif'
theImages[3] = '/images/headers/branding/4.gif'
theImages[4] = '/images/headers/branding/5.gif'
theImages[5] = '/images/headers/branding/6.gif'

// do not edit anything below this line

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));

// setStyleById: given an element id, style property and 
// value, apply the style.
// args:
//  i - element id
//  p - property
//  v - value
//
function setStyleById(i, p, v) {	
	var n = document.getElementById(i);	
	n.style[p] = v;
}

function setBrandingImage(){
	//alert(whichImage);
	var bgImage = '#000 url(\'' + theImages[whichImage] + '\') no-repeat';
	setStyleById('branding', 'background', bgImage);
}


