Jquery: How to get country code from browser url and inject it in all page links : suppose these are my address bar url http://localhost:53741/gb/default.aspx

OR http://localhost:53741/gb/default.aspx?id=1

OR http://localhost:53741/gb/part/part.aspx?id=1&vref=2010

so gb is the country code.


my default.aspx page has many hyperlinks and those looks like 
http://localhost:53741/test1.aspx
http://localhost:53741/test2.aspx
http://localhost:53741/test3.aspx

now through jquery i want to get first country code from browser url which gb as per url and i need to inject that country code in all the hyperlinks of default.aspx page. so new links would be look like

http://localhost:53741/gb/test1.aspx
http://localhost:53741/gb/test2.aspx
http://localhost:53741/gb/test3.aspx

anyone can help me with jquery code sample how to achieve this. thanks