﻿/*
 * This is jquery, but all '$' references are replaces with 'JQ'
 * to avoid conflict with Prototype's different $ function.
 */
JQ(document).ready(
    /* Call urchin tracker on the onclick even of any link with ".pdf" at the end of its href. */
    /* Tracks PDF's as "/downloads/[File Name].pdf" */
    function() {
        JQ("a[href$='.pdf']").click(function() {
            urchinTracker('/downloads/' + JQ(this).attr('href').split('/').pop());
    });
});
