/* Global Javascript File */


/* Basic non jquery functions can go here */




/* Start jQuery friendly environment */

(
	
	function( $, document, undefined )
	{
		/* Basic functions can go here */
		
		
		/* On Document Ready */
		
		$(document).ready(
			
			function( $ )
			{
				/* Start here */
				
				if ( $('#widget-merch-one').length )
				{
					$('#widget-merch-one').cycle( { timeout: 5000 } );
				}
				
				if ( $('#widget-merch-two').length )
				{
					$('#widget-merch-two').cycle( { timeout: 5000 } );
				}
				
				if ( $('#home-slide-show-large').length )
				{
					$('#home-slide-show-large').cycle( { timeout: 5000 } );
				}
				
				if ( $('#home-slide-show-small-1').length )
				{
					$('#home-slide-show-small-1').cycle( { timeout: 6000 } );
				}
				
				if ( $('#home-slide-show-small-2').length )
				{
					$('#home-slide-show-small-2').cycle( { timeout: 7000 } );
				}
				
				if ( $('#page-appointments-faq').length )
				{
					$('#page-appointments-faq #content ol li p:nth-child(2)').hide();
					
					$('#page-appointments-faq #content ol li a').bind(
						
						'click',
						
						function show_faq()
						{
							$(this).parent('p').parent('li').children('p:nth-child(2)').slideToggle( 100 );
							
							return false;
						}
						
					);
				}
				
				
				if ( $('#page-products').length )
				{
					$('#page-products #content ul li ul li ul li').hide();
					
					$('#page-products #content ul li ul li a').bind(
						
						'click',
						
						function show_products()
						{
							$(this).parent('li').children('ul').children('li').slideToggle( 100 );
							
							return false;
						}
						
					);
				}
				
				if ( $('#widget-merch-two').length )
				{
					var $slides = $('#widget-merch-two').children('div');
					
					if ( 1 == $slides.length )
					{
						$slides.css( 'opacity', '100' );
					}
				}
			}
			
		);
	}
	
) ( jQuery, document );

/* End of Global Javascript File */
