jquery solution
prototype skeleton