
	function openQuery()	{
		if (false)	{ // true == down
			alert('The interactive mapping portion of this site is temporarily unavailable.\n\nPlease select "View Examples" to view a static version of the site.');
		}	else	{
			// Mac sniffige stolen from the Ultimate client-side JavaScript client sniff. Version 3.03
			// http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
			var agt=navigator.userAgent.toLowerCase();  // convert all characters to lowercase to simplify testing
			var is_major = parseInt(navigator.appVersion);
			var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
			var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
			var is_ie3    = (is_ie && (is_major < 4));
			var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
			var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);

			var is_mac    = (agt.indexOf("mac")!=-1);

			if (is_ie && is_mac)	{
				strWarning =  'On the Macintosh Operating System, both OS X and Classic, only Mozilla 1.0+\n';
				strWarning += 'and Netscape 6+ are currently supported.\n\n';
				strWarning += 'Mozilla can be downloaded from\n';
				strWarning += 'http://www.mozilla.org';
				alert(strWarning);
			}	else	{
				if (is_ie5up || document.getElementById)	{  // document.all check removed -- using IE 5+ specific features
					booContinue = true;
					if (screen.width < 1100 || screen.height < 800)	{
						strWarning = 'WARNING: This site may be difficult to view on your monitor with your current monitor settings.\n\n';
						strWarning += 'This site was designed with an intended minimum resolution of 1024 by 768\n';
						strWarning += 'and a suggested resolution of 1152 by 864.\n\nContinue?';
						booContinue = confirm(strWarning);	// give the user a chance to reset resolution, etc
					}
				
					if (booContinue)	{
						window.location.href = 'http://ekman.csc.noaa.gov/website/CSIVolBrev/default.htm?service=Overview?screenWidth=' + screen.availWidth + '&screenHeight=' + screen.availHeight
					}	
				}	else	{
					strWarning = 'Netscape 6+, Mozilla 0.6+ (any operating system), or Internet Explorer 5.0+ (Windows operating system)\n';
					strWarning += 'is required to view the interactive portions of this site.\n\n';
						
					alert(strWarning);
				}
			}
		}	// end of check for down-ness
		return false;
	}
	






var url;
function newWindow(url,win,params) {
newWin=window.open(url,win,params);
newWin.focus();
}

	