if (typeof(document.getElementsByTagName) != 'undefined') {
  theId = document.getElementsByTagName('div');
  var theIdCnt  = theId.length;
  for (c = 0; c < theIdCnt; c++) {
    //alert(theId[c].id.substr(0,3));
    if (theId[c].id.substr(0,3)=='flv') {
      //alert(theId[c].title);
      var temp = theId[c].title.split('|');
      s = new Array();
      s[c] = new SWFObject("../functions/player.swf","player",temp[2],temp[3],"8");
      s[c].addParam("allowfullscreen","true");
      s[c].addVariable("width",temp[2]);
      s[c].addVariable("height",temp[3]);
      s[c].addVariable("image",temp[1]);
      s[c].addVariable("file",temp[0]);
      s[c].write("flv"+temp[4]);
    }
  }
}

