// JavaScript Document

var flag = new Array('0', '0', '0', '0', '0');
var fl=0;
var nt, idAlpha, prevBotMenu=1, disp;
function menuOver(obj){
	obj.style.backgroundColor='#C0DCE9';
}
function menuOut(obj){
	obj.style.backgroundColor='#E5E6E6';
}
function hideList(listID){
	if(document.getElementById("list" + listID).style.display != 'none'){
		document.getElementById("list" + listID).style.display = 'none';
		document.getElementById("listImg" + listID).src = 'images/plus.gif';
	}
	else{
		document.getElementById("list" + listID).style.display = 'block';
		document.getElementById("listImg" + listID).src = 'images/minus.gif';
	}
}
function alphaPlus(id){
	if(document.all["pic"+id].filters.alpha.opacity >=100){
		clearInterval(nt);
	}else{
		document.all["pic"+id].filters.alpha.opacity += 4;
	}
}
function alphaMinus(id){
	if(document.all["pic"+id].filters.alpha.opacity <=50){
		clearInterval(nt);
	}else{
		document.all["pic"+id].filters.alpha.opacity -= 15;
	}
}
function doAlphaPlus(id){
		clearInterval(nt);
		nt=setInterval('alphaPlus(' + id + ');', 10);
}
function doAlphaMinus(id){
		clearInterval(nt);
		nt=setInterval('alphaMinus(' + id + ');', 1);
}
function hideMenu(obj, countRow, menuID){
	var td = "menu" + menuID;
	if(document.getElementById(td + "_row" + 0).style.display != 'none'){
		disp = document.getElementById(td + "_row" + 0).style.display;
		for(var i=0; i<countRow; i++){
			document.getElementById(td + "_row" + i).style.display = 'none';
		}
		document.getElementById(td + "_img1").src = "images/table_1_left.gif";
		document.getElementById(td + "_img2").src = "images/table_1_right.gif";
	}
	else{
		for(var i=0; i<countRow; i++){
			document.getElementById(td + "_row" + i).style.display = disp;
		}
		document.getElementById(td + "_img1").src = "images/table_left.gif";
		document.getElementById(td + "_img2").src = "images/table_right.gif";
	}
}
