var showLogin = true;

function checkAccess() {
	if( !$.browser.msie ){
		showLogin = false;
		if( $.browser.mozilla ){
			var n = Number( $.browser.version.substr( 0,3 ) );
			if( n > 1.7 ) showLogin = true;
			
			// $( "#flashLogin" ).html( n );
		}
	}
	if( !showLogin ) $( "#oiFlashLogin" ).html( "<p>Your Internet browser is not currently compatible with our system. We are working diligently to correct this problem. In the meantime, we suggest you review our <a href='system.asp#browsers' title='View system requirements.'>system requirements</a> and upgrade accordingly. Feel free to contact <a href='mailto:customerservice@advanceonline.com?subject=Incompatible Browser' title='Email Customer Service'>Customer Service</a> at 866.427.2467 with any questions. Thank you!</p>" );
}

function openWin( a,w,h ){
	var puw = window.open( a.href,"popupwindow","width="+w+",height="+h+",scrollbars=yes" );
	puw.focus();
}

$(function(){
	checkAccess();
});
