﻿/* ---------------------------------------------------------------------

SusQtech FAQ Web Part Show/Hide Functionality
Written by SusQtech
www.susqtech.com

* requires: 
	jQuery 1.3.2 or later

--------------------------------------------------------------------- */
function LoadFAQ() {
    $(document).ready(function() {

	    // loop each faq 
        $("a[id ^='NATPfaqViewAnswer_']").each(function() {    	
    	    // add the click to show/hide answer
    	    var id = $(this).attr("id").replace("NATPfaqViewAnswer_","");
    	    $(this).click(function(event) {
    	        $("div[id ='NATPfaqAnswer_"+id+"']").toggle();
    		    event.preventDefault();	
    	    });    	
	    });
    });
}
