theimg = document.getElementById('galim1'); theimg2 = document.getElementById('galim2'); var img = new Array(); img[2] = new Image(); img[2].src = 'i/g3/pic01.jpg'; img[3] = new Image(); img[3].src = 'i/g3/pic02.jpg'; img[4] = new Image(); img[4].src = 'i/g3/pic03.jpg'; marker = 'i/g3/pic01.jpg'; marker2 = 'i/g3/pic02.jpg'; function nextimg(){ if(marker2=='i/g3/pic01.jpg'){ marker = marker2; marker2 = 'i/g3/pic02.jpg'; theimg.src = marker; counter=100; newop = counter/100; theimg.style.opacity = newop; ieop = 'alpha(opacity=' + counter + ')'; theimg.style.filter = ieop; l = setTimeout('theimg2.src = marker2',500); t = setTimeout('fadedown()',2000); } else{ if(marker2=='i/g3/pic02.jpg'){ marker = marker2; marker2 = 'i/g3/pic03.jpg'; theimg.src = marker; counter=100; newop = counter/100; theimg.style.opacity = newop; ieop = 'alpha(opacity=' + counter + ')'; theimg.style.filter = ieop; l = setTimeout('theimg2.src = marker2',500); t = setTimeout('fadedown()',2000); } else{ if(marker2=='i/g3/pic03.jpg'){ marker = marker2; marker2 = 'i/g3/pic01.jpg'; theimg.src = marker; counter=100; newop = counter/100; theimg.style.opacity = newop; ieop = 'alpha(opacity=' + counter + ')'; theimg.style.filter = ieop; l = setTimeout('theimg2.src = marker2',500); t = setTimeout('fadedown()',2000); } } } } counter = 100; function fadeup(){ counter=100; newop = counter/100; theimg.style.opacity = newop; ieop = 'alpha(opacity=' + counter + ')'; theimg.style.filter = ieop; t = setTimeout('fadedown()',2000); } function fadedown(){ counter--; newop = counter/100; theimg.style.opacity = newop; ieop = 'alpha(opacity=' + counter + ')'; theimg.style.filter = ieop; if(counter>0){ t = setTimeout('fadedown()',15); } else{ nextimg(); } } t = setTimeout('fadedown()',2000);