var imgsrc;
imgsrc=new Array();
imgsrc[1]="Imatges/secretaria1.jpg";
imgsrc[2]="Imatges/secretaria2.jpg";
imgsrc[3]="Imatges/institucio1.jpg";
imgsrc[4]="Imatges/institucio2.jpg";
imgsrc[5]="Imatges/local1.jpg";
imgsrc[6]="Imatges/local2.jpg";
imgsrc[7]="Imatges/escola1.jpg";
imgsrc[8]="Imatges/escola2.jpg";
imgsrc[9]="Imatges/instala1.jpg";
imgsrc[10]="Imatges/instala2.jpg";
imgsrc[11]="Imatges/rector1.gif";
imgsrc[12]="Imatges/rector2.gif";
imgsrc[13]="Imatges/escolar1.gif";
imgsrc[14]="Imatges/escolar2.gif";
imgsrc[15]="Imatges/direccio1.gif";
imgsrc[16]="Imatges/direccio2.gif";
imgsrc[17]="Imatges/noticies1.jpg";
imgsrc[18]="Imatges/noticies2.jpg";
//imgsrc[19]="Imatges/galeria1.jpg";
//imgsrc[20]="Imatges/galeria2.jpg";
imgsrc[21]="Imatges/personal1.gif";
imgsrc[22]="Imatges/personal2.gif";
imgsrc[23]="Imatges/presenta1.gif";
imgsrc[24]="Imatges/presenta2.gif";
imgsrc[25]="Imatges/serveis1.gif";
imgsrc[26]="Imatges/serveis2.gif";
imgsrc[27]="Imatges/tecnic1.gif";
imgsrc[28]="Imatges/tecnic2.gif";
imgsrc[29]="Imatges/educatius1.gif";
imgsrc[30]="Imatges/educatius2.gif";
imgsrc[31]="Imatges/aspectes1.gif";
imgsrc[32]="Imatges/aspectes2.gif";
imgsrc[33]="Imatges/calendari1.gif";
imgsrc[34]="Imatges/calendari2.gif";
imgsrc[35]="Imatges/horari1.gif";
imgsrc[36]="Imatges/horari2.gif";
imgsrc[37]="Imatges/matinal1.gif";
imgsrc[38]="Imatges/matinal2.gif";
imgsrc[39]="Imatges/biblioteca1.gif";
imgsrc[40]="Imatges/biblioteca2.gif";

imgsrc[41]="Imatges/complement1.gif";
imgsrc[42]="Imatges/complement2.gif";
imgsrc[43]="Imatges/extra1.gif";
imgsrc[44]="Imatges/extra2.gif";
imgsrc[45]="Imatges/estiu1.gif";
imgsrc[46]="Imatges/estiu2.gif";

imgsrc[47]="Imatges/cartellera1.png";
imgsrc[48]="Imatges/cartellera2.png";
imgsrc[49]="Imatges/premsa1.png";
imgsrc[50]="Imatges/premsa2.png";

imgsrc[51]="Imatges/lpremsa1.png";
imgsrc[52]="Imatges/lpremsa2.png";

var img;

img =new Array();
var i;

for (i=0; i< imgsrc.length; i++) {
  img[i]=new Image();
  img[i].src=imgsrc[i];
}

function canviarImatge(num,imatge) {
  {
    document[imatge].src=img[num].src;
  }
}
