/* Sequence order is based on the Array order further down page.
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*/  

hal = '<b><span style="font-size: 12.0pt; font-family: Arial,sans-serif; "><a target="_blank" href="http://www.youtube.com/watch?v=pkI7n7aQvSA&feature=player_embedded">Florida PBA General Counsel Hal Johnson talks about 3% pension lawsuit</span></b>   </a>'
//JPpension = '<p align="center" style="margin-top: 0; margin-bottom: 0">Central Florida PBA President John Park stands up for Special Risk employees.<br><a target="_blank" href="http://vodpod.com/watch/5504732-reaction-to-gov-scott-on-pension-reform?u=sayfie&c=sayfiereview"> Please click here to view video</a>'
blueuniform = '<p align="center" style="margin-top: 0; margin-bottom: 0"> "How was your day?"</p><br>Dade County PBA has produced this short video on behalf of all Law Enforcement, Correctional, and Correctional Probation Officers to remind the public of the dangers and stress officers experience on the job.<br><br><a target="_blank" href="http://www.youtube.com/watch?v=govutBB1BmA"> Please click here to view video</a>'


g_fPlayMode = 0;
g_iimg = -1;
g_imax = 0;
g_ImageTable = new Array();

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;
Next();
}
else 
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = false;

}
}
function OnImgLoad()
{
if (g_fPlayMode)
window.setTimeout("Tick()", g_dwTimeOutSec*1500);
}
function Tick() 
{
if (g_fPlayMode)
Next();
}
function Prev()
{
ChangeImage(false);
}
function Next()
{
ChangeImage(true);
}


////configure below variables/////////////////////////////OfficerDownMemorialInvitation1.jpg

////////!!!!!!!!!!! THE BELOW IS THE SLIDE SEQUENCE ORDER !!!!!!!!!!!!!!/////////////MemorialOfcDwn.jpg
//////////////////// The first is slide 1 not what the name is (ie Third)

//configure the below images and description to your own.
g_ImageTable[g_imax++] = new Array ("pics/slide/Hal1.jpg", hal);
//g_ImageTable[g_imax++] = new Array ("pics/slide/JPpension.jpg", JPpension);
g_ImageTable[g_imax++] = new Array ("pics/slide/BlueUniform.jpg", blueuniform);

//extend the above list as desired
g_dwTimeOutSec=16

////End configuration/////////////////////////////

if (document.getElementById||document.all)
window.onload=Play
