//pop up window function
function openWindow(theURL,winName,features) {
	features += "scrollbars=yes,resizable=yes"; 
	window.open(theURL,winName,features);
}

//insert flash object so that it bypasses the IE 'Click to activate' stuff
//ex call: <script type="text/javascript">insertFlash("fleet.swf", "664", "410", "ffffff");</script>
function insertFlash(theName, theWidth, theHeight, theBG) {
	document.write("\r\n<object type=\"application/x-shockwave-flash\" width=\"" + theWidth + "\" height=\"" + theHeight + "\" data=\"" + theName + "\">\r\n");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />\r\n");
	document.write("<param name=\"menu\" value=\"false\" />\r\n");
	document.write("<param name=\"movie\" value=\"" + theName + "\" />\r\n");
	document.write("<param name=\"quality\" value=\"high\" />\r\n");
	document.write("<param name=\"wmode\" value=\"transparent\" />\r\n");
	document.write("<param name=\"bgcolor\" value=\"#" + theBG + "\" />\r\n");
	//document.write("<embed src=\"" + theName + "\" quality=\"high\" bgcolor=\"#" + theBG + "\" width=\"" + theWidth + "\" height=\"" + theHeight + "\" name=\"" + theName + "\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\r\n");
	document.write("</object>\r\n");
}