/*

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
		
		$("#services li").append('<img class="shadow" src="images/shadow_services_icons.jpg" width="115" height="27" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#services 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: "80px", height: "27px" , marginLeft: "16px" , opacity: 100 }, 250);
		},function(){
			var e = this;
		    $(e).find("a").stop().animate({marginTop: "0px" }, 250, function() {
		    	$(e).find("a").animate({marginTop: "0px" }, 250);
		    });
		    $(e).find("img.shadow").stop().animate({ width: "115px", height: "27px",  marginLeft: "0px" , opacity: 1 }, 250);
		});
						
	// End jQuery
	
	});
