var mouseOut;

function insert_code(url, func) {
	var oXmlHttp = zXmlHttp.createRequest();
	oXmlHttp.open("get", url, true);
	oXmlHttp.onreadystatechange = function () {
		if (oXmlHttp.readyState == 4) {			
			
			if (!mouseOut) {
				ddrivetip(oXmlHttp.responseText)
			}

			if (func) {
				var result = eval(func);
			}
		}
		else {
			if (!mouseOut) {
				ddrivetip('<img src="themes/Main/loading.gif" />');
			}
		}
	}
	oXmlHttp.send(null);

}

function showAjaxTip(script) {
	mouseOut = false;
	insert_code(script);
}

function hideAjaxTip() {		
	mouseOut = true;
	hideddrivetip();	
}
