
/*                                                                      styleSwap.js
------------------------------------------------------------------------------------
swap css class routines
---------------------------------------------------------------------------------- */

// no of background images 
var backgroundIdNo= 10 ;

// store filepaths to images in an array
var backgroundID = new Array("backgroundImageZero", "backgroundImageOne", "backgroundImageTwo", "backgroundImageThree", "backgroundImageFour", "backgroundImageFive", "backgroundImageSix", "backgroundImageSeven", "backgroundImageEight", "backgroundImageNine") ;



// assign onload handler
function swapBackground() {
	
	// generate a random id
	var currentID = Math.floor(Math.random() * backgroundIdNo) ;
	
	// swap the style for the background image
	document.getElementById('backgroundImageZero').className = backgroundID[currentID] ;
	
	// swap the style for the gallery image
	// document.getElementById('galleryImageZero').className = galleryID[currentID] ;
	// document.getElementById('galleryImage').src = galleryID[currentID] ;
	
}



// alert("loaded styleSwap") ;
