function showStep(sid, parentLayer) {
	if (document.layers)
	{
		current = (document.layers[sid].display == 'none') ? 'block' : 'none';
		document.layers[sid].display = current;
	}
	else if (document.all)
	{
		current = (document.all[sid].style.display == 'none') ? 'block' : 'none';
		document.all[sid].style.display = current;
	}
	
	if (document.getElementById)
	{
		var temp = new Array();
		var tempTabs = new Array();
		var counter = 0;
		var selNum;
		var tid = document.getElementById(parentLayer);
		for (var i=0;i<tid.childNodes.length;i++) {
			if (tid.childNodes[i].id != undefined && tid.childNodes[i].id != 'steps' && tid.childNodes[i].id != '') { 
				temp.push(tid.childNodes[i].id);
				counter = counter + 1;
				if (tid.childNodes[i].id == sid) {
					selNum = counter;
				}
			}
		}
		
		for (var x=0;x<temp.length;x++) {
				document.getElementById(temp[x]).style.display = 'none';			
		}
		document.getElementById(sid).style.display = 'block';
		
		var tabid = document.getElementById('steps');
		for (var j=0;j<tabid.childNodes.length;j++) {
			if (tabid.childNodes[j].id != undefined && tabid.childNodes[j].id != '') { 
				tempTabs.push(tabid.childNodes[j].id);
				
			}
		}
		
		for (var y=0;y<tempTabs.length;y++) {
			//document.getElementById(tempTabs[y]).childNodes[0].className = 'norm';
			document.getElementById(tempTabs[y]).className = 'norm';
		}
		//document.getElementById(tempTabs[selNum-1]).childNodes[0].className = 'active';
		document.getElementById(tempTabs[selNum-1]).className = 'active';
		location.hash = '#logo';
	}
}

function showInfo(sid, parentLayer) {
	if (document.layers)
	{
		current = (document.layers[sid].display == 'none') ? 'block' : 'none';
		document.layers[sid].display = current;
	}
	else if (document.all)
	{
		current = (document.all[sid].style.display == 'none') ? 'block' : 'none';
		document.all[sid].style.display = current;
	}
	
	if (document.getElementById)
	{
		var temp = new Array();
		var tempTabs = new Array();
		var counter = 0;
		var selNum;
		var tid = document.getElementById(parentLayer);
		for (var i=0;i<tid.childNodes.length;i++) {
			if (tid.childNodes[i].id != undefined && tid.childNodes[i].id != 'tabnav' && tid.childNodes[i].id != '') { 
				temp.push(tid.childNodes[i].id);
				counter = counter + 1;
				if (tid.childNodes[i].id == sid) {
					selNum = counter;
				}
			}
		}
		
		for (var x=0;x<temp.length;x++) {
				document.getElementById(temp[x]).style.display = 'none';			
		}
		document.getElementById(sid).style.display = 'block';
		
		var tabid = document.getElementById('tabnav');
		for (var j=0;j<tabid.childNodes.length;j++) {
			if (tabid.childNodes[j].id != undefined && tabid.childNodes[j].id != '') { 
				tempTabs.push(tabid.childNodes[j].id);
				
			}
		}
		
		for (var y=0;y<tempTabs.length;y++) {
			document.getElementById(tempTabs[y]).childNodes[0].className = 'norm';
		}
		document.getElementById(tempTabs[selNum-1]).childNodes[0].className = 'active';
	}
}

function toggleCohort(titleId, listId) {    
    var cohort = document.getElementById(titleId);
    var cohortList = document.getElementById(listId);
    //alert(cohortList);
	var display = cohortList.style.display;
    if (display == "block") {
        //cohort.style.backgroundImage = "url(../images/expand.gif)";
        cohort.parentNode.style.backgroundImage = "url(../images/expand.gif)";
    }
    else {
        //cohort.style.backgroundImage = "url(../images/collapse.gif)";
        cohort.parentNode.style.backgroundImage = "url(../images/collapse.gif)";
    }
    
    if (display == "block") {
        cohortList.style.display = "none";
    }
    else {
        cohortList.style.display = "block";
    }
    
    /*this.parentNode.style.backgroundImage =
            (display == "block") ? "url(../images/expand.gif)" : "url(../images/collapse.gif)";8?
			answer.style.display = (display == "block") ? "none" : "block";
        return false;
    }*/
}

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;
