function executeImplementation()
{  
  $(document).ready(function()
    {
      $("#accordion").accordion({ header: "h3" });
      $("#tabs").tabs();
      setInterval('swapImages()', 5000);
    });
}
      
function swapImages()
{
  var $active = $('#mainGallery .active');
  var $next = ($('#mainGallery .active').next().length > 0) ? $('#mainGallery .active').next() : $('#mainGallery img:first');
  $active.fadeOut(function()
  {
    $active.fadeOut().removeClass('active');
    $next.fadeIn().addClass('active');
  });
}
