You could do this using two Linksys WRT54G routers using the
sveasoft firmware and putting them in WDS mode, using a diffrent subnet for each (192.168.1.x on one, and 192.168.2.x on the other), though windows name service would not work with this, so you'd have to access thing by ip address if they're on the other network.