﻿function ChangeCB(divID) {
    var y = 3;
    var x = 1;
    for (x=1; x<=y; x++) {
        document.getElementById("chalk" + x.toString()).className = "hideCB";
    }
    document.getElementById("chalk" + divID.toString()).className = "showCB";
}

function jvea(part1, part2, part3, dispText, subject) {
 if (dispText == '') {
    if (subject == '') {
        document.write('<a href="' + 'mailto:' + part1 + '@' + part2 + '.' + part3 + '">' + part1 + '@' + part2 + '.' + part3 + '</a>');
    } else{
        document.write('<a href="' + 'mailto:' + part1 + '@' + part2 + '.' + part3 + '?subject=' + subject + '">' + part1 + '@' + part2 + '.' + part3 + '</a>');
    }            
 } else {
    if (subject == '') { 
        document.write('<a href="' + 'mailto:' + part1 + '@' + part2 + '.' + part3 + '">' + dispText + '</a>');
    } else{
        document.write('<a href="' + 'mailto:' + part1 + '@' + part2 + '.' + part3 + '?subject=' + subject + '">' + dispText + '</a>');    }          
 }
}

function jvea2(part1, part2, part3, part4, part5) {
    var part6 = '@' + part4 + '.' + part5
    document.write('<a href="' + 'mailto:' + part1 + part6 + '?cc=' + part2 + part6 + '; ' + part3 + part6 + '&subject=Contact Us">Click Here</a>');
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

