$(document).ready(function() {
		
		//Hover Fading
		$('.footernav a, #nav-outer a, #back, #control, #next').hover(function(){
			$(this).animate({opacity: 0.7}, 300);
		}, function () {
			$(this).animate({opacity: 1}, 300);
		});
		//Hover Fading End
		
		
	// Hide all the tooltips
	$("#socialicons li, #socialiconsfooter li, #photogallery li").each(function() {
		$("a strong", this).css("opacity", "0");
	});
	
	$("#socialicons li, #socialiconsfooter li, #photogallery li").hover(function() { // Mouse over
		$(this)
			.stop().fadeTo(500, 1)
			.siblings().stop().fadeTo(500, 0.2);
		
	}, function() { // Mouse out
		$(this)
			.stop().fadeTo(500, 1)
			.siblings().stop().fadeTo(500, 1);
			
		$("a strong", this)
			.stop()
			.animate({
				opacity: 0,
				top: "-1px"
			}, 300);
	});
	
	
	   // By suppling no content attribute, the library uses each elements title attribute by default
   $('#socialicons [title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
	  
	  position: {
      corner: {
         target: 'topMiddle',
         tooltip: 'bottomMiddle'
      }
   },
  show: { effect: 'slide' },
      style: { 
	  padding: 4,
      background: '#1B2940',
      color: 'white',
      textAlign: 'center',
      border: {
         radius: 4,
		 width: 4,
         color: '#1B2940'
      },
      tip: 'bottomMiddle',
	  'font-size': 12,
   }
   });
		
		
		$('#socialiconsfooter [title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
	  
	  position: {
      corner: {
         target: 'topMiddle',
         tooltip: 'bottomMiddle'
      }
   },
  show: { effect: 'slide' },
      style: { 
	  padding: 4,
      background: '#044a76',
      color: 'white',
      textAlign: 'center',
      border: {
         radius: 4,
		 width: 4,
         color: '#044a76'
      },
      tip: 'bottomMiddle',
	  'font-size': 12,
   }
   });
		
		
		
});
