

/***********************************************
* Translucent 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 trans_width='582px' //slideshow width
var trans_height='430px' //slideshow height
var pause=5000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
var degree=9 //animation speed. Greater is faster.

var slideshowcontent=new Array()
//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]
slideshowcontent[0]=["gallery/pics/01.jpg", "", ""]
slideshowcontent[1]=["gallery/pics/02.jpg", "", ""]
slideshowcontent[2]=["gallery/pics/03.jpg", "", ""]
slideshowcontent[3]=["gallery/pics/04.jpg", "", ""]
slideshowcontent[4]=["gallery/pics/05.jpg", "", ""]
slideshowcontent[5]=["gallery/pics/06.jpg", "", ""]
slideshowcontent[6]=["gallery/pics/07.jpg", "", ""]
slideshowcontent[7]=["gallery/pics/08.jpg", "", ""]
slideshowcontent[8]=["gallery/pics/09.jpg", "", ""]
slideshowcontent[9]=["gallery/pics/10.jpg", "", ""]

/*
slideshowcontent[10]=["gallery/pics/11.jpg", "", ""]
slideshowcontent[11]=["gallery/pics/12.jpg", "", ""]
slideshowcontent[12]=["gallery/pics/13.jpg", "", ""]
slideshowcontent[13]=["gallery/pics/14.jpg", "", ""]
slideshowcontent[14]=["gallery/pics/15.jpg", "", ""]
slideshowcontent[15]=["gallery/pics/16.jpg", "", ""]
slideshowcontent[16]=["gallery/pics/17.jpg", "", ""]
slideshowcontent[17]=["gallery/pics/18.jpg", "", ""]
slideshowcontent[18]=["gallery/pics/19.jpg", "", ""]
slideshowcontent[19]=["gallery/pics/20.jpg", "", ""]
slideshowcontent[20]=["gallery/pics/21.jpg", "", ""]
slideshowcontent[21]=["gallery/pics/22.jpg", "", ""]
slideshowcontent[22]=["gallery/pics/23.jpg", "", ""]
slideshowcontent[23]=["gallery/pics/24.jpg", "", ""]
slideshowcontent[24]=["gallery/pics/25.jpg", "", ""]
slideshowcontent[25]=["gallery/pics/26.jpg", "", ""]
slideshowcontent[26]=["gallery/pics/27.jpg", "", ""]
slideshowcontent[27]=["gallery/pics/28.jpg", "", ""]
slideshowcontent[28]=["gallery/pics/29.jpg", "", ""]
slideshowcontent[29]=["gallery/pics/30.jpg", "", ""]
slideshowcontent[30]=["gallery/pics/31.jpg", "", ""]
slideshowcontent[31]=["gallery/pics/32.jpg", "", ""]
slideshowcontent[32]=["gallery/pics/33.jpg", "", ""]
slideshowcontent[33]=["gallery/pics/34.jpg", "", ""]
slideshowcontent[34]=["gallery/pics/35.jpg", "", ""]
slideshowcontent[35]=["gallery/pics/36.jpg", "", ""]
slideshowcontent[36]=["gallery/pics/37.jpg", "", ""]
slideshowcontent[37]=["gallery/pics/38.jpg", "", ""]
slideshowcontent[38]=["gallery/pics/39.jpg", "", ""]
slideshowcontent[39]=["gallery/pics/40.jpg", "", ""]
slideshowcontent[40]=["gallery/pics/41.jpg", "", ""]
slideshowcontent[41]=["gallery/pics/42.jpg", "", ""]
slideshowcontent[42]=["gallery/pics/43.jpg", "", ""]
slideshowcontent[43]=["gallery/pics/44.jpg", "", ""]
slideshowcontent[44]=["gallery/pics/45.jpg", "", ""]
slideshowcontent[45]=["gallery/pics/46.jpg", "", ""]
slideshowcontent[46]=["gallery/pics/47.jpg", "", ""]
slideshowcontent[47]=["gallery/pics/48.jpg", "", ""]
slideshowcontent[48]=["gallery/pics/49.jpg", "", ""]
slideshowcontent[49]=["gallery/pics/50.jpg", "", ""]
slideshowcontent[50]=["gallery/pics/51.jpg", "", ""]
slideshowcontent[51]=["gallery/pics/52.jpg", "", ""]
slideshowcontent[52]=["gallery/pics/53.jpg", "", ""]
slideshowcontent[53]=["gallery/pics/54.jpg", "", ""]
slideshowcontent[54]=["gallery/pics/55.jpg", "", ""]
slideshowcontent[55]=["gallery/pics/56.jpg", "", ""]
slideshowcontent[56]=["gallery/pics/57.jpg", "", ""]
slideshowcontent[57]=["gallery/pics/58.jpg", "", ""]
slideshowcontent[58]=["gallery/pics/59.jpg", "", ""]
slideshowcontent[59]=["gallery/pics/60.jpg", "", ""]
slideshowcontent[60]=["gallery/pics/61.jpg", "", ""]
slideshowcontent[61]=["gallery/pics/62.jpg", "", ""]
slideshowcontent[62]=["gallery/pics/63.jpg", "", ""]
slideshowcontent[63]=["gallery/pics/64.jpg", "", ""]
slideshowcontent[64]=["gallery/pics/65.jpg", "", ""]
slideshowcontent[65]=["gallery/pics/66.jpg", "", ""]
slideshowcontent[66]=["gallery/pics/67.jpg", "", ""]
slideshowcontent[67]=["gallery/pics/68.jpg", "", ""]
slideshowcontent[68]=["gallery/pics/69.jpg", "", ""]
slideshowcontent[69]=["gallery/pics/70.jpg", "", ""]
slideshowcontent[70]=["gallery/pics/71.jpg", "", ""]
slideshowcontent[71]=["gallery/pics/72.jpg", "", ""]
slideshowcontent[72]=["gallery/pics/73.jpg", "", ""]
slideshowcontent[73]=["gallery/pics/74.jpg", "", ""]
slideshowcontent[74]=["gallery/pics/75.jpg", "", ""]
slideshowcontent[75]=["gallery/pics/76.jpg", "", ""]
slideshowcontent[76]=["gallery/pics/77.jpg", "", ""]
slideshowcontent[77]=["gallery/pics/78.jpg", "", ""]
slideshowcontent[78]=["gallery/pics/79.jpg", "", ""]
slideshowcontent[79]=["gallery/pics/80.jpg", "", ""]
slideshowcontent[80]=["gallery/pics/81.jpg", "", ""]
slideshowcontent[81]=["gallery/pics/82.jpg", "", ""]
slideshowcontent[82]=["gallery/pics/83.jpg", "", ""]
slideshowcontent[83]=["gallery/pics/84.jpg", "", ""]
slideshowcontent[84]=["gallery/pics/85.jpg", "", ""]
slideshowcontent[85]=["gallery/pics/86.jpg", "", ""]
slideshowcontent[86]=["gallery/pics/87.jpg", "", ""]
slideshowcontent[87]=["gallery/pics/88.jpg", "", ""]
slideshowcontent[88]=["gallery/pics/89.jpg", "", ""]
slideshowcontent[89]=["gallery/pics/90.jpg", "", ""]
slideshowcontent[90]=["gallery/pics/91.jpg", "", ""]
slideshowcontent[91]=["gallery/pics/92.jpg", "", ""]
slideshowcontent[92]=["gallery/pics/93.jpg", "", ""]
slideshowcontent[93]=["gallery/pics/94.jpg", "", ""]
slideshowcontent[94]=["gallery/pics/95.jpg", "", ""]
slideshowcontent[95]=["gallery/pics/96.jpg", "", ""]
slideshowcontent[96]=["gallery/pics/97.jpg", "", ""]
slideshowcontent[97]=["gallery/pics/98.jpg", "", ""]
slideshowcontent[98]=["gallery/pics/99.jpg", "", ""]
slideshowcontent[99]=["gallery/pics/100.jpg", "", ""]
slideshowcontent[100]=["gallery/pics/101.jpg", "", ""]
slideshowcontent[101]=["gallery/pics/102.jpg", "", ""]
slideshowcontent[102]=["gallery/pics/103.jpg", "", ""]
slideshowcontent[103]=["gallery/pics/104.jpg", "", ""]
slideshowcontent[104]=["gallery/pics/105.jpg", "", ""]
slideshowcontent[105]=["gallery/pics/106.jpg", "", ""]
slideshowcontent[106]=["gallery/pics/107.jpg", "", ""]
slideshowcontent[107]=["gallery/pics/108.jpg", "", ""]
slideshowcontent[108]=["gallery/pics/109.jpg", "", ""]
slideshowcontent[109]=["gallery/pics/110.jpg", "", ""]
slideshowcontent[110]=["gallery/pics/111.jpg", "", ""]
slideshowcontent[111]=["gallery/pics/112.jpg", "", ""]
slideshowcontent[112]=["gallery/pics/113.jpg", "", ""]
slideshowcontent[113]=["gallery/pics/114.jpg", "", ""]
slideshowcontent[114]=["gallery/pics/115.jpg", "", ""]
slideshowcontent[115]=["gallery/pics/116.jpg", "", ""]
slideshowcontent[116]=["gallery/pics/117.jpg", "", ""]
slideshowcontent[117]=["gallery/pics/118.jpg", "", ""]
slideshowcontent[118]=["gallery/pics/119.jpg", "", ""]
slideshowcontent[119]=["gallery/pics/120.jpg", "", ""]
slideshowcontent[120]=["gallery/pics/121.jpg", "", ""]
slideshowcontent[121]=["gallery/pics/122.jpg", "", ""]
slideshowcontent[122]=["gallery/pics/123.jpg", "", ""]
slideshowcontent[123]=["gallery/pics/124.jpg", "", ""]
slideshowcontent[124]=["gallery/pics/125.jpg", "", ""]
slideshowcontent[125]=["gallery/pics/126.jpg", "", ""]
slideshowcontent[126]=["gallery/pics/127.jpg", "", ""]
slideshowcontent[127]=["gallery/pics/128.jpg", "", ""]
slideshowcontent[128]=["gallery/pics/129.jpg", "", ""]
slideshowcontent[129]=["gallery/pics/130.jpg", "", ""]
slideshowcontent[130]=["gallery/pics/131.jpg", "", ""]
slideshowcontent[131]=["gallery/pics/132.jpg", "", ""]
slideshowcontent[132]=["gallery/pics/133.jpg", "", ""]
slideshowcontent[133]=["gallery/pics/134.jpg", "", ""]
slideshowcontent[134]=["gallery/pics/135.jpg", "", ""]
slideshowcontent[135]=["gallery/pics/136.jpg", "", ""]
slideshowcontent[136]=["gallery/pics/137.jpg", "", ""]
slideshowcontent[137]=["gallery/pics/138.jpg", "", ""]
slideshowcontent[138]=["gallery/pics/139.jpg", "", ""]
slideshowcontent[139]=["gallery/pics/140.jpg", "", ""]
slideshowcontent[140]=["gallery/pics/141.jpg", "", ""]
slideshowcontent[141]=["gallery/pics/142.jpg", "", ""]
slideshowcontent[142]=["gallery/pics/143.jpg", "", ""]
slideshowcontent[143]=["gallery/pics/144.jpg", "", ""]
slideshowcontent[144]=["gallery/pics/145.jpg", "", ""]
slideshowcontent[145]=["gallery/pics/146.jpg", "", ""]
slideshowcontent[146]=["gallery/pics/147.jpg", "", ""]
slideshowcontent[147]=["gallery/pics/148.jpg", "", ""]
slideshowcontent[148]=["gallery/pics/149.jpg", "", ""]
slideshowcontent[149]=["gallery/pics/150.jpg", "", ""]
slideshowcontent[150]=["gallery/pics/151.jpg", "", ""]
slideshowcontent[151]=["gallery/pics/152.jpg", "", ""]
slideshowcontent[152]=["gallery/pics/153.jpg", "", ""]
slideshowcontent[153]=["gallery/pics/154.jpg", "", ""]
slideshowcontent[154]=["gallery/pics/155.jpg", "", ""]
slideshowcontent[155]=["gallery/pics/156.jpg", "", ""]
slideshowcontent[156]=["gallery/pics/157.jpg", "", ""]
slideshowcontent[157]=["gallery/pics/158.jpg", "", ""]
slideshowcontent[158]=["gallery/pics/159.jpg", "", ""]
slideshowcontent[159]=["gallery/pics/160.jpg", "", ""]
slideshowcontent[160]=["gallery/pics/161.jpg", "", ""]
slideshowcontent[161]=["gallery/pics/162.jpg", "", ""]
slideshowcontent[162]=["gallery/pics/163.jpg", "", ""]
slideshowcontent[163]=["gallery/pics/164.jpg", "", ""]
slideshowcontent[164]=["gallery/pics/165.jpg", "", ""]
slideshowcontent[165]=["gallery/pics/166.jpg", "", ""]
slideshowcontent[166]=["gallery/pics/167.jpg", "", ""]
slideshowcontent[167]=["gallery/pics/168.jpg", "", ""]
slideshowcontent[168]=["gallery/pics/169.jpg", "", ""]
slideshowcontent[169]=["gallery/pics/170.jpg", "", ""]
slideshowcontent[170]=["gallery/pics/171.jpg", "", ""]
slideshowcontent[171]=["gallery/pics/172.jpg", "", ""]
slideshowcontent[172]=["gallery/pics/173.jpg", "", ""]
slideshowcontent[173]=["gallery/pics/174.jpg", "", ""]
slideshowcontent[174]=["gallery/pics/175.jpg", "", ""]
slideshowcontent[175]=["gallery/pics/176.jpg", "", ""]
slideshowcontent[176]=["gallery/pics/177.jpg", "", ""]
slideshowcontent[177]=["gallery/pics/178.jpg", "", ""]
slideshowcontent[178]=["gallery/pics/179.jpg", "", ""]
slideshowcontent[179]=["gallery/pics/180.jpg", "", ""]
slideshowcontent[180]=["gallery/pics/181.jpg", "", ""]
slideshowcontent[181]=["gallery/pics/182.jpg", "", ""]
slideshowcontent[182]=["gallery/pics/183.jpg", "", ""]
slideshowcontent[183]=["gallery/pics/184.jpg", "", ""]
slideshowcontent[184]=["gallery/pics/185.jpg", "", ""]
slideshowcontent[185]=["gallery/pics/186.jpg", "", ""]
slideshowcontent[186]=["gallery/pics/187.jpg", "", ""]
slideshowcontent[187]=["gallery/pics/188.jpg", "", ""]
slideshowcontent[188]=["gallery/pics/189.jpg", "", ""]
slideshowcontent[189]=["gallery/pics/190.jpg", "", ""]
slideshowcontent[190]=["gallery/pics/191.jpg", "", ""]
slideshowcontent[191]=["gallery/pics/192.jpg", "", ""]
slideshowcontent[192]=["gallery/pics/193.jpg", "", ""]
slideshowcontent[193]=["gallery/pics/194.jpg", "", ""]
slideshowcontent[194]=["gallery/pics/195.jpg", "", ""]
slideshowcontent[195]=["gallery/pics/196.jpg", "", ""]
slideshowcontent[196]=["gallery/pics/197.jpg", "", ""]
slideshowcontent[197]=["gallery/pics/198.jpg", "", ""]
slideshowcontent[198]=["gallery/pics/199.jpg", "", ""]
slideshowcontent[199]=["gallery/pics/200.jpg", "", ""]
slideshowcontent[200]=["gallery/pics/201.jpg", "", ""]
slideshowcontent[201]=["gallery/pics/202.jpg", "", ""]
slideshowcontent[202]=["gallery/pics/203.jpg", "", ""]
slideshowcontent[203]=["gallery/pics/204.jpg", "", ""]
slideshowcontent[204]=["gallery/pics/205.jpg", "", ""]
slideshowcontent[205]=["gallery/pics/206.jpg", "", ""]
slideshowcontent[206]=["gallery/pics/207.jpg", "", ""]
slideshowcontent[207]=["gallery/pics/208.jpg", "", ""]
slideshowcontent[208]=["gallery/pics/209.jpg", "", ""]
slideshowcontent[209]=["gallery/pics/210.jpg", "", ""]
slideshowcontent[210]=["gallery/pics/211.jpg", "", ""]
slideshowcontent[211]=["gallery/pics/212.jpg", "", ""]
slideshowcontent[212]=["gallery/pics/213.jpg", "", ""]
slideshowcontent[213]=["gallery/pics/214.jpg", "", ""]
slideshowcontent[214]=["gallery/pics/215.jpg", "", ""]
slideshowcontent[215]=["gallery/pics/216.jpg", "", ""]
slideshowcontent[216]=["gallery/pics/217.jpg", "", ""]
slideshowcontent[217]=["gallery/pics/218.jpg", "", ""]
slideshowcontent[218]=["gallery/pics/219.jpg", "", ""]
slideshowcontent[219]=["gallery/pics/220.jpg", "", ""]
slideshowcontent[220]=["gallery/pics/221.jpg", "", ""]
slideshowcontent[221]=["gallery/pics/222.jpg", "", ""]
slideshowcontent[222]=["gallery/pics/223.jpg", "", ""]
slideshowcontent[223]=["gallery/pics/224.jpg", "", ""]
slideshowcontent[224]=["gallery/pics/225.jpg", "", ""]
slideshowcontent[225]=["gallery/pics/226.jpg", "", ""]
slideshowcontent[226]=["gallery/pics/227.jpg", "", ""]
slideshowcontent[227]=["gallery/pics/228.jpg", "", ""]
slideshowcontent[228]=["gallery/pics/229.jpg", "", ""]
slideshowcontent[229]=["gallery/pics/230.jpg", "", ""]
*/


