// JavaScript Document

// shows sub menu passed - use in onmouseover=""
function showSub(the_name) {
	if (document.all) {
		document.all[the_name].style.visibility = 'visible';
	}
	if (document.getElementById) {
		document.getElementById(the_name).style.visibility = 'visible';
	}
}

// hides sub menu passed - use in onmouseout=""
function hideSub(the_name) {
	if (document.all) {
		document.all[the_name].style.visibility = 'hidden';
	}
	if (document.getElementById) {
		document.getElementById(the_name).style.visibility = 'hidden';
	}
}

// changes background color and text color for id passed
function changeColor(id, bgcolor, textcolor) {
  if (document.all) {
    document.all[id].style.background = bgcolor;
	document.all[id].style.color = textcolor;
	document.all[id].style.cursor = 'hand';
  }
  if (document.getElementById) {
    document.getElementById(id).style.background = bgcolor;
	document.getElementById(id).style.color = textcolor;
	document.getElementById(id).style.cursor = 'hand';
  }
}

// makes div element a link
function makeLink(url, newwindow) {
  self.location = url;
}

// set these variables so we don't have to update the template to change the color scheme :)
var bgcolor = '#333333';
var textcolor = '#FFFFFF';
var bgcolor_hot = '#D8D8CA';
var textcolor_hot = '#000000';
var sub_bgcolor = '#333333';
var sub_bgcolor_hot = '#D8D8CA';
-->
