$(function() {//PAGELOAD
	//highlight tr
    $('#searchResultsTable tr:even').addClass('alt');
    $("#searchResultsTable tr").hover(
      function () {
		$(this).addClass("highlight");
      }, 
      function () {
		$(this).removeClass("highlight");
      }
    ).css({cursor: 'pointer'});//highlight tr
	//accordion
/*	$('.accordion-simple .head').css({'cursor' : 'pointer'}).click(function() {
		//$(this).css({'cursor' : 'pointer'});								 
		$(this).next().toggle('med');
		return false;
	}).next().hide();//accordion*/
	$('.hoverable').hover(
	function() { $(this).addClass('ui-state-hover'); }, 
	function() { $(this).removeClass('ui-state-hover').css({cursor: 'default'}); }
	);
        // Tabs
        $('#tabs').tabs();
        // Clickable table rows
//        alert ('Hello');
        $("#searchResultsTable tr").click(function(){
//            alert($("#searchResultsTable tr td a").attr("href"));
            // Find index of clicked table row:
            var $cell_link = $("#searchResultsTable tr td a").attr("href");
//            alert($cell_link);
            window.location = $cell_link;
        });

});//PAGELOAD

