Cufon.replace('#nav a', {fontFamily: 'Grotesque MT Std',fontWeight: '300', textShadow: '1px 1px #1e4142', hover: false });
Cufon.replace('#nav a.active', {fontFamily: 'Grotesque MT Std',fontWeight: '400', textShadow: '1px 1px #1e4142',hover: false });

$(document).ready(function(){
		
	var stickyPanelOptions = {
		topPadding: 0,
		savePanelSpace: true
	};

	//$("#nav").stickyPanel(stickyPanelOptions);
	
	if($('#wp_page_numbers').is(":visible")){
		
	}
	else {
		$('.post-nav').css('background','#153033');
	}
		
	// Takes care of filling in any blank areas
	if($('#main').height() > $('#sidebar-right').height()){
		$('#main').css('borderRight','10px solid #151617');
		$('.post-divider:last').css('display','none');
	}
	
	if($('#sidebar-right').height() > $('#main').height()){
		$('#sidebar-right').css('borderLeft','10px solid #151617');
		$('#twitter').css('borderBottom','none');
	}	
	
	$('#photos li:odd').css('borderRight','none');
	
	$('#inner').innerfade({ animationtype: 'fade', speed: 750, timeout: 7000, type: 'sequence', containerheight: '90px' });
	
	$("#nav a").not('#audio-but').each(function() {
		if(this.href == window.location || this.href == document.location.protocol + "//" + window.location.hostname + window.location.pathname)
		$(this).addClass("active");
	});
	
	$('#photos a, .photo-post a').attr('rel', 'fancybox')
	
	$("#photos a[rel=fancybox], .photo-post a[rel=fancybox]").fancybox({
		'speedIn'			:	600, 
		'speedOut'			:	200, 
		'padding'			:	12,
		'overlayOpacity'	: 	0.7,
		'overlayColor'  	: 	'#151617',
		'overlayShow'		:	true
	});
	
});
