// This script checks for Prototype

// Check for Prototype
function require_Library(libraryName) {
    try{
      // inserting via DOM fails in Safari 2.0, so brute force approach
      document.write('<script type="text/javascript" src="'+libraryName+'"><\/script>');
    } catch(e) {
      // for xhtml+xml served content, fall back to DOM methods
      var script = document.createElement('script');
      script.type = 'text/javascript';
      script.src = libraryName;
      document.getElementsByTagName('head')[0].appendChild(script);
    }
}

if (typeof(window.Prototype)=="undefined") {
	require_Library("/scripts/prototype.js"); 
	require_Library("/modules/events/scripts/calendar-code.js"); 
}
else {
	require_Library("/modules/events/scripts/calendar-code.js"); 
}

