function getWidth() {
    return self.innerWidth || (document.documentElement.clientWidth || document.body.clientWidth);
}

function getHeight() {
	return self.innerHeight || (document.documentElement.clientHeight || document.body.clientHeight);
	//return screen.height;
}

function openWindow(playerIdArg, titleIdArg)
{
	var fs = window.open( "/video/fullscreen.html?playerId="+playerIdArg+"&titleId="+titleIdArg,
	   "FullScreenVideo", "toolbar=no,width=" + screen.availWidth  + ",height=" + screen.availHeight 
		 + ",status=no,resizable=yes,fullscreen=yes,scrollbars=no");
	fs.focus();
}