var numberOfImages = 5;
var randomImageNumber = Math.ceil(numberOfImages*Math.random());

 $(document).ready(function() {
	 $.preloadCssImages();
	 
     $('#heading').addClass('bg' + randomImageNumber);
	 
	 // set nav min-height to height of content div
		 var contentHeight = $('div#genericContent div.content').height();
		 contentHeight += 30; // add padding of content to min-height
		 $('div#genericContent #nav').css({'min-height': contentHeight});
		 
		 // give IE6 height since it doesn't support min-height
		 if ($.browser.msie && $.browser.version == 6.0) { $('div#genericContent #nav').css({'height': contentHeight}); } 
	 
	 $('table.products tbody tr:even').addClass('alt');
 });
