/*
Add general JS funtionality to the page
Rui Zhang
2009-02
Notes: Uses jQuery v1.3.1
*/

$(function() {

	// IE6 hack for top menu mouseover
	$("#primary-nav li").hover(function() {
		$(this).addClass("ahover");
	}, function() {
	$(this).removeClass("ahover");
	});

    //hide/close any items classed faq-item - done this way in case JS is disabled 
    $(".faq-item").hide();

});


// function toggleDiv(targetDiv, showLink, hideLink){
//     $(targetDiv).slideToggle("normal");
//     
//     if(hideLink){
//         $(hideLink).slideUp("normal"); 
//     };
//     
//     if(showLink){        
//         $(showLink).slideDown("normal");        
//     };
//     
// };


function toggleDiv(targetDiv){
    $(targetDiv).slideToggle("normal");
};

