/*
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", "");
				}
   			}
		}
	}
}
*/

startList = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}


//window.onload=startList;
if (window.attachEvent) window.attachEvent("onload", startList);

function switchQuickContact(id) {

	var idList = new Array(	
				'quickcontact_maybee',
				'quickcontact_ottawalake',
				'quickcontact_ottawalakeoffice',
				'quickcontact_denniston',
				'quickcontact_newport', 
				'quickcontact_annarbor',
				'quickcontact_ida',
				'quickcontact_zeeb',
				'quickcontact_pattersonrd',
				'quickcontact_wenger',
				'quickcontact_100thst',
				'quickcontact_moscow',
				'quickcontact_npark',
				'quickcontact_pawpaw',
				'quickcontact_wicks',
				'quickcontact_cydiflint',
				'quickcontact_cydilansing',
				'quickcontact_cydigr');

	for(var i = 0; i < idList.length; i++) {
		if(document.getElementById(idList[i]) != null && 
			document.getElementById(idList[i]) != 'undefined') {
			document.getElementById(idList[i]).style.display = 'none';
		}
	}

	document.getElementById(id).style.display = 'block';
}

function resetDisplay() {
        document.getElementById('quickContactMenu').style.display = '';
}


function lcr(id, flag )
{
   var TEXTid = id + "TEXT";
   var TDid = id + "TD";
   if( flag ) {
     // document.getElementById( TEXTid ).style.color = "#FFFFFF";
      document.getElementById( TDid ).style.backgroundColor = "#DBE2D1";
      document.getElementById( TDid ).style.cursor = "hand";
   }  else  {
     // document.getElementById( TEXTid ).style.color = "#000000";
      document.getElementById( TDid ).style.backgroundColor = "#E3E9DF";      
      document.getElementById( TDid ).style.cursor = "auto";
   }
}


function qclcr(id, flag )
{
   var TEXTid = id + "TEXT";
   var TDid = id + "TD";
   if( flag ) {
     // document.getElementById( TEXTid ).style.color = "#FFFFFF";
      document.getElementById( TDid ).style.backgroundColor = "#B3C1B6";
      document.getElementById( TDid ).style.cursor = "hand";
   }  else  {
     // document.getElementById( TEXTid ).style.color = "#000000";
      document.getElementById( TDid ).style.backgroundColor = "#92B099";      
      document.getElementById( TDid ).style.cursor = "auto";
   }
}

