$(document).ready(function() {	
	function glow(){
		$('#glow').delay(2000).fadeOut(2000).delay(2000).fadeIn(2000);
		glow();
	}
	
	glow();
	
	$('#nav ul li a').hover(function(){
		$(this).find('img').fadeOut();
	}, function(){
		$(this).find('img').fadeIn();
	});
	
	var $winSize = $('#container').height() - $('#footer').height() - $('#nav').height();
	var $numSpaces = $winSize / 76;
	var $increase;
	
	var $diff = $winSize % 76;
	
	if($diff < 38) {
		$increase = Math.floor($numSpaces);
	} else {
	$increase = Math.ceil($numSpaces);
		
	}
	
	$('#nav').height($('#nav').height() + ($increase * 76) + 35);
});


// function that displays status bar message

function dm(msgStr) {
  document.returnValue = false;
  if (document.images) { 
     window.status = msgStr;
     document.returnValue = true;
  }
}
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) { 
    window.status = msgStr;
    document.returnValue = true;
  }
}
