/**************************************************************
* Copyright   : Infinamic, Inc. 2004
* Support     : support[at]infinamic[dot]com
* Sales		  : sales[at]infinamic[dot]com
* Create Date : 04/09/2004
* Modify Date : 06/10/2004
***************************************************************
* Purpose     : Creates a new popup window containing a flash
*			  : movie.
*
* Inputs      : N/A
*
* Returns     : N/A
*
* Requires	  : N/A
**************************************************************/

function openAnimationWindow()
{ 
	// Create a popup window.
	var animationWindow = window.open('', 'animation_window', 'width=500, height=440, left=160, top=70, toolbar=no, scrollbars=no, location=no, statusbar=no, menubar=no, resizable=yes');

	// Write html to newly created window. 
	animationWindow.document.write('<html>');
	animationWindow.document.write('<head>');
	animationWindow.document.write('<title>TLC : Animation</title>');
	animationWindow.document.write('<link href="css/common.css" type="text/css" rel="stylesheet">');
	animationWindow.document.write('</head>');
	animationWindow.document.write('<body bgcolor="#003366">');
	animationWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="480" height="409">');
	animationWindow.document.write('<param name="movie" value="flash/invention.swf">');
	animationWindow.document.write('<param name="quality" value="high">');
	animationWindow.document.write('<embed src="flash/invention.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409">');
	animationWindow.document.write('</embed>');
	animationWindow.document.write('</object>');
	animationWindow.document.write('<div class="popup_window" style="cursor:pointer;" onclick="window.close();">close window</div>');
	animationWindow.document.write('</body>');
	animationWindow.document.write('</html>');

	// Stop writing html to the window.
	animationWindow.document.close();

	// Set focus to the new window.
	if (window.focus)
	{
		animationWindow.focus();
	}
}