//-----Equal Columns------------------------------------------------------------------------//
$(document).ready(function(){
    	$(function(){
    	    $('.column').equalHeight();
			$('.footer-column').equalHeight();
   	});
    });

// make sure the $ is pointing to JQuery and not some other library

(function($){
// add a new method to JQuery
$.fn.equalHeight = function() {
// find the tallest height in the collection
// that was passed in (.column)
tallest = 0;
this.each(function(){
thisHeight = $(this).height();
if( thisHeight > tallest)
tallest = thisHeight;
});

// set each items height to use the tallest value found
this.each(function(){
$(this).height(tallest);
});
}
})(jQuery);


//-----jQuery Innerfade---------------------------------------------------------------------//
$(document).ready(
	function(){
		$('#innerfade').innerfade({
			animationtype: 'fade',
			speed: 750,
			timeout: 5000,
			containerheight: '226px'
		});
	});
	
//-----Clear Text--------------------------------------------------------------------------//
function clearText(field){

if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;

}

//-----jQuery Fancybox---------------------------------------------------------------------//
$(document).ready(function() {

	/* Apply fancybox to multiple items */
	
	$("a.photoGallery").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
	
});
