        	// when the DOM is ready...
			$(document).ready(function () {
			    		
				var $panels = $('#inner-right-easel > div');
				// alert("$panels: " + $panels.length);
				var $container = $('#inner-right-easel ');
				
				// if false, we'll float all the panels left and fix the width 
				// of the container
				var horizontal = false;
				
				// float the panels left if we're going horizontal
				if (horizontal) {
				  $panels.css({
				    'float' : 'left',
				    'position' : 'relative' // IE fix to ensure overflow is hidden
				  });
				  
				  // calculate a new width for the container (so it holds all panels)
				  // console.log("width: " + $panels[0].offsetWidth);
				  $container.css('width', $panels[0].offsetWidth * $panels.length);
				}
				
				// collect the scroll object, at the same time apply the hidden overflow
				// to remove the default scrollbars that will appear
				var $scroll = $('#inner-right-easel').css('overflow', 'hidden');
				
				// apply our left + right buttons
				 // $scroll
				   // .before('<a class="scrollButtons left"><img src="images/leftArrow.png"/></a>')
				   // .after('<a class="scrollButtons right"><img src="images/rightArrow.png"/></a>');
				
				// tre's version
				//var $navArea = $();
				
				//$("#scrollers") //.html('<li><a class="scrollButtons prev">&lt;</a></li><li><a class="scrollButtons next">&gt;</a></li>');
					 //.html('<a class="scrollButtons prev"><img src="images/leftArrow.png" style="padding: 0 10px;" title="previous" /></a><a class="scrollButtons next"><img src="images/rightArrow.png" style="padding: 0 10px;" title="next" /></a>')
				   //.after('<a class="scrollButtons next"><img src="images/rightArrow.png"/></a>');
				
				// onhover switch out image...todo use css for quicker, cleaner solution
				$(".prev img").hover( 
					function() {this.src="images/leftArrowHover.png";},
					function () {this.src="images/leftArrow.png";}
				);
				
  			$(".next img").hover( 
					function() {this.src="images/rightArrowHover.png";},
					function () {this.src="images/rightArrow.png";}
				);

				// handle nav selection
				function selectNav() {
				  $(this)
				    .parents('ul:first')
				      .find('a')
				        .removeClass('selected')
				      .end()
				    .end()
				    .addClass('selected');
				}
				
				$('#mybox .inline').find('a').click(selectNav);
				
				// go find the navigation link that has this target and select the nav
				function trigger(data) {
				  var el = $('#client-list').find('a[href$="' + data.id + '"]').get(0);
				  selectNav.call(el);
				}
				
				function fadeOut(data){
				    // console.log(data);
					var el = $('#mybox .panel').find( data.id).get(0);
					$(el).animate({opacity : 0.4}, 300);	
				}	
				
				if (window.location.hash) {
				  trigger({ id : window.location.hash.substr(1) });
				} else {
				  $('ul.inline a:first').click();
				}
				var offset = parseInt((horizontal ? 
				  $container.css('paddingTop') : $container.css('paddingLeft')) || 0) * -1;
	
				var scrollOptions = {
				  target: $scroll, // the element that has the overflow
				  
				  // can be a selector which will be relative to the target
				  items: $panels,
				  
				  navigation: '.inline a',
				  
				  // selectors are NOT relative to document, i.e. make sure they're unique
				  prev: '#client-list a.prev', 
				  next: '#client-list a.next',
				  
				  // allow the scroll effect to run both directions
				  axis: 'xy',
				  
				  onAfter: trigger, // our final callback
				  
				  offset: offset,
				  
				  // duration of the sliding effect
				  duration: 500,
				  
				  // easing - can be used with the easing plugin: 
				  // http://gsgd.co.uk/sandbox/jquery/easing/
				  easing: 'easeOutElastic'
				};
				// apply serialScroll to the slider - we chose this plugin because it 
				// supports// the indexed next and previous scroll along with hooking 
				// in to our navigation.
				$('#inner-right-easel').serialScroll(scrollOptions);
				
				// now apply localScroll to hook any other arbitrary links to trigger 
				// the effect
				$.localScroll(scrollOptions);
				
				// finally, if the URL has a hash, move the slider in to position, 
				// setting the duration to 1 because I don't want it to scroll in the
				// very first page load.  We don't always need this, but it ensures
				// the positioning is absolutely spot on when the pages loads.
				scrollOptions.duration = 1;
				$.localScroll.hash(scrollOptions);
        	});
