<!--
function ShowMessage(QuotePath)
{
	var ReportWinodw;
	var MessageNumber;
	var MaxMessageNumber;
	var WinTop;
	var WinLeft;
	var WinWidth = 400;
	var WinHeight = 450;
	var QuotePagesPath;


	if (QuotePath == 1)
	{
		var MaxMessageNumber = 160;
		QuotePagesPath = 'http://www.atlantis.to/teachings/';
	}

	if (QuotePath == 2)
	{
		var MaxMessageNumber = 70;
		QuotePagesPath = 'http://www.atlantis.to/einstein/e';
	}

	if (QuotePath == 3)
	{
		var MaxMessageNumber = 54;
		QuotePagesPath = 'http://www.atlantis.to/fathers/';
	}

	if (QuotePath == 4)
	{
		var MaxMessageNumber = 22;
		WinWidth = 600;
		WinHeight = 650;
		QuotePagesPath = 'http://www.atlantis.to/tarot/';
	}

	WinTop= (window.screen.height / 2) - (WinHeight / 2);	
	WinTop= WinTop - 90; // opera bug
	WinLeft=  (window.screen.width / 2) - (WinWidth / 2);

	if ((CheckJavaSupport()) && (QuotePath < 4))
	{
		FileName = QuotePagesPath + 'popup.htm';
	}
	else
	{
	day = new Date();
	seed = day.getTime();
	MessageNumber = parseInt(((seed - (parseInt(seed/1000,10) *1000))/10)/100*MaxMessageNumber + 1,10);
	FileName = QuotePagesPath + MessageNumber + '.htm';
	}
	ReportWinodw=window.open(FileName,'Message','top=' + WinTop + ',left=' + WinLeft + ',height=' + WinHeight + ',width=' + WinWidth + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	ReportWinodw.focus();

	return false;
}

function CheckJavaSupport () {

	//return navigator.javaEnabled();

  var result = { 
    javaEnabled: false,
    version: ''
  };
  if (typeof navigator != 'undefined' && typeof navigator.javaEnabled != 'undefined') 
    result.javaEnabled = navigator.javaEnabled();
  else
    result.javaEnabled = false;

  if (navigator.javaEnabled() && typeof java != 'undefined')
  {
  //return result.javaEnabled;
    result.version = java.lang.System.getProperty("java.version");
  }
  if (!result.version)
    result.javaEnabled = false;
  return result.javaEnabled;
}

function detectPlugin() {
    // allow for multiple checks in a single pass
    var daPlugins = detectPlugin.arguments;
    // consider pluginFound to be false until proven true
    var pluginFound = false;
    // if plugins array is there and not fake
    if (navigator.plugins && navigator.plugins.length > 0) {
	var pluginsArrayLength = navigator.plugins.length;
	// for each plugin...
	for (pluginsArrayCounter=0; pluginsArrayCounter < pluginsArrayLength; pluginsArrayCounter++ ) {
	    // loop through all desired names and check each against the current plugin name
	    var numFound = 0;
	    for(namesCounter=0; namesCounter < daPlugins.length; namesCounter++) {
		// if desired plugin name is found in either plugin name or description
		if( (navigator.plugins[pluginsArrayCounter].name.indexOf(daPlugins[namesCounter]) >= 0) || 
		    (navigator.plugins[pluginsArrayCounter].description.indexOf(daPlugins[namesCounter]) >= 0) ) {
		    // this name was found
		    numFound++;
		}   
	    }
	    // now that we have checked all the required names against this one plugin,
	    // if the number we found matches the total number provided then we were successful
	    if(numFound == daPlugins.length) {
		pluginFound = true;
		// if we've found the plugin, we can stop looking through at the rest of the plugins
		break;
	    }
	}
    }
    return pluginFound;
} // detectPlugin
//-->
