/**************************************************************
* Copyright   : Infinamic, Inc. 2004
* Support     : support[at]infinamic[dot]com
* Sales		  : sales[at]infinamic[dot]com
* Create Date : 06/10/2004
* Modify Date : 06/10/2004
***************************************************************
* Purpose     : Creates a new popup window containg a flash
*			  : movie.
*
* Inputs      : N/A
*
* Returns     : N/A
*
* Requires	  : N/A
**************************************************************/

function openNewsWindow()
{
	// Create a popup window.
	newsWindow = window.open('', 'news_window', 'width=340, height=340, left=160, top=70, toolbar=no, scrollbars=no, location=no, statusbar=no, menubar=no, resizable=yes');

	// Write html to newly created window. 
	newsWindow.document.write('<html>');
	newsWindow.document.write('<head>');
	newsWindow.document.write('<title>TLC : News</title>');
	newsWindow.document.write('<link href="css/common.css" type="text/css" rel="stylesheet">');
	newsWindow.document.write('</head>');
	newsWindow.document.write('<body bgcolor="#003366">');
	newsWindow.document.write('<object id="MediaPlayer" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" width="320" height="310">');
	newsWindow.document.write('<param name="filename" value="video/news.wmv">');
	newsWindow.document.write('<param name="AutoStart" value="true">');
	newsWindow.document.write('<param name="ShowControls" value="true">');
	newsWindow.document.write('<param name="ShowStatusBar" value="true">');
	newsWindow.document.write('<param name="Autorewind" value="true">');
	newsWindow.document.write('<param name="ShowDisplay" value="false">');
	newsWindow.document.write('<param name="AutoSize" value="-1">');
	newsWindow.document.write('<embed src="video/news.wmv" type="application/x-mplayer2" name="MediaPlayer" autostart="1" showcontrols="0" showstatusbar="0" autorewind="1" showdisplay="0" autosize="0" width="320" height="310">');
	newsWindow.document.write('</embed>');
	newsWindow.document.write('</object>');
	newsWindow.document.write('<div class="popup_window" style="cursor:pointer;" onclick="window.close();">close window</div>');
	newsWindow.document.write('</body>');
	newsWindow.document.write('</html>');

	// Stop writing html to the window.
	newsWindow.document.close();

	// Set focus to the new window.
	if (window.focus)
	{
		newsWindow.focus();
	}
}