// ***************************** SAG MENU POPUP EKRANLARI **********************

var someWin=null;
	function NewWin(cmd, param) {
		var str;
		switch(cmd) {
			case "Album":
				someWin = openWin(cmd, "/Album", 800, 500, false, false);
				someWin.focus();
				someWin = null;
				break;
			case "Bunny":
				someWin = openWin(cmd, "/PopBunny.html", 472,591, true, false);
				someWin.focus();
				someWin = null;
				break;
			case "TelFax":
				someWin = openWin(cmd, "/Telefon.htm", 450, 285, false, false);
				someWin.focus();
				someWin = null;
				break;
			case "BArti":
				someWin = openWin(cmd, "/PopBpozitive.htm", 449, 598, false, false);
				someWin.focus();
				someWin = null;
				break;
			case "HotShow":
				someWin = openWin(cmd, "/PopHotShow.htm", 449, 598, false, false);
				someWin.focus();
				someWin = null;
				break;
		}
	}
	
	function openWin(winName, urlLoc, w, h, showStatus, isViewer,isViewer2) {
		l = (screen.availWidth - w)/2;
		t = (screen.availHeight - h)/2;
		features  = "toolbar=no";      // yes|no 
		features += ",location=no";    // yes|no 
		features += ",directories=no"; // yes|no 
		features += ",status=" + (showStatus?"yes":"no");  // yes|no 
		features += ",menubar=no";     // yes|no 
		features += ",scrollbars=" + (isViewer?"yes":"no");   // auto|yes|no 
		features += ",resizable=" + (isViewer2?"yes":"no");   // yes|no 
		features += ",dependent";      // close the parent, close the popup, omit if you want otherwise 
		features += ",height=" + h;
		features += ",width=" + w;
		features += ",left=" + l;
		features += ",top=" + t;
		return window.open(urlLoc,winName,features);
	} 
