hi guys

im trying to recreate the last example (under EDIT) here:
http://stackoverflow.com/questions/6...88244#11688244

looks simple enough but i dont know what i am missing?

Tried it here:
http://www.bluecrushdesign.co.za/moc...onenumber.html

what have i done wrong?