$(document).ready(function() {
	$('a[href^=http]').click( function() {
	    window.open(this.href);
	    return false;
	});
/*
	$.get("ctform.php", function(data) {
		$('.hide').html(data);
	});
*/
	$('.hide').slideUp("fast");
});

$(function() {
	$('#nav li a').hover(function() {
		if ($(this).children('img').attr('src').match(/-current.png/) != "-current.png") {
			var imgSrc = $(this).children('img').attr('src').match(/[^.]+/) + "-current.png";
			$(this).children('img').attr('src', imgSrc);
		}
	}, function() {
		if ($(this).hasClass("current") == false) {
			var imgSrc = $(this).children('img').attr('src').replace("-current", "");
			$(this).children('img').attr('src', imgSrc);
		}
	});
});

$(function() {
	$('#nav li a').hover(function() {
		if ($(this).children('img').attr('alt').match(/Portfolio/)) {
			$('#portfolionote').fadeIn("300");		
		}
	}, function() {
		$('#portfolionote').fadeOut("300");
	});
});
