var nOv = 4; // _____ var cap = new Array(nOv); cap[1] = "CNN's Ralph Begleiter looks at the U.S.-China relationship, past and present"; cap[2] = "/video/us/1999/05/24/begleiter.china.relations"; cap[3] = "Congressman Chris Cox talks with CNN about his report"; cap[4] = "The White House says the damage was done during Republican administrations. CNN's Wolf Blitzer explains."; // ----- var title = new Array(nOv); title[1] = "Rocky past and rocky present"; title[2] = "/video/us/1999/05/24/begleiter.china.relations"; title[3] = "Congressman Chris Cox talks with CNN about report"; title[4] = "White House: China stole secrets under Republican presidents"; // ----- var Vurl = new Array(nOv); Vurl[1] = "/video/us/1999/05/24/begleiter.china.relations"; Vurl[2] = "/video/us/1999/05/24/begleiter.china.relations"; Vurl[3] = "/video/politics/1999/05/24/cox.interview"; Vurl[4] = "/video/politics/1999/05/25/blitzer.china"; // ----- // _____ // DONT PLAY WITH THE CODE BELOW // __________________________________ var med = "ns"; // Defalt Stream Type - do not change var str = "28"; // Defalt Stream Size - do not change var a = 0; // Do not change! function forward() { if ((a > 0) && (a <= (nOv -1))) { // set the max number 1 less than the total number nOv; a++; swapImg(a); } else { a = 1; swapImg(a); } } function back() { if ((a > 1) && (a <= nOv)) { a--; swapImg(a); } else { a = nOv; swapImg(a); } } function swapImg(a) { document.control.caption.value = ((nOv - a) + 1) + ")" + cap[a]; return; } function selected(a) { if (a == 0) { document.control.caption.value = "Select a video stream first!"; return; } else { vod(Vurl[a] + '.' + med + str + '.html' , title[a]); return; } }