/* WHIM INTERNET MAGAZINE
   JavaScript - Front Background Randomizer * Season 18
   Executive Director:  Andrew D. Lent
   Code and Programming by Jennifer M. Conner
	 
    http://www.ruwhim.com
	Fall 2005 - Spring 2006
	contact whim@radford.edu
	 
	This is not a template!  Do not modify this file!
	Questions?
	contact jconner28@radford.edu or
	aim: wondermart
	
	make sure the range in math.random() is the number of images named mainbackground_x.jpg in the /img folder
	this is pretty basic.  it picks a random number out of the range given and assigns it to the string
	the string is used to override the style backgroundImage in the element with id "front_main_box"
	*/
	
function get_background() {
		//get the random number
		var pic_number = Math.floor(Math.random() * (1 + 1));
		
		//assemble the filename string
		var img_filename = "background" + pic_number + ".jpg";
		
		//get the style
		var box_style = document.getElementById("front_main_box").style;
		
		//overwrite the style
		box_style.backgroundImage = "url(img/" + img_filename + ")";
		
	}