jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	jQuery("<img>").attr("src", arguments[i]);
}
jQuery.preloadImages("/images/menu-icons/home.png", "/images/menu-icons/homeo.png", "/images/menu-icons/news.png", "/images/menu-icons/newso.png"
					 , "/images/menu-icons/artists.png", "/images/menu-icons/artistso.png", "/images/menu-icons/release.png", "/images/menu-icons/releaseo.png"
					 , "/images/menu-icons/wheretobuy.png", "/images/menu-icons/wheretobuyo.png", "/images/menu-icons/contactus.png", 
					 "/images/menu-icons/contactuso.png");

jQuery(document).ready(function(){

	$("#iconbar li a").hover(
		function(){
			var iconName = $(this).children("img").attr("src");
			var origen = iconName.split(".png")[0];
			//$(this).children("img").attr({src: "" + origen + "o.png"});
			$(this).css("cursor", "pointer");
			$(this).animate({ width: "150px"}, {queue:false, duration:"normal"} );
			$(this).children("span").animate({opacity: "show"}, "fast");
		}, 
		function(){
			var iconName = $(this).children("img").attr("src");
			var origen = iconName.split("o.")[0];
			//$(this).children("img").attr({src: "" + origen + ".png"});			
			$(this).animate({ width: "50px"}, {queue:false, duration:"normal"} );
			$(this).children("span").animate({opacity: "hide"}, "fast");
		});
	
	$("label").inFieldLabels();
});




