// copyright (c) 2005 thomas fuchs (http://script.aculo.us, http://mir.aculo.us) // var scriptaculous = { version: '1.5.1', require: function(libraryname) { // inserting via dom fails in safari 2.0, so brute force approach document.write(''); }, load: function() { if((typeof prototype=='undefined') || parsefloat(prototype.version.split(".")[0] + "." + prototype.version.split(".")[1]) < 1.4) throw("script.aculo.us requires the prototype javascript framework >= 1.4.0"); $a(document.getelementsbytagname("script")).findall( function(s) { return (s.src && s.src.match(/scriptaculous\.js(\?.*)?$/)) }).each( function(s) { var path = s.src.replace(/scriptaculous\.js(\?.*)?$/,''); var includes = s.src.match(/\?.*load=([a-z,]*)/); (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider').split(',').each( function(include) { scriptaculous.require(path+include+'.js') }); }); } } scriptaculous.load();