
function createFlashcode(sourse, flashVars, version, width, hight){
  
  var tag = new FlashTag(sourse, width, hight); // last two arguments are height and width
  tag.setId('flvplayer');
  if(version && version != null){
    tag.setVersion(version);  
  }
  if(flashVars && flashVars != null){
    tag.setFlashvars(flashVars);
  }
  if (version == null) {
    tag.write(document);  
  } else {
    tag.write_div(version);  
  }
  return;
}


