	// Browser checking variables
	var bName = navigator.appName;
	var bVer = parseInt(navigator.appVersion);
	var bPlatform = navigator.platform;
	var NS3 = (bName == "Netscape" && bVer < 4);
	var NS4 = (bName == "Netscape" && bVer >= 4);
	var NS6 = (bName == "Netscape" && bVer >= 5);
	var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
	var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
	var DOM = (document.getElementById) ? true : false;
	var MAC = (bPlatform=="MacPPC");
	var WINDOWS = (bPlatform=="Win32");

	// Layer switching code
	var layerRef = "";
	if (DOM) {
		layerRef = "document.getElementById(layerName).style";
	} else if (NS4) {
		layerRef = "document.layers[layerName]";
	} else if (IE4) {
		layerRef = "document.all[layerName].style";
	}

	function showLayer(layerName) {
		eval(layerRef + ".visibility='visible'");
	}

	function hideLayer(layerName) {
		eval(layerRef + ".visibility='hidden'");
	}

	// Set the preferred country and language
	function setPreference(c,l) {
		setCookie('language',l,30);
		setCookie('country',c,30);
		window.location.href = unescape(window.location);	// JS 1.0
		//window.location.replace( sURL ); // JS 1.1 : No reload from server
		//window.location.reload(true);	// JS 1.2 : Reload from server
	}

	function openwindow(url,winName,width,height) {
		window.open(url,winName,"width=" + width + ",height=" + height);
	}
