jQuery(document).ready(function(){
    Cufon.replace('#banner h1', { fontFamily: 'Myriad Pro', textShadow: '1px 1px #000' });
    Cufon.replace('#banner h2', { fontFamily: 'Myriad Pro', textShadow: '1px 1px #000' });
    Cufon.replace('#banner h3', { fontFamily: 'Myriad Pro', textShadow: '1px 1px #000' });
	Cufon.replace('#twitter h2', { fontFamily: 'Complete in Him' });
	Cufon.replace('p.profileLink a', { fontFamily: 'Complete in Him', hover: true });
	Cufon.replace('h2.feature', { fontFamily: 'Myriad Pro' });
	Cufon.replace('.logos span', { fontFamily: 'Lucida Grande' });
	Cufon.replace('.logos strong', { fontFamily: 'Lucida Grande' });
	Cufon.replace('h3.white', { fontFamily: 'Myriad Pro' });
	Cufon.replace('span.transform', { fontFamily: 'Lucida Grande' });
	
	/*
	$('.small-nav li').toggle(
		function(){ 
			$(this).find('.sub-nav').slideDown('slow'); $(this).find('a:eq(0)').addClass('active'); 
			return true;
		},
		function(){ 
			$(this).find('.sub-nav').slideUp(); $(this).find('a:eq(0)').removeClass('active'); 
			return true;
		}		
	);
	*/
	
	$('.small-nav > ul > li > a').click(function(){
		var div = $(this).parent().find('.sub-nav');
		
		if(!div.is(':visible')) {
			div.slideDown('slow');
			$(this).addClass('active');
		}else {
			div.slideUp();
			$(this).removeClass('active');
		}
		
		return false;
	});
	
	$("#twitter").getTwitter({
		numTweets: 2,
		userName: "epicio",
		loaderText: "Loading tweets...",
		slideIn: true,
		showHeading: true,
		headingText: "Latest <span>Tweets</span>",
		showProfileLink: true
	});
	
	Cufon.refresh();
});