
//auction-scriptloader.js
//Created: 05 November 2009
//Author: Tobias Mayer
//this script is called from each auction.php file in every directory below /auction

var LOCAL_ROOT = 'file:///Users/tobias/Documents/Tobias Documents/agile/website/lib/js/';
var WEB_ROOT   = 'http://agilethinking.net/lib/js/';

var LOCAL = window.location.toString().substring(0, 7) === "file://";
var wcsm_main      = (LOCAL ? LOCAL_ROOT : WEB_ROOT) + 'wcsm-main.js';
var wcsm_auction   = (LOCAL ? LOCAL_ROOT : WEB_ROOT) + 'wcsm-auction.js';
var md5            = (LOCAL ? LOCAL_ROOT : WEB_ROOT) + 'md5.js';
var util           = (LOCAL ? LOCAL_ROOT : WEB_ROOT) + 'util.js';
var popcontroller  = (LOCAL ? LOCAL_ROOT : WEB_ROOT) + 'popcontroller.js';

//welfareCSM auction scripts
document.write('\n<sc'+'ri'+'pt src="' + wcsm_main + '"></scr'+'ipt>'); 
document.write('\n<sc'+'ri'+'pt src="' + wcsm_auction + '"></scr'+'ipt>'); 

//third party library script
document.write('\n<sc'+'ri'+'pt src="' + md5 + '"></scr'+'ipt>');

//tobias library scripts
document.write('\n<scr'+'ip'+'t src="' + util + '"></scri'+'pt>');
document.write('\n<scr'+'ipt src="' + popcontroller + '"></scri'+'pt>');
