jQuery(function() {
	if(jQuery('#slideshow').length>0){
		jQuery('#slideshow').fadeSlideShow({
	        width: 942,
	        height: 335,
			speed: 'slow',
			interval: 10000,
			autoplay: true
	    });
	}

        /* DROPDOWN */
	if(jQuery('.menu ul').length>0){
		jQuery('.menu ul li').hover(
			function () {
				jQuery(this).addClass('hover');
				jQuery(this).children('a').addClass('active');
			}, 
			function () {
				jQuery(this).removeClass('hover');
				jQuery(this).children('a').removeClass('active');
			}
		);
	}

        /* PORTFOLIO */
        if(jQuery('.webphysiology_portfolio').length>0){
	    jQuery("a.Portfolio-Link[rel^='prettyPhoto']").prettyPhoto();
       }

/* FAQ */
if(jQuery('.faq').length>0){
	jQuery('.faq .question').click(function() {
                jQuery(this).toggleClass('open');
		jQuery(this).parent().children('.answer').toggle(500);
		return false;
	});
}
});		   
