function addQuotes(){var F=document.getElementById("random_quote");if(F){var E=F.getElementsByTagName("blockquote")[0];var C=E.getElementsByTagName("ul")[0];var B=C.getElementsByTagName("li");var D=B[rndnm(B.length)].firstChild.nodeValue;var A=document.createElement("p");A.appendChild(document.createTextNode(D));C.parentNode.removeChild(C);E.appendChild(A);Util.DOM.removeClass(E,"semirandom");}}Util.Event.addHandler(d,"ready",addQuotes);function glossary(){$("#glossary dd:first").addClass("show");$("#glossary dl dl dt:first").addClass("mark");$("#glossary dd dd:first").addClass("show");var A=$("#glossary dd dd:first").height();$("#glossary dl dl:first").css("height",A);$("#glossary > dl > dt").not("dt.empty").each(function(){$(this).click(function(){$("#glossary > dl > dt").not("dt.empty").removeClass("current");$(this).addClass("current");$("#glossary > dl > dd").removeClass("show");$(this).next("dd").addClass("show");});});$("#glossary > dl > dd > dl > dt").each(function(){$(this).click(function(){$("#glossary > dl > dd > dl > dd").removeClass("show");
$("#glossary > dl > dd > dl > dt").removeClass("mark");$(this).addClass("mark");$(this).next("dd").addClass("show");var B=$(this).next("dd").height();$(this).parent().css("height",B);$("#glossary").height($("#glossary dl dl dd.show").height()+50);});});}function newAddQuotes(){var A=$(".random_quote li");if(A.length){rnd=Math.floor(Math.random()*A.length);$(".random_quote ul").after("<p>"+A[rnd].innerHTML+"</p>").remove();}}function fireAll(){newAddQuotes();glossary();}$(document).ready(fireAll);