// JavaScript Document

var imagePath
var generator

function flashWindow(movieURL,my_width,my_height)

{

  my_html = '<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="' + my_width + '" height="' + my_height + '"><param name="movie" value="' + movieURL + '"><param name="quality" value="high"><embed src="' + movieURL + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + my_width + '" height="' + my_height + '"></embed></object>';
  generator=window.open(movieURL,'name','height=' + (parseInt(my_height) + 75) + ',width=' + (parseInt(my_width) + 25) + ',resizable=no,scrollbars=no');

  

  generator.document.write('<html><head><title>Goldenmastermind</title>');

  //generator.document.write('</head><body onLoad="window.opener.resizeMe(' + my_width + ',' + my_height + ');">');
  generator.document.write('</head><body>');

  generator.document.write('<div align="center">' + my_html + '</div>');

  generator.document.write('<br><div align="center"><a href="javascript:self.close()">Close Window</a></div>');

  generator.document.write('</body></html>');

  generator.document.close();

}

function resizeMe(my_width,my_height)

{
	var NS = (navigator.appName=="Netscape")?true:false;
	var myHeight = (NS)?110:105;
	iWidth = my_width; 
	iHeight = my_height + 20; 
	generator.window.resizeTo(iWidth + 20, iHeight + myHeight); 
	generator.window.focus();
}