/*

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

*/

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

	// Begin jQuery
	
	$(document).ready(function() {

	/* =Reflection Nav
	-------------------------------------------------------------------------- */	
		
		// Append span to each LI to add reflection
		
		$("#nav-reflection li").append("<span></span>");	
		
		// Animate buttons, move reflection and fade
		
		$("#nav-reflection li").hover(function() {
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "-18px" }, 250, function() {
		    	$(e).find("a").animate({ marginTop: "-14px" }, 250);
		    });
		    $(e).find("span").stop().animate({ width: "106px", height: "35px", marginTop: "20px", 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("span").stop().animate({ width: "106px", height: "35px", marginTop: "-4px", opacity: 1 }, 250);
		});
		
				
	/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		

						
	// End jQuery
	
	});
