/*
  track_link_event/dev.js
  
  sample usage ...
  
    the old way:
    <a href='any_page.php'
       onClick="pageTracker._trackEvent('Link', 'Click', 'Home Page, Free Eval Button, Click');" 
       >Click Here</a>
    
    this new way:
    <a href='any_page.php' 
       onClick="trackLinkEvent(this, 'Link', 'Click', 'Home Page, Free Eval Button, Click');return false;"
       >Click Here</a>
*/

function trackLinkEvent(link, category, action, label) {
  try {
    // make sure you have the correct account number!
    var pageTracker = _gat._getTracker("UA-233047-1");
    pageTracker._trackEvent(category, action, label);
    setTimeout('document.location = "' + link.href + '"', 100)
  }catch(err){}
}

