/***********************************************
* Fade-in image slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var slideshow_width_1='260px' //SET IMAGE WIDTH
var slideshow_height_1='129px' //SET IMAGE HEIGHT
var pause_1=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages_1=new Array()
//SET 1) IMAGE PATHS, 2) optional link, 3), optional link target:
fadeimages_1[0]=["/images/gui/h2_001.jpg", "", ""] //plain image syntax
fadeimages_1[1]=["/images/gui/h2_002.jpg", "", ""] //image with link syntax
//fadeimages_1[2]=["/projects_dev/www.stream_resort.com/images/gui/006.jpg", "", ""] //image with link and target syntax

////NO need to edit beyond here/////////////

var preloadedimages_1=new Array()
for (p=0;p<fadeimages_1.length;p++){
preloadedimages_1[p]=new Image()
preloadedimages_1[p].src=fadeimages_1[p][0]
}

var ie4=document.all
var dom=document.getElementById

if (ie4||dom)
document.write('<div style="position:relative;width:'+slideshow_width_1+';height:'+slideshow_height_1+';overflow:hidden"><div  id="canvas1_0" style="position:absolute;width:'+slideshow_width_1+';height:'+slideshow_height_1+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1_1" style="position:absolute;width:'+slideshow_width_1+';height:'+slideshow_height_1+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10;visibility: hidden"></div></div>')
else
document.write('<img name="defaultslide" src="'+fadeimages_1[0][0]+'">')

var curpos_1=10
var degree_1=10
var curcanvas_1="canvas1_0"
var curimageindex_1=0
var nextimageindex_1=1

function fadepic_1(){
if (curpos_1<100){
curpos_1+=10
if (tempobj.filters)
tempobj_1.filters.alpha.opacity=curpos_1
else if (tempobj_1.style.MozOpacity)
tempobj_1.style.MozOpacity=curpos_1/101
}
else{
clearInterval(dropslide_1)
nextcanvas=(curcanvas_1=="canvas1_0")? "canvas1_0" : "canvas1_1"
tempobj_1=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj_1.innerHTML=insertimage_1(nextimageindex_1)
nextimageindex_1=(nextimageindex_1<fadeimages_1.length-1)? nextimageindex_1+1 : 0
var tempobj2_1=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj2_1.style.visibility="hidden"
setTimeout("rotateimage_1()",pause_1)
}
}

function insertimage_1(i){
var tempcontainer_1=fadeimages_1[i][1]!=""? '<a href="'+fadeimages_1[i][1]+'" target="'+fadeimages_1[i][2]+'">' : ""
tempcontainer_1+='<img src="'+fadeimages_1[i][0]+'" border="0">'
tempcontainer_1=fadeimages_1[i][1]!=""? tempcontainer_1+'</a>' : tempcontainer_1
return tempcontainer_1
}

function rotateimage_1(){
if (ie4||dom){
resetit_1(curcanvas_1)
var crossobj_1=tempobj_1=ie4? eval("document.all."+curcanvas_1) : document.getElementById(curcanvas_1)
crossobj_1.style.zIndex++
tempobj_1.style.visibility="visible"
var temp_1='setInterval("fadepic_1()",50)'
dropslide_1=eval(temp_1)
curcanvas_1=(curcanvas_1=="canvas1_0")? "canvas1_1" : "canvas1_0"
}
else
document.images.defaultslide.src=fadeimages_1[curimageindex_1][0]
curimageindex_1=(curimageindex_1<fadeimages_1.length-1)? curimageindex_1+1 : 0
}

function resetit_1(what){
curpos_1=10
var crossobj_1=ie4? eval("document.all."+what) : document.getElementById(what)
if (crossobj_1.filters)
crossobj_1.filters.alpha.opacity=curpos_1
else if (crossobj_1.style.MozOpacity)
crossobj_1.style.MozOpacity=curpos_1/101
}

function startit_1(){
var crossobj_1=ie4? eval("document.all."+curcanvas_1) : document.getElementById(curcanvas_1)
crossobj_1.innerHTML=insertimage_1(curimageindex_1)
rotateimage_1()
}

function starttt(){
startit()
startit_1()
}

if (ie4||dom)
window.onload=starttt
else {
setInterval("rotateimage()",pause)
setInterval("rotateimage_1()",pause_1)
}