$(document).ready(function(){
				

	
	// Thumbnails
	/*
	$("ul.thblist li:nth-child(3n)").addClass('last');
	$("ul.thblist li:nth-child(3n+1)").css('clear','left');
	*/
		
	$("ul.thblist a").append('<span class="olay"></span>');
	$("ul.thblist a").click(function() {
		if ($("#img-lrg").length) {															 
			$("ul.thblist a").removeClass("on");															 
			$("#img-lrg").attr("src", $(this).attr("href"));
			$(this).addClass("on");
			return false;
		}
 	 });

	//Nav Column Heights
	maxpromo = 0;
	$('li.n-col').each(function(index) {
		if ($(this).height()	>= maxpromo) {										 
    	maxpromo = $(this).height();
		}
 	 });
	maxpromo += 15;
	$('li.n-col').height(maxpromo);
	
	// Column Heights
	$(window).load(function () {
		if ($('#sidebar').height() > $('#page').height()) {				
			$('#page').height($('#sidebar').height());
		}
	});



		
});
