$('.pause').click(function(e) {
    e.preventDefault();
    url_href = e.target.href; //saves the url of the clicked anchor
    //alert(document.location.href);
    current_url = document.location.href;
    //
    switch(current_url)
    {
    case "http://www.beyonddesign.co.uk/":
		$("#img-home").animate({"bottom": "-=335px"}, "slow");
  		break;
  	case "http://www.beyonddesign.co.uk/what-we-do.php":
		$("#img-what-we-do").fadeOut(750);
  		break;
  	case "http://www.beyonddesign.co.uk/branding.php":
		$("#img-branding").fadeOut(750);
  		break;
    case "http://www.beyonddesign.co.uk/employee-engagement.php":
		$("#img-employee-engagement").fadeOut(750);
  		break;
  	case "http://www.beyonddesign.co.uk/interactive.php":
		$("#img-interactive").fadeOut(750);
  		break;
  	case "http://www.beyonddesign.co.uk/our-clients/":
		$("#img-our-clients").fadeOut(750);
  		break;
  	case "http://www.beyonddesign.co.uk/our-people/duncan-sibbald.php":
		$("#img-our-people").fadeOut(750);
  		break;
  	case "http://www.beyonddesign.co.uk/our-people/giles-giggins.php":
		$("#img-our-people").fadeOut(750);
  		break;
  	case "http://www.beyonddesign.co.uk/our-people/peter-robinson.php":
		$("#img-our-people").fadeOut(750);
  		break;
  	case "http://www.beyonddesign.co.uk/contact-us.php":
		$("#contact-box").fadeOut(750);
  		break;
  	default:
  	}
  	//
    setTimeout(function() { window.location = url_href; }, 800);
});
