﻿var docTips = new TipObj('docTips');

with(docTips){
    template = '<table class="infoTip" width="%2%"><tr><td style="width: 100%;">%3%<td><tr></table>';
    
    showDelay = 40;
    hideDelay = 80;
    
    doFades = true;
    
    minAlpha = 0;
    maxAlpha = 85;
    
    fadeInSpeed = 80;
    fadeOutSpeed = 80;
    
    tipStick = 0.1;
}

function titlesToTips(){
    var tags = isDOM ? document.getElementsByTagName('*') : [];
    for(var i = 0; i < tags.length; i++){
        if(tags[i].title){
            tags[i].onmouseover = new Function('docTips.newTip("tagTip' + i + '", 14, 14, 100, "' + tags[i].title + '")');
            tags[i].onmouseout = new Function('docTips.hide()');
            tags[i].title = '';
        }
    }
};
