$(document).ready(function(){

    $(".client .h3h").each(function(){
        cont = $(this).html();
        $(this).html('<div class="arrow"><img src="/images/down.jpg" /></div>' + cont);
    });

    
    $(".client .h3h").click(function () {
      $(this).next(".cite").slideToggle();
      $(this).children(".arrow").children("img").swapArrows();
    });

    $(".client .h3h").hover(
        function(){$(this).toggleClass('underlined')},
        function(){$(this).toggleClass('underlined')});

    $(".cite").hide();

    if($.jqURL.get("id")){
        var id = $.jqURL.get("id");
    }
    
    if(id === undefined){
        $('.client:first .cite').toggle();
        $('.client:first .arrow').children("img").swapArrows();
    }else{
        $('#'+id+' .cite').toggle();
        $('#'+id+' .arrow').children("img").swapArrows();
    }

});


