I'm trying to write a jQuery script to resize a Google map I have wrapped in div#map. I want the map to be 100% of the window size minus 120px for the header and topbar. Does anyone know how to have this work everytime the window is resized? I'm new to jQuery and am having some issues getting this to work. Thanks!

Code:
$(window).resize(function() {
	  $('#map').height() = ($window).height() - 120;
});