function base(){
//image gallery
  var image =  $("#gallery #content #right_content #gallery_carousel img:first").attr('src');
  var caption = $("#gallery #content #right_content #gallery_carousel img:first").attr('alt');
  $("#gallery #content #right_content #gallery_carousel img:first").addClass('thumb_border');
  $("#gallery #content #right_content #gallery_carousel img:first").removeClass("thumbnail_image");
  var image = "url("+image+")";
  $('#gallery #content #right_content #main_image').css('background-image',image);
  $('#gallery #content #right_content #caption p').html(caption);
  
  $('#gallery #content #right_content #gallery_carousel img').click(function() {
   $(this).addClass("thumb_border");
   $(this).removeClass("thumbnail_image");
   $('#gallery #content #right_content #gallery_carousel img').not(this).removeClass("thumb_border");
   $('#gallery #content #right_content #gallery_carousel img').not(this).addClass("thumbnail_image");
   var image = "url("+$(this).attr('src')+")";
   $('#gallery #content #right_content #main_image').css('background-image',image);
   var caption = $(this).attr('alt');
   $('#gallery #content #right_content #caption p').html(caption);
  });

//Homepage Rotation
$('#banner_hp').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
  speed:  2000,
  timeout:  6000,
  delay:  -2000
	});

//Homepage carousel
		$('#carousel').jcarousel({
			visible: 4,
   scroll:2,
   wrap: 'circular'
		});

		$('#gallery_carousel').jcarousel({
			visible: 4,
   scroll:1
		});

//What's New Drop Downs
$('#new #content #right_content .news_content ul li div.news_more').hide();
$('#new #content #right_content .news_content ul li a.read').click(function() {
  $(this).prev("div").slideToggle("slow");
  setTimeout("fleXenv.updateScrollBars();",1);
  setTimeout("fleXenv.updateScrollBars();",500);
  setTimeout("fleXenv.updateScrollBars();",1000);
  setTimeout("fleXenv.updateScrollBars();",1500);
  setTimeout("fleXenv.updateScrollBars();",2000);
  if ($(this).html()=='Read More'){
    $(this).html('Minimize');
    }
    else{
        $(this).html('Read More');
    }
  $("#new #content #right_content .news_content ul li a.read").not(this).prev("div").slideUp();
  $("#new #content #right_content .news_content ul li a.read").not(this).html('Read More');
  });
}

