(function() { var JQUERY = 'jquery-1.5.min.js'; var JQUERY_UI = 'jquery-ui-1.8.9.custom.min.js'; var JQUERY_LEGACY = 'jquery-1.3.2.min.js'; var JQUERY_UI_LEGACY = 'jquery-ui-1.7.3.custom.min.js'; var qs = window.location.href.match(/(\?.*)?$/)[0]; var legacy = qs.indexOf('legacy') != -1; var noui = qs.indexOf('noui') != -1; var debug; var prefix; var tags; startload(); css('main.css'); css('common/common.css'); css('basic/basic.css'); css('agenda/agenda.css'); cssprint('common/print.css'); if (!legacy) { jslib('../lib/' + JQUERY); if (!noui) { jslib('../lib/' + JQUERY_UI); } }else{ jslib('../lib/' + JQUERY_LEGACY); if (!noui) { jslib('../lib/' + JQUERY_UI_LEGACY); } } if (debug && (!window.console || !window.console.log)) { jslib('../tests/lib/firebug-lite/firebug-lite-compressed.js'); } js('defaults.js'); js('main.js'); js('Calendar.js'); js('Header.js'); js('EventManager.js'); js('date_util.js'); js('util.js'); js('basic/MonthView.js'); js('basic/BasicWeekView.js'); js('basic/BasicDayView.js'); js('basic/BasicView.js'); js('basic/BasicEventRenderer.js'); js('agenda/AgendaWeekView.js'); js('agenda/AgendaDayView.js'); js('agenda/AgendaView.js'); js('agenda/AgendaEventRenderer.js'); js('common/View.js'); js('common/DayEventRenderer.js'); js('common/SelectionManager.js'); js('common/OverlayManager.js'); js('common/CoordinateGrid.js'); js('common/HoverListener.js'); js('common/HorizontalPositionCache.js'); endload(); if (debug) { window.onload = function() { $('body').append( "
" ); }; } window.startload = startload; window.endload = endload; window.css = css; window.js = js; window.jslib = jslib; function startload() { debug = false; prefix = ''; tags = []; var scripts = document.getElementsByTagName('script'); for (var i=0, script; script=scripts[i++];) { if (!script._checked) { script._checked = true; var m = (script.getAttribute('src') || '').match(/^(.*)_loader\.js(\?.*)?$/); if (m) { prefix = m[1]; debug = (m[2] || '').indexOf('debug') != -1; break; } } } } function endload() { document.write(tags.join("\n")); } function css(file) { tags.push(""); } function cssprint(file) { tags.push(""); } function js(file) { tags.push(""); } function jslib(file) { js(file); } })();