/*var $$ = $.fn;

$$.extend({
  SplitID : function()
  {
    return this.attr('id').split('-').pop();
  },

  Slideshow : {
    Ready : function()
    {
      $('div.SlideshowControl')
        .hover(
          function() {
            $(this).addClass('SlideshowControlOn');
          },
          function() {
            $(this).removeClass('SlideshowControlOn');
          }
        )
        .click(
          function() {
            $$.Slideshow.Interrupted = true;

            $('div.Slide').hide();
            $('div.SlideshowControl').removeClass('SlideshowControlActive');

            $('div#Slide-' + $(this).SplitID()).show()
            $(this).addClass('SlideshowControlActive');
          }
        );

      this.Counter = 1;
      this.Interrupted = false;

      this.Transition();
    },

    Transition : function()
    {
      if (this.Interrupted) {
        return;
      }

      this.Last = this.Counter - 1;
	
	  
	  function rand ( n )
		{
		return ( Math.floor ( Math.random ( ) * n + 1 ) );
		}
		
	  this.Rand = rand(12);
	  console.log(this.Rand);

      if (this.Last < 1) {
        this.Last = 12;
      }

      $('div#Slide-' + this.Rand).fadeOut(
        'slow',
        function() {
          $('div#SlideshowControl-' + $$.Slideshow.Last).removeClass('SlideshowControlActive');
          $('div#SlideshowControl-' + $$.Slideshow.Counter).addClass('SlideshowControlActive');
          $('div#Slide-' + $$.Slideshow.Counter).fadeIn('slow');

          $$.Slideshow.Counter++;

          if ($$.Slideshow.Counter > 12) {
            $$.Slideshow.Counter = 1;
          }

          setTimeout('$$.Slideshow.Transition();', 12000);
        }
      );
    }
  }
});

$(document).ready(
  function() {
    $$.Slideshow.Ready();
  }
);*/

$(document).ready(
  function() {
		$('#Slideshow').cycle({ 
		fx: 'scrollLeft',
		random:  1,
		pager:  '#shownav',
		pagerAnchorBuilder: function(index, el) {
			return '<a href="#">&nbsp;</a>'; // whatever markup you want
		}
	});						
});
