// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.

if (!useRedirect) {    // if dynamic embedding is turned on
  if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'WIDTH="100%" HEIGHT="100%"'
    + 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0">'
    + '<PARAM NAME="MOVIE" VALUE="/im/splash.swf">'
    + '<PARAM NAME="QUALITY" VALUE="high">'
    + '<EMBED SRC="/im/splash.swf"'
    + 'WIDTH="100%" HEIGHT="100%"'
    + 'QUALITY="high"'
    + 'TYPE="application/x-shockwave-flash"'
    + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
    + '</EMBED>'
    + '</OBJECT>';

    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    // NOTE: height, width are required!
    var alternateContent = '<img src="im/tr.gif" width="1" height="1">'
          + '<center>'
          + '<table border="0" cellpadding="0" cellspacing="0">'
          + '<tr>'
          + '   <td height="60" colspan="5"><img src="im/dot.jpg" border="0"></td>'
          + '   <td height="70" colspan="2" valign="middle" align="left"><img src="im/homelogo.gif" border="0" width="175" height="49"></td>'
          + '</tr>'
          + '<tr>'
          + '   <td width="50"><img src="im/dot.jpg" border="0"></td>'
          + '   <td height="193" width="150" valign="middle" align="center"><a href="/index.php?w=public" onMouseOut="setOldColors(' + "'1'); MM_swapImgRestore()" + '" onMouseOver="setNewColors(' + "'1'); MM_swapImage('pubimg','','im/home_public_over.jpg',1)" + '"><img src="im/home_public.jpg" alt="Public" name="pubimg" width="150" height="193" border="0"></a></td>'
          + '   <td width="55"><img src="im/dot.jpg" border="0"></td>'
          + '   <td height="193" width="150" valign="middle" align="center"><a href="/index.php?w=press" onMouseOut="setOldColors(' + "'2'); MM_swapImgRestore()" + '" onMouseOver="setNewColors(' + "'2'); MM_swapImage('presimg','','im/home_press_over.jpg',1)" + '"><img src="im/home_press.jpg" alt="Press" name="presimg" width="150" height="193" border="0"></a></td>'
          + '   <td width="55"><img src="im/dot.jpg" border="0"></td>'
          + '   <td height="193" width="150" valign="middle" align="center"><a href="/index.php?w=profession" onMouseOut="setOldColors(' + "'3'); MM_swapImgRestore()" + '" onMouseOver="setNewColors(' + "'3'); MM_swapImage('profesimage','','im/home_profession_over.jpg',1)" + '"><img src="im/home_profession.jpg" alt="Profession" name="profesimage" width="150" height="193" border="0"></a></td>'
          + '   <td width="55"><img src="im/dot.jpg" border="0"></td>'
          + '</tr>'
          + '<tr>'
          + '   <td colspan="7" height="5"><img src="im/tr.gif" border="0" height="5"></td>'
          + '</tr>'
          + '<tr>'
          + '   <td height="65"><img src="im/dot.jpg" border="0"></td>'
          + '   <td colspan="2" width="205" height="90" valign="top"><img name="pubtextimg" src="im/dot.jpg" border="0"></td>'
          + '   <td colspan="2" width="205" height="90" valign="top"><img name="prestextimg" src="im/dot.jpg" border="0"></td>'
          + '   <td colspan="2" width="205" height="90" valign="top"><img name="proftextimg" src="im/dot.jpg" border="0"></td>'
          + '</tr>'
          + '<tr>'
          + '   <td>&nbsp;  </td>'
          + '   <td colspan="6" valign="bottom" height="70">'
          + '   <a href="http://www.nhsdirect.nhs.uk/" target="_blank"><img src="im/spon_nhs.gif" border="0"></a>'
          + '   <img src="im/tr.gif" border="0" width="20">'
          + '   <a href="http://www.wordcentre.co.uk/page11.htm" target="_blank"><img src="im/spon_pea.gif" border="0"></a>'
          + '   </td>'
          + '</tr>'
          + '</table>'
          + '</center>';

    document.write(alternateContent);  // insert non-flash content
  }
} 
