$(document).ready(function(){
	$(".navMain").hover(
		function() {
			$(this).find(".dropContainer").each(function(){
				$(this).css('display','block');
				var ps = $(this).parent().position();
				var wd = $(this).width();
				if (parseInt(ps.left) + parseInt(wd) > 990) $(this).css('left',(990-(parseInt(ps.left) + parseInt(wd))));
			})
		},
		function() {
			$(this).find(".dropContainer").each(function(){
				$(this).css('display','none');
			})
		});	
})