////NO need to edit beyond here/////////////

var bgcolor='white'

var imageholder=new Array()
for (i=0;i<slideshowcontent.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideshowcontent[i][0]
}

var ie4=document.all
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||dom)
document.write('<div style="position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>')
else if (document.layers){
document.write('<ilayer id=tickernsmain visibility=hide width='+trans_width+' height='+trans_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+trans_width+' height='+trans_height+' left=0 top=0>'+'<img src="'+slideshowcontent[0][0]+'"></layer></ilayer>')
}

var curpos=trans_width*(-1)
var curcanvas="canvas0"
var curindex=0
var nextindex=1

function getslidehtml(theslide){
var slidehtml=""
if (theslide[1]!="")
slidehtml='<a href="'+theslide[1]+'" target="'+theslide[2]+'">'
slidehtml+='<img src="'+theslide[0]+'" border="0">'
if (theslide[1]!="")
slidehtml+='</a>'
return slidehtml
}

function moveslide(){
if (curpos<0){
curpos=Math.min(curpos+degree,0)
tempobj.style.left=curpos+"px"
}
else{
clearInterval(dropslide)
if (crossobj.filters)
crossobj.filters.alpha.opacity=100
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=1
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML=getslidehtml(slideshowcontent[curindex])
nextindex=(nextindex<slideshowcontent.length-1)? nextindex+1 : 0
setTimeout("rotateslide()",pause)
}
}

function rotateslide(){
if (ie4||dom){
resetit(curcanvas)
crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
if (crossobj.filters)
document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20
else if (crossobj.style.MozOpacity)
document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2
var temp='setInterval("moveslide()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else if (document.layers){
crossobj.document.write(getslidehtml(slideshowcontent[curindex]))
crossobj.document.close()
}
curindex=(curindex<slideshowcontent.length-1)? curindex+1 : 0
}

function jumptoslide(which){
curindex=which
rotateslide()
}

function resetit(what){
curpos=parseInt(trans_width)*(-1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.left=curpos+"px"
}

function startit(){
crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub
if (ie4||dom){
crossobj.innerHTML=getslidehtml(slideshowcontent[curindex])
rotateslide()
}
else{
document.tickernsmain.visibility='show'
curindex++
setInterval("rotateslide()",pause)
}
}

if (window.addEventListener)
window.addEventListener("load", startit, false)
else if (window.attachEvent)
window.attachEvent("onload", startit)
else if (ie4||dom||document.layers)
window.onload=startit


