function removeLast(){
        $('.footer-two-right a:first').css("border-right","0");
		$('.footer-two-right a:last').css("border-left","0");
        $('.footer-two-right a:first').css("padding-right","0");
}

function services(){
	$('#hiddenContent').hide();
	var $sectorText = $('.serviceinfo:first').clone();
	$(".serviceone, .servicetwo, .servicethree, .servicefour, .servicefive, .servicesix").fadeTo("slow", 0.5).hover(function(){
		$(this).stop().fadeTo("slow", 1);
		$('.serviceinfo:first').html($($(this).attr('href')).clone());
	},function(){
		$(this).stop().fadeTo("slow", 0.5);
		$('.serviceinfo:first').html($sectorText);
	});
}

function sectors(){
	$('#hiddenContent').hide();
	var $sectorText = $('.sectors-info:first').clone();
	$(".sectorone, .sectortwo, .sectorthree, .sectorfour, .sectorfive, .sectorsix, .sectorseven").fadeTo("slow", 0.5).hover(function(){
		$(this).stop().fadeTo("slow", 1);
		$('.sectors-info:first').html($($(this).attr('href')).clone());
	},function(){
		$(this).stop().fadeTo("slow", 0.5);
		$('.sectors-info:first').html($sectorText);
	});
}

function caseStudies(){
	$('#hiddenContent').hide();
	$(".levelone a, .shopfitting, .levelthree a").fadeTo("slow", 0.5);
	$(".levelone a, .shopfitting, .levelthree a").hover(function(){
		$(this).stop().fadeTo("slow", 1);
	},function(){
		$(this).stop().fadeTo("slow", 0.5);
	});
	$(".levelone a, .shopfitting, .levelthree a").click(function(){
		$('.casestudysmoreinformation:first').html($($(this).attr('href')).clone());
		return false;
	});
}

function hideCaption()	{
	var el = document.getElementById("javerscropt");
	if (el.innerHTML == "")	{
		el.style.display = "none";
	}	else	{
		el.style.display = "block";
	}
}

$(function(){
	sectors();
	caseStudies();
	removeLast();
	services();
});



