Basically I have a three div's (buttons) called #main-minicab-service, #main-courier-service and #main-removal-service. On click of these buttons they show the respective page and hide the following div's: #img-onlinebooking, #main-online-booking and #main-onlinebooking-logo
And when you click the button a second time it shows the #main-online-booking divs again. Although this is working to a certain extent, it doesn't work when you (example) click the minicab service button and then click the courier button.
So that you have an idea of what I am trying to achieve I'll show you a image:

Basically, what I want to happen is, if you click the minicab service button, it shows the #main-minicab-service div. If you click the minicab service button again, it then shows the three online-booking divs. This part works fine, however, if I click the minicab service button first and then click the courier service button, it shows the #main-courier-service tab, again as it should. But if I then click the minicab service button it then shows the Online-Booking tabs where as I would want it to show the #main-minicab-service` div.
I think the only part that needs fixing is that I would want it to show the online-booking divs only if the same button is clicked twice, otherwise show the div that is clicked.
I hope this makes sense, here is the jquery that I have at the minute:
/* Click Events for Buttons */
/* Courier */
$("#img-courier").toggle(
function(){
$('#main-removal-service').hide();
$('#main-minicab-service').hide();
$('#img-onlinebooking').fadeOut('slow');
$('#main-online-booking').fadeOut('slow');
$('#main-onlinebooking-logo').fadeOut('slow');
$('#main-courier-service').delay(600).fadeIn('slow');},
function(){
$('#main-removal-service').hide();
$('#main-minicab-service').hide();
$('#img-onlinebooking').show();
$('#main-online-booking').show();
$('#main-onlinebooking-logo').show();
$('#main-courier-service').hide();
});
/* Minicab */
$("#img-minicab").toggle(
function(){
$('#main-removal-service').hide();
$('#main-courier-service').hide();
$('#img-onlinebooking').fadeOut('slow');
$('#main-online-booking').fadeOut('slow');
$('#main-onlinebooking-logo').fadeOut('slow');
$('#main-minicab-service').delay(600).fadeIn('slow');},
function(){
$('#main-removal-service').hide();
$('#main-courier-service').hide();
$('#img-onlinebooking').show();
$('#main-online-booking').show();
$('#main-onlinebooking-logo').show();
$('#main-minicab-service').hide();
});
/* Removal */
$("#img-removal").toggle(
function(){
$('#main-minicab-service').hide();
$('#main-courier-service').hide();
$('#img-onlinebooking').fadeOut('slow');
$('#main-online-booking').fadeOut('slow');
$('#main-onlinebooking-logo').fadeOut('slow');
$('#main-removal-service').delay(600).fadeIn('slow');},
function(){
$('#main-minicab-service').hide();
$('#main-courier-service').hide();
$('#img-onlinebooking').show();
$('#main-online-booking').show();
$('#main-onlinebooking-logo').show();
$('#main-removal-service').hide();
});