sIFR.replaceElement("h2", named({sFlashSrc: "/behaviours/resources/verdana.swf", sColor: "#d07004", sBgColor: "#ffffff", sFlashVars: "textalign=left"}));
sIFR.replaceElement(".heading", named({sFlashSrc: "/behaviours/resources/verdana.swf", sColor: "#d07004", sBgColor: "#ffffff", sFlashVars: "textalign=left"}));

function videoPlayer() {
  if(document.getElementById && document.getElementsByTagName){
    if (document.getElementById('video_container')) {
     var all = document.getElementsByTagName('a')
      for (var i = 0, o; o = all[i]; i++) {
        if(o.href.match(/\.flv$/i)) {
          o.style.display = 'none';
          url = o.href;
          var videoSize = o.id;
          var videoHeight = 400;
          var videoWidth = 300;
          var tempHeight; var tempWidth; var splitString;
          if (videoSize.indexOf('h')>0) {
            splitString = videoSize.indexOf('h');
            videoHeight = videoSize.substring(splitString+1);
          }
          if (videoSize.indexOf('w')>0) {
            if (splitString>0) { videoWidth = videoSize.substring(videoSize.indexOf('w')+1,splitString); }
            else { videoWidth = videoSize.substring(videoSize.indexOf('w')+1); }
          }
//          var flashVersion = o.type;
//          flashVersion = flashVersion.substring(7);
          var flvplayer = document.createElement('span')
          flvplayer.innerHTML = '<object type="application/x-shockwave-flash" wmode="transparent" ' +
          'data="/behaviours/resources/player.swf?click=/graphics/player_playbutton.jpg&file='+url+'&showfsbutton=false" height="'+videoHeight+'" width="'+videoWidth+'">' +
          '<param name="movie" value="/behaviours/resources/player.swf?click=/graphics/player_playbutton.jpg&file='+url+'&showfsbutton=false"> <param name="wmode" value="transparent">' +
//          '<param name="flashVersion" value="11" />' +
          '<embed src="/behaviours/resources/player.swf?file='+url+'&click=/graphics/player_playbutton.jpg&&showfsbutton=false" ' + 
          'width="'+videoWidth+'" height="'+videoHeight+'" name="flvplayer" align="middle" ' + 
          'play="true" loop="false" quality="high" allowScriptAccess="sameDomain" ' +
          'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">' + 
          '</embed></object>'
          o.parentNode.insertBefore(flvplayer, o)
        }
      }
    }
  }
}


