function include(url, element, id) {
	if (!url) {
		return;
	}
	var scriptTag = document.createElement('script');
	if (id) {
		scriptTag.id = id;
	}
	scriptTag.type = 'text/javascript';
	scriptTag.src = 'http://' + document.location.host + '/load/external?src=' + encodeURIComponent(url);
	if (element) {
		element.appendChild(scriptTag);
	} else {
		document.getElementsByTagName('head')[0].appendChild(scriptTag);
	}
}

function includeAndRun(url, element, callback) { 
	if (!url) {
		return;
	}
	var scriptTag = document.createElement('script');
	scriptTag.type = 'text/javascript';
	scriptTag.onload = callback;
	scriptTag.src = 'http://' + document.location.host + '/load/external?src=' + encodeURIComponent(url);
	if (element) {
		element.appendChild(scriptTag);
	} else {
		document.getElementsByTagName('head')[0].appendChild(scriptTag);
	}
}