
var n = (document.layers) ? 1:0; 
var ie = (document.all) ? 1:0;
var mac = (navigator.userAgent.indexOf('Mac')>-1) ? 1:0;
function openWin( html, name, wval, hval ) {
	// set general size vars
	var w_val = wval;
	var h_val = hval;


	// if browser is ie mac
	if (ie && mac) {
		w_val -= 16;
		h_val -= 16;
	}
	
	// open the browser
	var nw=window.open( html, name, 'width='+w_val+',height='+h_val+',status=yes,menubar=no,scrollbars=yes,resizable=yes');
	nw.focus();
	
	// move it to the upper lefthand corner
	//nw.moveTo(0,0);
		
}
function openWinShahzia() {
	// set general size vars
	var w_val = 1000;
	var h_val = 750;


	// if browser is ie mac
	if (ie && mac) {
		w_val -= 16;
		h_val -= 16;
	}
	
	// open the browser
	var nw=window.open( 'http://redstudio.moma.org/interviews/shahzia/', 'shazia', 'width='+w_val+',height='+h_val+',status=yes,menubar=no,scrollbars=yes,resizable=yes');
	nw.focus();
	
	// move it to the upper lefthand corner
	//nw.moveTo(0,0);
		
}


function openInterview( html, name ) {
	
	
	var sw = window.screen.width;
	var sh = window.screen.height;
	
	// sizes
		// largest
		var w_val = 790
		var h_val = 665
	
		if (sw <= 1024 || sh <= 768) {
			h_val = 650;
		}
		if (sw <= 800 || sh <= 600) {
			w_val = 750;
			h_val = 520;
		}


	// if browser is ie mac
	if (ie && mac) {
		w_val -= 16;
		h_val -= 16;
	}
	
	// open the browser
	var nw=window.open( html, name, 'width='+w_val+',height='+h_val+',status=yes,menubar=no,scrollbars=yes,resizable=yes');
	nw.focus();
	
	// move it to the upper lefthand corner
	//nw.moveTo(0,0);
		
}

