	//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='463px' //SET IMAGE WIDTH
var slideshow_height='311px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages0=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages0[0]="./imagesBEACHES-H45x3/Ken_on_curve_S_Thailand_crop_H45x3-BS.jpg"
fadeimages0[1]="./imagesBEACHES-H45x3/Krabi_resort_S_Thailand_H45x3-BS.jpg"
fadeimages0[2]="./imagesBEACHES-H45x3/Ken_longtail_crossing_S_Thailand_cropH45x3-BS.jpg"
fadeimages0[3]="./imagesBEACHES-H45x3/Beach_sunset_S_Thailand_H45x3-BS.jpg"
fadeimages0[4]="./imagesBEACHES-H45x3/RR_mc_front_stupa_S_Thailand_H45x3-BS.jpg"
fadeimages0[5]="./imagesBEACHES-H45x3/High_perch_Krabi_Thailand_H45x3-BS.jpg"
fadeimages0[6]="./imagesBEACHES-H45x3/Cheroot_smoker_S_Thailand_H45x3-BS.jpg"
fadeimages0[7]="./imagesBEACHES-H45x3/Ko_Lipae_S_Thailand_H45x3-BS.jpg"
fadeimages0[8]="./imagesBEACHES-H45x3/Curvey_rice_padi_S_Thailand_H45x3-BS.jpg"
fadeimages0[9]="./imagesBEACHES-H45x3/Net_mender_S_Thailand_H45x3-BS.jpg"
fadeimages0[10]="./imagesBEACHES-H45x3/Kao_Sok_S_Thailand_H45x3-BS.jpg"
fadeimages0[11]="./imagesBEACHES-H45x3/Snorkler_S_Thailand_H45x3-BS.jpg"
fadeimages0[12]="./imagesBEACHES-H45x3/2MCs_plank_bridge_bog_S_Thailand_H45x3-BS.jpg"
fadeimages0[13]="./imagesBEACHES-H45x3/Island_hopping_S_Thailand_cropH45x3-BS.jpg"
fadeimages0[14]="./imagesBEACHES-H45x3/Monkey_helping_coconut_farmer_S_Thailand_H45x3-BS.jpg"
fadeimages0[15]="./imagesBEACHES-H45x3/Lake_sunset_S_Thailand_H45x3-BS.jpg"
fadeimages0[16]="./imagesBEACHES-H45x3/MC_through_cave_S_Thailand_H45x3-BS.jpg"
fadeimages0[17]="./imagesBEACHES-H45x3/Krabi_karst_at_dusk_S_Thailand_H45x3-BS.jpg"
fadeimages0[18]="./imagesBEACHES-H45x3/MC_for_hammock_S_Thailand_H45x3-BS.jpg"
////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)

