// JavaScript Document
/* Funcoes para o menu */
/*over = function() {
	var sfEls = document.getElementById("menu_e").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", over);

over = function() {
	var sfEls = document.getElementById("submenu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", over);*/

/* função para collapse/expand */

function abrir(URL,WIDTH,HEIGHT) 
{
  // var width = 780;
  // var height = 500;

   var left = 99;
   var top = 99;

   window.open(URL,'Galeria','width='+WIDTH+', height='+HEIGHT+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=yes, fullscreen=no');
}

function expandCollapseII(divparse,button,divfull){
	
  var bt      = document.getElementById(button);
  var parcial = document.getElementById(divparse);
  var full    = document.getElementById(divfull);
    
  if(!parcial)return true;
  if(parcial.style.display=="none"){ 
  	parcial.style.display="block";
	full.style.display="none";
  }else{ 
  	parcial.style.display="none";
	full.style.display="block";
  }
  
  if(bt.value=="+"){ bt.value="-" }
  else{ bt.value="+" }
  
  return true;
}

function expandCollapse(a,x){
	
  var bt = document.getElementById(x);
  var e = document.getElementById(a);
    
  if(!e)return true;
  if(e.style.display=="none"){ e.style.display="block" }
  else{ e.style.display="none" }
  
  if(bt.value=="+"){ bt.value="-" }
  else{ bt.value="+" }
  
  return true;
}
