$(function() {

	// Content Slider

	$("#slide a span").css("opacity","0");
		
	$("#slide a span").hover(function () {
										  
		$(this).stop().animate({ opacity: 1.0 }, "fast"); 
		
	},

	function () {
			
		$(this).stop().animate({ opacity: 0 }, "fast"); 
		
	});
	
	// Steam Profile
	
	$("#steam cite").css("opacity","0");
	
	$("#steam em.fade, #steam cite").hover(function () {
											  
		$("#steam cite").stop().animate({ opacity: 1 }, "fast"); 
			
	},
	
	function () {
				
		$("#steam cite").stop().animate({ opacity: 0 }, "fast"); 
			
	});
	
	$("#steam em.fade").css("opacity","1.0");
		
	$("#steam em.fade, #steam cite").hover(function () {
										  
		$("#steam em.fade").stop().animate({ opacity: 0.25 }, "fast"); 
		
	},

	function () {
			
		$(this).stop().animate({ opacity: 1.0 }, "fast"); 
		
	});
	
	// Twitter Profile
	
	$("#twitter cite").css("opacity","0");
	
	$("#twitter em.fade, #twitter cite").hover(function () {
											  
		$("#twitter cite").stop().animate({ opacity: 1 }, "fast"); 
			
	},
	
	function () {
				
		$("#twitter cite").stop().animate({ opacity: 0 }, "fast"); 
			
	});
	
	$("#twitter em.fade").css("opacity","1.0");
		
	$("#twitter em.fade, #twitter cite").hover(function () {
										  
		$("#twitter em.fade").stop().animate({ opacity: 0.25 }, "fast"); 
		
	},

	function () {
			
		$(this).stop().animate({ opacity: 1.0 }, "fast"); 
		
	});
	
	// Facebook Profile
	
	$("#facebook cite").css("opacity","0");
	
	$("#facebook em.fade, #facebook cite").hover(function () {
											  
		$("#facebook cite").stop().animate({ opacity: 1 }, "fast"); 
			
	},
	
	function () {
				
		$("#facebook cite").stop().animate({ opacity: 0 }, "fast"); 
			
	});
	
	$("#facebook em.fade").css("opacity","1.0");
		
	$("#facebook em.fade, #facebook cite").hover(function () {
										  
		$("#facebook em.fade").stop().animate({ opacity: 0.25 }, "fast"); 
		
	},

	function () {
			
		$(this).stop().animate({ opacity: 1.0 }, "fast"); 
		
	});
	
	// Envato Profile
	
	$("#envato cite").css("opacity","0");
	
	$("#envato em.fade, #envato cite").hover(function () {
											  
		$("#envato cite").stop().animate({ opacity: 1 }, "fast"); 
			
	},
	
	function () {
				
		$("#envato cite").stop().animate({ opacity: 0 }, "fast"); 
			
	});
	
	$("#envato em.fade").css("opacity","1.0");
		
	$("#envato em.fade, #envato cite").hover(function () {
										  
		$("#envato em.fade").stop().animate({ opacity: 0.25 }, "fast"); 
		
	},

	function () {
			
		$(this).stop().animate({ opacity: 1.0 }, "fast"); 
		
	});
	
	// Footer Links
	
	$("#footer a").css("opacity","0.5");
		
	$("#footer a").hover(function () {
										  
		$(this).stop().animate({ opacity: 1.0 }, "fast"); 
		
	},

	function () {
			
		$(this).stop().animate({ opacity: 0.5 }, "fast"); 
		
	});
	
	// Scroll To

    $('a[href*=#]').click(function() {
    
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
    
        && location.hostname == this.hostname) {
        
            var $target = $(this.hash);
            
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            
            if ($target.length) {
            
                var targetOffset = $target.offset().top;
                
                $('html,body').animate({scrollTop: targetOffset}, 500);
                
                return false;
                
            }
            
        }
        
    });
    
});

