/*crear imatges mapes*/
map1=new Image();
map1.src="../imatges/map_europa.gif";
map2=new Image();
map2.src="../imatges/map_catalunya.gif";
map3=new Image();
map3.src="../imatges/map_tarragona.gif";
map4=new Image();
map4.src="../imatges/map_conca.jpg";

var cod=0;
/*ampliar mapa*/
function start(){
if(cod==0){
return mapa1();
}
if(cod==1){
return mapa2();
}
if(cod==2){
return mapa3();
}
if(cod==3){
return mapa4();
}
}
/*reduir mapa*/
function torna(){
if(cod==2){
return mapa1();
}
if(cod==3){
return mapa2();
}
if(cod==0){
return mapa3();
}
}

/*canvi d'imatges*/
function mapa1(){
document.mapa.src=map1.src;
cod=1;
}

function mapa2(){
document.mapa.src=map2.src;
cod=2;
}

function mapa3(){
document.mapa.src=map3.src;
cod=3;
}

function mapa4(){
document.mapa.src=map4.src;
cod=0;
}



