function windowFormCentered( name, open, winwidth, winheight, param )
{
    var win = null;
    tp=Math.ceil((screen.height-winheight)/2);
    lf=Math.ceil((screen.width-winwidth)/2);
    window.open( open, name, "width="+winwidth+",height="+winheight+",top="+tp+",left="+lf+param+'location=no,status=no,resizable=yes,toolbar=no,scrollbars=1,menubar=no' )
}

$(document).ready( function(){
	
	var userAgent = navigator.userAgent.toLowerCase();

	$.browser = {
		
		version: (userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1],
		chrome: /chrome/.test( userAgent ),
		safari: /webkit/.test( userAgent ) && !/chrome/.test( userAgent ),
		opera: /opera/.test( userAgent ),
		msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
		mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
	};

	if ($.browser.chrome) $('#body').width(
		(screen.width > 1280 ? '1280px' : '100%'));
	
	$('#nav td').each(function(){
		$(this).mouseover(function(){
			this.className = "itemOver";
		});
		$(this).mouseout(function(){
			this.className = "";
		});		
	});
});