
function changeImage(n) {
debug(n); 

document.getElementById('nva').style.backgroundImage = 'src(img/headnav/head-lazienda.jpg)';
document.getElementById('nvs').style.backgroundImage = 'img/headnav/head-servizi.jpg';
document.getElementById('nvc').style.backgroundImage = 'img/headnav/head-contatti.jpg';
document.getElementById('nvh').style.backgroundImage = 'img/headnav/head-home.h.jpg';
//document.getElementById('nvh').style.visibility = 'hidden';
var nn = n;
switch(nn) {
case 'chisiamo':
	debug('-'); 
	document.getElementById('nva').style.backgroundImage = 'img/headnav/head-lazienda.h.jpg';
	document.getElementById('nva').style.className = 'a';
	break;
case 'cosafacciamo':
	debug('-'); 
	document.getElementById('nvs').style.backgroundImage = 'img/headnav/head-servizi.h.jpg';
	document.getElementById('nvs').style.className = 'a';
	break;
case 'contatti':
	debug('-'); 
	document.getElementById('nvc').style.backgroundImage = 'img/headnav/head-contatti.h.jpg';
	document.getElementById('nvc').style.className = 'a';
	break;
default:
	debug('-'); 
	document.getElementById('nvh').style.backgroundImage = 'img/headnav/head-home.h.jpg';
	document.getElementById('nvh').style.className = 'a';
}
	debug('/end'); 


}

	debug('start/'); 

urlPath=window.location.pathname; 
urlPathArray = urlPath.split('/'); 
var ln = urlPathArray.length-1;
urlPath1=urlPathArray[ln]; 
urlPath2=urlPath1.split('.htm'); 
thispg=urlPath2[0];
changeImage(urlPath2[0]); 
document.getElementById('nvs').style.backgroundImage = "url('img/headnav/head-servizi.jpg')";

var movieName = "bande";

function thisMovie(movieName) {
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }	else {
    return document[movieName]
  }
}

function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}

function stopmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).StopPlay();
  }
}

function gosrvHIJACK(w) {

var lb = 's' + w;
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).TGotoLabel("_level0/",lb);
thisMovie(movieName).Play();
}
}

function goblnk() {
var lb = 'blank';
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).TGotoLabel("_level0/",lb);
}
}


