var tempX
var tempY
var IE 
    var paimg = document.createElement('ltimg');
    paimg.innerHTML = '<img width=0 height=0 src=http://cms.educationconnection.com/webtracker/Default.aspx?url='
    +escape(window.location)
    +'&urlReferrer='
    +escape(document.referrer) 
    +'&swidth='
    +screen.width
    +'&sheight='
    +screen.height
    +'&TrackType=PageVisit>';
      
function TrackMe() 
{
    sendingObj = this;
    
    var ltimg = document.createElement('ltimg');
    ltimg.innerHTML = '<img width=0 height=0 src=http://cms.educationconnection.com/webtracker/Default.aspx?LinkClicked='
    + escape(sendingObj) 
    + '&LinkText='
    + escape(sendingObj.innerHTML) 
    + '&Url='
    + escape(window.location) 
    +'&cx='
    +tempX
    +'&cy='
    +tempY
    +'&swidth='
    +screen.width
    +'&sheight='
    +screen.height
    +'&TrackType=LinkClick>';
}

function getMouseXY(e) {
    if (IE) { // grab the x-y pos.s if browser is IE
        tempX = event.clientX + document.body.scrollLeft
        tempY = event.clientY + document.body.scrollTop
    } else {  // grab the x-y pos.s if browser is NS
        tempX = e.pageX
        tempY = e.pageY
    }  
        // catch possible negative values in NS4
        if (tempX < 0){tempX = 0}
        if (tempY < 0){tempY = 0}  
    return true
}


function TrackClickPath()
{

    
    // Detect if the browser is IE or not.
    // If it is not IE, we assume that the browser is NS.
    
    
    IE = document.all?true:false

    // If NS -- that is, !IE -- then set up for mouse capture
    if (!IE) document.captureEvents(Event.MOUSEMOVE)

    // Set-up to use getMouseXY function onMouseMove
    document.onmousemove = getMouseXY;
    
    var doc = document.getElementsByTagName('a');
    for (var i = 0; i < doc.length; i++)
    {
        if (doc[i].onclick == null)
           {
            doc[i].onclick = TrackMe;
           }
           
    }
    
}
