// JavaScript Document

/*
 * FAQ script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Stefan Isfeld 
 * 
 */

// toggle FAQ Answers
//****************************************************
$(document).ready(function() {
	
	//**********************************************
	$("p.faqQ").mouseover(function() {
		$(this).css({ "background-color":"#CC9933" });
		$(this).css({ "cursor":"pointer" });
		$(this).css({ "color":"#FFFFFF" });
		}).mouseout(function() {
			$(this).css({ "background-color":"" });
			$(this).css({ "cursor":"default" });
			$(this).css({ "color":"#FFFF99" });
			});
			
	//**********************************************
	$("p.faqQ").click(function() {
		idName = $(this).attr("id");
		idModify = "#" + idName.replace(/q/,"a");
		$(idModify).toggle("fast");
		});

	//**********************************************
	$(".hideAll").click(function() {
		$(".faqA").hide("fast");
		});

	//**********************************************
	$(".showAll").click(function() {
		$(".faqA").show("fast");
		});
	
});
