// copyright (c) 2005 thomas fuchs (http://script.aculo.us, http://mir.aculo.us) // // permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "software"), to deal in the software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the software, and to // permit persons to whom the software is furnished to do so, subject to // the following conditions: // // the above copyright notice and this permission notice shall be // included in all copies or substantial portions of the software. // // the software is provided "as is", without warranty of any kind, // express or implied, including but not limited to the warranties of // merchantability, fitness for a particular purpose and // noninfringement. in no event shall the authors or copyright holders be // liable for any claim, damages or other liability, whether in an action // of contract, tort or otherwise, arising from, out of or in connection // with the software or the use or other dealings in the software. 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();