
/*Cufon Font Replacement */
Cufon.set('fontFamily', 'Gotham Book').replace('');
Cufon.set('fontFamily', 'Gotham Book').replace('p');
Cufon.set('fontFamily', 'Gotham Book').replace('span.author');
Cufon.set('fontFamily', 'Gotham Book').replace('h1.quote');


Cufon.replace('#top-nav ul li', {hover: true}, {fontFamily: 'Gotham Medium'});
Cufon.set('fontFamily', 'Gotham Bold').replace('h3');
Cufon.set('fontFamily', 'Gotham Bold').replace('h2');
Cufon.set('fontFamily', 'Gotham Bold').replace('ul#clients li');


Cufon.set('fontFamily', 'Gotham Bold').replace('#footer a');
/*Cufon Font Replacement End */


/* ---------------------------------------Portfolio Gallery---------------------------------------*/
		
$(document).ready(function() {
			$('ul#filter a').click(function() {
				$(this).css('outline','none');
				$('ul#filter .current').removeClass('current');
				$(this).parent().addClass('current');
		
				var filterVal = $(this).text().toLowerCase().replace(' ','-');
		
				if(filterVal == 'all') {
					$('ul#portfolio li.hidden').fadeIn('slow').removeClass('hidden');
				} else {
					$('ul#portfolio li').each(function() {
						if(!$(this).hasClass(filterVal)) {
							$(this).fadeOut('normal').addClass('hidden');
						} else {
							$(this).fadeIn('normal').removeClass('hidden');
						}
					});
				}
				return false;
			});
			
			
			$('ul#portfolio-second-page').hide();
			$('ul#portfolio-third-page').hide();
			$('a.back').hide();
 
			
			$('a.next').click(function () {
				$('ul#portfolio-second-page').show();
				$('a.back').show();
				$('a.next').hide();
				$('ul#portfolio').hide();
				});
				
			$('a.back').click(function () {
				$('ul#portfolio-second-page').hide();
				$('a.back').hide();
				$('a.next').show();
				$('ul#portfolio').show();
				});	
			
		});

/* ---------------------------------------Slideshow---------------------------------------*/

$(document).ready(function() {
	$("#slideshow").css("overflow", "hidden");
	
	$("ul#slides").cycle({
		fx: 'fade',
		pause: .25,
		prev: '#prev',
		next: '#next'
	});
	
	$("#slideshow").hover(function() {
    	$("ul#nav").fadeIn();
  	},
  		function() {
    	$("ul#nav").fadeOut();
  	});
	
});
			

