function image_slider_initCallback(carousel) {
			jQuery('.jcarousel-control a').bind('click', function() {
				carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
				return false;
			});

			jQuery('.jcarousel-scroll select').bind('change', function() {
				carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);
				return false;
			});

			jQuery('#slider_next').bind('click', function() {
				carousel.next();
				return false;
			});

			jQuery('#slider_prev').bind('click', function() {
				carousel.prev();
				return false;
			});
		};


$(document).ready(function() {

    $('#image_slider').jcarousel(
	{
		wrap: 'last',
		scroll: 1,
		initCallback: image_slider_initCallback
	}	
	);

	//http://bxslider.com/options
	// this is the homepage slideshow init
	$('#slider1').bxSlider(
		{ 
			
			speed:3000,
			auto:true,
			mode:'fade',
			controls: false
		}
	);

	$("#sideBar .feature:last").addClass('last');
	
	var width = 0;
	
	$('#navigation ul li').each(function() {
		width += $(this).outerWidth( true );
	});
	
	$('#navigation ul').css('width', width + 1);
	$('#header #navigation li ul li').css('float', 'left');
	
	
    $('#hidden').hide();


	$('.comments .moreLink a').click(function() {
		$(this).addClass('open');
    	$('#hidden').slideDown();
		return false;
	});

	
});
