Adding plugins - YafRAY

Hi I’m new to blender. How do I add the YafRAY render engine to Blender? I have installed YafRAY from the web site to the blender directory. Using Blender 2.49 and 2.5.