$(document).ready(function(){

	// rewrite status bar
	$("body").attr("onload", "window.defaultStatus='Gauslin Studio'");

	// IE6 png support
	$(document).pngFix();

	// rounded corners
	$("#work .project").corner("round 8px");

	// div-level hover
	$("#work .project").hover(
		function () {$(this).addClass("hover");},
		function () {$(this).removeClass("hover");}
	);

	// fancybox - image
	$('.project h3 a').fancybox({
		'hideOnContentClick': true,
		'imageScale': true,
		'zoomSpeedIn': 500,
		'zoomSpeedOut': 500,
		'overlayShow': true,
		'overlayOpacity': .8,
		'padding': 0
	});

	// visited state for fancybox links
	$(".project h3 a").click(function(event){
		$(this).addClass('visited');
		return false;
	});

	// external links for strict doctype
	$("a[href*='http://']:not([href*='gauslin'])").addClass("external");
	$("a.external").each(function() {
		$(this).attr("title", $(this).attr("title")+" (opens in a new window)");
	});
	$("a.external").click(function() {
		window.open(this.href);
		return false;
	});


});