function writelulz()
{document.write("<div>[ ");
 document.write("<a href=\"javascript:lulz()\">lulz</a>");
 document.write(" | ");
 document.write("<a href=\"javascript:lulzkiller()\">kill lulz</a>");
 document.write(" ]</div>");
}

function lulz()
{setInterval("forthelulz()",5);}

function forthelulz()
{for(i=0;i<document.images.length;i++)
 {DIS=document.images[i].style;
  DIS.position="absolute";
  DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5;
  DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5;
 }
 R++;
}

function lulzkiller()
{window.location.reload();}

R=0;
x1=0.1;
y1=0.05;
x2=0.25;
y2=0.24;
x3=1.6;
y3=0.24;
x4=300;
y4=200;
x5=300;
y5=200;

function leslierank()
{var ranks=new Array();
 ranks[0]="So I herd u liek perl?";
 ranks[1]="So I herd u liek sailor moon?";
 ranks[2]="Resident perl zealot";
 ranks[3]="I &lt;3 PHP";
 var min=0;
 var max=ranks.length-1;
 var i=parseInt((max-min+1)*Math.random()+min);
 var out=ranks[i];
 document.write(out);
}

function longrank(post_count)
{switch(post_count)
 {case 980:
   rank="You have no chance to survive make your time.";
   break;
  case 2345:
   rank="I'm waxing my modem, trying to make it go faster";
   break;
  case 5678:
   rank="If I ever meet you, I'll ctrl-alt-delete you!";
   break;
  case 6789:
   rank="Thank you Mario!  But the Princess is in another tower!";
   break;
  case 12345:
   rank="I've got the same combination on my luggage!";
   break;
  default:
   rank="no long rank defined for that number of posts, dipshit";
 }
 document.write(rank);
}

function spoilerrank()
{var ranks=new Array();
 ranks[0]="L dies.";
 ranks[1]="Spike dies.";
 ranks[2]="Aeris dies.";
 ranks[3]="Rosebud is a sled.";
 ranks[4]="The ship sinks.";
 ranks[5]="Wash dies.";
 ranks[6]="Allies win World War 2.";
 ranks[7]="Kamina dies.";
 ranks[8]="They find Nemo.";
 ranks[9]="Snape kills Dumbledore.";
 ranks[10]="Sasuke dies.";
 ranks[11]="Nia is an anti-spiral.";
 var min=0;
 var max=ranks.length-1;
 var i=parseInt((max-min+1)*Math.random()+min);
 var out=ranks[i];
 document.write(out);
}
