lets say i want to show adsense for german users, and clicksor for usa users (thats just an example) the code can be either java or php i will give rep if i can get a reply
i guess you probably need to find Firefox API first, since Firefox is the only Open Source one. I don't think you can detect it from IE because it's not an open source :-/