/* Author: 

*/

$(document).ready(function(){

  $(".clearfix").append('<div class="clearall"><!-- clear floats --></div>')

  $('.wheelsumm').biggerlink();

  $('#hero ul')
      .after('<div id="heronav">')
      .cycle({ 
          fx:    'scrollLeft,scrollDown,scrollRight,scrollUp,turnDown,turnUp', 
          randomizeEffects: true,  
          timeout: 10000,
          pause: 1,
          pager:  '#heronav'
  });
  
  $(".herowheel").hover(
    function() {
			$(this).find(".wheel-caption").show('slide', {direction: 'left'}, 250); //
	  },
		function() {
			$(this).find(".wheel-caption").hide('slide', {direction: 'left'}, 250);
		}
	);

  $(".wheel-icon").each(function(){
    $(this).delay(1000).show();
  });

	$("#nav a,.wheel-icon,#footerhomelink").hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);

  $('.validate-form').validate();

  $('.input-example').example(function() {
      return $(this).attr('title');
  });

  $("a[rel^='prettyPhoto']").prettyPhoto({
      animationSpeed: 'fast', /* fast/slow/normal */
      padding: 40, /* padding for each side of the picture */
      opacity: 0.25, /* Value betwee 0 and 1 */
      showTitle: false, /* true/false */
      allowresize: true, /* true/false */
      counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
      theme: 'dark_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
      callback: function(){}
  });

	$(".contactsnip").equalHeights();

});
