/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


$(function(){

     //Table Sorter
    $("table.tablesorter").tablesorter({
         headers: {
            // assign the first column (we start counting zero)
            0: {
                // disable it by setting the property sorter to false
                sorter: false
            },

            1: {
                sorter: false
            },
            2: {
                sorter: false
            },

            3: {
                sorter: false
            }
        }
    });
    $("#eamcet_colleges").tablesorter();
    $("#eamcet_opt_select_clg").tablesorter();
    // Tabs
    $('#eamcet_college_details').tabs({
        fx: {
            opacity: 'toggle'
        }
    });

    if($('a.lightbox').length>0){
        $('a.lightbox').lightBox();
    }


    $('table#eamcet_opt_select_clg td').each( function(){
            //alert('here');
            if(jQuery.trim($(this).text())=="2008"){

                   //alert('here');
                  $(this).css("background-color","#f4bb61");
                  $(this).css("font-weight","bold");

            }else if(jQuery.trim($(this).text())=="2007"){

                $(this).css("background-color","#59b4d4");
            }else if(jQuery.trim($(this).text())=="2006"){
                $(this).css("background-color","#f4bb61");
            }
});


});
