﻿// JScript File
    var isDHTML = 0;
    var isLayers = 0;
    var isAll = 0;
    var isID = 0;

    if (document.getElementById)
    {isID = 1; isDHTML = 1;}
    else{if (document.all)
    {isAll = 1; isDHTML = 1;}
    else{browserVersion = parseInt(navigator.appVersion);
    if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4))
    {isLayers = 1; isDHTML = 1;}
    }
    }
    
function browser()
{
    var isDHTML = 0;
    var isLayers = 0;
    var isAll = 0;
    var isID = 0;
    
    if (document.getElementById)
        {isID = 1; isDHTML = 1;}
    else{if (document.all)
        {isAll = 1; isDHTML = 1;}
    else{browserVersion = parseInt(navigator.appVersion);
    if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4))
        {isLayers = 1; isDHTML = 1;}
        }
        }
    {
    
    if (navigator.userAgent.indexOf('Mac') != -1)
        {
        if (navigator.userAgent.indexOf("Safari") != -1)
            {
            document.write("<link href='css/SciStyleS.css' rel='stylesheet' type='text/css' />");
            }
        if (navigator.userAgent.indexOf("Firefox") != -1)
            {
            document.write("<link href='css/SciStyleFM.css' rel='stylesheet' type='text/css' />");
            }
        }
    else if (navigator.userAgent.indexOf("Firefox") != -1)
        {
        document.write("<link href='css/SciStyleF.css' rel='stylesheet' type='text/css' />");
        }
    else if (navigator.userAgent.indexOf("Chrome") != -1)
        {
        document.write("<link href='css/SciStyleF.css' rel='stylesheet' type='text/css' />");
        }
    else if (navigator.appName.indexOf('Netscape') != -1)
        {
        document.write("<link href='css/SciStyleN.css' rel='stylesheet' type='text/css' />");
        }
    else if (navigator.userAgent.indexOf('Opera') != -1)
        {
        document.write("<link href='css/SciStyleO.css' rel='stylesheet' type='text/css' />");
        }
    else
        {
        document.write("<link href='css/SciStyle.css' rel='stylesheet' type='text/css' />");
        }
    }
}


function browserAdmin()
{
    var isDHTML = 0;
    var isLayers = 0;
    var isAll = 0;
    var isID = 0;

    if (document.getElementById)
        {isID = 1; isDHTML = 1;}
    else{if (document.all)
        {isAll = 1; isDHTML = 1;}
    else{browserVersion = parseInt(navigator.appVersion);
    if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4))
        {isLayers = 1; isDHTML = 1;}
        }
        }
    {
    
    if (navigator.userAgent.indexOf('Mac') != -1)
        {
        if (navigator.userAgent.indexOf("Safari") != -1)
            {
            document.write("<link href='../SciStyleS.css' rel='stylesheet' type='text/css' />");
            }
        if (navigator.userAgent.indexOf("Firefox") != -1)
            {
            document.write("<link href='../SciStyleFM.css' rel='stylesheet' type='text/css' />");
            }
        }
    else if (navigator.userAgent.indexOf("Firefox") != -1)
        {
        document.write("<link href='../SciStyleF.css' rel='stylesheet' type='text/css' />");
        }
    else if (navigator.appName.indexOf('Netscape') != -1)
        {
        document.write("<link href='../SciStyleN.css' rel='stylesheet' type='text/css' />");
        }
    else if (navigator.userAgent.indexOf('Opera') != -1)
        {
        document.write("<link href='../SciStyleO.css' rel='stylesheet' type='text/css' />");
        }
    else
        {
        document.write("<link href='../SciStyle.css' rel='stylesheet' type='text/css' />");
        }
    }
}
    

function getQuote()
{
var quote = new Array;
quote[0]="'For in the end we will conserve only what we love. We will love only what we understand, and we will understand only what we are taught.' ";
quote[1]="'I am afraid that I don't see much hope for a civilization so stupid that it demands a quantitative estimate of the value of its own umbilical cord.' ";
quote[2]="'When a poor person dies of hunger, it has not happened because God did not take care of him or her. It has happened because neither you nor I wanted to give that person what he or she needed.' ";
quote[3]="'Please choose the way of peace. ... In the short term there may be winners and losers in this war that we all dread. But that never can, nor never will justify the suffering, pain and loss of life your weapons will cause.' ";
quote[4]="'Religion that is pure and undefiled before God and the Father is this: to visit orphans and widows in their affliction, and to keep oneself unstained from the world.' ";
quote[5]="'Without reliable data, I'm just another person with an opinion.' ";
quote[6]="'Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence.' ";
quote[7]="'For a successful technology, reality must take precedence over public relations, for nature cannot be fooled.' ";
quote[8]="'To keep silent when we should protest, makes cowards of men.' ";
quote[9]="'A bad man is worse when he pretends to be a saint.' ";
quote[10]="'The nation behaves well if it treats the natural resources as assets which it must turn over to the next generation increased, and not impaired, in value.' ";
quote[11]="'This we know:  All things are connected.  Whatever befalls the earth befalls the sons of the earth.  Man did not weave the web of life; he is merely a strand in it.  Whatever he does to the web, he does to himself.' ";
quote[12]="'In a time of universal deceit, telling the truth becomes a revolutionary act.' ";
quote[13]="'Good conservation requires good science. We cannot hope to save a species we do not understand. We cannot hope to overcome obstacles we cannot identify. And we certainly cannot hope to succeed on blind optimism alone.' ";

var quoteref = new Array;
quoteref[0]=" - Baba Dioum";
quoteref[1]=" - David Ehrenfeld";
quoteref[2]=" - Mother Teresa";
quoteref[3]=" - Mother Teresa<br /><br />(From a 1991 letter to U.S. President George Bush and Iraqi President Saddam Hussein)";
quoteref[4]=" - James 1:27 (RSV)";
quoteref[5]=" - Anonymous";
quoteref[6]=" - Albert Einstein";
quoteref[7]=" - Richard Feynmann<br /><br />(Commenting on the 1997 Challenger disaster)";
quoteref[8]=" - Abraham Lincoln";
quoteref[9]=" - Francis Bacon";
quoteref[10]=" - Theodore Roosevelt";
quoteref[11]=" - Chief Seattle";
quoteref[12]=" - George Orwell";
quoteref[13]=" - David S. Gill<br />Sumatran Tiger Trust";

//Generate a random number then print the quote from that array index
randQt = Math.floor(Math.random()*quote.length);
document.write(quote[randQt]);
document.write('<div class="quoteref">');
document.write(quoteref[randQt]);
document.write('</div>');
}

