//variables used to center pop-up windows
var width = screen.width;
var height = screen.height;
var popUpWidth = 0;
var popUpHeight = 0;
var positionTop = 0;
var positionLeft = 0;

//jaslene video pop-up windows
function openVideo(pageURL,windowName,pWidth,pHeight,pResize,pScrollbars) {
	positionTop = ((height/2) - (pHeight/2));
	positionLeft = ((width/2) - (pWidth/2));
	popup=window.open(pageURL,windowName, config='width=' + pWidth + ',height=' + pHeight + ',left=' + positionLeft + ',top=' + positionTop + ',resizable=' + pResize + ',menubar=0,location=0,directories=0,toolbar=0,scrollbars=' + pScrollbars + ',status=0');
	popup.focus();
}