Cufon.replace('#nav li a', { fontFamily: 'Adobe Caslon Pro Semibold', hover: true } );
Cufon.replace('#home #col_left .col3 .foto span.h3', { fontFamily: 'Adobe Caslon Pro Semibold', hover: true } );
Cufon.replace('#home #col_left .col2 h3', { fontFamily: 'Adobe Caslon Pro Regular' } );
Cufon.replace('#aside_left h2, #aside_left h3, #aside_right h2, #aside_right h3', { fontFamily: 'Adobe Caslon Pro Regular' } );
Cufon.replace('#content h1, #content h2, #content h3', { fontFamily: 'Adobe Caslon Pro Regular' } );
Cufon.replace('#home h1', { fontFamily: 'Adobe Caslon Pro Regular' } );


$(document).ready( function() {
	
	$("input[type=text], input[type=password], textarea").focus( function() {
		if ( $(this).val() == $(this).attr("title") ) {
			$(this).val("")
		}
	}).blur( function() {
		if ( $(this).val() == '' ) {
			$(this).val( $(this).attr("title") );
		}
	});

	$("#home #col_left .col3 .foto").hover(
		function(){
			$(this).children("span.h3").addClass("hover");
			Cufon.replace('#home #col_left .col3 .foto span.h3', { fontFamily: 'Adobe Caslon Pro Semibold', hover: true } );
		},
		function(){
			$(this).children("span.h3").removeClass("hover");
			Cufon.replace('#home #col_left .col3 .foto span.h3', { fontFamily: 'Adobe Caslon Pro Semibold', hover: true } );
		}
	);
	
	$("a.fancyimage").fancybox({
		'hideOnContentClick': true,
		'zoomSpeedIn': 300,
		'zoomSpeedOut':	300,
		'overlayOpacity':0.7,
		'overlayColor':'#000'
	});
		
	$("a.fancycontent").fancybox({
		'width'						: '60%',
		'height'					: '80%',
    'autoScale'     	: false,
    'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'						: 'iframe'
	});

});


$.fn.equalHeights = function(px) {
	var currentTallest = 0;
	$(this).each(function() {
		var currentHeight = $(this).height();
		if ( currentHeight > currentTallest) {
			currentTallest = currentHeight;
		}
	});
	currentTallest += 'px';
	// for ie6, set height since min-height isn't supported
	if ($.browser.msie && $.browser.version == 6.0) {
		$(this).css({'height': currentTallest});
	}
	$(this).css({'min-height': currentTallest}); 
	
	return this;
};
