If you are doing extensive url manipulations, then you shoud check out JQuery URL plugin.
To access the params in url hashes
$.url('http://www.google.com/#hfh=fdg&hash=value2x').fparam('hash');
or if its current url
$.url().fparam('hash');
Hope it helps