$(document).ready(function(){
	$('a.lightbox').lightBox(); // Select all links with lightbox class
    setInterval(function () {
      var $active = $('#bannery a.active');
      if ( $active.length == 0 ) $active = $('#bannery a:last');
      var $next =  $active.next().length ? $active.next(): $('#bannery a:first');
      $active.addClass('last-active');
      $next.css({opacity: 0.0}).addClass('active').animate({opacity: 1.0}, 500, function() {
        $active.removeClass('active last-active');
      });
    }, 2500                                      );
	$(function(){
		// Option set as a global variable
		$.fn.loopedSlider.defaults.addPagination = false;

		$('#loopedSlider').loopedSlider({
			autoStart: 7500                                                                    ,
			hoverPause: true
		});
	});

});

  var _gaq = _gaq || [];

  _gaq.push(['_setAccount', 'UA-25259553-3']);

  _gaq.push(['_trackPageview']);



  (function() {

    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

  })();




