//Opens categories


var allCats = new Array();
allDivs = document.getElementsByTagName('div');
for(i in allDivs) {
	if (allDivs[i].className == 'category') allCats.push(allDivs[i]);	
}

var allAreas = document.getElementsByTagName('area');
for (i in allAreas) {
	var thisArea = allAreas[i];
	if (thisArea.id!='' && thisArea.id!=undefined && thisArea.id!=null) {
		var myId = thisArea.id;
		var myCatId = myId.substr(3);
		thisArea.myCatId = myCatId;
		thisArea.onmouseover = openCat;
	}
}


function getEvtTarget(e) {
  e = e || window.event; //e is for non-IE browsers, window.event is for IE
  return e.target || e.srcElement; //e.target is for non-IE, srcElement is for IE
}


function openCat(evt) {
	closeAllCats();
	document.getElementById(getEvtTarget(evt).myCatId).style.display = 'block';
}

function closeCat(catId) {
	document.getElementById(catId).style.display = 'none';
}

function closeAllCats() {
	for (i in allCats) {
		allCats[i].style.display = 'none';
	}
}

function openAllCats() {
	for (i in allCats) {
		allCats[i].style.display = 'block';
	}
}

closeAllCats();
document.getElementById('updates').style.display = 'block';