(function() {

    function loadPage() {

        //alert($("#ctl00_cph1_CRCareers1_tblTableDetail2 tr  td.AltRow").length);
        //alert($("#ctl00_cph1_CRCareers1_tblTableDetail2 th.HeaderRow").length);
        //alert($("a.JobLink [html^=*]").length);
        $("#careerList").hide();
        var lastFeatured = true;
        $("a.JobLink").each(function(i) {
            if ($(this).html().substring(0, 1) == "*") {
                $(this).css("font-weight", "bold");
                $(this).html($(this).html().replace("*", "*&nbsp;"));
            }
            else {
                //put in space after last featured
                if (lastFeatured) {
                    $(this).parent().parent().before("<tr><td colspan='2'><hr  class='dividerLine'/></td></tr>");
                    lastFeatured = false;
                    //return false;
                }
                $(this).html("&nbsp;&nbsp;&nbsp;" + $(this).html());
            }

        });
        $("#careerList").show();

    }


    $(document).ready(function() {
        loadPage();
    });
})();
