
function show (id) {
	var node = MM_findObj(id, document);
	node.className = 'expanded';
}
function hide (id) {
	var node = MM_findObj(id, document);
	node.className = 'collapsed';
}


function ShowScreen(id){
	 if (document.getElementById) {
			if (document.getElementById(id).style.display == 'none') {
			document.getElementById(id).style.display = '';
				}
	else {
			document.getElementById(id).style.display = 'none';
     	}
  	   }
 }



  function showBranch(id){
 
		
		  var objBranch = document.getElementById(id).style;
		  if(objBranch.display=="block")
			 objBranch.display="none";
		  else
			 objBranch.display="block";
		 
	   }
	   
	   function swapFolder(img){
		  objImg = document.getElementById(img);
		  if(objImg.src.indexOf('closed.gif')>-1)
			 objImg.src = openImg.src;
		  else
			 objImg.src = closedImg.src;
	   }
	
function init()
{
	if (document.getElementById)
		var x = document.getElementById('menu').getElementsByTagName('IMG');
	else if (document.all)
		var x = document.all['menu'].all.tags('IMG');
	else return;
	var preloads = new Object();
	for (var i=0;i<x.length;i++)
	{
		preloads['n'+x[i].id] = new Image;
		preloads['n'+x[i].id].src = '/IHA/assets/images/menu/'+ x[i].id + '_nrm.jpg';
		preloads['o'+x[i].id] = new Image;
		preloads['o'+x[i].id].src = '/IHA/assets/images/menu/'+ x[i].id + '_omo.jpg';
		preloads['o'+x[i].id].onerror = function () {this.src='../iamges/menu/default.gif'}
		x[i].onmouseover = function () {this.src=preloads['o'+this.id].src;}
		x[i].onmouseout = function () {this.src=preloads['n'+this.id].src;}
	}
	
	
}



 
