<!--
function Slow2Hide(button) {
document.getElementById(button).style.visibility="hidden";
}

function display(subnav,button,onoff) {
if (subnav) {
if (onoff=="on") {
document.getElementById(button).src="img/nav/"+button+"2.gif";
document.getElementById(subnav).style.visibility="visible";
document.getElementById(subnav).style.Zindex="99";
subnavDelay=clearTimeout(subnavDelay);
} else {
subnavDelay=setTimeout(function () {
var ch=document.getElementById('nav_wrapper').getElementsByTagName("img");
for (var i = 0; i<ch.length; i++) { var imgId=ch[i].getAttribute('id'); document.getElementById(imgId).src="img/nav/"+imgId+"1.gif"; }
for (var i = 1; i<=10; i++) { document.getElementById('menu'+i).style.visibility="hidden"; document.getElementById(subnav).style.Zindex="95"; }

}, 500);
}
} else {
if (onoff=="on") {
document.getElementById(button).src="img/nav/"+button+"2.gif";
} else {
document.getElementById(button).src="img/nav/"+button+"1.gif";
}

} // end if (subnav)
} // end function

var t;
var aryClassElements = new Array();


function changeCategory(category) {

var allCats=new Array('cc','dc','wc','ec');

for (var a=0; a<allCats.length; a++) {
var Cat=allCats[a];
aryClassElements.length = 0;
getElementsByClassName(Cat, document.body);
for ( var i = 0; i < aryClassElements.length; i++ ) {

if (!category) {
document.getElementById(Cat).style.background="none";
document.getElementById(Cat).style.textDecoration="none";
document.getElementById(Cat).style.color="#FFF";
aryClassElements[i].style="#003";
} else if (category==Cat) {
document.getElementById(category).style.background="url('http://www.gradywhite.com/inc/nav/img/yellow-arrow.gif') left no-repeat";
document.getElementById(category).style.textDecoration="underline";
document.getElementById(category).style.color="#FFF475";
aryClassElements[i].style.color="#015";
} else {
document.getElementById(Cat).style.background="none";
document.getElementById(Cat).style.textDecoration="none";
document.getElementById(Cat).style.color="#FFF";
aryClassElements[i].style.color="#CCB33E";
}

}

}

if (category) { clearTimeout(t); t=setTimeout("changeCategory()", 4000); }
}



function getElementsByClassName(strClassName, obj) {
if ( obj.className == strClassName ) { aryClassElements[aryClassElements.length] = obj; }
for ( var i = 0; i < obj.childNodes.length; i++ ) { getElementsByClassName( strClassName, obj.childNodes[i] ); }
}

//-->
