/* Author: BigNoise, Inc.

*/
$('ul#nav li a').mouseenter(function(){
	$(this).css('color','#F4F2ED');
	Cufon.replace('ul#nav li a', { fontFamily: 'Gotham' });
});

$('ul#nav li a').mouseleave(function(){
	if($(this).parent().hasClass('active')){
		//do nothing
	}else{
		$(this).css('color','#CFCCC6');
		Cufon.replace('ul#nav li a', { fontFamily: 'Gotham' });
	}
});


	var slideshow = function () {
		this.proc = function(type) {
			if (this.fonID == undefined) {
				this.fonID = -1;
			}
			var liN = $('div.ss img').length-1;
			if (type == 'next'){
				fID = (this.fonID == liN) ? 0 : this.fonID+1;
			}else{
				fID = (this.fonID == 0) ? liN : this.fonID-1;
			}
			//alert("current ID: " + this.fonID + "  next ID: " + fID + " length: " + liN)
			if(this.fonID !=-1){$('div.ss img:eq('+ this.fonID +')').hide();}
			this.fonID = fID ;
			var txt = $('div.ss img:eq(' + this.fonID + ')').attr('alt');
			$('div.ss img:eq(' + this.fonID + ')').fadeIn();
			$('.ss-toolbar span').html("<span style='display:inline'>" + (this.fonID+1) + "/" + (liN+1) + "</span>&nbsp;&nbsp;&nbsp;" + txt);
		}
	} ;
	var procSlideshow ;



Cufon.replace('ul#nav li a, h1,ul#subnav li a,h2', { fontFamily: 'Gotham' });
Cufon.replace('#tagline', { fontFamily: 'MrsEaves' });
Cufon.now();
