  function equalHeight(group) {
   tallest = 0;
   group.each(function() {
      thisHeight = $(this).height();
      if(thisHeight > tallest) {
         tallest = thisHeight;
      }
   });
   group.height(tallest);
}

$(document).ready(function() {
	/* 
	$(function(){
        $("input, textarea, select, button").uniform();
      }); */
	
	$('.clouds-away').bgscroll({scrollSpeed:1 , direction:'h' });
	$('.clouds-close').bgscroll({scrollSpeed:8 , direction:'h' });
	$(".slide .project-info").hide();
	
	$(".slide").hover(
  function () {
    $(".project-info",this).slideDown();
  },
  function () {
     $(".project-info",this).slideUp();
  }
	);
	
	
	$(".process-item").hover(
  function () {
    $(this).addClass("active");
  },
  function () {
      $(this).removeClass("active");
  }
	);
	
		/*darkn the whole list when moused over as a group */
	$(".portfolio-listing").hover(
  function () {
    $(".list-item", this).fadeTo("fast",.5);
	 
  },
  function () {
       $(".list-item", this).fadeTo("fast",1);
  }
	);
	
	 /* brighten up each item as moused over */
	  $(".portfolio-listing .list-item").hover(
  function () {
    $(this).fadeTo("fast",1);
	
	$(".portfolio-weblink",this).slideDown("fast");
	 
  },
  function () {
     $(this).fadeTo("fast",.5);
	 $(".portfolio-weblink",this).slideUp("fast");
	 
  }
	); 
	

	
  
  $(window).load(function() {
   equalHeight($("div.equal-height"));
}); 
  
    $('.carousel').cycle({
    fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	 pager:  '.carousel-nav' ,
    pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '.carousel-nav li:eq(' + idx + ') a'; 
    } 
  });
  
  
  
   $(function(){ 
  
  settings = {
          tl: { radius: 5 },
          tr: { radius: 5 },
          bl: { radius: 5 },
          br: { radius: 5 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div"]
      }
 
  $('.rounded').corner(settings);
   $('.global-nav ul ul').corner(settings);
  
  
  });
  
/*  $(".video-box").fancybox({
     'width'        :720,
     'height'      :405,
    // 'padding'      : 0,
     'autoScale'      : false,
       
    'type'        : 'iframe'
    //   'modal'     : 'true'

  }); */
});
