var popUpWin=0;
function popUpWindowBase(urlStr, left, top, width, height, resizable) {
	if (popUpWin) {
		if(!popUpWin.closed) { popUpWin.close(); }
	}
	var prm = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes";
	prm = prm + ",copyhistory=no,resizable=" + resizable + ",width=" + width + ",height=" + height;
	prm = prm + ",left=" + left + ", top=" + top + ",screenX=" + left + ",screenY=" + top;
	popUpWin = window.open(urlStr, 'popUpWin', prm);
}

function popUpWindowTrailer(url) {
	var width = 320;
	var posX = (window.screen.width / 2) - (width / 2);
	var height = 420;
	var posY = (window.screen.height / 2) - (height / 2);
	popUpWindowBase(url, posX, posY, width, height, "no");
}

function popUpWindowCar(url) {
	var width = 320;
	var posX = (window.screen.width / 2) - (width / 2);
	var height = 420;
	var posY = (window.screen.height / 2) - (height / 2);
	popUpWindowBase(url, posX, posY, width, height, "no");
}