/**
 * FancyButton
 *
 * Preloads the default and mouseover image for the button and takes care of the swapping.
 *
 * Version: 1.0
 */
function FancyButton(element, label, defaultImage, mouseoverImage)
{
	preloadImage(label, 'images/buttons/'  + defaultImage);
	preloadImage(label + '_mouseover', 'images/buttons/' + mouseoverImage);
	
	if (window.document.getElementById(element))
	{
		imageHoverSwap(window.document.getElementById(element), label, label + '_mouseover');
	}
}
