jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	jQuery("<img>").attr("src", arguments[i]);
}
jQuery.preloadImages("/images/icon-twitter.png", "/images/icon-facebook.png");

jQuery(document).ready(function(){
	
	$("#iconbar li a").hover(
		function(){
			var iconName = $(this).children("img").attr("src");
			$(this).animate({ width: "130px" }, {queue:false, duration:"slow"} );
			$(this).children("span").animate({opacity: "show"}, "fast");
		}, 
		function(){
			var iconName = $(this).children("img").attr("src");			
			$(this).animate({ width: "32px" }, {queue:false, duration:"slow"} );
			$(this).children("span").animate({opacity: "hide"}, "fast");
		});
});
