/* Interactive Image slideshow with text description By Christian Carlessi SalvadoL (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 ("screenshots/320x240/Snapshot_1.jpg", "", "screenshots/800x600/Snapshot_1.jpg"); g_ImageTable[g_imax++] = new Array ("screenshots/320x240/Snapshot_2.jpg", "", "screenshots/800x600/Snapshot_2.jpg"); g_ImageTable[g_imax++] = new Array ("screenshots/320x240/Snapshot_3.jpg", "", "screenshots/800x600/Snapshot_3.jpg"); g_ImageTable[g_imax++] = new Array ("screenshots/320x240/Snapshot_4.jpg", "", "screenshots/800x600/Snapshot_4.jpg"); g_ImageTable[g_imax++] = new Array ("screenshots/320x240/Snapshot_5.jpg", "", "screenshots/800x600/Snapshot_5.jpg"); g_ImageTable[g_imax++] = new Array ("screenshots/320x240/Snapshot_6.jpg", "", "screenshots/800x600/Snapshot_6.jpg"); g_ImageTable[g_imax++] = new Array ("screenshots/320x240/Snapshot_7.jpg", "", "screenshots/800x600/Snapshot_7.jpg"); //extend the above list as desired function writeLinks(){ var linkArray = new Array(); document.write('
New PS2 Screens 6.15.04
'); document.write('
First Look 5.12.04
'); } 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 tempString= "components/sshotpopup.jsp?platformID=first&setID=first&imgID=" + g_iimg; var tempy=window.open(tempString, "popup","width=800,height=625,scrollbars=no"); tempy.focus(); } }