Redirect or detection

is it possible if i have two versions of a flash file made, to have a redirect or detection that would choose the swf depending on what version of flash player the user has?

so if they have flash five they get 5.swf and if they have flash 6 they get 6.swf:h: