
  
  // Set up the image files to be used.
  var theImages = new Array() // do not change this
  
  theImages[0] = 'random_1.jpg'
  theImages[1] = 'random_2.jpg'
  theImages[2] = 'random_3.jpg'
  theImages[3] = 'random_4.jpg'
  theImages[4] = 'random_5.jpg'
  theImages[5] = 'random_6.jpg'	  

  
  var j = 0
  var p = theImages.length;
  var preBuffer = new Array()
  for (i = 0; i < p; i++){
     preBuffer[i] = new Image()
     preBuffer[i].src = theImages[i]
  }
  var whichImage = Math.round(Math.random()*(p-1));
  function showImage(){
  document.write('<img src="images/'+theImages[whichImage]+'" alt="Marketing territoriale del Sud Pontino"><br />');
  }
  
  //  End -->

	/************************** utilities:rollover   ***************************************/
	             var browserVer=parseInt(navigator.appVersion);
               var InternetExplorer=navigator.appName.indexOf("Microsoft")!=-1;
               var NetscapeNavigator=navigator.appName.indexOf("Netscape")!=-1;
               var dynamicImg=(browserVer>=3)&&(InternetExplorer||NetscapeNavigator);
               
               // funzione di appoggio per allocare immagini
               function allocImg(name,x,y)
               {
                       temp=new Image(x,y);
                       temp.src=name;
                       return temp;
               }
               
               // dichiarazione immagini
               if (dynamicImg) {
                       sportello_off=allocImg("/sudpontino/images/sportello_off.gif",442,15);
                       sportello_on=allocImg("/sudpontino/images/sportello_on.gif",442,15);
					   
  						 	}
                       
               // stato attivo
               function bon(imgName,num)       {
                   if (dynamicImg)             document[imgName+num].src=eval(imgName+ "_on.src");       
               }
               
               // stato normale
               function boff(imgName,num)      {
                   if (dynamicImg)             document[imgName+num].src=eval(imgName+ "_off.src");      
               }

 /*********************** utilities fine ***********************************************/