$(document).ready(function() {
	if (jQuery.browser.safari && document.readyState != "complete"){
		setTimeout( arguments.callee, 100 );
		return;
	}
	$('a[rel=lightbox]').lightBox();

	$('#slider').nivoSlider({
	    effect: 'fold',
	    slices: 15,
	    animSpeed:500,
	    pauseTime:3000,
	    directionNav:false
	});

	if($("#contentBlock").height() > $("#navBlock").height())
	{
		$("#navBlock").height($("#contentBlock").height());
		$("#contentBlock").height($("#contentBlock").height());
	}
});
