/*
Interactive Image slideshow with text description
By Christian Carlessi Salvadó (cocolinks@c.net.gt). Keep this notice intact.
Edited by and JSP added by Josh Powell
Visit http://www.dynamicdrive.com for the original script
*/
g_fPlayMode = 0;
g_iimg = -1;
g_imax = 0;
g_ImageTable = new Array();
var s_popuppath = "";
////configure below variables/////////////////////////////
//configure the below images and description to your own.
g_ImageTable[g_imax++] = new Array ("http://files.ea.com/downloads/easports/nbalive06/NBA_XSELL_05-26-05_HIGH.mov", "http://files.ea.com/downloads/easports/nbalive06/NBA_XSELL_05-26-05_LO.mov", "blank");
//extend the above list as desired
function writeLinks(){
var linkArray = new Array();
document.write('
| First Look Trailer Hi | Lo | 06.02.05 |
');
}
g_dwTimeOutSec=2
////End configuration/////
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;
s_popuppath = g_ImageTable[g_iimg][2];
}
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);
}
function sshot_popup(){
if( s_popuppath!= "" ) {
var tempy=window.open("components/sshotpopup.jsp?setID=first", "popup","width=800,height=625,scrollbars=no");
tempy.focus();
}
}