jQuery.fn.log = function (msg) {
    console.log("%s: %o", msg, this);
    return this;
};


$(document).ready(  function() {
	var anchor= window.location.hash.substring(1);
	$('.faq').find('div.answer').hide();
	
	$('.faq').find('h3').click( function() {
			var answer = $(this).next();
            if (answer.is(':visible')) {
            	answer.slideUp();
            }else{
                 answer.slideDown();
            }
	});
	
	if (anchor != ''){
		$('.faq').find("a[name='"+anchor+"']").each(function() {
			$(this).parent().find('h3').click();
		});
	}
	
	$('.faq').find("h3").hover(function(){
		$(this).css('cursor','pointer');
	 },function(){
		 $(this).css('cursor','auto');
	 });
}); 



