

var w = 480, h = 340;

if (document.all || document.layers) {
   w = screen.availWidth;
   h = screen.availHeight;
}
var url;

var popW;

var popH;

function popUp(url, popW, popH){ 
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	window.open(url,'popup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=1');
}


function newsWin(url, popW, popH){ 
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	window.open(url,'news','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=1');
}

function theatersWin(url, popW, popH){ 
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	window.open(url,'theaters','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=1');
}



function trailerlWin(url, popW, popH){ 
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	window.open(url,'trailerlpopup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=1');
}

function trailersWin(url, popW, popH){ 
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	window.open(url,'trailerspopup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=1');
}







// generic launchWindow function
function launchWindow(url, name, width, height, scrollbars)
{
			screenX = (screen.width / 2) - (width / 2);
			screenY = 20;
			launchWin = window.open(url,name,"toolbar=no,directories=no,menubar=no,scrollbars=" + scrollbars + ",resizable=no,width=" + width + ",height=" + height + ",top=" + screenY + ",left=" + screenX + ",screenX=" + screenX + ",screenY=" + screenY);
}
