$(document).ready(function() {
	Cufon.replace('.page-header');
});

$(window).load(function() {
	// Safari adds a bit of extra padding and since
	// the title animation relies on JS anyways ...
	if (navigator.userAgent.indexOf('Safari') != -1)
	{
		$('#line-1').css('padding','10px 14px 9px 14px');
		$('#line-2').css('padding','10px 14px 9px 14px');
	}

	$('#mask-1').animate({left:'950px'}, 1500, 'easeInOutExpo', function(){
		$('#mask-2').animate({left:'950px'}, 1500, 'easeOutExpo', function() {
			document.getElementById('mask-1').style.display = 'none';
			document.getElementById('mask-2').style.display = 'none';
		});
	});
});