//visualizza div

function hideLayer() {
    for (var i = 0; i < arguments.length; i++) {
        var e = document.getElementById(arguments[i]);
        e.style.display = 'none';
    }
}

function showLayer() {
    for (var i = 0; i < arguments.length; i++) {
        var e = document.getElementById(arguments[i]);
        e.style.display = 'block';
    }
}
	
//stampa
function printpage()
{
window.print()
}

function selmenu(indice) {
	for(var i=0; i<4; i++)
	{
		document.getElementById("menuvis_"+i+"_sel").style.display = "none";
		document.getElementById("menuvis_"+i+"_nosel").style.display = "";		
	}
	document.getElementById("menuvis_"+indice+"_sel").style.display = "";
	document.getElementById("menuvis_"+indice+"_nosel").style.display = "none";
}

function selmenu2(indice) {
}

function showPlayer(pathplayer, movie, autoplay, wi, he, playerdiv) {
		var flashvars = {};
		flashvars.videoPath = movie;
		flashvars.autoplay = autoplay;
		flashvars.skinPath = pathplayer + "SteelExternalAll.swf";
		var params = {};
		params.bgcolor = "#ffffff";
		var attributes = {};
		attributes.id = "playervideo";
		attributes.name = "playervideo";
		swfobject.embedSWF(pathplayer+"player.swf", playerdiv, wi, he, "8.0.0", false, flashvars, params, attributes);
}

function showPlayer2(pathplayer, movie, autoplay, wi, he, playerdiv) {
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
	} else {
	  AC_FL_RunContent(
	    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
	    'width', wi,
	    'height', he,
	    'src', 'player',
	    'quality', 'high',
	    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
	    'align', 'middle',
	    'play', 'true',
	    'loop', 'true',
	    'scale', 'showall',
	    'wmode', 'window',
	    'devicefont', 'false',
	    'id', 'player',
	    'bgcolor', '#ffffff',
	    'name', 'player',
	    'menu', 'true',
	    'allowScriptAccess','sameDomain',
	    'movie', pathplayer+"player",
	    'salign', '',
	    'FlashVars', 'videoPath='+movie+'&autoplay='+autoplay
		);
	}
}



function menuOver(indice)
{
	for(i=1;i<=7;i++)
		document.getElementById('menu_hidden_'+i).style.display='none';
	document.getElementById('menu_hidden_'+indice).style.display='';
	document.getElementById('menu_selected').style.display='none';
}


function menuOut(indice)
{
	for(i=1;i<=7;i++)
		document.getElementById('menu_hidden_'+i).style.display='none';
	document.getElementById('menu_selected').style.display='';
}

function switchTab(indice,nelem)
{
	for(i=0;i<=nelem;i++) {
		document.getElementById('div_content_'+i).style.display='none';	
		document.getElementById('linktab_'+i).style.fontWeight='normal';
	}
	document.getElementById('div_content_'+indice).style.display='';
	document.getElementById('linktab_'+indice).style.fontWeight='bold';
}

function display_popup(nomediv, titolo, larghezza, altezza) {
	mywindow=window.open("/popup.htm?nomeDiv="+nomediv,titolo,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+larghezza+",height="+altezza);
}

function display_gallery_popup() {
	mywindow=window.open("/gallery_popup.htm","Gallery","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=621,height=651");
}