<script language="JAVASCRIPT">

<!--
//-----------------------------------
// Detect Version
// Detects the version # of browser
// and returns the number
//-----------------------------------

function detectVersion()
{
version = parseInt(navigator.appVersion);
return version;
}

//-----------------------------------
// Detect OS
// Detects the operating system and
// returns text 'macintosh' or 'windows'
//-----------------------------------
function detectOS()
{
if(navigator.userAgent.indexOf('Win') == -1) {
OS = 'Macintosh';
} else {
OS = 'Windows';
}
return OS;
}

//-----------------------------------
// Detect Browser
// Detects browser name and returns
// 'IE' or 'Netscape'
//-----------------------------------
function detectBrowser()
{
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'Netscape';
}
return browser;
}

//-----------------------------------
// Fullscreen()
// This function uses the above functions
// together for detection, then launches the
// fullscreen site
//
//
// IMPORTANT FILES BELOW:
// oldbrowser.html - If user uses version 3 or below, it goes to this page.
// you could have a message on that page stating to upgrade the browser, or
// have that page as a static HTML site.
//
// windowversion.html - Since IE is required for true full-screen, the netscape
// solution is a maximized menu-less window. You can replace windowversion.html
// with the "full screen" html file if you'd like, but this leaves the option
// open to have a different page appear if the user has netscape.
//
// thefullscreen.html - If all is good, this will be the file we want people to
// see in full-screen mode.
//
// HOW TO GET RID OF 'GHOST' SCROLLBARS
// If you test out your fullscreen website and you see a 'ghost' scrollbar
// on the right (vertically), simply put your fullscreen site in a frameset,
// with the top frame 100%, bottom frame is hidden, and the problem dissappears.
//
// note: if you do a frameset, make sure you make your javascript:self.close()
// button in flash target "parent".
//-----------------------------------
function FullScreen(){

var adjWidth;
var adjHeight;

if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {
adjWidth = 30;
adjHeight = 30;
}
if(detectVersion() < 4) {
self.location.href = 'oldbrowser.html';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('windowversion.html', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}

function MakeItSo(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open('thefullscreen.html','windowname','fullscreen=yes');
} else {
onload=FullScreen();
}
}
// -->


</script>