﻿        var IE = document.all?true:false; //Test to see if IE
        if (!IE) document.captureEvents(Event.MOUSEMOVE); //If not IE
        document.onmousemove = getMouseLoc;
        
        function Point(x,y) {  this.x = x; this.y = y; }
        mouseLocation = new Point(0,0);

        //Get the mouse position
        function getMouseLoc(e) 
            {
            /*
                if (IE) { 
                mouseLocation.x = event.clientX + document.body.scrollLeft;
                mouseLocation.y = event.clientY + document.body.scrollTop;
                } else {  // grab the x-y pos.s if browser is NS
                mouseLocation.x = e.pageX;
                mouseLocation.y = e.pageY;
                }  
                */
                var x = 0, y = 0;
                if( typeof( window.pageYOffset ) == 'number' ) {
                    // Netscape
                    x = window.pageXOffset; //e.pageX;
                    y = window.pageYOffset; //e.pageY;
                } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
                    // DOM
                    x = event.clientX + document.body.scrollLeft;
                    y = event.clientY + document.body.scrollTop;
                } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
                    // IE6 standards compliant mode
                    x = event.clientX + document.documentElement.scrollLeft;
                    y = event.clientY + document.documentElement.scrollTop;
                }

                mouseLocation.x = x;
                mouseLocation.y = y;
                

                // catch possible negative values 
                if (mouseLocation.x < 0){mouseLocation.x = 0}
                if (mouseLocation.y < 0){mouseLocation.y = 0}  
                return true;
            }

        function positionDiv()
        {  
            //Set the position of the hidden div
            // alert("Positions Y:" + mouseLocation.y + " X: " + mouseLocation.x );         
            document.getElementById('ctl00_ctl00_cph_mc_updateProgress1').style.top = (mouseLocation.y - 10) + "px";
            document.getElementById('ctl00_ctl00_cph_mc_updateProgress1').style.left = (mouseLocation.x - 10) +"px";
            document.getElementById('ctl00_ctl00_cph_mc_updateProgress1').style.position = "absolute";  
        }

