

    var index = 1;
    var maxIndex = (7 - 1);
    

    jQuery(document).ready
    (
      function ()
      {
        var url = new String(window.location);

        if (url.substring(url.length - 1, url.length) == '/')
        {
          $.timer
          (
            7000,
            function (timer)
            {
              index++;
              
              if(index > maxIndex)
                index = 1;
                
              switch(index)
              {
                
                case 1:
                {
                  DisplayHome('/media/7271/image1.png', '', '');
                  break;
                }
                
                case 2:
                {
                  DisplayHome('/media/7277/image2r.jpg', '', '');
                  break;
                }
                
                case 3:
                {
                  DisplayHome('/media/7283/image3.png', '', '');
                  break;
                }
                
                case 4:
                {
                  DisplayHome('/media/7289/image4.jpg', '', '');
                  break;
                }
                
                case 5:
                {
                  DisplayHome('/media/7295/image5.png', '', '');
                  break;
                }
                
                case 6:
                {
                  DisplayHome('/media/7301/image6.png', '', '');
                  break;
                }
                
              }
            }
          );
        }
      }
    );
    
    function Display(imageUrl, description, url) 
    {
      document.getElementById('mainimg').src = imageUrl;
      document.getElementById('mainimg').alt = description;

      try
      {
        document.getElementById('mainanc').title = description;
        document.getElementById('mainanc').href = url;
      }
      catch (ex) { }
    }

    function DisplayHome(imageUrl, description, url)
    {
      jQuery('#mainhomeimg').animate
      (
        { opacity: 0 }, 2500, 
        function ()
        {
          document.getElementById('mainhomeimg').src = imageUrl;
          document.getElementById('mainhomeimg').alt = description;

          try
          {
            document.getElementById('mainanc').title = description;
            document.getElementById('mainanc').href = url;
          }
          catch (ex) {}
        }
      );

      jQuery('#mainhomeimg').animate({ opacity: 1 }, 2500, function () {});
    }
  

