// JavaScript Document

// webcam
  self.name = "mxHome10__0__78__164";
	var hostname;
	var url_regexpr= /(\w+):\/\/([^\/]+)\/(\S*)/;
	var result = document.URL.match(url_regexpr);
	if (result != null)
		hostname = result[2];
	else
		hostname = "";
//	document.write('<TITLE>' + hostname + "  <\/TITLE>");

// webcam

	var filesystem__version="V1.9.4.8";
	var homepage__language="de";
	var windowname_home="mxHome10__0__78__164";
	var windowname_ext ="mxExtern10__0__78__164";
	var windowname_help="mxHelp10__0__78__164";
	var windowname_info="mxInfo10__0__78__164";
	function openExtNoDeko(path,winname) {
		if ( path.search(/^!/) >= 0 ) {
			path=path.replace(/^!/,"");
			path=path+"?cachedummy="+Math.floor(Math.random()*1000000);
		}
		return window.open(path,winname,"scrollbars=yes,resizable=yes,width=722");
	}

	function goUserlevel()
	{
		if (self.name == windowname_ext)
		{
			if (window.opener==null || window.opener.closed)
			// Kein Opener oder bereits geschlossen
		  	window.open("/control/userimage.html",windowname_home);
			else
				window.opener.focus();
	   	self.window.close();
			return;
		}
		location.href="/control/userimage.html";
	}
	function getTextFensterX(breite) {
		var wString=",width="+breite;
		if (window.screenLeft)
			wString+=",left="+parseInt(screenLeft+document.body.offsetWidth/2-breite/2);
		else if (window.screenX)
			wString+=",screenX="+parseInt(screenX+outerWidth/2-breite/2);
		return wString;
	}
	function getTextFensterY(hoehe) {
		var wString=",height="+hoehe;
		if (window.screenTop)
			wString+=",top="+parseInt(screenTop+document.body.offsetHeight/2-hoehe/2);
		else if (window.screenY)
			wString+=",screenY="+parseInt(screenY+innerHeight/2-hoehe/2);
		return wString;
	}

	function open_camerainfo(prefix) {
		if (typeof prefix == "undefined")
			var prefix="";
		var wdh=window.open(prefix+"/control/camerainfo?rand="+Math.random(), windowname_info,
			"width=370,height=320,scrollbars=yes,resizable=yes");
		if (wdh) wdh.focus();
	}
function debugmsg(k) {};

<!--
function refresh(time) {
 window.setTimeout("go()",time);
}
function go() {
 location.replace("http://www.cmps.3dfactory.de/webcam/webcam.php");
}
//-->


