/*

Main Javascript for jQuery Realistic Hover Effect
Created by Adrian Pelletier
http://www.adrianpelletier.com

*/

/* =Realistic Navigation
============================================================================== */

	// Begin jQuery
	
	$(document).ready(function() {
				
	/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
		$("#nav-shadow-es li").append('<img class="shadow" src="http://navegatelwimax.com/wp-content/themes/default/images/effects/icons-shadow.png" width="45" height="15" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow-es li").hover(function() {
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "-14px" }, 250, function() {
		    	$(e).find("a").animate({ marginTop: "-10px" }, 250);
		    });
		    $(e).find("img.shadow").stop().animate({ width: "80%", height: "20px", marginLeft: "8px", opacity: 0.25 }, 250);
		},function(){
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "4px" }, 250, function() {
		    	$(e).find("a").animate({ marginTop: "0px" }, 250);
		    });
		    $(e).find("img.shadow").stop().animate({ width: "100%", height: "15px", marginLeft: "0", opacity: 1 }, 250);
		});
						
	// End jQuery


        // Append shadow image to each LI in english

		$("#nav-shadow-en li").append('<img class="shadow" src="http://navegatelwimax.com/wp-content/themes/default/images/effects/icons-shadow.png" width="45" height="15" alt="" />');

		// Animate buttons, shrink and fade shadow

		$("#nav-shadow-en li").hover(function() {
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "-14px" }, 250, function() {
		    	$(e).find("a").animate({ marginTop: "-10px" }, 250);
		    });
		    $(e).find("img.shadow").stop().animate({ width: "80%", height: "20px", marginLeft: "8px", opacity: 0.25 }, 250);
		},function(){
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "4px" }, 250, function() {
		    	$(e).find("a").animate({ marginTop: "0px" }, 250);
		    });
		    $(e).find("img.shadow").stop().animate({ width: "100%", height: "15px", marginLeft: "0", opacity: 1 }, 250);
		});
	
	});
        
        //end jQuery
