function cambia_foto(dove,cosa){
		
		
		var elem = document.getElementById(dove);
		
		if(dove=="prima_foto"){
		elem.style.backgroundImage="url(../images/fotodb/normal/"+cosa+")"
		}else{
		elem.style.backgroundImage="url(../images/fotodb/big/"+cosa+")"
		}
		
		elem.style.backgroundRepeat="no-repeat"
		
		elem.style.backgroundPosition="center";
		elem.style.backgroundColor="#b1b1b1";
		
		
}

function sfondo_evidenziato(come,nome){

var elem = document.getElementById(nome);

if(come==true){
//elem.style.backgroundColor="#8d8d8d";
elem.style.backgroundColor="#b5b5b5";
}else{
elem.style.backgroundColor="#e5e5e5";

}



}



function sfondo_alpha(come,nome){

var elem = document.getElementById(nome);

if(come==true){
if (navigator.appName == "Netscape"){
elem.style.opacity= 0.6;
}else{

//elem.style.filter=Alpha(opacity=60);
}

}else{
if (navigator.appName == "Netscape"){
elem.style.opacity= 1;
}else{
//elem.style.filter=Alpha(opacity=100);
}


}



}


function musicaXXXX( ) 
{
name="musica"
path="/gestione"
value="si";
 expires="";
secure=""
domain="";
document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}



/*function Delete_Cookie( name, path, domain ) {
if ( Get_Cookie( name ) ) document.cookie = name + "=" +
( ( path ) ? ";path=" + path : "") +
( ( domain ) ? ";domain=" + domain : "" ) +
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}
*/
function Set_Cookie( name, value, expires, path, domain, secure ) 
{
//delete_Cookie("musica","/gestione",""); 

// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct 
expires time, the current script below will set 
it for x number of days, to make it for hours, 
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
	 


 

 
 function musica( ) 
{
name="musica"
path="/gestione"
value="si";
 expires="";
secure=""
domain="";
document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}





function creamusica(){

		name="musica"
path="/gestione"
value="si";
 expires="";
secure=""
domain="";
document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );

}









	function creamusicaXXXX(musica_da_car){
	alert(musica_da_car)
		//
		
		name="musica"
path="/gestione"
value="si";
 expires="";
secure=""
domain="";
document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
		
		//
			 parent.musica.document.writeln("<head>"+
        "<title>zeus</title>"+
        "</head>"+

"<body background='../images/sfondo_small.jpg' marginwidth='0' marginheight='0' leftmargin='0' topmargin='0'onLoad='musica()'>"+
"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0' width='5' height='32'>"+
  "  <param name='src' value='/swf/musica_remota.swf?musica_da_caricare="+musica_da_car+"'>"+
    "<embed src='/swf/musica_remota.swf?musica_da_caricare="+musica_da_car+"' pluginspage='http://www.macromedia.com/shockwave/download/' type='application/x-shockwave-flash' width='5' height='32'>"+
   " </embed>"+
  "</object>"+

"</body>");