raw
mp-wp_genesis           1 // script.aculo.us scriptaculous.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007
mp-wp_genesis 2
mp-wp_genesis 3 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
mp-wp_genesis 4 //
mp-wp_genesis 5 // Permission is hereby granted, free of charge, to any person obtaining
mp-wp_genesis 6 // a copy of this software and associated documentation files (the
mp-wp_genesis 7 // "Software"), to deal in the Software without restriction, including
mp-wp_genesis 8 // without limitation the rights to use, copy, modify, merge, publish,
mp-wp_genesis 9 // distribute, sublicense, and/or sell copies of the Software, and to
mp-wp_genesis 10 // permit persons to whom the Software is furnished to do so, subject to
mp-wp_genesis 11 // the following conditions:
mp-wp_genesis 12 //
mp-wp_genesis 13 // The above copyright notice and this permission notice shall be
mp-wp_genesis 14 // included in all copies or substantial portions of the Software.
mp-wp_genesis 15 //
mp-wp_genesis 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
mp-wp_genesis 17 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
mp-wp_genesis 18 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
mp-wp_genesis 19 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
mp-wp_genesis 20 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
mp-wp_genesis 21 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
mp-wp_genesis 22 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
mp-wp_genesis 23 //
mp-wp_genesis 24 // For details, see the script.aculo.us web site: http://script.aculo.us/
mp-wp_genesis 25
mp-wp_genesis 26 var Scriptaculous = {
mp-wp_genesis 27 Version: '1.8.0',
mp-wp_genesis 28 require: function(libraryName) {
mp-wp_genesis 29 // inserting via DOM fails in Safari 2.0, so brute force approach
mp-wp_genesis 30 document.write('<script type="text/javascript" src="'+libraryName+'"><\/script>');
mp-wp_genesis 31 },
mp-wp_genesis 32 REQUIRED_PROTOTYPE: '1.6.0',
mp-wp_genesis 33 load: function() {
mp-wp_genesis 34 function convertVersionString(versionString){
mp-wp_genesis 35 var r = versionString.split('.');
mp-wp_genesis 36 return parseInt(r[0])*100000 + parseInt(r[1])*1000 + parseInt(r[2]);
mp-wp_genesis 37 }
mp-wp_genesis 38
mp-wp_genesis 39 if((typeof Prototype=='undefined') ||
mp-wp_genesis 40 (typeof Element == 'undefined') ||
mp-wp_genesis 41 (typeof Element.Methods=='undefined') ||
mp-wp_genesis 42 (convertVersionString(Prototype.Version) <
mp-wp_genesis 43 convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE)))
mp-wp_genesis 44 throw("script.aculo.us requires the Prototype JavaScript framework >= " +
mp-wp_genesis 45 Scriptaculous.REQUIRED_PROTOTYPE);
mp-wp_genesis 46
mp-wp_genesis 47 $A(document.getElementsByTagName("script")).findAll( function(s) {
mp-wp_genesis 48 return (s.src && s.src.match(/scriptaculous\.js(\?.*)?$/))
mp-wp_genesis 49 }).each( function(s) {
mp-wp_genesis 50 var path = s.src.replace(/scriptaculous\.js(\?.*)?$/,'');
mp-wp_genesis 51 var includes = s.src.match(/\?.*load=([a-z,]*)/);
mp-wp_genesis 52 (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each(
mp-wp_genesis 53 function(include) { Scriptaculous.require(path+include+'.js') });
mp-wp_genesis 54 });
mp-wp_genesis 55 }
mp-wp_genesis 56 }
mp-wp_genesis 57
mp-wp_genesis 58 Scriptaculous.load();