/**
 * @param {String} img 	Relative path of the source image for the Over button
 */
function preload( name )
{
	img = new Image();
	img.src = '/view/images/buttons/'+name+'_over.png';
}

function rollover( img )
{
	over = new Image();
	over.src = '/view/images/buttons/'+img+'_over.png';
	
	if (document.images)
	{
    	document.getElementById(img).src = over.src;
	}
}

/**
 * @param {String} outImg 	Relative path of the source image for the Out (or Up) button
 */
function rollout( img )
{
	out = new Image();
	out.src = '/view/images/buttons/'+img+'.png';
	
	if (document.images)
	{
    	document.getElementById(img).src =  out.src;
	}
}
