var posicio_visible=0
var posicio_infraroig=0
var posicio_vapor=0

function veure_imatge_visible()
{
var cadena=new String(posicio_visible)
if (!document.images)
return 
if (cadena.length==1)
   cadena="00"+cadena;
if (cadena.length==2)
   cadena="0"+cadena;
   
cadena="meteosat_visible/meteosat_visible"+cadena+".jpg";
document.images.visible.src=cadena;
}

function endavant_visible()
{
if (posicio_visible<23){ 
posicio_visible=posicio_visible+1
veure_imatge_visible()
}
}

function endarrera_visible()
{
if (posicio_visible>0) { 
posicio_visible=posicio_visible-1;
veure_imatge_visible()
}
}

function endavant10_visible()
{
if (posicio_visible<14){ 
posicio_visible=posicio_visible+10;
}
else
{
posicio_visible=23;
}
veure_imatge_visible()
}

function endarrera10_visible()
{
if (posicio_visible>9){ 
posicio_visible=posicio_visible-10;
}
else
{
posicio_visible=0;
}
veure_imatge_visible()
}

function veure_imatge_infraroig()
{
var cadena=new String(posicio_infraroig)
if (!document.images)
return 
if (cadena.length==1)
   cadena="00"+cadena;
if (cadena.length==2)
   cadena="0"+cadena;
   
cadena="meteosat_infraroig/meteosat_ir"+cadena+".jpg";
document.images.infraroig.src=cadena;
}

function endavant_infraroig()
{
if (posicio_infraroig<23){ 
posicio_infraroig=posicio_infraroig+1
veure_imatge_infraroig()
}
}

function endarrera_infraroig()
{
if (posicio_infraroig>0) { 
posicio_infraroig=posicio_infraroig-1;
veure_imatge_infraroig()
}
}

function endavant10_infraroig()
{
if (posicio_infraroig<14){ 
posicio_infraroig=posicio_infraroig+10;
}
else
{
posicio_infraroig=23;
}
veure_imatge_infraroig()
}

function endarrera10_infraroig()
{
if (posicio_infraroig>9){ 
posicio_infraroig=posicio_infraroig-10;
}
else
{
posicio_infraroig=0;
}
veure_imatge_infraroig()
}


function veure_imatge_vapor()
{
var cadena=new String(posicio_vapor)
if (!document.images)
return 
if (cadena.length==1)
   cadena="00"+cadena;
if (cadena.length==2)
   cadena="0"+cadena;
   
cadena="meteosat_vapor/meteosat_vapor"+cadena+".jpg";
document.images.vapor.src=cadena;
}

function endavant_vapor()
{
if (posicio_vapor<23){ 
posicio_vapor=posicio_vapor+1
veure_imatge_vapor()
}
}

function endarrera_vapor()
{
if (posicio_vapor>0) { 
posicio_vapor=posicio_vapor-1;
veure_imatge_vapor()
}
}

function endavant10_vapor()
{
if (posicio_vapor<14){ 
posicio_vapor=posicio_vapor+10;
}
else
{
posicio_vapor=23;	
}
veure_imatge_vapor()
}

function endarrera10_vapor()
{
if (posicio_vapor>9){ 
posicio_vapor=posicio_vapor-10;
}
else
{
posicio_vapor=0;	
}
veure_imatge_vapor()
}

function ultima_visible()
{
posicio_visible=23;
veure_imatge_visible();
}

function primera_visible()
{
posicio_visible=0;
veure_imatge_visible();
}

function ultima_infraroig()
{
posicio_infraroig=23;
veure_imatge_infraroig();
}

function primera_infraroig()
{
posicio_infraroig=0;
veure_imatge_infraroig();
}

function ultima_vapor()
{
posicio_vapor=23;
veure_imatge_vapor();
}

function primera_vapor()
{
posicio_vapor=0;
veure_imatge_vapor();
}