/*
	<meta name="author" 		content="Thomas Wilson">
	<meta name="host" 			content="wehostmacs.com">
	<meta name="host-admin" 	content="noc@wehostmacs.com">
	<meta name="keys"			content="brainfarts, add, apple">
	
	<meta name="creation" 		content="08/29/2005">
	<meta name="last_modified"	content="08/29/2005">
*/

var netscape_version	= "6.x";
var exploder_version	= "5.5";



function showAlert(theError, theMessage) {
	with (self.document) {
		write('<html><head>');
		write('<style type="text/css">\n' +
			  '<!--\n' +
			  'body {background-color: black; color: #CC9933; font: .9em Verdana}\n' +
			  'p > *:first-child {border: thick groove grey}\n' +
			  'th {color: red; font-weight: bold}\n' +
			  'a {text-decoration: none; color: #abcdef}\n' +
			  'a:hover{text-decoration: none; color: #ffffff}\n' +
			  '-->\n' +
			  '</style>');
		write('</head><body text="#CC9933">');
		write('<table border="0" width="100%" height="100%"><tr>'	+
			  '<td align="center" valign="middle" bgcolor="black">');
		write('<p><table width="450" cellpadding="6">'	+
			  '<th bgcolor="white" align="center" nowrap>' + theError + '</th><tr>' +
			  '<td align="justify" bgcolor="#1a0000">');
		write('<img name="alert_icon" border="0" hspace="4" vspace="0" width="160" height="60" align="left" '	+
				   'alt="Image: The Brainfarts Alert Graphic (160w x 62h) [3.2k]" '					+
				   'src="graphics/bf_alert_icon.gif">');
		write(theMessage);
		write('</td></tr></table>');
		write('</td></tr></table>');
		write('</body></html>');
	};
	
	self.document.close();
};


function doPopupAlert() {
	var errorText = '&nbsp;FAILED TO OPEN A NEW WINDOW&nbsp;'
		
	if (OS == 'Mac')
		popupMessage += popupMsgMac[browser]
		
	else if (OS == 'Windows')
		popupMessage += popupMsgWin[browser]
	
	else
		popupMessage += popupMsgOther;
					  
	showAlert(errorText, popupMessage);
};


function doVersionAlert() {
	var errorText	= 'INCOMPATIBLE BROWSER VERSION'
	var alertText	= 'The browser you\'re using, ' + browser + ' ' + version + ', will not properly display this '		+
					  'site\'s pages.<br><br>Brainfarts.com is designed to require Netscape ' + netscape_version		+
					   ' or later, Explorer ' + exploder_version + ' or later or any other browser compatible with '	+
					   'either of them.'
					  
	showAlert(errorText, alertText);
	
};
