function qTIP(e,action){
	var tipContainer = document.getElementById("qTip");

	var sTitle = ""

	if (!document.getElementById) return;

	if (e) document.onmousemove = function (evt) {moveQTIP(evt)};
	
	sTitle = e.getAttribute("title");				
	if(sTitle)
	{
		e.setAttribute("tiptitle", sTitle);
		e.removeAttribute("title");
		e.removeAttribute("alt");
	}
	if(action == 'show'){ showQTIP(tipContainer,e.getAttribute('tiptitle')); }
	if(action == 'hide'){ hideQTIP(tipContainer); }
}

function moveQTIP(evt) {
	var qTipX = 0;
	var qTipY = 15;
	var tipContainer = document.getElementById("qTip");
	var x=0, y=0;
	if (document.all) {//IE
		x = (document.documentElement && document.documentElement.scrollLeft) ? document.documentElement.scrollLeft : document.body.scrollLeft;
		y = (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
		x += window.event.clientX;
		y += window.event.clientY;
		
	} else {//Good Browsers
		x = evt.pageX;
		y = evt.pageY;
	}
	tipContainer.style.left = (x + qTipX) + "px";
	tipContainer.style.top = (y + qTipY) + "px";
}

function showQTIP(e,text) {
	if (!e) return;
	e.innerHTML = text;
	fadeOutIn(e,'in');
}

function hideQTIP(e) {
	if (!e) return;
	e.innerHTML = "";
	fadeOutIn(e,'out');
}