$(function(){
  setTimeout(function(){
    $('#logo-greyscale').fadeOut(1000, function(){
      var panels = new Array('tr','bm','cl','tm','bl','tl','cr','br','cm');
      var i = 0;
      $.showPanel(panels, i);  
    });
  }, 1500);
});

jQuery.showPanel = function(panels, i)
{
  $('#home_' + panels[i] + ' img').fadeIn(500, function(){
    setTimeout(function(){
      jQuery.hidePanel(panels, i);
    }, 350);
    });
}

jQuery.hidePanel = function(panels, i)
{
  $('#home_' + panels[i] + ' img').fadeOut(500, function(){
    i++;
    if(panels[i])
    {
      jQuery.showPanel(panels, i);
    }
    else 
    {
      $('#logo-color').animate({ 
        opacity: 1, 
        left: '135px', 
        top: '133px', 
        width: '155px', 
        height: '145px' }, 500, function(){
        setTimeout(function(){
          document.location.href = 'http://www.bm-arch.com.au/about.html';
        }, 1000);
        });
    }
    });
}