Came across strange javascript while fixing a page
<p>I've been working on a page that's been sabotaged by somebody and well that person added extra code. I have no clue what it does but i know it doesn't belong there.</p>

<p>I have included a link right here to pastebin <a href="http://pastebin.com/nzhm651W" rel="nofollow">right here</a></p>

<p>The code at the bottom of the page is strange (at line 130 till 179)... can someone explain it to me?</p>

<p><strong>Prolly should mention not to run this in any circumstances</strong></p>

<p>EDIT: I have jsbeautified it and put it <a href="http://pastebin.com/fuMCmF6n" rel="nofollow">on pastebin</a></p>
