/*-----------------------------------------------------------------
definition: This function will preload any number of images
            passed in as an argument. And the function will 
			recognize this dynamically.
			
parameter: none
-----------------------------------------------------------------*/
function MM_preloadImages() 
{
	//create a document object
  	var d=document; 
	
	//check if the document supports images
	if(d.images)
	{ 
		//if ther is no element named MM_p then assign as array
		if(!d.MM_p) 
			d.MM_p=new Array();
		
		//create variables
    	var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
		
		//loop through each number of arguments
		for(i=0; i<a.length; i++)
		{
			//preload the images
			d.MM_p[j]=new Image; 
			d.MM_p[j++].src=a[i];
		}
	}
	
	return;
}





function rollover(img,id)
{
	//switch the image
	var imgElement = document.getElementById(id);
	imgElement.src = img;
	
	return;
}