I just copied it from mozillians or flicks or something, tweak as you want