    $(document).ready(function() {
        $('ul.udm').superfish({
            delay:       1000,                            // one second delay on mouseout
            animation:   {opacity:'show'},  // fade-in and slide-down animation
            speed:       'normal',                          // faster animation speed
            autoArrows:  true,                           // disable generation of arrow mark-up
            dropShadows: true                            // disable drop shadows
        });

        $('ul.leftudm').superfish({
            delay:       1000,                            // one second delay on mouseout
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation
            speed:       'normal',                          // faster animation speed
            autoArrows:  false,                           // disable generation of arrow mark-up
            dropShadows: false                            // disable drop shadows
        });
		
		var getTitle = $('#container-leftudm .title h2 a').html(); // Get the name of the page
		
		if (getTitle == "Individuals" || getTitle == "Businesses" || getTitle == "Sectors") {
			$('#container-leftudm .title').remove();
		} // If the name is any of these, remove the title.

		$('.staffline .readmore a').addClass('people_profile_links'); // Add a class to the people pages "read more" a links
		$("a.people_profile_links").wrapInner('<span class="hide"></span>'); // Add a span so we can hide it
		$('body#home .mwb_home_news .link a').html("read more news"); // Change the homepage news anchor link text.
		
		// Staff profile page
		
		$('#professional_biography p:nth-child(2)').addClass("introText"); 
		$('.departments b:first').addClass("firstBold");
		$('.departments .firstBold').html("Specialisms:");
		
		$('.DDI').insertBefore('.office');
		$('div#container-right div.staffmemberTH div.text div.contact').append('<div class="clear"><!-- clear --></div>');
		
		$('.DDI').prepend("DD: ");
		
		// Meet the team
		$(".meetteam_main ").wrap('<div id="meet_team_holder"></div>');
		
		//Lead profile 
		$('div.centrenews .link a').html("Read More News");
		$('.single_document .icon').remove();
		$('.single_document .date').remove();
		
		//Dropdowns
		
		$('li#udm_menu_item_blankmm a').html('<img src="/images/mdot.gif" alt="dot"/>').css({"cursor" : "default"});
		
		$('body#profile #container-right .staffmemberTH2 .image:nth-child(2)').addClass("headingBanner");
		$('.headingBanner').removeClass("image");
		
		
		// Events 
		
		eventTitle = $('.defaultTheme:nth-child(2) h1').html();
		
		if (eventTitle == "Event booking form") {
			$('.defaultTheme:nth-child(1)').remove();
		};

		$('.bookingformsubmit input.button').val("");
		
    });

