
$(document).ready(function() { DoDocReady(); });

function DoDocReady() {
    $("table.sortable").tablesorter({
     sortList: [[0,0]],
        // pass the headers argument and assing a object
        headers: {
            // assign the secound column (we start counting zero)
            4: {
                // disable it by setting the property sorter to false
                sorter: false
            },
            // assign the third column (we start counting zero)
            5: {
                // disable it by setting the property sorter to false
                sorter: false
            }
        }
    });

     $("table.tablesorterindexlinked").tablesorter({
       sortList: [[0,0]],
        // pass the headers argument and assing a object
        headers: {
            // assign the secound column (we start counting zero)
            1: {sorter: false},
            4: {sorter: false},
            5: {sorter: false}
        }
    });

         $("table.tablesortereasyaccess").tablesorter({
         sortList: [[0,0]],

        // pass the headers argument and assing a object
        headers: {

            // assign the secound column (we start counting zero)
            3: {sorter: false},
            4: {sorter: false}
        }
    });

    $("#accordion").accordion({header:'div.accordionHeader', autoHeight: false});

    $(".jQueryTooltipList img").tooltip({
        track: true,
        delay: 0,
        showURL: false,
        opacity: 1,
        extraClass: "pretty fancy",
        top: -15,
        left: 5
    });

    $("#myTable").tablesorter({
        // pass the headers argument and assing a object
        headers: {
            // assign the secound column (we start counting zero)
            2: {
                // disable it by setting the property sorter to false
                sorter: false
            },
            // assign the third column (we start counting zero)
            3: {
                // disable it by setting the property sorter to false
                sorter: false
            }
        }
    });

    // to allow the Ts and Cs tab to be selected from a link elsewhere on the page
    var $tabs = $('.tabs').tabs(); // first tab selected
    $('a.aTsCs').click(function() { // bind click event to link
        $tabs.tabs('select', 2);
        $('html, body').animate({scrollTop:0}, 'fast'); // switch to third tab
        return false;
    });
}

// Fix for IE6 - gives input elements pointer cursor on hover
$(function() {
        $('.action input').hover(function(){
               $(this).addClass('hover');
        }, function() {
               $(this).removeClass('hover');
        });
});
