var nOv = 5;
// _____
var cap = new Array(nOv);
cap[1] = "CNN's Mike Chinoy reported in 1996 on the last vote for a local assembly on Macau.";
cap[2] = "As CNN's Mike Chinoy reported in 1995, Macau's gambling industry is the big attraction for visitors.";
cap[3] = "Two years ago, Macau was rocked by a series of murders, bombings, stabbings and arson attacks as rival gangs battled to control the territory's vast and lucrative gambling and entertainment industries. ";
cap[4] = "Macau's leading mobster, was captured by the police, just before the premier of a movie about his life. ";
cap[5] = "The handover of Macau to China has parallels to Hong Kong two years ago. But as Mike Chinoy reports, this time, it should be smoother.";
// -----
var title = new Array(nOv);
title[1] = "Three years ago, for the last time under the Portuguese rule, the people of Macau voted for the local assembly. ";
title[2] = "Macau's casinos attract nearly 50,000 people from China every day.";
title[3] = "Gang wars in 1997 Macau caused slowdown in casino  business";
title[4] = "Movie about gangster\'s life rings true";
title[5] = "Macau\'s handover should be quieter than Honk Kong\'s";
// -----
var Vurl = new Array(nOv);
Vurl[1] = "/video/world/1999/12/14/mc.macau.vote.reut";
Vurl[2] = "/video/world/1999/12/14/mc.macau.sleaze";
Vurl[3] = "/video/world/1999/12/15/mc.macau.gangster";
Vurl[4] = "/video/world/1999/12/15/mc.macau.film";
Vurl[5] = "/video/world/1999/12/17/mc.macau.trans";
// -----
// _____
//	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;
		}
	}
