//This code is modeled after the Scriptaculous.js code, but does not attempt to 
// do the same functions. Scriptaculous is
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
var Extractable = {
  Version: '1.0.2',
  requireLib: function(libraryName) {
    // inserting via DOM fails in Safari 2.0, so brute force approach
    document.write('<script type="text/javascript" src="'+libraryName+'"></script>');
  },
  load: function() {
    if((typeof Prototype=='undefined') ||
      parseFloat(Prototype.Version.split(".")[0] + "." +
                 Prototype.Version.split(".")[1]) < 1.4)
      throw("Extractable requires the Prototype JavaScript framework >= 1.4.0");
    
	Extractable.requireLib("/common/js/ExtractableFlash.js");
  },
  addLoadEvent: function(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function')
    {
        window.onload = func;
    }
    else
    {
        window.onload = function() { oldonload(); func(); }
    }
  }
}

Extractable.load();