function preload() {
  if (!document.images) return;
  var wl = new Array();
  var arguments = preload.arguments;
  for (var i = 0; i < arguments.length; i++) {
    wl[i] = new Image();
    wl[i].src = arguments[i];
  }
}





		
		var agent = navigator.userAgent.toLowerCase();
	mac = (agent.indexOf("mac")!=-1);
	ns4=(document.layers)? true:false
	ie4=(document.all)? true:false
        function nuovafinestra11(url)
        {window.open(url,'nuovafinestra11','toolbar=no,location=0,directories=0,status=no,maximize=no,menubar=no,scrollbars=yes,resizeable=no,width=650,height=560,top=60,left=100');}


var photos=new Array()
var which=0

/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
photos[0]="immagini/916.jpg"
photos[1]="immagini/921.jpg"
photos[2]="immagini/926.jpg"
photos[3]="immagini/927.jpg"
photos[4]="immagini/929.jpg"
photos[5]="immagini/937.jpg"
photos[6]="immagini/947.jpg"
photos[7]="immagini/992.jpg"
photos[8]="immagini/backstage014.jpg"
photos[9]="immagini/backstage028.jpg"
photos[10]="immagini/backstage020.jpg"
photos[11]="immagini/backstage018.jpg"
photos[12]="immagini/backstage021.jpg"
photos[13]="immagini/er_23_5_09_scena198.jpg"
photos[14]="immagini/er_23_5_09_scena179.jpg"
photos[15]="immagini/er_23_5_09_scena183.jpg"
photos[16]="immagini/er_23_5_09_scena187.jpg"
photos[17]="immagini/er_23_5_09_scena188.jpg"
photos[18]="immagini/scena042.jpg"
photos[19]="immagini/er_23_5_09_scena195.jpg"

function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
}
}
function SwitchImg()
{ //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
        store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
       switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} //end

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
}
function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
}
else window.status='End of gallery'
}
