		$(document).ready(function(){	
			// Add classes to first and last list items- handy for styling in IE
			$("ul li:last-child").addClass("last");
			$("ul li:first-child").addClass("first");
			
			// Activate fancybox on all fancybox links
			$(".fancybox").fancybox();
			
			// Activate a map item after map is initiated
			$(".london").addClass('active');
			
			// Format colouring on user forms by element contained in fieldset
			$('iframe').closest('fieldset').css({'background' : '#ddcee7', 'border-color' : '#996699'});
			$('.user-form fieldset select').closest('fieldset').css({'background' : '#fff3d2', 'border-color' : '#f68f35'});
			$('.user-form fieldset input[type=file]').closest('fieldset').css({'background' : '#c0ffdd', 'border-color' : '#00aa4f'});
			$('.user-form fieldset input[type=password]').closest('fieldset').css({'background' : '#fff4c7', 'border-color' : '#ffcb08'});
			$('.user-form fieldset input[type=submit]').closest('fieldset').css({'background' : 'none', 'border' : 'none', 'padding' : '0px'});
			
			// Injected descriptions in procedural forms
			$(".user-form input[name=Title]")
				.before("<p class='tal fl'>Give your CV a title.</p>");
			$(".user-form input[name=TotalYearsExperience]")
			$(".user-form input[name=Objective]")
				.before("<p class='tal fl'>Use this space to state your professional goals and perhaps evidence of two or three of your main strengths.</p>");
			$(".user-form input[name=TotalYearsExperience]")
				.before("<p class='tal fl'>Tell us how long you've worked in your sector (as chosen above).</p>");
			$(".user-form .fieldTypedriverClass")
				.before("<p class='tal fl'>If you are a driver, please select all fields below that describe your professional experience to date.</p>");
			$(".user-form .fieldTypeforkliftLicense")
				.before("<p class='tal fl'>If you are an industrial worker, please select all fields below that describe your professional experience to date.</p>");
			$(".user-form .fieldTypeutilities")
				.before("<p class='tal fl'>If you are a utilities worker, please select all fields below that describe your professional experience to date.</p>");
			$(".user-form .fieldTypeofficeManagement")
				.before("<p class='tal fl'>If you are in an administrative or management role, please select all fields below that describe your professional experience to date. </p>");
			$(".user-form select[name=Country]")
				.before("<p class='tal fl'>Where do you currently live?</p>");
			$(".user-form select[name=County]")
				.before("<p class='tal fl'>Where do you currently live?</p>");
			$(".user-form input[name=ZipCode]")
				.before("<p class='tal fl'>Where do you currently live?</p>");
			$(".user-form #complexFields_WorkExperience")
				.before("<p class='tal fl'>CV Tip! Keep the job you are applying for in mind when describing your past experience. Keeping information relevant helps you stand out.</p>");
			$("input[name=location1]")
				.before("<p class='tal fl'>Please enter a Postcode or City for where you would like to work.</p>");
			$("input[name=location2]")
				.before("<p class='tal fl'>Please enter a Postcode or City for where you would like to work.</p>");
			$("input[name=location3]")
				.before("<p class='tal fl'>Please enter a Postcode or City for where you would like to work.</p>");
			$("input[name=CV]")
				.before("<p class='tal fl'>Have an existing CV? Click here to upload.</p>");
			$("#editListingForm input[name=Title]")
				.before("<p class='tal fl'>Please select a title for this CV</p>");
			$("select[name=access_type]")
				.before("<p class='tal fl'>Who would you like to be able to see your CV?</p>");
			$("#advanced-search input#keywords")
				.before("<p class='tal fl'>What search terms do you want to search for?</p>");
			$(".user-form select[name=yearsExperience]")
				.before("<p class='tal fl'>How many years have you worked in the industry selected above?</p>");
			
			/*
			var init_title = $("title").text();
			var page_title = $('#content .page > h2').text();
			if ( page_title.length ) {
				$("title").text(page_title + ' | ' + init_title);
			}
			*/
		});
