  // Options
  var skin_url    = "flash/emff_lotr.swf";
  var skin_width  = 14;
  var skin_height = 14;
  
  
  var activeEmffPlace = null;
  var oldContent = null;
  
  var hasFlash = (window.swfobject != undefined) ? swfobject.hasFlashPlayerVersion("7.0.0") : true;
  
  function showEMFF(emffPlace, src) {
    if (!hasFlash) {
      // execute hyperlink
      return true;
    }
    
    // destroy old emff
    if (activeEmffPlace != null) {
    	activeEmffPlace.innerHTML = oldContent;
    }
    
    // save content
    activeEmffPlace = emffPlace;
    //oldContent = emffPlace.innerHTML;
    oldContent = "<a href=\"" + src + "\" onclick=\"return showEMFF(this.parentNode, this.href);\"><img src=\"images/play_off.png\" width=\"14\" height=\"14\" alt=\"Play\" style=\"border: 0\" onmouseover=\"this.src='images/play_over.png'\" onmouseout=\"this.src='images/play_off.png'\"></a>";
    
    // create new emff
    emffPlace.innerHTML =
      "<object type=\"application/x-shockwave-flash\" data=\"" + skin_url + "\" width=\"" + skin_width + "\" height=\"" + skin_height + "\">"
    + "<param name=\"movie\" value=\"" + skin_url + "\">"
    + "<param name=\"quality\" value=\"high\">"
    + "<param name=\"bgcolor\" value=\"#e3c3a7\">"
    + "<param name=\"FlashVars\" value=\"src=" + encodeURIComponent(src) + "&amp;autostart=yes\">"
    + "<\/object>";
    
    // return false to make sure the hyperlink is not executed
    return false;
  }

