$(document).ready(function(){

	// The last item in the main nav is partially blocked by a PNG graphic;
	// Recreate the hover effect here
	var areaElement = $('#headerNubMap area').eq(0);
	areaElement.bind('mouseover', function(){
		$('#nav li:last').addClass('hover');
	});
	areaElement.bind('mouseout', function(){
		$('#nav li:last').removeClass('hover');
	});		
	
	// Add image rollovers
	$('img.roll,input.roll').bind('mouseover', function(){
		this.src = this.src.replace(/(.*)\.(jpg|gif|png)$/i, "$1-over.$2")
	});
	$('img.roll,input.roll').bind('mouseout', function(){
		this.src = this.src.replace(/(.*)-over\.(jpg|gif|png)$/i, "$1.$2")
	});
		
});

function showImageDialog(url) {
	window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,screenX=100,screenY=100,top=100,left=100');
}
