var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
	document.write('<object width="100%" height="800px"><param name="bgcolor" value="#000000"><param name="allowScriptAccess" value="always"><param name="movie" value="'+initial_serverroot+widget_path+'homepage.swf?inst_id='+parameter_inst_id+'&initial_serverroot='+initial_serverroot+'php/"/><embed src="'+initial_serverroot+widget_path+'homepage.swf?inst_id='+parameter_inst_id+'&initial_serverroot='+initial_serverroot+'php/" type="application/x-shockwave-flash" width="100%" bgcolor="#000000" allowScriptAccess="always" height="800px"></embed></object>');
  } else {  // flash is too old or we can't detect the plugin
    document.write('Alternate HTML content should be placed here. This content requires the Macromedia Flash Player.<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>');  // insert non-flash content
  }