
/* Browser sniffing */
var isNN4up = false;
var isIE4up = false;

/* Determine browser name and version */
var browserVer = parseInt(navigator.appVersion);
var browserName = navigator.appName;

/* check the browser name and version and re-assign 
   value to variable */
if (browserVer >= 4 ) {
    if (browserName == "Netscape") {
        isNN4up = true
		document.writeln('<link rel="StyleSheet" href="../css/pondNN.css" type="text/css" media="screen">')
    }
	else if (browserName == "Microsoft Internet Explorer") {
        isIE4up = true
		document.writeln('<link rel="StyleSheet" href="../css/pondIE.css" type="text/css" media="screen">')
    }
}


// flash sniffing
// bits and pieces taken from:
// http://www.virtual-fx.net/tutorials/html/flash_version_detector.html
// http://www.moock.org/webdesign/flash/detection/moockfpi/
// adapted by suzanne.gavin & adrian.cotter 05.02.2001 -->

<!-- META: This will redirect you to no_flash.html if nothing has happened after 7 seconds -->
<!-- <META HTTP-EQUIV="Refresh" CONTENT="7; URL=no_flash.html"> -->


// This script also checks if you have Flash or not. If you dont you will be brought to no_flash.html. 

var newLocation = false;
var flash5 = false;

if ( ( navigator.appName == "Microsoft Internet Explorer" &&  navigator.appVersion.indexOf("Mac") == -1 && navigator.appVersion.indexOf("3.1") == -1) )
{
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');	
		document.write('</SCR' + 'IPT\> \n'); // break up end tag so it doesn't end our script					   

		if (!flash5)
		{
			newLocation = true;
		}
	}
else if ( !( ( navigator.plugins && navigator.plugins["Shockwave Flash"] ) || navigator.plugins["Shockwave Flash 2.0"] ) ) {
	newLocation = true;
}

if ( newLocation )
{
	top.location='no_flash.html';
    //window.location='no_flash.html';
	//parent.bottom_frame.location='bottom_refresh.html';
}
 
 // browser sniffing for flash
 var moviename = "testcommand";

function movieobject(flashNav) {
//IE and Netscape refer to the movie object differently.
//This function returns the appropriate syntax depending on the browser.

	if (navigator.appName.indexOf ("Microsoft") !=-1) {
			return window[flashNav]
		}
	else	{
			return document[flashNav]
		}
}
function playmovie()	{
			movieobject(flashNav).Play();
	}
var movie_ready = "false";

function playmovie() {
	if(movie_ready == "false") {
			while(movie_ready == "false")	{
				if(movieobject(flashNav).PercentLoaded() == 100) {
					movieobject(flashNav).Play();
					movie_ready = "true";
				}
			}
		}
	else	{
		movieobject(flashNav).Play();
	}
}


// this function opens the pop-up window

var newWin;

function popUp(page, name, details) {
newWin=window.open(page, name, details);
newWin.focus();
return false;
}