domTooltips = {
	init: function(){
		var theTags = document.getElementById('cms_pricing') ? document.getElementById('cms_pricing').getElementsByTagName('acronym') : [];
		if ( document.getElementById('cms_tooltip') ) { document.getElementById('cms_tooltip').id = "cms_oldtooltip"; }
		var theTooltip = document.createElement('div');
		theTooltip.id = "cms_tooltip";
		theTooltip.className = "tool-tip";
		theTooltip.style.width = "400px"; 
		theTooltip.style.zIndex = "200"; 
		theTooltip.style.display =  "none"; 
		theTooltip.style.position = "absolute"; 
		theTooltip.style.borderWidth = "1px";
		document.body.appendChild(theTooltip);
		for ( var i = 0 ; i < theTags.length ; i++ ) {
			if ( typeof theTags[i].tooltiptext == 'undefined' ) {
				theTags[i].tooltiptext = theTags[i].title;
			}
			theTags[i].title = "";
			theTags[i].onmouseover = function(e){
				var theTooltip = document.getElementById('cms_tooltip');
				theTooltip.innerHTML = this.tooltiptext;
				theTooltip.style.display = "block";

			};
			theTags[i].onmouseout = function(){
				var theTooltip = document.getElementById('cms_tooltip');
				theTooltip.style.display = "none";
			}
			theTags[i].onmousemove = function(e){
				var theTooltip = document.getElementById('cms_tooltip');
				var posx = 0;
				var posy = 0;
				if (!e) var e = window.event;
				if (e.pageX || e.pageY) 	{
					posx = e.pageX;
					posy = e.pageY;
				}
				else if (e.clientX || e.clientY) 	{
					posx = e.clientX + document.body.scrollLeft
						+ document.documentElement.scrollLeft;
					posy = e.clientY + document.body.scrollTop
						+ document.documentElement.scrollTop;
				}
				theTooltip.style.left = posx + 13 + 'px';
				theTooltip.style.top = posy + 'px';
			}
		}
	}
}
window.addEvent('domready',function(){
	domTooltips.init();
});