oldOnLoad = window.onload;
if (typeof window.onload != 'function') {
window.onload = function() {
CreateTooltip();
SetTooltips();
};
}
else {
window.onload = function() {
oldOnLoad();
CreateTooltip();
SetTooltips();
};
}
function CreateTooltip() {
tooltip = document.createElement('DIV');
tooltip.setAttribute('id', 'tooltip');
tooltipHeader = document.createElement('DIV');
tooltipHeader.setAttribute('id', 'tooltipHeader');
tooltipHeader.setAttribute('class', 'direct');
tooltipBody = document.createElement('DIV');
tooltipBody.setAttribute('id', 'tooltipBody');
tooltipFooter = document.createElement('DIV');
tooltipFooter.setAttribute('id', 'tooltipFooter');
tooltipBody.innerText = 'tooltip';
tooltip.appendChild(tooltipHeader);
tooltip.appendChild(tooltipBody);
tooltip.appendChild(tooltipFooter);
tooltipcanclose=true;
tooltip.onmouseover = function(e) { this.style.filter = "Alpha(Opacity='100')"; this.style.MozOpacity = '1'; tooltipcanclose=false;}
tooltip.onmouseout = function(e) { this.style.filter = "Alpha(Opacity='85')"; this.style.MozOpacity = '0.85'; tooltipcanclose=true; setTimeout("CloseTooltip();", 1000);}
tooltip.onclick = function(e) { tooltipcanclose=true; CloseTooltip(); }
document.body.appendChild(tooltip);
window.onresize = function(e) { tooltipcanclose=true; CloseTooltip(); }
document.body.onclick= function(e) { tooltipcanclose=true; CloseTooltip(); }
}
function CloseTooltip()
{
if(tooltipcanclose)
document.getElementById('tooltip').style.display = 'none';
}
function SetTooltips() {
elements = document.getElementsByTagName("body")[0].getElementsByTagName("*");
for (i = 0; i