function ChangeImage(fFwd) { if (fFwd) { if (++g_iimg==g_imax) g_iimg=0; } else { if (g_iimg==0) g_iimg=g_imax; g_iimg--; } Update(); } function getobject(obj){ if (document.getElementById) return document.getElementById(obj) else if (document.all) return document.all[obj] } function Update(){ getobject("_Ath_Slide").src = g_ImageTable[g_iimg][0]; getobject("_Ath_FileName").innerHTML = g_ImageTable[g_iimg][1]; getobject("_Ath_Img_X").innerHTML = g_iimg + 1; getobject("_Ath_Img_N").innerHTML = g_imax; } function Play() { g_fPlayMode = !g_fPlayMode; if (g_fPlayMode) { getobject("btnPrev").disabled = getobject("btnNext").disabled = true; getobject("bntPlay").value = ("SLIDESHOW STOP"); getobject("bntPlay").style.backgroundColor = ("#00b555"); Next(); } else { getobject("btnPrev").disabled = getobject("btnNext").disabled = false; getobject("bntPlay").value = ("SLIDESHOW START"); getobject("bntPlay").style.backgroundColor = ("#e67a16"); } } function OnImgLoad() { if (g_fPlayMode) window.setTimeout("Tick()", g_dwTimeOutSec*1000); } function Tick() { if (g_fPlayMode) Next(); } function Prev() { ChangeImage(false); } function Next() { ChangeImage(true); } ////configure below variables///////////////////////////// //configure the below images and description to your own. //extend the above list as desired g_dwTimeOutSec=3 ////End configuration///////////////////////////// if (document.getElementById||document.all) //window.onload=Play /// RAMKI DO GALERII function borderit(which,color){ //if IE 4+ or NS 6+ if (document.all||document.getElementById){ which.style.borderColor=color } }