
function config() {
	this.dirPath = '/shared/';
	this._debug = true;
}

config.prototype = {
	setJS : function() {
		if(document.documentElement && !navigator.userAgent.match(/AppleWebKit||MSIE 5.+Mac/)) {
			for(var i=0; i<arguments.length; i++) {
				oScript = document.createElement('script');
				oScript.type = 'text/javascript';
				oScript.src = this.dirPath + 'js/' + arguments[i];
				document.getElementsByTagName('head')[0].appendChild(oScript);
			}
		} else {
			for(var i=0; i<arguments.length; i++) {
				document.write('<script type="text/javascript" src="' + this.dirPath + 'js/' + arguments[i] + '"><\/script>');
			}
		}
	}
};

window.onerror = function() {
	if (EA._debug) {
		var msg = 
			'Error: ' + arguments[0] + '\n' +
			'File: '  + arguments[1] + '\n' + 
			'Line: '  + arguments[2];
		alert(msg);
	}
	return true;
}

var EA = new config();
EA.setJS('prototype-lite.js', 'rollover.js');
