function setHeight () {
	var maxHeight = 0;
    $('.footer-widget').each(function () {
	    if($(this).height() > maxHeight){
			maxHeight = $(this).height();  
		}
	});
    $('.footer-widget').height(maxHeight);
	}


$(document).ready(function(){ 
// Set footer column height	
	setHeight();
/* Featured Carousel */
	$('#featured').cycle({ 
		fx:'fade',
		speed:700,
		timeout:4400,
		pause:1
	})
// Expand Text	
	$("#sidepane li a").hover(function(e) {
		 $(this).stop().animate({letterSpacing:"0.1em"},400)
	},function() {
		 $(this).stop().animate({letterSpacing:"0em"},400);
	});	
// Gallery Hover Effect	
	$(".no-opacity #portfolio-gallery li img").css('opacity', 0.5);
	$(".no-opacity #portfolio-gallery li h3").css('opacity', 0);
	$("#portfolio-gallery li").hover(function(e) {
		 $(this).find('img').hoverFlow(e.type, {opacity: .5, top: -23},400);
		  $(this).find('h3').hoverFlow(e.type, {opacity: 1},400);
	},function(e) {
		 $(this).find('img').hoverFlow(e.type, {opacity: 1, top: 0},400);
		  $(this).find('h3').hoverFlow(e.type, {opacity: 0},400);
	});
// Set up Fancy Box

//	$("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox(); 
	$("a.fancybox").fancybox({
	  'transitionIn'	: 'none',
	  'transitionOut'	: 'none',
	  'titlePosition' 	: 'over',
	  'overlayOpacity'	:	0.7,
	  'overlayColor'	:  '#000000',
	  'zoomSpeedIn'		:	500,
	  'zoomSpeedOut'	:	500,
	  'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
	  return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
	  }
	  });
	  
	
	$('#galleria').galleria({
		lightbox: true,
		 width: 780,
         height: 540,
         debug: true,         
		extend: function() {
			this.attachKeyboard({
    			left: this.prev, // applies the native prev() function
    			right: this.next
          	 })
	       }    
    	});

}); // End Scripts

