/*

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 a").hover(function() {
		    $(this).stop().animate({ marginTop: "-10px" }, 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
		
		$("#nav-shadow1 li").append('<img class="shadow" src="images/shadow.jpg" width="122" height="122" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow1 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({ 

		
			opacity: 0.3}, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({  
			
			opacity: 1 }, 250);
		});
						
	// End jQuery
	
	/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
		$("#nav-shadow2 li").append('<img class="shadow" src="images/shadow.jpg" width="122" height="122" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow2 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({ 

		
			opacity: 0.3}, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({  
			
			opacity: 1 }, 250);
		});
						
	// End jQuery
	
	/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
		$("#nav-shadow3 li").append('<img class="shadow" src="images/shadow.jpg" width="122" height="122" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow3 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({ 

		
			opacity: 0.3}, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({  
			
			opacity: 1 }, 250);
		});
						
	// End jQuery
	
	/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
		$("#nav-shadow4 li").append('<img class="shadow" src="images/shadow.jpg" width="122" height="122" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow4 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({ 

		
			opacity: 0.3}, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({  
			
			opacity: 1 }, 250);
		});
						
	// End jQuery
	
	/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
		$("#nav-shadow5 li").append('<img class="shadow" src="images/shadow.jpg" width="122" height="122" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow5 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({ 

		
			opacity: 0.3}, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({  
			
			opacity: 1 }, 250);
		});
						
	// End jQuery
	
	/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
		$("#nav-shadow6 li").append('<img class="shadow" src="images/shadow.jpg" width="122" height="122" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow6 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({ 

		
			opacity: 0.3}, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({  
			
			opacity: 1 }, 250);
		});
						
	// End jQuery
	
	/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
		$("#nav-shadow7 li").append('<img class="shadow" src="images/shadow.jpg" width="122" height="122" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow7 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({ 

		
			opacity: 0.3}, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({  
			
			opacity: 1 }, 250);
		});
						
	// End jQuery
	
		/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
		$("#nav-shadow8 li").append('<img class="shadow" src="images/icons-shadow.jpg"  width="94" height="150" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow8 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({  width: "94px", height: "96px", marginLeft: "0", opacity: 0 }, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({ width: "94px", height: "150px", marginLeft: "0", opacity: 1 }, 250);
		});
		
		/* =Shadow Nav
	-------------------------------------------------------------------------- */
	
		// Append shadow image to each LI
		
		$("#nav-shadow9 li").append('<img class="shadow" src="images/icons-shadow.jpg" width="94" height="150" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow9 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({ width: "94px", height: "96px", marginLeft: "0", opacity: 0 }, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({width: "94px", height: "150px", marginLeft: "0", opacity: 1 }, 250);
		});
						
	// End jQuery
	
		// Append shadow image to each LI
		
		$("#nav-shadow20 li").append('<img class="shadow" src="images/shadow.jpg" width="122" height="122" alt="" />');
	
		// Animate buttons, shrink and fade shadow
		
		$("#nav-shadow20 li").hover(function() {
			var e = this;
		 $(e).find("img.shadow").stop().animate({ 

		
			opacity: 0.3}, 250);
		},function(){
			var e = this;
		    $(e).find("img.shadow").stop().animate({  
			
			opacity: 1 }, 250);
		});
						
	// End jQuery
	
	});
