<!--
/*
Interactive Image slideshow with text description
By Christian Carlessi Salvadó (cocolinks@c.net.gt). Keep this notice intact.
Visit http://www.dynamicdrive.com for script
*/
/*
Modified for OnTheWeb slideshows - Ajmal
*/
function ChangeImage(blnGoForward){
if (blnGoForward){
if (++imageCount==totalImageCount)
imageCount=0;
}
else{
if (imageCount==0)
imageCount=totalImageCount;
imageCount--;
}
Update();
}
function getobject(obj){
if (document.getElementById)
return document.getElementById(obj);
else if (document.all)
return document.all[obj];
}
function Update(){
getobject("imageContainer").src = imageList[imageCount][0];
getobject("imageName").innerHTML = imageList[imageCount][1];
getobject("imageCountX").innerHTML = imageCount + 1;
getobject("imageCountY").innerHTML = totalImageCount;
}
function Play(){
playMode = !playMode;
if (playMode){
getobject("buttonPrevious").src = baseFolder + "/images/gif/button_previous_gray.gif";
getobject("buttonNext").src = baseFolder + "/images/gif/button_next_gray.gif";
getobject("buttonStart").src = baseFolder + "/images/gif/button_start_gray.gif";
getobject("buttonStop").src = baseFolder + "/images/gif/button_stop.gif";
getobject("linkPrevious").href = "#";
getobject("linkNext").href = "#";
getobject("linkStart").href = "#";
getobject("linkStop").href = "javascript:Play();";
Next();
}
else{
getobject("buttonPrevious").src = baseFolder + "/images/gif/button_previous.gif";
getobject("buttonNext").src = baseFolder + "/images/gif/button_next.gif";
getobject("buttonStart").src = baseFolder + "/images/gif/button_start.gif";
getobject("buttonStop").src = baseFolder + "/images/gif/button_stop_gray.gif";
getobject("linkPrevious").href = "javascript:Prev();";
getobject("linkNext").href = "javascript:Next();";
getobject("linkStart").href = "javascript:Play();";
getobject("linkStop").href = "#";
}
}
function OnImgLoad(){
if (playMode)
window.setTimeout("Tick()", intervalTime*1000);
}
function Tick(){
if (playMode)
Next();
}
function Prev(){
ChangeImage(false);
}
function Next(){
ChangeImage(true);
}
intervalTime=2;
-->
