var urlTempString = "images/slide/dellmar_photos/worldcupcricket92B20060119C.jpg|images/slide/dellmar_photos/worldcupcricket92A20060119C.jpg|images/slide/dellmar_photos/World_cup1.jpg|images/slide/dellmar_photos/Winner_2.jpg|images/slide/dellmar_photos/windies.jpg|images/slide/dellmar_photos/what_next.jpg|images/slide/dellmar_photos/WestCap.jpg|images/slide/dellmar_photos/Wavell.jpg"; var captionTempString = "Phill Simmons of the West Indies open batsman get runs in his innings of 110 against Sri Lanka in the World at Berri Australia - Dellmar Photo|World cup 1992. Asanka Gurusenha Of Sri Lanka caught Richie Richardson Bowled Curtley Ambrose Berri Austrilia - Dellmar Photo|World Champion Australia World Cup 2003 - Dellmar Photo|The Rain was the winner West Indies Bangladesh|West Indies captain Shivanarine Chanderpaul leads his troop off the field after they were defeated by 8 wickets at the Queen's Park Oval-Trinidad. From right are Brian Lara, Wavell Hinds, Courtney Browne, Pedro Collins and Chris Gayle - Dellmar Photo|Dwayne Smith wandering what next for him another failer test matched West Indies Sri Lanka. - Dellmar Photo|Congratulation from the South African (First Test at Bourda Grounds Guyana) - Dellmar Photo|Wavell Hinds Get runs during his innings of 52 against Pakistan at Kensington Oval - Dellmar Photo"; var url = urlTempString.split('|'); var caption = captionTempString.split('|'); var count = url.length; var j=0; var intID; //Preload image and populate arrays tempPic = new Image(); for(i=0;i=url.length-1) { j=-1; } } //Start function function startIt() { document.getElementById("pic").src = url[0]; var ns4 = document.layers; if (ns4) { document.captions.document.open(); document.captions.document.write(caption[0]); document.captions.document.close(); } else { document.getElementById("captions").innerHTML = caption[0]; } intID = setInterval('rotateIt()',10000); } //Go forward function next() { clearInterval(intID); j = (j+1) % count; document.getElementById("pic").src = url[j]; var ns4 = document.layers; if (ns4) { document.captions.document.open(); document.captions.document.write(caption[j]); document.captions.document.close(); } else { document.getElementById("captions").innerHTML = caption[j]; } } //Go Back function prev() { clearInterval(intID); j = (j==0)? count-1 : j-1; document.getElementById("pic").src = url[j]; var ns4 = document.layers; if (ns4) { document.captions.document.open(); document.captions.document.write(caption[j]); document.captions.document.close(); } else { document.getElementById("captions").innerHTML = caption[j]; } }