var IMO_DivMain="";$.fn.IMO_ToolTipShow = function(options) {  var opt = { IMO_Titlu: "Window Title",	// Titlu Fereastra              IMO_Continut: "Continut",		// Continut Fereastra              IMO_Width: 300                        // Lungimea              };      $.extend(opt, options);return this.each(function(i) {  //Variabila width  care poate fii setata if($.browser.msie){   var IMO_Width = opt.IMO_Width - 12; //12   var IMO_WidthBody = opt.IMO_Width - 12; //12 }else{   var IMO_Width = opt.IMO_Width - 12;   var IMO_WidthBody = opt.IMO_Width - 12; }  //coturile preincarcare  var IMG_CTopS = $('<img />').attr('src','images/IMO_ToolTipsImg/top_l.png')  var IMG_CTopD = $('<img />').attr('src','images/IMO_ToolTipsImg/top_r.png')  var IMG_CBottomS = $('<img />').attr('src','images/IMO_ToolTipsImg/dow_l.png')  var IMG_CBottomD = $('<img />').attr('src','images/IMO_ToolTipsImg/dow_r.png')  //Constructie interan  var LinieSus = $("<div style=\"float:left;width:"+opt.IMO_Width+"px;height:6px\">"                  +"  <div style=\"float:left;width:6px;height:6px;\" ><img src=\"images/IMO_ToolTipsImg/top_l.png\" /></div>"                  +"  <div style=\" width:"+IMO_Width+"px;float:left;height:6px; background:#ebe4b4;\" ></div>"                  +"  <div style=\"float:left;width:6px;height:6px;\" ><img src=\"images/IMO_ToolTipsImg/top_r.png\" /></div>"                  + "</div>")      var LinieMijloc= $("<div style=\"float:left;width:"+opt.IMO_Width+"px;background:#ebe4b4;\">"                        +"<div style=\"margin-left:6px;margin-right:6px;float:left;\" >"                        +"<div style=\"font:11px Times New Roman,Arial,Helvetica,sans-serif;color:#58310A;font-weight:700;width:"+IMO_WidthBody+"px;background:#f3edc2;\" ><div style=\"padding:5px;clear:both\"><strong>"+$.base64.decode(opt.IMO_Titlu)+"</strong></div></div>"                        +"<div style=\"font:12px Times New Roman,Arial,Helvetica,sans-serif;color:#58310A;width:"+IMO_WidthBody+"px;background:#f8f4ca\" ><div style=\"padding:5px;clear:both\">"+$.base64.decode(opt.IMO_Continut)+"</div></div>"                        +"</div>"                     +"</div>");   var LinieJos =$("<div style=\" float:left;width:"+opt.IMO_Width+"px;height:6px;\" >"                    +"<div style=\"float:left;width:6px;height:6px;\" ><img src=\"images/IMO_ToolTipsImg/dow_l.png\" /></div>"                    +"<div style=\" width:"+IMO_Width+"px;float:left;height:6px;background:#ebe4b4;\" ></div>"                    +"<div style=\" float:left;width:6px;height:6px;\"><img src=\"images/IMO_ToolTipsImg/dow_r.png\" /></div>"                   +"</div>");   IMO_DivMain = $("<div id=\"IMO_TooTips\" style=\"font:1px;width:"+opt.IMO_Width+"px;clear:both;position:absolute;top:0,width:0\"></div>");  $(IMO_DivMain).append(LinieSus)  $(IMO_DivMain).append(LinieMijloc)  $(IMO_DivMain).append(LinieJos)    //Ascundem tooltipul    $(IMO_DivMain).hide();    $("body").append(IMO_DivMain);    $(IMO_DivMain).fadeIn('slow');    //efecte mouse move pe poza    $(this).mousemove(function(e){        if ($(IMO_DivMain).length) {            $(IMO_DivMain).css({                "top":(e.pageY+15)+"px",                "left":(e.pageX+15)+"px"            })            }        }) })}//Inchide tool tipul.$.fn.IMO_ToolTipHide = function(options) {  return this.each(function(i) { //  $(IMO_DivMain).fadeOut('fast',function() {   $(IMO_DivMain).remove();   //$('#LOG').html($('#LOG').html()+" OUT");  //  } );     })}//Functie de initializare si afisare privata fata de jqueryfunction ShowTool (obj,Titlu,Mesaj,pWidth) {    $(obj).IMO_ToolTipShow({             IMO_Titlu: Titlu,                  // Titlu Fereastra             IMO_Continut: Mesaj,		// Continut Fereastra             IMO_Width:parseInt(pWidth)                         // Lungimea   });}