function getQuoteTed()
{
var quote = new Array;
quote[0]="'For in the end we will conserve only what we love. We will love only what we understand, and we will understand only what we are taught.' ";
quote[1]="'I am afraid that I don't see much hope for a civilization so stupid that it demands a quantitative estimate of the value of its own umbilical cord.' ";
quote[2]="'When a poor person dies of hunger, it has not happened because God did not take care of him or her. It has happened because neither you nor I wanted to give that person what he or she needed.' ";
quote[3]="'Please choose the way of peace. ... In the short term there may be winners and losers in this war that we all dread. But that never can, nor never will justify the suffering, pain and loss of life your weapons will cause.' ";
quote[4]="'Religion that is pure and undefiled before God and the Father is this: to visit orphans and widows in their affliction, and to keep oneself unstained from the world.' ";
quote[5]="'Without reliable data, I'm just another person with an opinion.' ";
quote[6]="'Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence.' ";
quote[7]="'For a successful technology, reality must take precedence over public relations, for nature cannot be fooled.' ";
quote[8]="'To keep silent when we should protest, makes cowards of men.' ";
quote[9]="'A bad man is worse when he pretends to be a saint.' ";
quote[10]="'The nation behaves well if it treats the natural resources as assets which it must turn over to the next generation increased, and not impaired, in value.' ";
quote[11]="'This we know:  All things are connected.  Whatever befalls the earth befalls the sons of the earth.  Man did not weave the web of life; he is merely a strand in it.  Whatever he does to the web, he does to himself.' ";
quote[12]="'In a time of universal deceit, telling the truth becomes a revolutionary act.' ";

var quoteref = new Array;
quoteref[0]=" - Baba Dioum";
quoteref[1]=" - David Ehrenfeld";
quoteref[2]=" - Mother Teresa";
quoteref[3]=" - Mother Teresa<br />(From a 1991 letter to U.S. President George Bush and Iraqi President Saddam Hussein)";
quoteref[4]=" - James 1:27 (RSV)";
quoteref[5]=" - Anonymous";
quoteref[6]=" - Albert Einstein";
quoteref[7]=" - Richard Feynmann<br />(Commenting on the 1997 Challenger disaster)";
quoteref[8]=" - Abraham Lincoln";
quoteref[9]=" - Francis Bacon";
quoteref[10]=" - Theodore Roosevelt";
quoteref[11]=" - Chief Seattle";
quoteref[12]=" - George Orwell";

//Generate a random number then print the quote from that array index
randQt = Math.floor(Math.random()*quote.length);
document.write(quote[randQt]);
document.write('<div class="quoteref">');
document.write(quoteref[randQt]);
document.write('</div>');
}

function titlBarRot()
{
document.write("<IMG SRC='graphics/titleimgA" + Math.ceil(Math.random() * 3) + ".jpg' width=76 height=65 border=0 >");
document.write("<IMG SRC='graphics/titleimgB" + Math.ceil(Math.random() * 3) + ".jpg' width=76 height=65 border=0 >");
document.write("<IMG SRC='graphics/titleimgC" + Math.ceil(Math.random() * 3) + ".jpg' width=76 height=65 border=0 >");
document.write("<IMG SRC='graphics/titleimgD" + Math.ceil(Math.random() * 3) + ".jpg' width=76 height=65 border=0 >");
}

function titlBarRotDoc()
{
document.write("<IMG SRC='../graphics/titleimgA" + Math.ceil(Math.random() * 3) + ".jpg' width=76 height=65 border=0 >");
document.write("<IMG SRC='../graphics/titleimgB" + Math.ceil(Math.random() * 3) + ".jpg' width=76 height=65 border=0 >");
document.write("<IMG SRC='../graphics/titleimgC" + Math.ceil(Math.random() * 3) + ".jpg' width=76 height=65 border=0 >");
document.write("<IMG SRC='../graphics/titleimgD" + Math.ceil(Math.random() * 3) + ".jpg' width=76 height=65 border=0 >");
}


function closeWindow()
{
    window.open('','_parent','');
    window.close();
}