	 				
		
		<!-- Nivo slider options -->
		jQuery(window).load(function($) {
			
			jQuery('.carousel').each(function(){
				
				var lowest_height = jQuery(this).find('img').height();
				var nivo_holder = jQuery(this).find('.slider');
				
				if(jQuery(this).not('.full')){
					lowest_height = lowest_height - 1;
				}
				
				var effect_ = 'random'
				
				if(nivo_holder.hasClass('effect-sliceDown')){
					effect_ = 'sliceDown';
				}else if(nivo_holder.hasClass('effect-sliceDownLeft')){
					effect_ = 'sliceDownLeft';
				}else if(nivo_holder.hasClass('effect-sliceUp')){
					effect_ = 'sliceUp';
				}else if(nivo_holder.hasClass('effect-sliceUpLeft')){
					effect_ = 'sliceUpLeft';
				}else if(nivo_holder.hasClass('effect-sliceUpDown')){
					effect_ = 'sliceUpDown';
				}else if(nivo_holder.hasClass('effect-sliceUpDownLeft')){
					effect_ = 'sliceUpDownLeft';
				}else if(nivo_holder.hasClass('effect-fold')){
					effect_ = 'fold';
				}else if(nivo_holder.hasClass('effect-fade')){
					effect_ = 'fade';
				}
				
				nivo_holder.nivoSlider({
					effect: effect_,
					slices:50,
					animSpeed:500,
					pauseTime:5000,
					controlNav:false
				});
				
				//Vertically align left and right arrows
				var anchor_nav_height = jQuery(this).find('a.nivo-prevNav').height()/2;
				var top_offset_nav = lowest_height/2-anchor_nav_height;
				jQuery(this).find('a.nivo-prevNav, a.nivo-nextNav').css({ 'top': top_offset_nav });
				
				//Horizontally align nivoControl
				var container_width = jQuery(this).width();
				var control_width = jQuery(this).find('.nivo-controlNav').width();
				var newLeftPos = container_width - (container_width/2 + control_width/2);
				jQuery(this).find('.nivo-controlNav').css({ 'left' : newLeftPos });
				
				jQuery(this).find('.slider-background').height(lowest_height);
				jQuery(this).parent().find('.slider').show();
				
			});
			
		});

		jQuery(function($){
			
			//Hide nivo holder
			$('.nivo-holder').css({ opacity : 0});
			
			$('.loopedSlider').loopedSlider({
				autoHeight: 300,
				containerClick: false
			});
			
			
			 
		 
			
		});  
