/**
 *
 */

XT.CELEBS = (function () {
   var str_slides_div = '.slideshow',
   str_outer_window = '#celebrity_window',
   initialise = function() {
      $(str_slides_div).cycle({
         containerResize: 0,
         fit: 0,
   		fx: 'fade'
   	});

   	$(str_outer_window).hover(on, off);

   	$(str_outer_window + ' #previous').click(previous);
   	$(str_outer_window + ' #next').click(next);
   },
   previous = function() {
      $(str_slides_div).cycle('prev');
      return false;
   },
   next = function() {
      $(str_slides_div).cycle('next');
      return false;
   },
   on = function() {
      $(str_slides_div).cycle('pause');
   },
   off = function() {
      $(str_slides_div).cycle('resume');
   };

   $(document).ready(function () {
	   initialise();
   });

	return {};
}());