mmm... quick question

I dont think flash works on my Motorola v500 or many other phones (unfortunately) soooo am sticking to just using html for my mobile site.

My question is..... how can I put a detect on my sites home page that will send the user to either a simple html page (on phone) or flash page (for computer)

i gather its about browser detection but Im not much of a coder and was wondering if there was just a generic little script I can use

thanks alot for all your help