$(document).ready(function(){
	
	$(".socialIcon").click(function(){
		//get id of clicked element
		a = this.id;
		//create id for upper element
		b = "#" + a + "_LG";
		//remove and add proper icon class
		$('#iconNav li').removeClass('toggled');
		$(this).addClass('toggled');
		//fade out current top image that's visible
		$(".topSocial:visible").fadeOut("slow", function(){
		//create callback function so fadein happens after fadeout
		$(b).fadeIn("slow");
		});
	});

});