theimg = document.getElementById('photo'); theimg2 = document.getElementById('photo2'); var img = new Array(); img[2] = new Image(); img[2].src = 'gall4/257625-white.jpg'; img[3] = new Image(); img[3].src = 'gall4/539f.jpg'; img[4] = new Image(); img[4].src = 'gall4/934f.jpg'; img[5] = new Image(); img[5].src = 'gall4/934m.jpg'; img[6] = new Image(); img[6].src = 'gall4/dd20.jpg'; img[7] = new Image(); img[7].src = 'gall4/dp37cn.jpg'; img[8] = new Image(); img[8].src = 'gall4/ep62p.jpg'; img[9] = new Image(); img[9].src = 'gall4/hvp211.jpg'; img[10] = new Image(); img[10].src = 'gall4/kk109.jpg'; img[11] = new Image(); img[11].src = 'gall4/kk185.jpg'; img[12] = new Image(); img[12].src = 'gall4/kk403.jpg'; img[13] = new Image(); img[13].src = 'gall4/kk500.jpg'; img[14] = new Image(); img[14].src = 'gall4/kk700.jpg'; img[15] = new Image(); img[15].src = 'gall4/kk701.jpg'; img[16] = new Image(); img[16].src = 'gall4/kk730.jpg'; img[17] = new Image(); img[17].src = 'gall4/kk741.jpg'; img[18] = new Image(); img[18].src = 'gall4/kk903.jpg'; img[19] = new Image(); img[19].src = 'gall4/m5pan.jpg'; img[20] = new Image(); img[20].src = 'gall4/rc25.jpg'; img[21] = new Image(); img[21].src = 'gall4/sa22010.jpg'; img[22] = new Image(); img[22].src = 'gall4/t-1w.jpg'; img[23] = new Image(); img[23].src = 'gall4/tuffcap-2.jpg'; marker = 'gall4/257625-white.jpg'; marker2 = 'gall4/539f.jpg'; function nextimg(){ if(marker2=='gall4/257625-white.jpg'){ marker = marker2; marker2 = 'gall4/539f.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()',4000); } else{ if(marker2=='gall4/539f.jpg'){ marker = marker2; marker2 = 'gall4/934f.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()',4000); } else{ if(marker2=='gall4/934f.jpg'){ marker = marker2; marker2 = 'gall4/934m.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()',4000); } else{ if(marker2=='gall4/934m.jpg'){ marker = marker2; marker2 = 'gall4/dd20.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()',4000); } else{ if(marker2=='gall4/dd20.jpg'){ marker = marker2; marker2 = 'gall4/dp37cn.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()',4000); } else{ if(marker2=='gall4/dp37cn.jpg'){ marker = marker2; marker2 = 'gall4/ep62p.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()',4000); } else{ if(marker2=='gall4/ep62p.jpg'){ marker = marker2; marker2 = 'gall4/hvp211.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()',4000); } else{ if(marker2=='gall4/hvp211.jpg'){ marker = marker2; marker2 = 'gall4/kk109.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()',4000); } else{ if(marker2=='gall4/kk109.jpg'){ marker = marker2; marker2 = 'gall4/kk185.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()',4000); } else{ if(marker2=='gall4/kk185.jpg'){ marker = marker2; marker2 = 'gall4/kk403.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()',4000); } else{ if(marker2=='gall4/kk403.jpg'){ marker = marker2; marker2 = 'gall4/kk500.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()',4000); } else{ if(marker2=='gall4/kk500.jpg'){ marker = marker2; marker2 = 'gall4/kk700.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()',4000); } else{ if(marker2=='gall4/kk700.jpg'){ marker = marker2; marker2 = 'gall4/kk701.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()',4000); } else{ if(marker2=='gall4/kk701.jpg'){ marker = marker2; marker2 = 'gall4/kk730.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()',4000); } else{ if(marker2=='gall4/kk730.jpg'){ marker = marker2; marker2 = 'gall4/kk741.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()',4000); } else{ if(marker2=='gall4/kk741.jpg'){ marker = marker2; marker2 = 'gall4/kk903.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()',4000); } else{ if(marker2=='gall4/kk903.jpg'){ marker = marker2; marker2 = 'gall4/m5pan.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()',4000); } else{ if(marker2=='gall4/m5pan.jpg'){ marker = marker2; marker2 = 'gall4/rc25.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()',4000); } else{ if(marker2=='gall4/rc25.jpg'){ marker = marker2; marker2 = 'gall4/sa22010.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()',4000); } else{ if(marker2=='gall4/sa22010.jpg'){ marker = marker2; marker2 = 'gall4/t-1w.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()',4000); } else{ if(marker2=='gall4/t-1w.jpg'){ marker = marker2; marker2 = 'gall4/tuffcap-2.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()',4000); } else{ if(marker2=='gall4/tuffcap-2.jpg'){ marker = marker2; marker2 = 'gall4/257625-white.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()',4000); } } } } } } } } } } } } } } } } } } } } } } } counter = 100; function fadeup(){ counter=100; newop = counter/100; theimg.style.opacity = newop; ieop = 'alpha(opacity=' + counter + ')'; theimg.style.filter = ieop; t = setTimeout('fadedown()',4000); } 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()',4000);