var currTLL = '';
var currSubL = '';

function Hilight(ltr)
{
	img= document.getElementById("img"+ltr);
	img.src = "/ui/images/btn_letter_"+ltr+"_on.gif";
}
function DeHilight(ltr)
{
	if (currTLL == ltr) return;
	img= document.getElementById("img"+ltr);
	img.src = "/ui/images/btn_letter_"+ltr+".gif";
}

function HideAll()
{

	if (currTLL != '') //dehilight img.
	{
		if (document.getElementById("img"+currTLL) )
			document.getElementById("img"+currTLL).src = "/ui/images/btn_letter_"+currTLL+".gif";;
	}
	
	divlist= document.getElementById("divList");
	currTLL = '';
	divlist.style.display="none";
}
	
$(document).ready(function(){ 
   
    $("a[id^='lnk']").click(function() { // when any anchor with an ID starting with "lnk" is clicked
        $("#content").slideUp("fast"); 
        
        var letter = $(this).attr("id").substring(3,4); // get the letter for this link
        
        $.ajax({ 
            method: "get",url: "/UI/UserControls/Services/ServiceListByLetter.aspx",data: "letter="+letter, 
            beforeSend: function(){$("#divList").attr("style", "display:block");}, //show loading just when link is clicked 
            success: function(html){ // on success, show the html inside the content div
            $("#content").show("fast"); 
            $("#content").html(html); 

            } 
        }); //close $.ajax( 
    }); //close click( 
}); //close $( 
