if (!ASYOUJS) { var ASYOUJS = new Object(); }
var ASYOULOAD = {
require: function(libnm) {
document.write('<script type="text/javascript" src="'+libnm+'"></script>');
},
load: function() {
if((typeof Prototype=='undefined') || 
(typeof Element == 'undefined') || 
(typeof Element.Methods=='undefined') ||
parseFloat(Prototype.Version.split(".")[0] + "." +
Prototype.Version.split(".")[1]) < 1.5)
throw("ASYOULOAD requires the Prototype JavaScript framework >= 1.5.0");
$A(document.getElementsByTagName("script")).findAll( function(s) {
return (s.src && s.src.match(/asyouloader\.js(\?.*)?$/))
}).each( function(s) {
var path = s.src.replace(/asyouloader\.js(\?.*)?$/,'');
var includes = s.src.match(/\?.*load=([0-9A-Za-z,.-]*)/);
(includes ? includes[1] : 'effects,dragdrop,styleswitcher,modalwin').split(',').each(
function(include) { ASYOULOAD.require(path+include+'.js') });
});
}
}
ASYOULOAD.load();