 <!-- ******* jQuery Page Load Actions ******* -->

$(document).ready(function() {

 	$('.hide').hide();
 	$('a[@id^=hid]').click(function() {
 		$(this).next().toggle();
 		return false;
 	});

	<!-- External website mark -->
	$('a').filter(function() {
	    return this.hostname && this.hostname !== location.hostname;
	}).attr({
	    target: "_blank",
	    title: "This link directs you to an external website"
	}).after(' <img src="images/ext.png" alt="external link" />');

 	<!-- Provide any-column sorting for large tables -->
	$('#sort').tablesorter({widgets: ['zebra', 'prepend', 'columnHighlight']});
	$('th.header').prepend('<span><img src="images/dbg.gif" /></span>');

	<!-- Table Searcher -->
    if($("#tableSearch").length) {
        $.getScript("jquery.quicksearch.js", function() {
            $('table#sort tbody tr').quicksearch({
                position: 'append',
                attached: '#tableSearch',
                labelText: '',
                inputText: 'Refine search',
                delay: 1000
            });
        });
    }
});
