// JavaScript Document
$(document).ready(function(){
	$('.product-nav li ul, .faq-item p:not(:first)').hide();
	$('.selected').parents().show();
	$('.product-nav li a').click(function(){
		if($(this).parent().children('ul').size()>0) {
			$(this).parent().children('ul:visible').slideUp();
			$(this).parent().children('ul:not(":visible")').slideDown();
			return false;
		} else {
			return true;
		}
	});
	
	$('.faq-item h3').click(function(){
		if($(this).parent().children('p').size()>0) {
			$(this).parent().children('p:visible').slideUp();
			$(this).parent().children('p:not(":visible")').slideDown();
		}
	});
});
