Bare with me, I'm JUST learning js and jquery =/ haha

I have a Menu slider using jquery that is 100% width of the browser.
But when the browser is resized, the menu does not refresh and either cuts off some of the items or adds extra space to the end depending if you make the window wider or narrower...

How can I get just the menu to refresh when the browser is resized?

I tried to use something someone suggested but I'm sure I'm doing something wrong.
Code:
<script type="text/javascript">
	$(window).resize(function () {
		('div.gallery-menu'.style.display = 'none')
		('div.gallery-menu'.style.display = 'block')
	});
</script>
Here is the menu.
http://www.eclipse2.com/testing/js_menu/menupan1.html