		var banners = new Array();
			banners[banners.length] = new mybanner("/img/cp/hdemia_300x60.gif","/lau/postlaurea/cp/hdemia_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/umbria_300x60.gif","/lau/borse/cp/umbria_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/scpolbo_300x60.gif","/lau/postlaurea/cp/spbo_lm_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/sif_300x60.gif","/lau/borse/cp/sif_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/mastermebs_300x60.gif","/lau/cercaofferta/cp/mastermebs_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/unipr_horeca10_300x60.gif","/lau/postlaurea/cp/unipr_horeca_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/sll_300x60.gif","/lau/cercaofferta/cp/sllbo_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/istud_300x60.gif","/lau/postlaurea/cp/istud_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/almagraduate_300x60.gif","/lau/postlaurea/cp/almagraduate_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/unipr_retail7_300x60.gif","/lau/postlaurea/cp/unipr_retail_10.shtml",false);
			//banners[banners.length] = new mybanner("/img/cp/jmtorino_300x60.gif","/lau/cercaofferta/cp/jobmeeting_torino10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/rsm_alimenta_300x60.gif","/lau/postlaurea/cp/unirsm_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/ow_300x60.gif","/lau/cercaofferta/cp/objectway_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/fondazioneclub_300x60.gif","/lau/borse/cp/club_fondazionevenezia_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/alleanzaer_300x60.gif","/lau/cercaofferta/cp/alleanzaer_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/pwc_300x60.gif","/lau/cercaofferta/cp/pwc_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/ey_09_300x60.gif","/lau/cercaofferta/cp/ey_10.shtml",false)
			banners[banners.length] = new mybanner("/img/cp/acc_300x60.gif","/lau/cercaofferta/cp/accenture_10.shtml",false);
			banners[banners.length] = new mybanner("/img/cp/ateneoimpresa_300x60.gif","/lau/postlaurea/cp/ateneo_impresa_10.shtml",false);
			
			
			
			
   
   
		var buttons = new Array();
			buttons[buttons.length] = new mybanner("/img/cp/hdemia_120x90.gif","/lau/postlaurea/cp/hdemia_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/umbria_120x90.gif","/lau/borse/cp/umbria_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/scpolbo_120x90.gif","/lau/postlaurea/cp/spbo_lm_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/unipr_horeca10_120x90.gif","/lau/postlaurea/cp/unipr_horeca_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/sll_120x90.gif","/lau/cercaofferta/cp/sllbo_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/istud_90x120.gif","/lau/postlaurea/cp/istud_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/almagraduate_120x90.gif","/lau/postlaurea/cp/almagraduate_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/unipr_retail7_120x90_bis.gif","/lau/postlaurea/cp/unipr_retail_10.shtml",false);
			//buttons[buttons.length] = new mybanner("/img/cp/jmtorino_120x90.gif","/lau/cercaofferta/cp/jobmeeting_torino10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/rsm_alimenta_120x90.gif","/lau/postlaurea/cp/unirsm_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/ow_120x90.gif","/lau/cercaofferta/cp/objectway_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/fondazioneclub_120x90.gif","/lau/borse/cp/club_fondazionevenezia_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/alleanzaer_120x90.gif","/lau/cercaofferta/cp/alleanzaer_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/pwc_120x90.gif","/lau/cercaofferta/cp/pwc_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/sole24orebs_120x90.gif","/lau/postlaurea/cp/sole24ore_master_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/acc_tech_120x90.gif","/lau/cercaofferta/cp/accenture_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/cineca_07_120x90.gif","/lau/cercaofferta/cp/cineca_10.shtml",true);
			buttons[buttons.length] = new mybanner("/img/cp/ey_09_120x90.gif","/lau/cercaofferta/cp/ey_10.shtml",false);
			buttons[buttons.length] = new mybanner("/img/cp/acc_120x90.gif","/lau/cercaofferta/cp/accenture_10.shtml",false);
		        buttons[buttons.length] = new mybanner("/img/cp/ateneoimpresa_120x90.gif","/lau/postlaurea/cp/ateneo_impresa_10.shtml",true);
		    
			
			
		 
    
                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()', 12500);
