<!--//
//
var count=0;
function changePhoto() {
	var path = '/westlinkwatch/frame.jpg'
	var nocache = new Date();
	if ((obj = findObj('streamPhoto')) != null) {
		obj.src = path + '?' + nocache;
		if (count < 120) {
			timer = setTimeout("changePhoto()", 1000);
		} else {
			showRestartPanel();
		}
		count++;
	}
}

function showRestartPanel() {
	displayLayer('restartPanel', '');
}

function hideRestartPanel() {
	displayLayer('restartPanel', 'none');
}

function restartStream() {
	count = 0;
	timer = setTimeout("changePhoto()", 1000);

	hideRestartPanel();
}

// start the timer
var timer = setTimeout("changePhoto()", 2000);

//-->
