anywhere = {
	includeBase : '/chrome/js/',
	load : function(url) {
		var protocol = url.substring(0, url.indexOf(':') + 1).toLowerCase();
		switch (protocol) {
			case 'http:' :
			case 'https:' :
			case 'file:' :
				break;
			default :
				protocol = window.location.protocol;
		}

		if( document.all ) { //is IE
			var ajax = null;
			if (protocol == 'file:') {
				try {
					ajax = new ActiveXObject("Microsoft.XmlHttp");
				} catch(e) {}
				if (ajax == null) {
					try {
						ajax = new ActiveXObject("MSXML2.XmlHttp");
					} catch(e) {}
				}
			} else {
				if (window.XMLHttpRequest) {
					ajax = new XMLHttpRequest();
				} else {
					ajax = new ActiveXObject("Microsoft.XmlHttp");
				}
			}

			ajax.onreadystatechange = function() {
				if (ajax.readyState == 4) {
					try {
						window.execScript(ajax.responseText);
					} catch (e) {
						alert('Problem executing javascript include \'' + url + '\'.', e);
					}

					delete ajax;
				}
			}
			try {
				ajax.open("GET", anywhere.includeBase + url, false);
				ajax.send(null);
			} catch (e) {
				alert('Could not load javascript include \'' + url + '\'.', e);
			}
		} else {
			var ajax = new XMLHttpRequest();
			try {
				ajax.open("GET", anywhere.includeBase + url, false);
				ajax.send(null);
			} catch (e) {
				alert('Could not load javascript include \'' + url + '\'.', e);
			}
			try {
				window.eval(ajax.responseText);
			} catch (e) {
				alert('Problem executing javascript include \'' + url + '\'.', e);
			}

			delete ajax;
		}
	}
}

anywhere.load('ac.js');
ac.script.includeBase = '/chrome/js/';
anywhere.load('anywhere.index.js');
anywhere.load('anywhere.feedback.js');
