$(document).ready(function(){

    
    if ($('a.faq').length) {
        $('div.faqdesc').hide();
        $('a.faq').click(function() { 
            var _id = $(this).attr('id');
            
            $('div.faqdesc').hide();
            
            $.post("?module=Faq&event=Read&faqID="+$(this).attr('id'),
            {type:'JS'}, function(data) {
                if (data.length > 0) {
                    $('div#faqdesc'+_id).html(data);
                    $('div#faqdesc'+_id).show('slow');
                } else {
                    alert('Error, please try again');
                }
            });
        
            return false;
        });
    }
    
});
