browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;

if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4)) {
ns4 = false
ie4 = true
} 
else if (browser_type == "Netscape" && (browser_version >= 4)) {
ns4 =true
ie4 =false
}
else if (browser_version < 4){
document.write('Your browser is not supported by this website, please upgrade your internet browser');
}

function show(id) {
	if (ns4==true) document.layers[id].visibility = "show"
	else if (ie4==true) document.all[id].style.visibility = "visible"
}

function hide(id) {
	if (ns4==true) document.layers[id].visibility = "hide"
	else if (ie4==true) document.all[id].style.visibility = "hidden"
}

function reset(){
window.refresh
}

if (ns4==true){
window.onresize = reset()
}
//homepage animator
var action;
var action2;

function StartGlide() {

    	menu.style.pixelHeight =0;
    	menu.style.pixelWidth = 0;
    	action2 = window.setInterval("shrink()",70);
}

function shrink() {
    	menu.style.pixelHeight +=15;
    	menu.style.pixelWidth +=15;
    	if (menu.style.pixelHeight<=280 && menu.style.pixelWidth<=280) {
		menu.style.pixelHeight=300;
        	menu.style.pixelWidth =300;
        	window.clearInterval(action2);
    }
}

//the following script is taken from webmonkey

function WM_netscapeCssFix() {
  /*
    Source: Webmonkey Code Library
    (http://www.hotwired.com/webmonkey/javascript/code_library/)

    Author: Taylor
    Author Email: taylor@wired.com
    Author URL: http://www.taylor.org/
    */

  // This part was inspired by Matthew_Baird@wayfarer.com
  // It gets around another unfortunate bug whereby Netscape 
  // fires a resize event when the scrollbars pop up. This 
  // checks to make sure that the window's available size 
  // has actually changed.
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function WM_netscapeCssFixCheckIn() {
  // This function checks to make sure the version of Netscape 
  // in use contains the bug; if so, it records the window's 
  // width and height and sets all resize events to be handled 
  // by the WM_netscapeCssFix() function.
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
      document.WM = new Object;
    }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
      document.WM.WM_netscapeCssFix = new Object;
      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = WM_netscapeCssFix;
  }
}

function hideAll(){
hide('credit');
}