/*
+----------------------------------------------------------------------+
| SWF-PHP - a nice PHP 5 class that exports standards-compliant XHTML
| Copyright (C) 2009 Thomas Biegeleisen <tom@biegeldesigns.com>
| Licensed under the terms of the GNU Lesser General Public License:
| 	http://www.opensource.org/licenses/lgpl-license.php
| For further information and documentation, visit:
| 	http://www.biegeldesigns.com/projects/swf/
| Authors/contributors:
|	Thomas Biegeleisen <tom@biegeldesigns.com>
| Last updated:
|	16 Oct 2009
+----------------------------------------------------------------------+
*/
var SWF_isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function SWF_RunStandardsContent() {
	var html = SWF_CreateStandardsHtml(arguments[0],arguments[1]);
	document.write(html);
}
function SWF_CreateStandardsHtml() {
	var html = "";
	var objHtml = "";
	var embedHtml = "";
	for ( i in arguments[0] ) {
		objHtml += " " + i + "=\"" + arguments[0][i] + "\"" ;
	}
	// OK: CSS2 compliant browsers seem to give <object> inline spacing; add style to compensate
	if ( objHtml != "" ) {
		html += "<object" + objHtml + " style=\"display:block;margin:0 auto;\">\n" ;
	}
	for ( i in arguments[1] ) {
		embedHtml += "<param name=\"" + i + "\" value=\"" + arguments[1][i] + "\" \/>\n" ;
	}
	if ( embedHtml != "" ) {
		html += embedHtml ;
	}
	if ( objHtml != "" ) {
		html += "<\/object>\n" ;
	}
	return html;
}

