ttheimg = document.getElementById('galim1');
ttheimg2 = document.getElementById('galim2');
var timg = new Array();

 
timg[2] = new Image();
timg[2].src = 'i/g3/im01.jpg';
 
 
timg[3] = new Image();
timg[3].src = 'i/g3/im02.jpg';
 
 
timg[4] = new Image();
timg[4].src = 'i/g3/im03.jpg';
 
 
timg[5] = new Image();
timg[5].src = 'i/g3/im04.jpg';
 

tmarker = 'i/g3/im01.jpg';
tmarker2 = 'i/g3/im02.jpg';

function tnextimg(){
if(tmarker2=='i/g3/im01.jpg'){
tmarker = tmarker2;
tmarker2 = 'i/g3/im02.jpg';
ttheimg.src = tmarker;
tcounter=100;
tnewop = tcounter/100;
ttheimg.style.opacity = tnewop;
tieop = 'alpha(opacity=' + tcounter + ')';
ttheimg.style.filter = tieop;
tl = setTimeout('ttheimg2.src = tmarker2',500);
tt = setTimeout('tfadedown()',5000);
}
else{
if(tmarker2=='i/g3/im02.jpg'){
tmarker = tmarker2;
tmarker2 = 'i/g3/im03.jpg';
ttheimg.src = tmarker;
tcounter=100;
tnewop = tcounter/100;
ttheimg.style.opacity = tnewop;
tieop = 'alpha(opacity=' + tcounter + ')';
ttheimg.style.filter = tieop;
tl = setTimeout('ttheimg2.src = tmarker2',500);
tt = setTimeout('tfadedown()',5000);
}



else{
if(tmarker2=='i/g3/im03.jpg'){
tmarker = tmarker2;
tmarker2 = 'i/g3/im04.jpg';
ttheimg.src = tmarker;
tcounter=100;
tnewop = tcounter/100;
ttheimg.style.opacity = tnewop;
tieop = 'alpha(opacity=' + tcounter + ')';
ttheimg.style.filter = tieop;
tl = setTimeout('ttheimg2.src = tmarker2',500);
tt = setTimeout('tfadedown()',5000);
}




else{
if(tmarker2=='i/g3/im04.jpg'){
tmarker = tmarker2;
tmarker2 = 'i/g3/im01.jpg';
ttheimg.src = tmarker;
tcounter=100;
tnewop = tcounter/100;
ttheimg.style.opacity = tnewop;
tieop = 'alpha(opacity=' + tcounter + ')';
ttheimg.style.filter = tieop;
tl = setTimeout('ttheimg2.src = tmarker2',500);
tt = setTimeout('tfadedown()',5000);
}


}
}
}
}


tcounter = 100;

function tfadeup(){
tcounter=100;
tnewop = tcounter/100;
ttheimg.style.opacity = tnewop;
tieop = 'alpha(opacity=' + tcounter + ')';
ttheimg.style.filter = tieop;
tt = setTimeout('tfadedown()',5000);
}

function tfadedown(){
tcounter--;
tnewop = tcounter/100;
ttheimg.style.opacity = tnewop;
tieop = 'alpha(opacity=' + tcounter + ')';
ttheimg.style.filter = tieop;
if(tcounter>0){
tt = setTimeout('tfadedown()',15);
}
else{
tnextimg();
}
}

tt = setTimeout('tfadedown()',5000);



