As root, just the put the contents (above) in a new file - /etc/yum.repos.d/virtualbox.repo. After you have created the file,
yum install VirtualBox-4.1 dkms kernel-devel gcc
Some of these might already be installed in your system. If there are no errors, you should have VirtualBox installed. Post if you encounter some problems.