if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};

function overDetails(n) {
	document.getElementById('tdDetails'+n).className = 'bgyellow';
}
function outDetails(n) {
	if(!(eval('detail'+n+'Show'))) document.getElementById('tdDetails'+n).className = 'bgblue';
}

function openDetails(n) {
	if(eval('detail'+n+'Show')) {
		openDetailsDiv(n);
		return;
	}
	for(z=1;z<=detailNumber;z++) {
		if(eval('detail'+z+'Show'))
			openDetailsDiv(z);
	}
	openDetailsDiv(n);
}

function openDetailsDiv(n) {
	if(!(eval('detail'+n+'Show'))) {
		document.getElementById('detail'+n).style.display = 'block';
		document.getElementById('tdDetails'+n).className = 'bgred';
		document.getElementById('icon'+n).src = 'images/minus.gif';
		eval('detail'+n+'Show = true');
	}
	else {
		document.getElementById('detail'+n).style.display = 'none';
		document.getElementById('tdDetails'+n).className = 'bggray';
		document.getElementById('icon'+n).src = 'images/plus.gif';
		eval('detail'+n+'Show = false');
	}
}
function showPopup(source, width, height){
	xl = (screen.availWidth/2)-(width/2)
	tt = (screen.availHeight/2)-(height/2)
	sartoPopup=window.open(source,'showSarto','toolbar=no,scrolling=auto,resizable=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,width='+width+',height='+height+',left='+xl+',top='+tt);
	sartoPopup.focus()
}

