/*
	Provides functionality to open a window for the Office Videos

	Owner: BogdanF
*/

/*
	Opens a browser window for the Office Videos feature
	Handles both IE & Netscape

	Owner: BogdanF
*/
function OpenVideo(url, iWidth, iHeight)
{
	// Is Netscape?
	if (-1 != window.navigator.appName.toUpperCase().indexOf("NETSCAPE"))
		{
		/*
		For Netscape, we cannot use the 3rd parameter of window.open().
		If we do so, document.body.clientWidth/Height will always return 0
		and the JS will not work anymore. This might be caused by a Netscape bug.
		*/
		window.open(url, '_AsstVidWnd');
		}
	else
		{
		window.open(url, '_AsstVidWnd', 'left=10,top=10,toolbar=0,status=0,menubar=1,resizable=1,width=' + iWidth + ',height=' + iHeight);
		}
}
