/**
 * @author	Jonathan Cochran <jono.cochran@gmail.com>
 * --------------------------------------------------------- */

$(document).ready(function() {
	
	/**
	 * BROWSER / DOC LOCATION
	 * --------------------------------------------------------- */
	var docLoc = window.location.href;	
	var isPage = docLoc.indexOf('/') != "-1" ? true : false;
	var arSlash= docLoc.split('/');
	var bSingle= arSlash[(arSlash.length-2)] == 'p';
	var pageId = arSlash[(arSlash.length-1)];
	var badBrowser = (/MSIE ((5\.5)|6|7)/.test(navigator.userAgent) && navigator.platform == "Win32");
		
	/**
	 * REPLACE FONTS
	 * --------------------------------------------------------- */
	//Cufon.replace('#header h1 a', { hover: true });
	Cufon.replace('#header .navigation a', { hover: true });
	Cufon.replace('.widget h2', { hover: true });
	Cufon.replace('.page-title');
	//Cufon.replace('#footer-widgets a', { fontFamily: 'Gotham Bold', hover: true });

	/**
	 * NAVIGATION
	 * --------------------------------------------------------- */
	$('#header .navigation').css('display', 'block');
	
	$('.album').click(function() {
		$('.album-links').toggle();
		$('.album-links').mouseleave(function() {
			$(this).hide();
		});
	});
	
});
