var tta = {};
function ttc(txt,x,y,w,h){
    var tt = {};
    tt.id = new Date().getTime();
    tt.el = $('<div class="tooltip"><div class="tta"><img src="/images/tta.png"></div><div class="ttcontent"></div></div>');
    tt.txtel = tt.el.children('.ttcontent');
    tt.txtel.html(txt);
    var c = {};
    if(w!=null) c['max-width'] = w;
    if(h!=null) c.height = h;
    if(x!=null) c.left = x;
    if(y!=null) c.top = y;
    tt.el.css(c);
    tt.el.fadeOut(10);
    $('body').append(tt.el);
    tt.el.fadeIn(200);
    tta[tt.id] = tt;
    return tt;
};
