jQuery(function($) { 
    // setup the tooltips

    $('.ttt').each( function() {

    var tt;

    $.each(this.className.split(" "), function(index, val) {

        if (val.substr(0, 4) == "ttt-") {
            var tts = $('#' + val.replace("ttt-", "tt-"));

            if (tts && tts.length > 0) {
                tt = tts[0];
            }
        }
    
    });

    if (tt) {
        $(this).hoverIntent({
    		sensitivity: 3, 
    		interval: 100, 
    		timeout: 500,
    		over: function() {
    			$(tt).show().affix(this, { from: "se", to: "ne", inset: [ -20, 0 ] });
    		},

            out: function() {
    		  $(tt).hide().unshim();
    		}
    	});
    }

    });
});
