$(document).ready(function() {

	//Last Nav item no background-image
	$('.head').find('li:last').css({'background-image' : 'none'});
	$('.press').find('div:last').css({'border' : 'none'});
	$('.news-events').find('div:last').css({'border' : 'none'});


	if($.browser.msie && $.browser.version == '6.0' ) {
		// Notify the user that they have IE6 and should fix themselvs
		$('#skin').css({ 'background-image' : 'none' });
		html = '<div id="ie6"><p>ATTENTION! Your Version of Internet Explorer is Grossly out of date!<br /> Please <a href="http://www.microsoft.com/windows/Internet-explorer/default.aspx">upgrade</a> or switch to a <a href="http://www.mozilla.com/en-US/firefox/upgrade.html">more powerfull browser</a>.</div>';
		$('body').prepend(html);
		$('#ie6').fadeTo(1, 0, function() {
			$(this).css({'position':'absolute','z-index':'10000','background':'red','font-size':'20px','color':'#000','height':'100px','width':'100%','top':'-100px'});
			$(this).fadeTo(1, 1);
		});
		$('#ie6').fadeTo(3000, 1, function() {
			$(this).animate({top : '0px'}, 1000);
			$(this).fadeTo(20000, 1, function() {
				$(this).animate({top : '-100px'}, 1000);
			});
		});
	}
	
	if ($.browser.safari) { safari(); }
});

function safari() {
	$('#frame-break').css({'padding-top' : '20px'});
	$('.index-upper').css({
		'position' : 'relative',
		'top' : '-71px'
	});
	
	if ($.os.name == 'win') {
		$('.head').find('ul').css({'left' : '30px'});	
	}
}
