var navdrops = new Array();
navdrops[0] = 'nav_drop1';
navdrops[1] = 'nav_drop2';
navdrops[2] = 'nav_drop3';
navdrops[3] = 'nav_drop4';
navdrops[4] = 'nav_drop5';
navdrops[5] = 'nav_drop6';

var navheads = new Array();
navheads[0] = 'liregions';
navheads[1] = 'liattractions';
navheads[2] = 'licalendar';
navheads[3] = 'liplacestostay';
navheads[4] = 'liitineraries';
navheads[5] = 'licontactus';

var curheaddrop;
var curnavdrop;

function resetNav() {
	for (i=0; i < navdrops.length; i++) {
		if (curnavdrop != navdrops[i]) {
			if (document.getElementById(navheads[i])) {
				var dHEl = document.getElementById(navheads[i]);
				dHEl.setAttribute('class','nav_top_off');
			}
			document.getElementById(navdrops[i]).style.display = 'none';
		}
	}
	return true;
}

function bodyNavClear() {
	for (i=0; i < navheads.length; i++) {
		var dHEl = document.getElementById(navheads[i]);
		dHEl.setAttribute('class','nav_top_off');
	}
	for (i=0; i < navdrops.length; i++) {
		document.getElementById(navdrops[i]).style.display = 'none';
	}
}

function doNav(nDrop, theHead) {
	curheaddrop = theHead;
	curnavdrop = nDrop;
	if (resetNav()) {
		if (document.getElementById(curheaddrop)) {
			var dHEl = document.getElementById(curheaddrop);
			dHEl.setAttribute('class','nav_top_on');
			//alert('on: ' + dHEl.setAttribute('class'));
		}
		var dEl = document.getElementById(nDrop).style;
		dEl.display = 'block';
	}
}

function doList(theList) {
	var myList = document.getElementById(theList).style;
	//var myList.display = 'block';
	(myList.display != 'block') ? myList.display = 'block' : myList.display = 'none';
}