$(document).ready(function() {
// General block toggler
  $("#infoToggler").toggle(function(){
    $("#infoContainer").animate({ height: 'show', opacity: 'show' }, 'slow');
  },function(){
    $("#infoContainer").animate({ height: 'hide', opacity: 'hide' }, 'slow');
  });
  $('#infoContainer').hide();

  // Colours block toggler
  $("#colourToggler").toggle(function(){
    $("#colourContainer").animate({ height: 'show', opacity: 'show' }, 'slow');
  },function(){
    $("#colourContainer").animate({ height: 'hide', opacity: 'hide' }, 'slow');
  });
  $('#colourContainer').hide();

  // Gallery block toggler
  $("#galleryToggler").toggle(function(){
    $("#galleryContainer").animate({ height: 'show', opacity: 'show' }, 'slow');
  },function(){
    $("#galleryContainer").animate({ height: 'hide', opacity: 'hide' }, 'slow');
  });
  $('#galleryContainer').hide();

  // Specification block toggler
  $("#specToggler").toggle(function(){
    $("#specContainer").animate({ height: 'show', opacity: 'show' }, 'slow');
  },function(){
    $("#specContainer").animate({ height: 'hide', opacity: 'hide' }, 'slow');
  });
  $('#specContainer').hide();

  // Specification block toggler
  $("#399Toggler").toggle(function(){
    $("#399Container").animate({ height: 'show', opacity: 'show' }, 'slow');
  },function(){
    $("#399Container").animate({ height: 'hide', opacity: 'hide' }, 'slow');
  });
  $('#399Container').hide();

	// Menu block toggler
  $("#459Toggler").toggle(function(){
    $("#459Container").animate({ height: 'show', opacity: 'show' }, 'slow');
  },function(){
    $("#459Container").animate({ height: 'hide', opacity: 'hide' }, 'slow');
  });
  $('#459Container').hide();

	// Menu block toggler
  $("#599Toggler").toggle(function(){
    $("#599Container").animate({ height: 'show', opacity: 'show' }, 'slow');
  },function(){
    $("#599Container").animate({ height: 'hide', opacity: 'hide' }, 'slow');
  });
  $('#599Container').hide();

	 // Menu block toggler
  $("#usedMenuToggler").toggle(function(){
    $("#usedMenu").animate({ height: 'show', opacity: 'show' }, 'slow');
  },function(){
    $("#usedMenu").animate({ height: 'hide', opacity: 'hide' }, 'slow');
  });
  $('#usedMenu').hide();

  $('#Thumbnails a').click(function(e){
    e.preventDefault();
    $('#SwapImage').attr('src',$(this).attr('href'));
  })
});