$(document).ready(function(){	
	
	$(".menu li:last-child").addClass("last_child");	
	
	$(".info_tab").click(function(){
		var theTab = $(this);
		var theInfo = theTab.siblings(".info");
		var theOpened = theTab.parents("#main").find(".opened").siblings(".info");
		
		 if (theTab.hasClass("opened")){
		 	theTab.removeClass("opened").addClass("closed").find("span").css({ WebkitTransform: 'rotate(90deg)', '-moz-transform': 'rotate(90deg)'});
		 	theInfo.animate({opacity: "hide"}, "fast");
		 } else if (theTab.hasClass("closed")){
		 	theOpened.animate({opacity: "hide"}, "fast").siblings(".info_tab").removeClass("opened").addClass("closed").find("span").css({ WebkitTransform: 'rotate(90deg)', '-moz-transform': 'rotate(90deg)'});
		 	theTab.removeClass("closed").addClass("opened").find("span").css({ WebkitTransform: 'rotate(45deg)', '-moz-transform': 'rotate(45deg)'});
		 	theInfo.animate({opacity: "show"}, "fast");
		 }
	});
	
	$('#service_dropdown').change(function() {
		if( $(this).val()=='Web Design & Development'){
			$('.web_form').show();
		}
	});
	
	$('.thumb_container').hover(function() {
			$(this).find('.thumb_text').fadeTo('fast', 1);
		}, function () {
			$(this).find('.thumb_text').fadeTo('fast', 0);
	});
			 
});
