function MM_openBrWindow(theURL,winName,features) {
	if (screen) {
		w = screen.availWidth;
		h = screen.availHeight;
		if (w <= 800) {
			wpos = 0;
			hpos = 0;
		} else {
			wpos = (w-800)/2;
			hpos = (h-650)/2;
		}		
	} else {
		w = 800;
		h = 600;
		wpos = 0;
		hpos = 0;
	}
	popwidth=800;
	popheight=600;
	features = "height=" + popheight + ",width=" + popwidth + ",screenY=" + hpos + ",screenX=" + wpos+ ",top=" + hpos + ",left=" + wpos;
	popup = window.open(theURL,winName,features);
	if (popup.opener == null) msgWindow.opener = self;
	popup.focus();
}

function closewindow() {
	window.close();
}

function moveto() {
	if (screen) { 
		w = screen.availWidth;
		h = screen.availHeight;
	} 
	if (window.moveTo) {
		if (w <= 800) {
			wpos = 0;
			hpos = 0;
		} else {
			wpos = (w-800)/2;
			hpos = (h-650)/2;
		}	
		window.moveTo(wpos,hpos);
	}
}

function gettip() {
	top.opener.window.location.href = 'tipp.php?' + (Math.random()*10);
}

function videopop(theURL) {
	features = "height=306,width=361,screenY=1,screenX=1,top=1,left=1";
	winName = "video";
	theURL = "video/video.php?clipname=" + theURL;
	popup = window.open(theURL,winName,features);
	if (popup.opener == null) msgWindow.opener = self;
	popup.focus();
}

function fotopop(theURL) {
	features = "height=355,width=428,screenY=1,screenX=1,top=1,left=1";
	winName = "fotoalbum";
	theURL = "fotoalbum/" + theURL + "/fotoalbum_01.php";
	popup = window.open(theURL,winName,features);
	if (popup.opener == null) msgWindow.opener = self;
	popup.focus();
}

function castingpop() {
	features = "height=600,width=853,screenY=1,screenX=1,top=1,left=1,scrollbars=yes,resizable=yes";
	winName = "casting";
	theURL = "casting/casting_01.php";
	popup = window.open(theURL,winName,features);
	if (popup.opener == null) msgWindow.opener = self;
	popup.focus();
}