// Cufon Setup
Cufon.replace('h1', { fontFamily: 'Trade Gothic Bold Condensed' });
Cufon.replace('h2', { fontFamily: 'Trade Gothic Bold' });
Cufon.replace('.subtitle', { fontFamily: 'Trade Gothic' });

// Navigation Animation
$(document).ready(function() {
	$('#navigation > ul > li a').append('<span class="swipe"></span>').css('background', '0');
	$('#navigation > ul > li').hover(function () {
		$(this).children('a').find('.swipe').stop().animate({ width:'100%'}, 200);
	}, function() {
		$(this).children('a').find('.swipe').stop().css('width', '0');
	});
},function(){
	GUnload();
});

// Homepage Feature
$(document).ready(function() {
	$('#feature li').hover( function() {
		$item = $(this).attr('id');
		$('#feature li:not(#' + $item + ')').stop().fadeTo('slow', .4);
		$(this).stop().fadeTo('slow', 1);
		$(this).find('.tag').stop().animate({ height:'146px' }, 600);
	}, function () {
		$('#feature li').stop().fadeTo('slow', 1);
		$(this).find('.tag').stop().animate({ height: '66px' }, 600);
	});

}); 

// Additional Navigation Behavior - current page sliding
$(document).ready(function() {

		$(".section-nav li.drop.on > a").hover(
			function(){
				$(this).addClass('expand');
			},
			function(){
				$(this).removeClass('expand');
			}
		);
		
		$(".section-nav li.on > a").click(function() {
			$(this).parent().find(".category-menu ul").slideToggle(200);
			return false;
		});

});
