		var banners = new Array();
		        
		        banners[banners.length] = new mybanner("/img/banner/roma2012.gif","/info/convegni/roma2012/programma.shtml",false);
		        banners[banners.length] = new mybanner("/img/banner/al-per-i-giovani_ok.gif","/info/perigiovani/",false);
			banners[banners.length] = new mybanner("/img/cp/lidl_08_300x60.gif","/lau/cercaofferta/cp/lidl_retail_11.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/eni_300x60.gif","/lau/cercaofferta/cp/eni_11.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/ey2011_300x60.gif","/lau/cercaofferta/cp/ey_11.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/redoddity_bfc_300x60.gif","/lau/postlaurea/cp/redoddity_bfc.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/cineca_300x60.gif","/lau/cercaofferta/cp/cineca_11.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/24ore_businessschool_300x60.gif","/lau/postlaurea/cp/24oreformazione_11.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/pwc_11_300x60.gif","/lau/cercaofferta/cp/pwc_11.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/alleanzaer_300x60.gif","/lau/cercaofferta/cp/alleanzaer_11.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/accenture_300x60.gif","http://track.did-it.com/n?lid=81106542&tid=4405da5ee09cf&url=http://www.almalaurea.it/lau/cercaofferta/cp/accenture_11.shtml?LID=81106542",false);
			
		    
			
   
		var buttons = new Array();
			buttons[buttons.length] = new mybanner("/img/cp/lidl_08_120x90.gif","/lau/cercaofferta/cp/lidl_retail_11.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/eniecu_2011_120x90.gif","/lau/cercaofferta/cp/eni_11.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/ey2011_120x90.gif","/lau/cercaofferta/cp/ey_11.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/cineca_120x90.gif","/lau/cercaofferta/cp/cineca_11.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/24ore_businessschool_120x90.gif","/lau/postlaurea/cp/24oreformazione_11.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/pwc_11_120x90.gif","/lau/cercaofferta/cp/pwc_11.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/acc_120x90.gif","http://track.did-it.com/n?lid=81106542&tid=4405da5ee09cf&url=http://www.almalaurea.it/lau/cercaofferta/cp/accenture_11.shtml?LID=81106542",false);
			
    
                var time = new Date();
    
                var contatore=(time.getTime())%(banners.length);
                var bcount2 = (time.getTime())%(buttons.length);;
    var contpiccolo=0
                var indirizzo="#";
    function getImage() {
      contatore++;
      if (contatore >= banners.length) contatore=0;
      if (isNaN(contatore))contatore=0;
      indirizzo = banners[contatore].url;
      
      if (document.area) {
      	document.area.src= banners[contatore].img;
      } else if (document.getElementById) {
      	document.getElementById("area").src= banners[contatore].img;
      }
      
      
	bcount2++;
	if (bcount2 >= buttons.length) bcount2=0;
	if (isNaN(bcount2)) bcount2=0;
	
	if (document.sponsorship) document.sponsorship.src = buttons[bcount2].img;
	else if (document.getElementById) document.getElementById("sponsorship").src= buttons[bcount2].img;

    }
    
    function mybanner(img,url,popup) {
      this.img = img;
      this.url = url;
      this.popup = popup;
    }
    function gobanner() {
      if (contatore < 0) return void(0);
      if (banners[contatore].popup)
        window.open(banners[contatore].url,'','resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,location=yes,status=yes');
      else
        document.location.href = banners[contatore].url;
    }
    function gobutton() {
      if (bcount2 < 0) return void(0);
      if (buttons[bcount2].popup)
        window.open(buttons[bcount2].url,'','resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,location=yes,status=yes');
      else
        document.location.href = buttons[bcount2].url;
    }

    
    getImage();
    setInterval('getImage()', 19000);

