var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
var contentVersion = 34;
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="760" title="Jacksprats">'
    + '<param name="movie" value="mainpage.swf?v='+contentVersion+'" />'
    + '<param name="quality" value="high" />'
    + '<embed src="mainpage.swf?v='+contentVersion+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="760"></embed>'
    + '</object>'
	
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '  <div style="position:absolute; top:10px; left:10px; width:700px; height:600px; overflow:hidden; text-color:#ffffff;">'
    + '<h1>Jack Sprat\'s Restaurant</h1>'
    + '<p>Welcome to Jack Sprat\'s restaurant at the Windmill Inn. '
    + 'We offer great food and the most succulent dishes in Leamington Spa. Jack Sprat\'s is a great destination'
    + 'for a family eat-out. We have a wide variety of good food available. There are special offers for senior citizens, '
    + 'and of course the most enjoying kids menus. Try our homemade food, just the way mum made it. </p>'
    + '<p>We can cater for special events, such as birthdays, wedding celebrations and all anniversaries.' 
    + 'Why not make Jack Sprat\'s Restaurant your special place.</p>'
    + '<p>Situated in beautiful Leamington Spa and with a history of over 100 years of history the Windmill inn has been '
    + 'the local place to be for many generations.</p>'
    + '</div>'

  	+ 'To view the full page please install the Macromedia Flash Player.'
   	+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
    document.write(alternateContent);  // insert non-flash content
  }