to=new Array();
var lastN = 0;
function over(n){
	if(lastN > 0) doClose(lastN);
	if(typeof(to[n])!="undefined") clearTimeout(to[n]);
	document.getElementById("o"+n).style.visibility="visible";
	document.getElementById("t"+n).className="over";
	lastN = n;
}
function out(n){
	to[n]=setTimeout('doClose("'+n+'")',600);
}
function doClose(n){
	document.getElementById("o"+n).style.visibility="hidden";
	if(n!=6){
	document.getElementById("t"+n).className="";
	}else{
	document.getElementById("t"+n).className="last";	
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0 
   window.open(theURL,winName,features);
 }
function photo(imagem,tipo) {
	if (tipo==2) {
		MM_openBrWindow('photo.htm?' + imagem ,'winPhoto','scrollbars=no,width=390,height=530')
	} else {
		MM_openBrWindow('photo.htm?' + imagem ,'winPhoto','scrollbars=no,width=400,height=300')
	}
}