﻿function imgOver(gon) {
	gon.src = gon.src.replace('_off.gif', '_on.gif');
}
function imgOut(gon) {
	gon.src = gon.src.replace('_on.gif', '_off.gif');
}
function viewItem(id) {
	var gon = document.getElementById(id);
	gon.style.display = '';	
}
function hideItem(id) {
	var gon = document.getElementById(id);
	gon.style.display = 'none';	
}
function menuA(id,cont,total,num) {	
	var id = id;
	var cont = cont;
	var total = total;
	var menu = new Array();
	var content = new Array();
	for(j=0; j <= eval(total); j++) { 
		menu[j] = document.getElementById(id + eval(j+1)); 
		content[j] = document.getElementById(cont + eval(j+1)); 
	}
	for(var i=0 ; i <= eval(total); i++) {
		if (i == num) { 
			menu[i].src = menu[i].src.replace('_off','_on');
			content[i].style.display = ''; 
		}
		else { 
			menu[i].src = menu[i].src.replace('_on','_off');
			content[i].style.display = 'none'; 
		}
	}
}
