/*

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
		
		
		// Animate buttons, move reflection and fade
		/*
		$("#checkdomen a").hover(function() {
		    $(this).stop().animate({ marginLeft: "100px" }, 200);
		    $(this).parent().find("span").stop().animate({ marginTop: "-18px", opacity: 0.25 }, 200);
		},function(){
		    $(this).stop().animate({ marginTop: "0px" }, 300);
		    $(this).parent().find("span").stop().animate({ marginTop: "1px", opacity: 1 }, 300);
		});
				*/
	/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
	
		// Animate buttons, shrink and fade shadow
		
		$("#checkdomen").hover(function() {
			var e = this;
		    $(e).find("a").stop().animate({ marginLeft: "34px" }, 250, function() {
		    	$(e).find("a").animate({ marginLeft: "20px" }, 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({ marginLeft: "-4px" }, 250, function() {
		    	$(e).find("a").animate({ marginLeft: "0px" }, 250);
		    });
		    $(e).find("img.shadow").stop().animate({ width: "100%", height: "27px", marginLeft: "0", opacity: 1 }, 250);
		});
						
	// End jQuery
	
	});
