//--------------- image script ---------------//

var imageArray = new Array("images1/main_image1.gif","images1/main_image2.gif","images1/main_image3.gif","images1/main_image4.gif","images1/main_image5.gif", "images1/main_image6.gif","images1/main_image7.gif","images1/main_image8.gif", "images1/main_image9.gif", "images1/main_image10.gif", "images1/main_image11.gif", "images1/main_image12.gif");
var imageDescript = new Array("Discover the wonders of light and shadow in ","See how motion affects your ","Discover the physics of kickflips and noseslides in ","Play with the ","Has imagery changed the way we look at our bodies? Explore this ","We don't see things as they are; we see things as we are. Learn more about ","Explore the anatomy of memory in the ","What does it mean to find a new species of plant or animal? Follow scientists from Belize to London, witnessing ", "Learn about sea urchins and other model organisms, and find out how you can use the Exploratorium’s research-grade microscopes at the ", "Do you see faces or goblets? Explore this and other small exhibits at ", "Read excerpts from a public forum regarding issues of the nuclear age, and view Yosuke Yamahata’s photographs at ", "Play with our online exhibits such as ");
var linkArray = new Array("/light_walk/index.html","exhibits/f_exhibits.html","skateboarding/","complexity/java/lorenz.html", "bodies/index.html","seeing/index.html","memory/braindissection/index.html","origins/belize-london/index.html","imaging_station/index.php", "exhibits/postcard_illusions/index.html", "/nagasaki/index.html", "/exhibits/trapezoidal_window/trap_window.html");
var linkTextArray = new Array("Bob Miller's Light Walk!","perception.","Skateboard Science.","Lorenz Butterfly!", "provocative subject.", "seeing!", "Sheep Brain Dissection.","biology in action.", "Microscope Imaging Station.", "Postcard Exhibits.", "Remembering Nagasaki.", "Trapezoidal Window.");                                                    
var whatImage = Math.random();

if(whatImage<=.083){
            theImage=imageArray[0];
            theDescript=imageDescript[0];
            theLink=linkArray[0];
            theLinkText=linkTextArray[0];
} else if(whatImage<=.166){
            theImage=imageArray[1];
            theDescript=imageDescript[1];
            theLink=linkArray[1];
            theLinkText=linkTextArray[1];
} else if(whatImage<=.249){
            theImage=imageArray[2];
            theDescript=imageDescript[2];
            theLink=linkArray[2];
            theLinkText=linkTextArray[2];
} else if(whatImage<=.332){
            theImage=imageArray[3];
            theDescript=imageDescript[3];
            theLink=linkArray[3];
            theLinkText=linkTextArray[3];
}else if(whatImage<=.415){
            theImage=imageArray[4];
            theDescript=imageDescript[4];
            theLink=linkArray[4];
            theLinkText=linkTextArray[4];
} else if(whatImage<=.498){
            theImage=imageArray[5];
            theDescript=imageDescript[5];
            theLink=linkArray[5];
            theLinkText=linkTextArray[5];
} else if(whatImage<=.581){
            theImage=imageArray[6];
            theDescript=imageDescript[6];
            theLink=linkArray[6];
            theLinkText=linkTextArray[6];
} else if(whatImage<=.664){
            theImage=imageArray[7];
            theDescript=imageDescript[7];
            theLink=linkArray[7];
            theLinkText=linkTextArray[7];
} else if(whatImage<=.747){
            theImage=imageArray[8];
            theDescript=imageDescript[8];
            theLink=linkArray[8];
            theLinkText=linkTextArray[8];
} else if(whatImage<=.83){
            theImage=imageArray[9];
            theDescript=imageDescript[9];
            theLink=linkArray[9];
            theLinkText=linkTextArray[9];
} else if(whatImage<=.913){
            theImage=imageArray[10];
            theDescript=imageDescript[10];
            theLink=linkArray[10];
            theLinkText=linkTextArray[10];
} else {
            theImage=imageArray[11];
            theDescript=imageDescript[11];
            theLink=linkArray[11];
            theLinkText=linkTextArray[11];
}

//--------------- end image script ---------------//





