// Cufon Font Replacement //
Cufon.replace('h1', { fontFamily: 'League Gothic' });
Cufon.replace('h2', { fontFamily: 'League Gothic' });
Cufon.replace('h3', { fontFamily: 'League Gothic' });
Cufon.replace('h4', { fontFamily: 'League Gothic' });
Cufon.replace('a.timestamp', { fontFamily: 'League Gothic' });
Cufon.replace('span.ttl', { fontFamily: 'League Gothic' });

$(document).ready(function() {
	$('.top').click(function(){
		$('html, body').animate({scrollTop:0}, 'slow');
	});
	$('.contact').click(function(){
		$.scrollTo('#contact', 'slow');
	});
	$('.blog').click(function(){
		$.scrollTo('#blog', 'slow');
	});
	$('.projects').click(function(){
		$.scrollTo('#projects', 'slow');
	});
	$('.clients').click(function(){
		$.scrollTo('#clients', 'slow');
	});
	$('.about').click(function(){
		$.scrollTo('#about', 'slow');
	});
});

// once the document is ready - display the whole page //
$(document).ready(function() {

	var disqus_shortname = 'alexzaia';
	(function () {
	var s = document.createElement('script'); s.async = true;
	s.src = 'http://alexzaia.disqus.com/count.js';
	(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
	}());
	
	var bodyElems = document.getElementsByTagName("body");
	bodyElems[0].style.visibility = "visible";	
});
