jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	jQuery("<img>").attr("src", arguments[i]);
}
jQuery.preloadImages("ar_blaux.jpg", "ar_rotx.jpg");

jQuery(document).ready(function(){
	
	$("#iconbar ui a").hover(
		function(){
			var iconName = $(this).children("img").attr("src");
			var origen = iconName.split("x.jpg")[0];
			$(this).children("img").attr({src: "" + origen + "x.jpg"});
			$(this).css("cursor", "pointer");
			$(this).animate({ width: "250px", height: "280px"}, {queue:false, duration:"normal"} );
			$(this).children("span").animate({opacity: "show"}, "fast");
		}, 
		function(){
			var iconName = $(this).children("img").attr("src");
			var origen = iconName.split("x.")[0];
			$(this).children("img").attr({src: "" + origen + "x.jpg"});			
			$(this).animate({ width: "18px", height: "18px" }, {queue:false, duration:"normal"} );
			$(this).children("span").animate({opacity: "hide"}, "fast");
		});
});