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);
 alert("You just lost the game.");
}

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()
{if(confirm("Become an hero?"))
 {if(document.all)
  {alert("Unfortunately, IE sucks and doesn't support the necessary features to make this work correctly.  It's the odd browser out, this feature works in all other browsers I've tested it in, being Firefox, Chromium, and Opera.  Install one of those and try again.");
   return;
  }
  var anhero=document.createElement("div");
  anhero.setAttribute("id","anhero");
  anhero.style.position="fixed";
  anhero.style.top="0px";
  anhero.style.left="0px";
  anhero.style.width="100%";
  anhero.style.height="100%";
  anhero.style.backgroundColor="#000000";
  anhero.style.color="#FFFFFF";
  anhero.style.fontFamily="Verdana, sans-serif";
  anhero.style.fontSize="36pt";
  anhero.style.textAlign="center";
  anhero.style.zIndex="9001";
  anhero.innerHTML="<br/><br/>BANG!<br/><br/>You are dead.<br/><br/><a href=\"javascript:tryagain()\">Reload</a>";
  document.getElementsByTagName("body")[0].appendChild(anhero);
 }
 else
  alert("DO IT FAGGOT");
 //window.location.reload();
}

function tryagain()
{document.getElementsByTagName("body")[0].removeChild(document.getElementById("anhero"));
}

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";
 ranks[4]="-f&gt;@+?*&lt;.-&amp;'_:$#/%!"
 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.";
 ranks[12]="Archer is Emiya Shirou.";
 var min=0;
 var max=ranks.length-1;
 var i=parseInt((max-min+1)*Math.random()+min);
 var out=ranks[i];
 document.write(out);
}

