$(document).ready(function() {
	
	// makes my first link active
	$('nav li:first').addClass('active');
		
	// opens external links in a new tab
	$("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");
	
	$('a.inactive').click(function() {
		return false;	
	});
	
	// adds my fancy border radius but keeps my css valid
	$('#projects dl dd.launch a').css({'-moz-border-radius-topleft':'8px', '-webkit-border-top-left-radius':'8px', '-moz-border-radius-bottomright':'8px', '-webkit-border-bottom-right-radius':'8px'})
	
	// slide for internal links
	$('nav a.internal').anchorAnimate();
	
	// lightbox for screenshots
	//$('a.screenshot').lightBox({
	//	overlayBgColor: '#000',
	//	overlayOpacity: 0.6,
	//});
	
	// hides scrollbar
	//$('body').css({'overflow': 'hidden'});
	
	// Sticks the footer on the bottom
	//$('#footer').css({'position':'absolute','bottom':'0','left':'0'});
	
	// Makes pages same hight as window
	//$('#projects, #header, #contact, #about').css({'height': $(window).height()});
	
$("#header h1").fadeIn(5000);
$("#header .fade").fadeIn(5000);
/*$("#my-image").fadeTo(0, 0.3);
	$("#my-image").hover(function(){
		$(this).fadeTo(0800, 1.0);
	},function(){
		$(this).fadeTo(0800, 0.3);
});*/

});
