    $(document).ready(function() {
       
	   $('ul.udm').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:  true,                           // disable generation of arrow mark-up
            dropShadows: true                            // disable drop shadows
        });

		

		$('div#container-centre div.introText p:first').addClass('firstPara').before('<div class="sandbag"><!-- block --></div>');
		var paraHeight = $('p.firstPara').height();
		$('div.sandbag').css({"height" : paraHeight + 20});

		$('.staff_intro p:nth-child(2)').addClass('staffPara'); // add a class to the 2nd paragraph so we can style and
		
		$('.staffPara').insertAfter('.job_title');
				
				
		$('.staff_intro .job_title').insertAfter('.staff_intro .title h1'); // put the job title directly after name title (h1) so we can float in css
		
		$("#container-right .staff_profile_info .image").insertAfter("p.staffPara"); // put the staff image AFTER the main paragraph
	
		$('ul.udm_menu_level_2').hover(function() {
			$(this).siblings('a').addClass("hoverover");
			}, function() {
			$(this).siblings('a').removeClass("hoverover");
		});
		
		$('body#profile #container-centre .text .image:first').remove();
		
		$('.vcard a img.vcardIcon').css({"width" : "25px", "height" : "20px"})
		
		var pgLoc=location.pathname;
		
		if (pgLoc == "/site/people/") {
		
		$('table.a2zreveal').prepend('<tr id="addedAtoZ"><td colspan="4" class="letterIndex"><div class="letterRow"><a id="idxA" class="indexLetter" href="#" onclick="reveal(\'A\',this)">A</a><a id="idxB" class="normalLetter" href="#" onclick="reveal(\'B\',this)">B</a><a id="idxC" class="normalLetter" href="#" onclick="reveal(\'C\',this)">C</a><a id="idxD" class="normalLetter" href="#" onclick="reveal(\'D\',this)">D</a><div class="hiddenLetter">E</div><a id="idxF" class="normalLetter" href="#" onclick="reveal(\'F\',this)">F</a><a id="idxG" class="normalLetter" href="#" onclick="reveal(\'G\',this)">G</a><a id="idxH" class="normalLetter" href="#" onclick="reveal(\'H\',this)">H</a><div class="hiddenLetter">I</div><a id="idxJ" class="normalLetter" href="#" onclick="reveal(\'J\',this)">J</a><a id="idxK" class="normalLetter" href="#" onclick="reveal(\'K\',this)">K</a><a id="idxL" class="normalLetter" href="#" onclick="reveal(\'L\',this)">L</a><a id="idxM" class="normalLetter" href="#" onclick="reveal(\'M\',this)">M</a><a id="idxN" class="normalLetter" href="#" onclick="reveal(\'N\',this)">N</a><a id="idxO" class="normalLetter" href="#" onclick="reveal(\'O\',this)">O</a><a id="idxP" class="normalLetter" href="#" onclick="reveal(\'P\',this)">P</a><div class="hiddenLetter">Q</div><a id="idxR" class="normalLetter" href="#" onclick="reveal(\'R\',this)">R</a><a id="idxS" class="normalLetter" href="#" onclick="reveal(\'S\',this)">S</a><a id="idxT" class="normalLetter" href="#" onclick="reveal(\'T\',this)">T</a><div class="hiddenLetter">U</div><div class="hiddenLetter">V</div><a id="idxW" class="normalLetter" href="#" onclick="reveal(\'W\',this)">W</a><div class="hiddenLetter">X</div><a id="idxY" class="normalLetter" href="#" onclick="reveal(\'Y\',this)">Y</a><div class="hiddenLetter">Z</div></div></td></tr>');
		
		} else if (pgLoc != "/site/people/" ) {
			
			$('table.a2zreveal').css({"margin-top" : "0px"}).before("<h1>Team profiles</h1>");
		}
		
});