// JavaScript Document

<!-- 
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
    + 'width="999" height="725"'
    + 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="cstFlash" align="middle">'
    + '<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="main.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name=FlashVars value="xmlRef=xml/' + page_name + '.xml" />'
    + '<embed src="main.swf" quality="high" bgcolor="#000000"'
    + 'width="999" height="725" name="cstFlash" align="middle"'
    + 'FlashVars="xmlRef=xml/' + page_name + '.xml"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<div id="inhalt_alt"><div style="background-image:url(_lib/img/alt_bg.jpg); background-repeat:repeat-x; background-position:top left; background-color:#6b0302; width:550px;"><img src="_lib/img/alt_logo.jpg" alt="The Street Theatre" width="146" height="82" /><div style="padding-left:20px; color:#FFFFFF; font-family:Arial, Helvetica, sans-serif; padding-bottom:20px; padding-top:20px; font-size:12px;"><p>This website requires Adobe Flash Player 8 or higher to be viewed with interactive content.</p><p><a href="http://www.macromedia.com/go/getflash/" target="_blank" style="color:#ffad03; text-decoration:none;">Click here to download Flash Player</a>, or <a href="http://thestreet.org.au/estreet/" style="color:#ffad03; text-decoration:none;">click here to view the non-flash version of the site</a>.</p></div></div></div>';
    document.write(alternateContent);  // insert non-flash content
  }
// -->