/*
* Animate Links not marked with ".nonAnimatedLink" by changing color on hover event
* Dependencies: Jquery, Jquery UI
*/
$(document).ready(function(){
	$('a').each(function(){
		if(!$(this).hasClass('nonAnimatedLink')){
			if($(this).parents('.slide').length > 0){
				$(this).hover(
					function(){
						$(this).stop().animate({color:"#bfd6ff"},250);
					},
					function(){
						$(this).stop().animate({color:"#5F8AD6"},250);
					}
				);
			}
			else{
				$(this).hover(
					function(){
						$(this).stop().animate({color:"#5F8AD6"},250);
					},
					function(){
						$(this).stop().animate({color:"#0E2D6D"},250);
					}
				);
			}
		}
		else if($(this).hasClass('footerAnimatedLink')){
			$(this).hover(
				function(){
					$(this).stop().animate({color:"#FFF"},250);
				},
				function(){
					$(this).stop().animate({color:"#999999"},250);
				}
			);	
		}
	});
});

/*
* Animate Logo
* Dependencies: Jquery, Jquery UI
*/
$(document).ready(function(){
	$('#logo').hover(
		function(){
			$(this).find('#logoInner').stop().animate({opacity:1},250);
		},
		function(){
			$(this).find('#logoInner').stop().animate({opacity:0},250);
		});
});
