function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function openInternetWindow(url, width, height, resizable, scrollbars)
{
	var width_str = "width=" + width;
	var height_str = "height=" + height;
	var resizable_str = "resizable=" + resizable;
	var scrollbars_str = "scrollbars=" + scrollbars;
	var option_str = "toolbar=no," + width_str + "," + height_str + "," + resizable_str + "," + scrollbars_str + ",menubar=no,directories=no,status=no,location=no";
	var win = window.open(url, "Livecam", option_str);
	win.focus();
	return;
}

function openmpg(file, cam)
{
			file = "archive/" + file + "_" + cam + ".mpg";

	window.open(file);
	return;
}