Make different locations under network preferences that connect by default to certain networks. Create a "Library" location and enter the wireless info; create a "Home" location and enter the wireless info. Then, when you want to switch, go to the apple in the upper left corner, go to location, and choose which one you want.