var showPrototip=function(element,title,value,className){
    if((!className)||(className=="")){
        className="default";
    }
    new Tip(element, value, {
        title: title,
        effect: "appear",
        duration: 0.1,
        delay: 0.0,
        className: className
    });
}



document.observe("dom:loaded", function() {
    $$(".tooltip").each( function(element) {
        element.observe("mouseover",function(ev){
            var tipTitle=element.getAttribute('tiptitle');
            var tipValue=element.getAttribute('tipvalue');
            var tipClass=element.getAttribute('tipclass');
            showPrototip(element,tipTitle,tipValue,tipClass);
        });
    });
});
