/*      
        This JavaScript was made by Jonas Mindemark
        © 1997 Jonas Mindemark
        http://www.geocities.com/SiliconValley/6052/

	modified: 6-4-1998, Jennifer Ryan Fuller
        updated:  2-2-1999, Jennifer Ryan Fuller
*/

var baseURL = "http://www.chaotech.com/playground/";
//var baseURL = "";     for test purposes only

var URL = "";
var number = "";
var numURLs = 20;
  
//TO DO: replace hard-coded URLs with directory read script

function Array () {
    this[1] = "patterns/main.html";
    this[2] = "patterns/ceramics.html";
    this[3] = "patterns/coloredpencil.html";
    this[4] = "patterns/sketches.html";
    this[5] = "patterns/watercolor.html";
    this[6] = "patterns/works.html";
    this[7] = "discord/main.html";
    this[8] = "discord/artists_way.html";
    this[9] = "discord/snapshots.html";
    this[10] = "turbulence/main.html";
    this[11] = "turbulence/essays.html";
    this[12] = "turbulence/poetry.html";
    this[13] = "resonance/main.html";
    this[14] = "resonance/recordings.html";
    this[15] = "resonance/cdcollection.html";
    this[16] = "symbiosis/main.html";
    this[17] = "symbiosis/chaos_theory.html";
    this[18] = "nexus/main.html";
    this[19] = "neodatum/main.html";
    this[20] = "neodatum/design.html";
}

URLs = new Array ();
number = Math.floor (Math.random () * numURLs) + 1;
URL = baseURL + URLs[number];

//alert("going to: " + URL );

if (URL == null) {
        URL = "not_found";
        alert ("Im sorry, an error occurred ...");
        window.history.back ();
} else {
        window.location = URL;
}

