// open a window
function winPop(url, w, h) {
	window.open( url, "RegHelp", "toolbar=no,location=no,resizable=yes,scrollbars=yes,status=no,height="+h+",width="+w);
}
// Called by the menu to swicth video to the video player
function switchVideo(id) {
	document.getElementById('SwfApp').onNewVideo(id);
}
// inititalise the id of the video player when it first loads
function initVideoId() {
	alert ("initVideoId is called");
	var _id = "1";
	if(window.location.search.length > 1) {
		var search = window.location.search.substring(1);
		var params = search.split("&");
		var param;
		if(params.length > 0) {
			for(var index = 0; index < params.length; index++) {
				param = params[index].split("=");
				if(param.length == 2 && param[0] == "id") {
					_id = param[1];
				}
			}
		}
	}
}



