﻿// JScript File


        Type.registerNamespace("fsC");
        
        fsC.cToolTip=function(panelid, fCallbackSuccess)
        {
            this._fCallbackSuccess = fCallbackSuccess;
            this._targetid=panelid;
            this.x=0;
            this.y=0;
            
        }
        
        fsC.cToolTip.prototype=
        {
            get_TargetID:function()
            {
                return this._targetid;
                
               
            },
            
            set_TargetID:function(targetid)
            {
                this._targetid=targetid;
            },
            
            ShowToolTip:function(event,menuid)
            {
            //alert(event.pageY);
                fs.Tooltip.QueryTooltip(menuid,this._fCallbackSuccess,this.OnError);
                this.x=400 + 10;
                //this.y=event.y + 0;//IE
                this.y=event.pageY - 60;
            },
            
                       
            HideToolTip:function()
            {
                var pnl=$get(this.get_TargetID());
                //alert(pnl);
                pnl.style.backgroundColor="#FFCC80";
                pnl.style.visibility="hidden";
                pnl.style.display="none";
            },
            
           OnError:function(result)
           {
                alert(result.get_message());
           },         
           
           OnTimeOut:function(result)
           {
                alert(result);
           }
        }
        
        fsC.cToolTip.registerClass("fsC.cToolTip",null,Sys.IDisposable);
        // Notify ScriptManager that this is the end of the script.
        if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

