Cufon.replace(
	'.home h2.title span, .section .header .nav, .section > .footer .nav, #footer .terms, .section thead th, .pagination, .event .venue .org, .event .info dt, .event .payment h4, .home #vip .header h2, .home #vip .package .footer a', { 
		fontFamily: 'Didot',
		hover: true
});

Cufon.replace(
	'h1.title, #main h2.title, .forum h3.title, #submit, .events .listing .time span, .event .header .time span, .home .section.vip .package .title', { 
		fontFamily: 'Minion Pro',
		hover: true
});

$(function() {
	$('.home .section.twitter > .content').social({
		network	: 'twitter',
		user	: 'adamlambert',
		count	: 3,
		twitter	: {
			output	: '<span class="tweet">{text}</span> <span class="time"><a href="{tweet_url}" target="_blank">Posted {time}</a></span>'
		}
	});
	
	//on the news listing and detail pages, all links that have absolute links go to adamofficial
	$('.article[data-source="rss"] .details a').each(function(){
		var href = $(this).attr('href');
		if (href.substr(0,7) != 'http://' && href.substr(0,1) == '/') {
			$(this).attr('href', 'http://www.adamofficial.com'+href)
		}
	});
	
});

$(window).load(function(){
	$('.recent.media .thumbs').masonry({ singleMode: true, itemSelector: '.galleryitem' });
});

