// JavaScript Document
$(document).ready(function() {									
	$("a[name^='faq-']").each(function() {
		$(this).click(function() {
			//close others that are opened
			for(x=0;x<8;x++){
				if(("faq-" + x) == this.name){
					//set the stel
				}else{
					var tabFaq = document.getElementById('faqname'); 
					//hide the others
					if( $("#faq-" + x).is(':hidden')) {//do nothing is already hidden
					//} else {
						$("#faq-" + x).fadeOut('slow');
						
					}else{
						
					}
				}
			}
			if( $("#" + this.name).is(':hidden')) {
				$("#" + this.name).fadeIn('slow');
				tabFaq.innerHTML = "[Got 'Em - Close]";
			} else {
				$("#" + this.name).fadeOut('slow');
				tabFaq.innerHTML = "[Get Ideas]";
			}			
			return false;
		});
	});
});