//Fade-in image slideshow- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var slideshow_width='250px' //SET IMAGE WIDTH
var slideshow_height='177px' //SET IMAGE HEIGHT
var pause=3500 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages0=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages0[0]="images/HoleInOne_Royal.jpg"
fadeimages0[1]="images/Golf01.jpg"
fadeimages0[2]="images/Golf02.jpg"
fadeimages0[2]="images/Golf03.jpg"
//fadeimages0[0]='<img src=images/HoleInOne_Royal.jpg><br> ËÅÑ¡ÊÙµÃ¡ÒÃÊÃéÒ§áººàÊ×éÍ¼éÒ (á¾·à·ÔÃì¹) 180 ªÑèÇâÁ§';
//fadeimages0[1]='<img src="images/cm-lpGolfCup.jpg"> <br>Ëfdgdfgdfgfdg (á¾·à·ÔÃì¹) 180 ªÑèÇâÁ§';
//fadeimages0[2]='<img src="images/Gassun18.jpg"> <br>dfgfdgdfgfdgfd¾·à·ÔÃì¹) 180 ªÑèÇâÁ§';
////NO need to edit beyond here/////////////

var preloadedimages0=new Array()
for (p=0;p<fadeimages0.length;p++){
preloadedimages0[p]=new Image()
preloadedimages0[p].src=fadeimages0[p]
}

var ie4=document.all
var dom=document.getElementById

if (ie4||dom)
document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div  id="canvas00" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas01" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div></div>')
else
document.write('<img name="defaultslide0" src="'+fadeimages0[0]+'">')

var curpos0=10
var degree0=10
var curcanvas0="canvas00"
var curimageindex0=0
var nextimageindex0=1


function fadepic0(){
if (curpos0<100){
curpos0+=10
if (tempobj0.filters)
tempobj0.filters.alpha.opacity=curpos0
else if (tempobj0.style.MozOpacity)
tempobj0.style.MozOpacity=curpos0/100
}
else{
clearInterval(dropslide0)
nextcanvas0=(curcanvas0=="canvas00")? "canvas00" : "canvas01"
tempobj0=ie4? eval("document.all."+nextcanvas0) : document.getElementById(nextcanvas0)
tempobj0.innerHTML='<img src="'+fadeimages0[nextimageindex0]+'">'
nextimageindex0=(nextimageindex0<fadeimages0.length-1)? nextimageindex0+1 : 0
setTimeout("rotateimage0()",pause)
}
}

function rotateimage0(){
if (ie4||dom){
resetit0(curcanvas0)
var crossobj0=tempobj0=ie4? eval("document.all."+curcanvas0) : document.getElementById(curcanvas0)
crossobj0.style.zIndex++
var temp0='setInterval("fadepic0()",50)'
dropslide0=eval(temp0)
curcanvas0=(curcanvas0=="canvas00")? "canvas01" : "canvas00"
}
else
document.images.defaultslide0.src=fadeimages0[curimageindex0]
curimageindex0=(curimageindex0<fadeimages0.length-1)? curimageindex0+1 : 0
}

function resetit0(what){
curpos0=10
var crossobj0=ie4? eval("document.all."+what) : document.getElementById(what)
if (crossobj0.filters)
crossobj0.filters.alpha.opacity=curpos0
else if (crossobj0.style.MozOpacity)
crossobj0.style.MozOpacity=curpos0/100
}

function startit0(){
var crossobj0=ie4? eval("document.all."+curcanvas0) : document.getElementById(curcanvas0)
crossobj0.innerHTML='<img src="'+fadeimages0[curimageindex0]+'">'
rotateimage0()
}

if (ie4||dom)
window.onload=startit0
else
setInterval("rotateimage0()",pause)
