/*
   writeLandingMovie(sitePrefix,flashID,flashVars,noFlashImage);

      params:
          sitePrefix:  path to "prepend" to "/inc/flash/landing/landing.swf"
                       This is normally an empty string for production files.
                       It exists for testing purposes.

          flashID:     Any valid unique document ID.   "landing" is a good value.

          flashVars:   a URL encoded list of parameters for the flash movie.
                       possible parameters are:
                          color:  background color: default value 0x005595
                          size:   font-size:  default value 100
                          text:   text to scroll in from the side
                          img:    url for background image: expected size is: 433 x 285
                          yoffset:text offset from bottom of movie: default value: 26, which is appropriate for the default font size.

                          If you use a bigger word that doesn't fit, you would reduce the values of the size and yoffset parameters.

          noFlashImage:   path to image to use if flash is not available.
 * 
 */


function writeLandingMovie(inRoot,inID,flashVars,inNoFlashImage) {
    //if(false) {
    if(DetectFlashVer(8, 0, 0)){    
      document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="614" height="285" id="' + inID + '" align="middle">');
      document.write('<param name="allowScriptAccess" value="sameDomain" />');
          document.write('<param name="movie" value="' + inRoot + '/inc/flash/landing/landing.swf" />');
          document.write('<param name="quality" value="high" />');
          document.write('<param name="bgcolor" value="#005595" />');
          document.write('<param name="wmode" value = "opaque"/>');
          document.write('<param name = "flashvars" value = "' + flashVars + '"/>');
          document.write('<embed wmode = "opaque" flashvars = "' + flashVars + '" src="' + inRoot + '/inc/flash/landing/landing.swf" quality="high" bgcolor="#005595" width="614" height="285" name="' + inID + '"  align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
      document.write('</object>');
    }else{
        document.write('<img src = "' + inNoFlashImage + '">');
    }
}
