/*jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	jQuery("<img>").attr("src", arguments[i]);
}*/
//jQuery.preloadImages("key.gif", "keyo.gif", "rss.gif", "rsso.gif", "sel.gif", "selo.gif");

jQuery(document).ready(function(){
	
	$("#iconbar li.menu").hover(
		function(){
			//var iconName = $(this).children("img").attr("src");
			//var origen = iconName.split(".gif")[0];
			//$(this).children("img").attr({src: "" + origen + "o.gif"});
			$(this).css("cursor", "pointer");
			$(this).css("background" ,"#fff url('images/diagonalstripes.gif')");
			$(this).css("border-top" ,"1px solid #6fbe4b");
			$(this).css("border-bottom" ,"1px solid #6fbe4b");
			$(this).animate({ width: "325px" }, {queue:false, duration:"normal"} );
			$(this).animate({ height: "75px" }, {queue:false, duration:"normal"} );
			$(this).children("div.content2").animate({opacity: "show"}, "fast");
		}, 
		function(){
		//	var iconName = $(this).children("img").attr("src");
			//var origen = iconName.split("o.")[0];
			//$(this).children("img").attr({src: "" + origen + ".gif"});			
			$(this).animate({ width: "200px" }, {queue:false, duration:"normal"} );
			$(this).animate({ height: "20px" }, {queue:false, duration:"normal"} );
			$(this).children("div.content2").animate({opacity: "hide"}, "fast");
			$(this).css("background" ,"transparent");
			$(this).css("border" ,"0");
		});
});