$(document).ready(function() {
		
	$(".fancybox").live("click", function() {
		$(this).fancybox();
	});
	
	$('#content .columns_2 .column').equalizeHeights();	
	
	function wrapperSize(){
		return ($('#wrapper').outerHeight()); //300 is the sizes of the footer and header and padding-top from sidebar summed up
	}
	
	function contentSize(){
		return ($('#content').outerHeight()); //300 is the sizes of the footer and header and padding-top from sidebar summed up
	}
	
	var $sidebar = $('#body .sidebar');
	var $content = $('#content');
	
	$sidebar.height(contentSize());
	$content.height(contentSize());
	
	$(window).resize(function() {
		$sidebar.height(contentSize());
		$content.height(contentSize());
	});
	
	$("#FormNewsLetter").validate();
	$("#rForm").validate();

	/* This is basic - uses default settings */
	
	$("a#single_image").fancybox({
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'width'				: 700,
		'height'			: 500,
		'scrolling'			: 'auto',
		'overlayOpacity'	: 0.7,
		'overlayColor'		: '#292929'
	});
	
	/* Using custom settings */
	
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	
	$("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'easingIn'		:	'swing',
		'easingOut'		:	'swing',
		'overlayShow'	:	false
	});

}); 


