var d = document;  
var	timer = null;
var v = "visible";
var h = "hidden";


function clearSetTime() {
	if (timer) clearTimeout(timer);
	timer = null;
	timer = setTimeout("hideAll()",350);
	}
	
function cancelTimeOut() {
	if (timer) clearTimeout(timer);
	timer = null;
	}


var menu_array = new Array("portfolioMenu");
function showMenu(the_div, the_change) { 
  if (d.getElementById) {
	div_string = "document.getElementById('" + the_div + "').style";
	} 
  else if (d.all) {
	div_string = "document.all." + the_div + ".style";
	} 
/*  else if (d.layers) {
	div_string = "document." + the_div;
	} */
  the_div = eval(div_string);
  the_div.visibility = the_change;
   cancelTimeOut();
  }

function hideAll() {
 for (var i = 0; i< menu_array.length; i++) {
 showMenu(menu_array[i],h);
 }
}
