// $Id: hexspace.js,v 1.1.2.1 2009/11/16 00:59:10 psynaptic Exp $

Drupal.behaviors.hexspace = function (context) {
  $('div.fieldset:not(.hexspace-processed)').each(function() {
    $(this).addClass('hexspace-processed');
    if ($(this).is('.collapsible')) {
      if ($('input.error, textarea.error, select.error', this).size() > 0) {
        $(this).removeClass('collapsed');
      }
      // Note that .children() only returns the immediate ancestors rather than
      // recursing down all children.
      $(this).children('.fieldset-title').click(function() {
        if ($(this).parent().is('.collapsed')) {
          $(this).siblings('.fieldset-content').show();
          $(this).parent().removeClass('collapsed');
        }
        else {
          $(this).siblings('.fieldset-content').hide();
          $(this).parent().addClass('collapsed');
        }
        return false;
      });
    }
  });
}

//USELESS CRUD
ra = new Array();
rb = new Array();


ra[0] = "The laws of nature are but the mathematical thoughts of God."; rb[0] = "Euclid";
ra[1] = "Number is the ruler of forms and ideas, and the cause of gods and demons"; rb[1] = "Pythagoras";
ra[2] = "If the truth can be told so as to be understood, it will be believed."; rb[2] = "Terence McKenna";
ra[3] = "And therefore in Geometry, (which is the only Science that it hath pleased God hitherto to bestow on mankind), men begin at settling the significations of their words; which settling of significations, they call Definitions; and place them in the beginning of their reckoning."; rb[3] = "Thomas Hobbes";
ra[4] = "What I'm talking about is traditional music, right, which is to say it's mathematical music, it's based on hexagons."; rb[4] = "Bob Dylan";
ra[5] = "It takes an extraordinary intelligence to contemplate the obvious."; rb[5] = "Alfred North Whitehead";
ra[6] = "I am coming more and more to the conviction that the necessity of our geometry cannot be demonstrated, at least neither by, nor for, the human intellect."; rb[6] = "Carl Friedrich Gauss";
ra[7] = "Everything one invents is true, you may be perfectly sure of that. Poetry is as precise as geometry."; rb[7] = "Gustave Flaubert";
ra[8] = "Let no one ignorant of geometry enter here."; rb[8] = "Plato";
ra[9] = "There is geometry in the humming of the strings, there is music in the spacing of the spheres."; rb[9] = "Pythagoras";
ra[10] = "Geometry existed before creation."; rb[10] = "Plato";
ra[11] = "We have found a strange footprint on the shores of the unknown. We have devised profound theories, one after another, to account for its origins. At last, we have succeeded in reconstructing the creature that made the footprint. And lo! It is our own."; rb[11] = "Arthur Eddington";
ra[12] = "Not only is the universe stranger than we imagine, it is stranger than we can imagine."; rb[12] = "Arthur Eddington";
ra[13] = "We are operating on many levels here."; rb[13] = "Ken Kesey";
ra[14] = "Mathematics is the supreme judge; from its decisions there is no appeal."; rb[14] = "Tobias Dantzig";
ra[15] = "Six is a number perfect in itself, and not because God created the world in six days; rather the contrary is true. God created the world in six days because this number is perfect, and it would remain perfect, even if the work of the six days did not exist."; rb[15] = "Augustine of Hippo";
ra[16] = "Out of nothing I have created a strange new universe"; rb[16] = "János Bolyai";
ra[17] = "I must create a system or be enslaved by another man's."; rb[17] = "William Blake";
ra[18] = "It is absolutely paradoxical; we cannot understand it, and we don't know what it means, but we have proved it, and therefore we know it must be the truth."; rb[18] = "Benjamin Peirce";


function rq() {
        var rval = Math.round(Math.random() * 18);
        document.write("\"" + ra[rval] + "\"&nbsp;&ndash;&nbsp;" + rb[rval]);
}

function alb(isinum, nonsense) {
	document.write("<iframe src=\"http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&nou=1&bg1=FFFFFF&fc1=3F3F3F&lc1=2A55AA&t=hexnet-20&o=1&p=8&l=as1&m=amazon&f=ifr&asins=" + isinum + "\" style=\"width:140px;height:220px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"></iframe>");
}

