<!--
//to change the background color of buttons

var type = "IE";	//Variable used to hold the browser name

BrowserSniffer();

//detects the capabilities of the browser
function BrowserSniffer() {
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";		//Opera
	else if (document.all) type="IE";														//Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="NN";													//Netscape Communicator 4
	else if (!document.all && document.getElementById) type="MO";							//Mozila e.g. Netscape 6 upwards
	else type = "IE";		//I assume it will not get here
}

//Displays the generic browser type
function whatBrows() {
	window.alert("Browser is : " + type);
}

//Puts the contents of str into the layer id
//id is the name of the layer
//str is the required content
//Works with all browsers except Opera
function ChangeContent(id, str) {
	if (type=="IE") {
		document.all[id].innerHTML = str;
	}
	if (type=="NN") { 
		document.layers[id].document.open();
		document.layers[id].document.write(str);
		document.layers[id].document.close();
	}
	if (type=="MO") {
		document.getElementById(id).innerHTML = str;
	}
}

// Prepare the array of seven different colors
subnavSubC = new Array ();
subnavSubC[0] = '#FF0000';
subnavSubC[1] = '#FF6600';
subnavSubC[2] = '#878700';
subnavSubC[3] = '#009900';
subnavSubC[4] = '#0077FF';
subnavSubC[5] = '#9933FF';
subnavSubC[6] = '#FF3399';


//Change the background color of 'Archive/Current' switch button on mouse over
//id is the name of the layer
//Works with all browsers except NN4
function changeBgColor(){
	var mydate=new Date();			//get the date object
	var day=mydate.getDay();		//determine the weekday
	var todaysC=subnavSubC[day];		//determine today's color
	if (type=="IE") document.all['menu'].style.backgroundColor=todaysC;
	if (type=="NN") document.layer['menu'].bgColor=todaysC;
	if (type=="MO" || type=="OP") document.getElementById('menu').style.backgroundColor=todaysC;
}

//Return the background color of 'Archive/Current' switch button on mouse over
//id is the name of the layer
function returnBgColor(){
	if (type=="IE") document.all['menu'].style.backgroundColor='#000000';
	if (type=="NN") document.layer['menu'].bgColor='#000000';
	if (type=="MO" || type=="OP") document.getElementById('menu').style.backgroundColor='#000000';
}

//change the URL of the frame
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

//-->