 /**
  * Slick Theme Javascript
  *
  * @author Daniel Farrelly <daniel@jellystyle.com>
  *
  * Copyright © 2011 Daniel Farrelly <daniel@jellystyle.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */

	jQuery(document).ready(function(){
		
	 // 
	 
	 	jQuery('input,textarea').focus(function(){
			jQuery(this).parents('.ui-input').addClass('focus');
		});
	 	jQuery('input,textarea').blur(function(){
			jQuery(this).parents('.ui-input').removeClass('focus');
		});
		
	 // 
	 
	 	jQuery('.ui-width-full').map(function(){
			var parentWidth = jQuery(this).parent().width();
			jQuery(this).width( parentWidth );// - ( leftPadding + rightPadding ) );
			console.log( parentWidth, leftPadding, rightPadding );
		});
		
	 // 
	 
	 	jQuery('.ui-photo-gallery img').map(function(){
			jQuery(this).width( jQuery(this).width() );
			jQuery(this).height( jQuery(this).height() );
		});
	 
	 
        jQuery('.ui-photo-gallery').orbit({
			animation: 'fade',
			timer: true,
			advanceSpeed: 10000, 
			pauseOnHover: true,
			startClockOnMouseOut: true,
			directionalNav: false,
			captions: true,
			captionAnimation: 'fade',
			captionAnimationSpeed: 800,
			bullets: false,
		});

	});
