﻿bName = navigator.appName; bVersion = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVersion >= 3) || (bName == "Microsoft Internet Explorer" && bVersion >= 4))
{ GloisRolloverEnabled = true; } else { GloisRolloverEnabled = false; }

if (GloisRolloverEnabled) {
	topnav01on = new Image(); topnav01on.src = "images/nav/top/see_on.gif";
	topnav02on = new Image(); topnav02on.src = "images/nav/top/learn_on.gif";
	topnav03on = new Image(); topnav03on.src = "images/nav/top/make_on.gif";
	topnav04on = new Image(); topnav04on.src = "images/nav/top/buy_on.gif";
	topnav05on = new Image(); topnav05on.src = "images/nav/top/ask_on.gif";

	topnav01off = new Image(); topnav01off.src = "images/nav/top/see_off.gif";
	topnav02off = new Image(); topnav02off.src = "images/nav/top/learn_off.gif";
	topnav03off = new Image(); topnav03off.src = "images/nav/top/make_off.gif";
	topnav04off = new Image(); topnav04off.src = "images/nav/top/buy_off.gif";
	topnav05off = new Image(); topnav05off.src = "images/nav/top/ask_off.gif";
}

function rollover(imgname, name, message) {
	if (GloisRolloverEnabled) {
		var over = eval(name + "on.src");
		document[imgname].src = over;
		if (message) { window.status=message; return true; }
	}
}
function rollout(imgname, name, message) { if (GloisRolloverEnabled) { var out = eval(name + "off.src"); document[imgname].src = out; if (message) { window.status=message; return true; } } }

function redirect(url){ 
	window.location=url;
}

//function to display or hide a given element
function showHideItems(myItem, myButton){

  //this is the ID of the hidden item
  var myItem = document.getElementById(myItem);

  if (myItem.style.display != "none") {
    //items are currently displayed, so hide them
    myItem.style.display = "none";
  } else {
    //items are currently hidden, so display them
    myItem.style.display = "block";
  }
}

function getObject(objectId) {
	if (document.getElementById && document.getElementById(objectId)) {
		return document.getElementById(objectId);
	} else if (document.all && document.all(objectId)) {
		return document.all(objectId);
	} else {
		return false;
	}
}