var aryNavBoxes;

function initNavSliders() {
	aryNavBoxes = new Array(5);
	aryNavBoxes[0] = getObject("navCatalog");
	aryNavBoxes[1] = getObject("navCommunity");
	aryNavBoxes[2] = getObject("navResources");
	aryNavBoxes[3] = getObject("navWebServices");
	aryNavBoxes[4] = getObject("navInitiatives");
	aryNavBoxes[5] = getObject("navAbout");
	//Display the AboutDASC list by default:
	//aryNavBoxes[4].style.height = "auto";
	//aryNavBoxes[4].style.overflow = "auto";
	//aryNavBoxes[4].style.backgroundColor = "#e8e8e8";
}

function ShowIcon(icon) {
	var oIcon = getObject(icon);
	oIcon.style.visibility = "visible";
}

function HideIcon(icon) {
	var oIcon = getObject(icon);
	oIcon.style.visibility = "hidden";
}

function ExpandNav(group) {
	//var objAnchor;
	for (var i = 1; i < aryNavBoxes.length; i++) {
		if (i == group) {
			aryNavBoxes[i].style.height = "auto";
			aryNavBoxes[i].style.overflow = "auto";
			aryNavBoxes[i].style.backgroundColor = "#e8e8e8";
		} else {
			aryNavBoxes[i].style.overflow = "hidden";
			aryNavBoxes[i].style.backgroundColor = "#fff";
			dojo.animateProperty( { node: aryNavBoxes[i].id, duration: 500, properties: {height: {end: 30, unit: "px"}} }).play();
		}
	}
}

