Update: I have updated the content of this entry after it was posted. John Dowdell(JD) pointed out some part of post which were confusing. I hope, it is clear now.
//this function return to Flash ActiveX Object or Plugin depending upon browser //it takes care for browser type and returns the proper reference. //Accepts the id or name of