$(function() {
	// resets the height so the tile matches up
	var leftHeight = $('#laceleft').height();
	leftHeight = leftHeight/35;
	leftHeight = Math.ceil(leftHeight); //ceil rounds up to nearest whole number
	leftHeight = leftHeight*35;
	$('#laceright,#colonetwothree').css('height',leftHeight);
	
	//fancybox popup
	$(".ajaxlightbox").click(function(e) {
		e.preventDefault();
		$.fancybox({
			'href'			: 'ajax'+$(this).attr('href'),
			'title'   		: $(this).attr('title'),
			'hideOnContentClick': true,
			'centerOnScroll': true,
			'hideOnContentClick': false,
			'overlayOpacity': 0.4,
			'overlayColor': '#000',
			'titlePosition': 'inside'
		});
    });
	//fancybox popup
	$(".imglightbox").click(function(e) {
		e.preventDefault();
		$.fancybox({
			'href'			: $(this).attr('href'),
			'title'   		: $(this).attr('title'),
			'hideOnContentClick': true,
			'centerOnScroll': true,
			'hideOnContentClick': false,
			'overlayOpacity': 0.4,
			'overlayColor': '#000',
			'titlePosition': 'inside'
		});
    });
});


