/*

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
		
		 $("#mainmenu li").append("<div></div>");	
		
		// Animate buttons, move reflection and fade
		
		$("#mainmenu a").hover(function() {
		    $(this).stop().animate({ marginTop: "0px" }, 200);
		    $(this).parent().find("div").stop().animate({ marginTop: "0px", opacity: 1 }, 200);
		},function(){
		    $(this).stop().animate({ marginTop: "0px" }, 300);
		    $(this).parent().find("div").stop().animate({ marginTop: "10px", opacity: 0 }, 300);
		});


	
	});
