jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	jQuery("<img>").attr("src", arguments[i]);
}
jQuery.preloadImages("nav/b-home-page.jpg");
jQuery.preloadImages("nav/b-home-page_f2.jpg");
jQuery.preloadImages("nav/b-home-page2.jpg");
jQuery.preloadImages("nav/b-about-us.jpg");
jQuery.preloadImages("nav/b-about-us_f2.jpg");
jQuery.preloadImages("nav/b-about-us2.jpg");
jQuery.preloadImages("nav/b-our-services.jpg");
jQuery.preloadImages("nav/b-our-services_f2.jpg");
jQuery.preloadImages("nav/b-our-services2.jpg");
jQuery.preloadImages("nav/b-view-gallery.jpg");
jQuery.preloadImages("nav/b-view-gallery_f2.jpg");
jQuery.preloadImages("nav/b-view-gallery2.jpg");
jQuery.preloadImages("nav/b-contact-us.jpg");
jQuery.preloadImages("nav/b-contact-us_f2.jpg");
jQuery.preloadImages("nav/b-contact-us2.jpg");
jQuery.preloadImages("nav/b-client-testimony.jpg");
jQuery.preloadImages("nav/b-client-testimony_f2.jpg");
jQuery.preloadImages("nav/b-client-testimony2.jpg");

jQuery(document).ready(function(){
	
	$("#iconbarLt li img").hover(
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split(".")[0];
			$(this).attr({src: "" + origen + "_f2.jpg"});
			$(this).parent().parent().animate({ height: "142px" }, {queue:false, duration:"normal"},{easing: "easeOutBounce"} );
			$(this).parent().parent().find("span").animate({opacity: "show"}, "fast", {easing: "easeOutBounce"});
		}, 
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split("_f2.")[0];
			$(this).attr({src: "" + origen + ".jpg"});			
			$(this).parent().parent().animate({ height: "129px" }, {queue:false, duration:"normal"},{easing: "easeOutBounce"} );
			$(this).parent().parent().find("span").animate({opacity: "hide"}, "fast", {easing: "easeOutBounce"});
		});
	$("#iconbarLt2 li img").hover(
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split(".")[0];
			$(this).attr({src: "" + origen + "_f2.jpg"});
			$(this).parent().parent().animate({ height: "142px" }, {queue:false, duration:"normal"},{easing: "easeOutBounce"} );
			$(this).parent().parent().find("span").animate({opacity: "show"}, "fast", {easing: "easeOutBounce"});
		}, 
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split("_f2.")[0];
			$(this).attr({src: "" + origen + ".jpg"});			
			$(this).parent().parent().animate({ height: "129px" }, {queue:false, duration:"normal"},{easing: "easeOutBounce"} );
			$(this).parent().parent().find("span").animate({opacity: "hide"}, "fast", {easing: "easeOutBounce"});
		});
	$("#iconbarLt3 li img").hover(
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split(".")[0];
			$(this).attr({src: "" + origen + "_f2.jpg"});
			$(this).parent().parent().animate({ height: "142px" }, {queue:false, duration:"normal"},{easing: "easeOutBounce"} );
			$(this).parent().parent().find("span").animate({opacity: "show"}, "fast", {easing: "easeOutBounce"});
		}, 
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split("_f2.")[0];
			$(this).attr({src: "" + origen + ".jpg"});			
			$(this).parent().parent().animate({ height: "129px" }, {queue:false, duration:"normal"},{easing: "easeOutBounce"} );
			$(this).parent().parent().find("span").animate({opacity: "hide"}, "fast", {easing: "easeOutBounce"});
		});
	$("#iconbarRt li img").hover(
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split(".")[0];
			$(this).attr({src: "" + origen + "_f2.jpg"});
			$(this).parent().parent().animate({ height: "142px" }, {queue:false, duration:"normal"} );
			$(this).parent().parent().find("span").animate({opacity: "show"}, "fast");
		}, 
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split("_f2.")[0];
			$(this).attr({src: "" + origen + ".jpg"});			
			$(this).parent().parent().animate({ height: "129px" }, {queue:false, duration:"normal"} );
			$(this).parent().parent().find("span").animate({opacity: "hide"}, "fast");
		});
	$("#iconbarRt2 li img").hover(
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split(".")[0];
			$(this).attr({src: "" + origen + "_f2.jpg"});
			$(this).parent().parent().animate({ height: "142px" }, {queue:false, duration:"normal"} );
			$(this).parent().parent().find("span").animate({opacity: "show"}, "fast");
		}, 
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split("_f2.")[0];
			$(this).attr({src: "" + origen + ".jpg"});			
			$(this).parent().parent().animate({ height: "129px" }, {queue:false, duration:"normal"} );
			$(this).parent().parent().find("span").animate({opacity: "hide"}, "fast");
		});
	$("#iconbarRt3 li img").hover(
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split(".")[0];
			$(this).attr({src: "" + origen + "_f2.jpg"});
			$(this).parent().parent().animate({ height: "142px" }, {queue:false, duration:"normal"} );
			$(this).parent().parent().find("span").animate({opacity: "show"}, "fast");
		}, 
		function(){
			var iconName = $(this).attr("src");
			var origen = iconName.split("_f2.")[0];
			$(this).attr({src: "" + origen + ".jpg"});			
			$(this).parent().parent().animate({ height: "129px" }, {queue:false, duration:"normal"} );
			$(this).parent().parent().find("span").animate({opacity: "hide"}, "fast");
		});
});
