﻿window.onload = function(){
   titlesToTips();
}

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 = '';
        }
    }
};


function bookmarksite(title,url){
	if (window.sidebar) // firefox
		window.sidebar.addPanel(title, url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all)// ie
		window.external.AddFavorite(url, title);
}
