function MenuBuilder(){
	var threshold = 1000;//document.body.offsetWidth;
	var usedWidth = 0;
	var groups = $('#nav').find('li.group-menu > a');
	var noofelements = groups.length;
	for(var z=0; noofelements > z; z++)
		usedWidth+= groups[z].offsetWidth;
	var paddingSpace = parseInt((threshold - usedWidth)/(noofelements));
	var totalgeneratedwidth = 0 ; // Make 0 if no L/R border, also above
	$(jQuery.grep(groups, function(n, i){
		return (i < (noofelements-1) );
    })).each(
		function(){
			$(this).width(parseInt($(this).width()+(paddingSpace)));
				totalgeneratedwidth+= $(this).width();
		}
	);
	$(groups[noofelements-1]).width(threshold - totalgeneratedwidth);
	$(groups).each(function(){ //height of main navigation links
		$(this).css("line-height", $("#nav").height()+"px");
	});
	$(function() {
		$('#nav').droppy()
	});
}