Take a look at this. Its the opposite way in which you want but should point you in the right direction.