/***********************************************
* Highlight Table Cells Script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Specify highlight behavior. "TD" to highlight table cells, "TR" to highlight the entire row:
var highlightbehavior="TD"

var ns6=document.getElementById&&!document.all
var ie=document.all

function css_roll_over (e,bgcolor,textcolor,bordercolor){
	source=ie? event.srcElement : e.target
	if (source.tagName=="TABLE")
	return
	while(source.tagName!=highlightbehavior && source.tagName!="HTML")
	source=ns6? source.parentNode : source.parentElement
	if (source.style.backgroundColor!=bgcolor&&source.id!="ignore")
	source.style.backgroundColor=bgcolor
	source.style.borderColor=bordercolor
	source.style.color=textcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
	while (slave.parentNode)
	if ((slave = slave.parentNode) == master)
	return true;
	return false;
}

function css_roll_out (e,bgcolor,textcolor,bordercolor){
	if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TABLE")
	return
	else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
	return
	if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
	source.style.backgroundColor=bgcolor
	source.style.borderColor=bordercolor
	source.style.color=textcolor
}

function img_roll_over(imgName) {
	if (document.images) {
		document.images[imgName].src = eval(imgName + "_over.src");
	}
}

function img_roll_out(imgName) {
	if (document.images) {
		document.images[imgName].src = eval(imgName + ".src");
	}
}

function goToSelectURL (selectElement) {
	var url = selectElement.options[selectElement.selectedIndex].value;
	if (url == '') {
		alert ('Please make a valid selection');
		}
	else {
		location.href = url;
		}
	return false;
}
