var divVisible='';

function showSubMenu(submenu){
	var rect = document.getElementById(submenu);
	if(divVisible!='')
	     divVisible.style.display='none';
	rect.style.display='block';
	divVisible=rect;
}

function toggle(el){
	var rect = document.getElementById(el);
	if(rect.style.display=='none')
	     divVisible.style.display='block';
	else rect.style.display='none';
}

function doPopUp(url, name, pref){
   popupWin = window.open(url, name, pref); 
}

/*pagine biografie*/
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",0);
}
function low(which2){
clearInterval(highlighting);
which2.filters.alpha.opacity=0;
}

function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=100;
else if (window.highlighting)
clearInterval(highlighting);
}

function openWindow(url, name) {
  doPopUp(url, name, 'scrollbars=1,resizable=0,toolbar=0,width=680,height=500');
} 
/*fine pagine biografie*/

/*gallerie*/
function popUp(url,name,lar,alt)
{
   window.open(url,name,'width='+lar+', height='+alt+' scrollbars=yes, resizable=yes, toolbar=no');
}

function popupWin(url, name, lar, alt, scroll){
   window.open(url,name,'width='+lar+', height='+alt+' scrollbars='+scoll+', resizable=yes, toolbar=no');
}

function sopenWindow(url, name) {
  doPopUp(url, name, 'scrollbars=yes,resizable=yes,toolbar=0,width=680,height=500');
} 