// JavaScript Document for the 3 rollover images in the center column

//function to preload the images for rollover affects.
function preloadImage(url){
	var i = new Image();
	i.src = url;
	return i;
}

//assign variables to the preloaded images
if (document.images){
	var listingoff = preloadImage("../images/jobs.jpg");
	var listingon = preloadImage("../images/jobs_on.gif");
}

//function to change the image when a mouse rolls over it
function mouseOn(imgName){
	if(document.images)
		document[imgName].src=eval(imgName + "on.src");
}

//function to return an image to its original state.
function mouseOff(imgName){
	if(document.images)
		document[imgName].src=eval(imgName + "off.src");
}

