jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	jQuery("<img>").attr("src", arguments[i]);
}
// jQuery.preloadImages("../shop/images/icons/msn.jpg", "../shop/images/icons/skype.jpg", "../shop/images/icons/call.jpg");


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