﻿
var iplay = 1;
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
    alert("This page requires AC_RunActiveContent.js.");
} else {
    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if (hasRightVersion) {  // if we've detected an acceptable version
        // embed the flash movie
        var sBrowser = isInternetExplorer ? "ie" : "n";
        var sWin = isWin ? "win" : "mac";
        AC_FL_RunContent(
  'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
  'width', '100%',
  'height', '100%',
  'src', 'rtmp://videos.framesdirect.com/vod/FullLengthHomefl8',
  'quality', 'high',
  'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
  'align', 'middle',
  'play', 'true',
  'loop', 'false',
  'scale', 'showall',
  'wmode', 'transparent',
  'devicefont', 'false',
  'id', 'fdVideoPlayer',
  'bgcolor', '#ffffff',
  'name', 'fdVideoPlayer',
  'menu', 'true',
  'allowScriptAccess', 'sameDomain',
  'allowDomain', 'http://videos.framesdirect.com',
  'allowFullScreen', 'false',
  'movie', '/include/video/fdVideoPlayer',
  'salign', '',
  'FlashVars', 'iplay=1&sb=' + sBrowser + '&ops=' + sWin
  ); //end AC code
    } else {  // flash is too old or we can't detect the plugin
        var alternateContent = 'Alternate HTML content should be placed here. This content requires the Adobe Flash Player. <a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
        document.write(alternateContent);  // insert non-flash content
    }
}

function fnPlayerControl(iType, sAction) 
{
  var VideoText = 'Click Play Button to Play With Sound';
  var VideoSource = 'rtmp://videos.framesdirect.com/vod/FullLengthHomefl8';

  if (iType == 3) 
  {
    func_onload_walkvideo("strFlashVideoNameWV", "fdVideoPlayer", "btnHomePageShowWalkVideo", "253", "420");
  }
  else 
  {
    func_walk_video_v3(iType, sAction, "span_video_player", "fdVideoPlayer", "btnHomePageShowWalkVideo", "253", "420", VideoText, VideoSource);
  }
}

function FullLengthHomefl8_DoFSCommand(command, args) {
  func_walk_video(1, 'spanFullLengthHomefl8', 'FullLengthHomefl8', 'btnHomePageShowWalkVideo', 253, 420);
}

function func_onload_walkvideo()
{
  var spanFullLengthHomefl8 = document.getElementById("spanFullLengthHomefl8");
  var objbtnHomePageShowWalkVideo = document.getElementById("btnHomePageShowWalkVideo");
  if(spanFullLengthHomefl8 && objbtnHomePageShowWalkVideo)
  {
  
    objbtnHomePageShowWalkVideo.style.visibility = (iplay == 1 ? 'hidden' : 'visible');
    if(iplay == 0)
    {
      spanFullLengthHomefl8.style.width = "0";
      spanFullLengthHomefl8.style.height = "0";
      if(!isInternetExplorer)
      {
        spanFullLengthHomefl8.style.visibility = 'hidden';
      }
    }
    else
    {
      spanFullLengthHomefl8.style.width = "253";
      spanFullLengthHomefl8.style.height = "420";
      if(!isInternetExplorer)
      {
        spanFullLengthHomefl8.style.visibility = 'visible';
      }
    }
  }
  return false;
}

