$(document).ready(function(){
	$(".downservices").click(function(){
		$(".servicesdropped").toggle("fast");
		$(".cpmenu").hide();
		$(".devmenu").hide();
		$(".newsmenu").hide();
		$(".leasingmenu").hide();
	});

	$(".downcp").click(function(){
		$(".cpmenu").toggle("fast");
		$(".servicesdropped").hide();
		$(".devmenu").hide();
		$(".newsmenu").hide();
		$(".leasingmenu").hide();
	});

	$(".downdev").click(function(){
		$(".devmenu").toggle("fast");
		$(".cpmenu").hide();
		$(".servicesdropped").hide();
		$(".newsmenu").hide();
		$(".leasingmenu").hide();
	});
	$(".downnews").click(function(){
		$(".newsmenu").toggle("fast");
		$(".devmenu").hide();
		$(".cpmenu").hide();
		$(".servicesdropped").hide();
		$(".leasingmenu").hide();
	});
	$(".downleasing").click(function(){
		$(".leasingmenu").toggle("fast");
		$(".newsmenu").hide();
		$(".devmenu").hide();
		$(".cpmenu").hide();
		$(".servicesdropped").hide();
	});
});


$(document).ready(function(){
	$(".sociables img").fadeTo("slow", 0.4); // This sets the opacity of the thumbs to fade down to 60% when the page loads

	$(".sociables img").hover(function(){
		$(this).stop().animate({"opacity": "1.0"}, "fast"); // This should set the opacity to 100% on hover
	},function(){
   		$(this).stop().animate({"opacity": "0.4"}, "slow"); // This should set the opacity back to 60% on mouseout
	});
	
	
	$(".footer img").fadeTo("slow", 0.4); // This sets the opacity of the thumbs to fade down to 60% when the page loads

	$(".footer img").hover(function(){
		$(this).stop().animate({"opacity": "1.0"}, "fast"); // This should set the opacity to 100% on hover
	},function(){
   		$(this).stop().animate({"opacity": "0.4"}, "slow"); // This should set the opacity back to 60% on mouseout
	});


	//$(".megamenu img").fadeTo("slow", 0.4); // This sets the opacity of the thumbs to fade down to 60% when the page loads

	$(".megamenu img").hover(function(){
		$(this).stop().animate({"opacity": "0.5"}, "fast"); // This should set the opacity to 100% on hover
	},function(){
   		$(this).stop().animate({"opacity": "1.0"}, "fast"); // This should set the opacity back to 60% on mouseout
	});
});
