YUI,Javascript: How can i optimize this code snippet to run faster?

Printable View