
/***********************************************
* 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_width1='468' //slideshow width
var trans_height1='351' //slideshow height

var trans_width=trans_width1+'px' //slideshow width
var trans_height=trans_height1+'px' //slideshow height

var pause=6000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
var degree=10 //animation speed. Greater is faster.

var img_width = 428
var img_height = 321

var slideshowcontent=new Array()
//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]
slideshowcontent[0]=["PHP_PhotoalbumPLUS/albums/userpics/normal_devekorusu_ky_1_6.jpg", "PHP_PhotoalbumPLUS/index.php?category_id=7&under_category_id=17&album=9&album_desc=K%C3%B6y%20%C3%87evresi", "_new",  "KÃ¶yÃ¼mÃ¼z resimleri Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]
slideshowcontent[1]=["PHP_PhotoalbumPLUS/albums/userpics/normal_ismail__glperi__ezgo.jpg", "PHP_PhotoalbumPLUS/index.php?fromQuery=online&category_id=7&under_category_id=17&album=16&album_desc=",  "_new",  "KÃ¶ylÃ¼lerimizin eski resimleri Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]
slideshowcontent[2]=["PHP_PhotoalbumPLUS/albums/userpics/normal_yeni_resimler_1_2.jpg",  "PHP_PhotoalbumPLUS/index.php?category_id=7&under_category_id=17&album=9&album_desc=K%C3%B6y%20%C3%87evresi","_new",  "KÃ¶yÃ¼mÃ¼z resimleri Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]
slideshowcontent[3]=["PHP_PhotoalbumPLUS/albums/userpics/normal_cesminaz_gc3bcrsel_nazim_akbulut_281984291.jpg", "PHP_PhotoalbumPLUS/index.php?category_id=7&under_category_id=17&album=32&album_desc=Sizlerden%20Gelenler%202",  "_new",  "Sizlerden Gelenler Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]
slideshowcontent[4]=["PHP_PhotoalbumPLUS/albums/userpics/normal_yeni_resimler_1_3.jpg", "PHP_PhotoalbumPLUS/index.php?category_id=7&under_category_id=17&album=9&album_desc=K%C3%B6y%20%C3%87evresi", "_new",  "KÃ¶yÃ¼mÃ¼z resimleri Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]
slideshowcontent[5]=["PHP_PhotoalbumPLUS/albums/userpics/normal_dsc00024.jpg","PHP_PhotoalbumPLUS/index.php?category_id=7&under_category_id=17&album=24&album_desc=Saarbr%C3%BCcken%202005", "_new",  "SaarbrÃ¼cken 2005 Eglencesi Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]
slideshowcontent[6]=["PHP_PhotoalbumPLUS/albums/userpics/normal_devekorusu_ky_1_8.jpg", "PHP_PhotoalbumPLUS/index.php?category_id=7&under_category_id=17&album=9&album_desc=K%C3%B6y%20%C3%87evresi",  "_new",  "KÃ¶yÃ¼mÃ¼z resimleri Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]
slideshowcontent[7]=["PHP_PhotoalbumPLUS/albums/userpics/normal_fransa_gecesi_10.jpg", "PHP_PhotoalbumPLUS/index.php?&pagecount=2&category_id=7&under_category_id=17&album=14&album_desc=Franza%202006&maxResultsPerPage=28",  "_new",  "Fransa 2006 Eglencesi Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]
slideshowcontent[8]=["PHP_PhotoalbumPLUS/albums/userpics/normal_kyn_aan_babadan_grnm.jpg", "PHP_PhotoalbumPLUS/index.php?category_id=7&under_category_id=17&album=9&album_desc=K%C3%B6y%20%C3%87evresi",  "_new",  "KÃ¶yÃ¼mÃ¼z resimleri Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]
slideshowcontent[9]=["PHP_PhotoalbumPLUS/albums/userpics/normal_aydin_174.jpg", "PHP_PhotoalbumPLUS/index.php?&pagecount=2&category_id=7&under_category_id=17&album=14&album_desc=Franza%202006&maxResultsPerPage=28",  "_new",  "Altenstadt 2008 Eglencesi Fotograf albÃ¼mÃ¼ne bakmak icin tiklayin!"]






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

var bgcolor='black'

var imageholder=new Array()
for (i=0;i<slideshowcontent.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideshowcontent[i][0]
}
//<div style="position:relative;width:'+img_width+'px;height:40px;top:300px;left:40px;background-color:#000000;color:#ffffff;filter:alpha(opacity=50);-moz-opacity:0.5;">Test icin yazi yazdim bakalim ne olacak?</div>
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=10);-moz-opacity:0.1;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=10);-moz-opacity:0.1;"></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 (img_width[1]!="")

slidehtml='<a href="'+theslide[1]+'" target="'+theslide[2]+'"  title="'+theslide[3]+'">'
slidehtml+='<img src="'+theslide[0]+'"  width="'+img_width+'"  height="'+img_height+'" border="2" style="border-color:#FFFF00;margin-top:13px;margin-left:2px;">'
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=100
else if (crossobj.style.MozOpacity)
document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=1
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

