var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
	document.write('<object width="100%" height="768"><param name="movie" value="'+initial_serverroot+widget_path+'homepage.swf?inst_id='+parameter_inst_id+'&initial_serverroot='+initial_serverroot+'php/"/><param name="allowFullScreen" value="true"/><param name="bgcolor" value="#000000"/> <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%" height="768" allowFullScreen="True" bgcolor="#000000"></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
  }