Cufon.replace('h2', {
	hover: true,
	textShadow: '#fff 0px 1px'
})('div.headline p', {
	textShadow: '#fff 0px 1px'
})('ul.menu a', {
	hover: true,
	textShadow: '#fff 0px 1px'
})('div.footer p', {
	hover: true
})('div.about div p');

$(document).ready( function() {
	$("a[href$='.jpg'], a[href$='.JPG'], a[href$='.png'], a[href$='.PNG'], a[href$='.jpeg'], a[href$='.JPEG'], a[href$='.bmp'], a[href$='.BMP'], a[href$='.gif'], a[href$='.GIF']").each( function() {
		if ( !$(this).parent().hasClass('portfolio') || !$(this).parent().hasClass('images') ) {
			$(this).fancybox({
				'overlayOpacity' : .65,
				'zoomSpeedIn' : 400,
				'zoomSpeedOut' : 400
			});
		}
	});

	$('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}, 1000);
				return false;
			}
		}
	});
	
	if (self.document.location.hash == "#comments") {
		$('div#comments').show();
	}
});