﻿// JScript File
var toolTip1;

window.addEvent('domready', function() {

    $$('.legendLink').each(function(element, index) {
        var content = element.get('title').split('::');
        element.store('tip:title', content[0]);
        element.store('tip:text', content[1]);
    });

    //create the tooltips   
    var tip = new Tips('.legendLink', {
        className: 'tool-tip',
        fixed: true,
        hideDelay: 50,
        showDelay: 50
    });

    //customize
    
    tip.addEvents({
    'show': function(tip) {
    tip.fade('in', 1);
    },
    'hide': function(tip) {
    tip.fade('out', 1);
    }
    }); 
    
    
    
    
    
});

