 $(document).ready(function() { 
   
   // Animate the header navigation
   $("#header_navigation li a").addClass("animated").hover(function() {
			$(this).stop();
			$(this).animate( { color: '#ddd' }, { queue:false, duration:300 } );
		},function(){
			$(this).stop();
			$(this).animate( { color: '#414141' }, { queue:false, duration:300 } );
		});
   
   // Animate the Main Navigation
   $("#main_navigation li").each(function(i) {
	 $(this).append("<span></span>");
	 $(this).find("span").css({ opacity: 0.00 });
     $(this).find("a").addClass("animated").hover(function() {
			$(this).stop();
			$(this).animate( { color: '#ddd' }, { queue:false, duration:300 } );
			$(this).parent().find("span").stop();
			$(this).parent().find("span").animate( { opacity: 1.00 }, { queue:false, duration:100 } );
		},function(){
			$(this).stop();
			$(this).animate( { color: '#616161' }, { queue:false, duration:300 } );
			$(this).parent().find("span").stop();
			$(this).parent().find("span").animate( { opacity: 0.00 }, { queue:false, duration:500 } );
		});
   });
   $("#main_navigation li a.current").removeClass("animated").hover(function() {
			$(this).stop();
					},function(){
			$(this).stop();
		});	
   
   // Animate the Language Button
   $("#languageButton").wrap('<div style="position: absolute; top: 225px; right: 15px;" id="lgBtn"/>');
   $("#languageButton").parent().append('<span id="languageButtonWrapper"></span>');
   $("#languageButton").parent().append('<span id="languageButtonWrapperHL"></span>');
   $("#languageButtonWrapperHL").css( { opacity: 0.00 } );
   $("#languageButton").addClass("animated").hover(function() {
			$(this).stop();
			$(this).animate( { color: '#aaa' }, { queue:false, duration:300 } );
			$("#languageButtonWrapperHL").stop();
			$("#languageButtonWrapperHL").animate( { opacity: 1.00 }, { queue:false, duration:300 } );
		},function(){
			$(this).stop();
			$(this).animate( { color: '#414141' }, { queue:false, duration:300 } );
			$("#languageButtonWrapperHL").stop();
			$("#languageButtonWrapperHL").animate( { opacity: 0.00 }, { queue:false, duration:500 } );			
		});
 });
