/*
* scripts.js
*
*/

var PED = PED || {};

// Global page
PED.Global = (function (window, document) {
	
	// Variables
	var v = {
		
	}

	var Self = {
	
		'init': function() {
			
			
			
		} //end init
		
	};
	return Self;

})(this, this.document);

// FAQ page
PED.FAQ = (function (window, document) {
	
	// Variables
	var v = {
		
	}

	var Self = {
	
		'init': function() {
			
			// FAQs
			$('#faq-q a').click(function(e) {
				e.preventDefault();
				
				$this = $(this);
				
				$('#faq-q a').css('font-weight','normal');
				$this.css('font-weight','bold');
				
				$('#result').fadeOut('fast', function() {
					$('#result-q').text( $this.text() );
					$('#result-a').html( $( $this.attr('href') ).html() );
					
					$('#result').fadeIn('fast');
				});
			});
			
		} //end init
		
	};
	return Self;

})(this, this.document);

// Home page
PED.Home = (function (window, document) {
	
	// Variables
	var v = {
		
	}

	var Self = {
	
		'init': function() {
			
			// Home page slideshow
			$('#home-slideshow ul').before('<div id="slideshownav">').cycle({ 
			    fx: 'fade',
			    speed: 500,
			    timeout: 5000,
			    pager: '#slideshownav',
			    pause: 1
			});
			
		} //end init
		
	};
	return Self;

})(this, this.document);
