/*

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
		
		$("#menu_rebote li.act").append('<img class="shadow" src="images/overol.png" width="30" height="13" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#menu_rebote li.act").hover(function() {
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "-12px" }, 250, function() {
		    	$(e).find("a").animate({ marginTop: "-10px" }, 250);
		    });
		    $(e).find("img.shadow").stop().animate({ marginTop: "30px", opacity:1 }, 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({ marginTop: "50px", opacity: 0 }, 250);
		});
						
	// End jQuery
	
	});
