

$.track = function(myRef){  //add an entry to axs log 
  var myRef = myRef || document.referrer;
  var $tk = $( '<img height=1 width=1 alt="" />'  );
  var mySrc = '/cgi-bin/axs/ax.pl?mode=img&ref=' + escape( myRef );
  $tk.attr({
      src    :  mySrc,
      style  :  "display:none"
  });
  $('body').append($tk);
};

//ready
$(function(){ 
    tb_pathToImage =   "/images1/indicators/big_spinner.gif";
    imgLoader = new Image();// preload image
    imgLoader.src = tb_pathToImage;
    var myHTML = "A Weblog by the <a href='/about-flash-demo-company.html?ck=about_team'>2-Minute Explainer</a> team";
    $('#blog-description').html(myHTML);
    $('a', '#blog-description').css({color:'red','text-decoration':'underline'});
    $.track();
    $('body').find('a.thickbox').each(function(){
           var hr = $(this).attr('href');
           var page = hr.split('/').pop().replace('.html', "");
           var re = /\?/;
           if ( !hr.match(re) ){
             hr = hr + "?TB_iframe=true&height=490&width=770" ;
             $(this).attr('href', hr);
           }                                     
           tb_init(this);
           $(this).click(function(){
                $.track('to ' + page );                    
           });
    });
});
