// The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu)
// See:  http://www.msc.cornell.edu/~houle/javascript/randomizer.html

rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        return Math.ceil(rnd()*number);
};
// end central randomizer. -->


function getIdea () {

	var a = new Array();
	a[1] = "Art and Life<br><a href=\"ideas_art.html\" class=\"yellow2\">A centuries-old conversation piece.</a>";
	a[2] = "Lifecycle of a Star<br><a href=\"ideas_star.html\" class=\"yellow2\">Follow a star, from nebulas to black holes.</a>";
	a[3] = "String Theory<br><a href=\"ideas_string.html\" class=\"yellow2\">May be the \"theory of everything\" Einstein once sought.</a>";
	
	
	var getIdeaNumber = rand(3);
	var thisLineText = a[getIdeaNumber];
	var b = new Array;
	b = a[getIdeaNumber].split("\t");
	document.write(b[0]);

}

function getIdea2() {
	
	var c = new Array();
	c[1] = "The Great Game<br><a href=\"ideas_game.html\" class=\"yellow2\">The principles that guide our games.</a>";
	c[2] = "The Diffusion of Islam<br><a href=\"ideas_islam.html\" class=\"yellow2\">The cultural contributions of a major religion.</a>";
 	c[3] = "A Love of Pure Math<br><a href=\"ideas_math.html\" class=\"yellow2\">Searching for an answer in the numbers.</a>";
	
 	var getIdea2Number = rand(3);
	var thisLineText = c[getIdea2Number];
	var d = new Array;
	d = c[getIdea2Number].split("\t");
	document.write(d[0]);
}


function getInteractive() {
	
	var c = new Array();
	c[1] = "<a href=\"javascript:openWindow('pop_lifecycle/index.html','pop', 400, 350);\"><IMG SRC=images/index_32.gif WIDTH=282 HEIGHT=106 alt=\"Interactive Feature\" border=0></a>";
	c[2] = "<a href=\"javascript:openWindow('pop_math/index.html','pop', 400, 400);\"><IMG SRC=images/index_32_2.gif WIDTH=282 HEIGHT=106 alt=\"Interactive Feature\" border=0></a>";
 	c[3] = "<IMG SRC=images/index_32_3.gif WIDTH=282 HEIGHT=106 alt=\"Watch the Video - String Theory\" border=0 usemap=\"#string\">";
 	c[4] = "<a href=\"javascript:openWindow('pop_art/index.html','popart', 589, 380);\"><IMG SRC=images/index_32_4.gif WIDTH=282 HEIGHT=106 alt=\"Interactive Feature\" border=0></a>";
 	c[5] = "<a href=\"javascript:openWindow('pop_game/index.html','pop', 400, 350);\"><IMG SRC=images/index_32_5.gif WIDTH=282 HEIGHT=106 alt=\"Interactive Feature\" border=0></a>";
	
 	var getInteractiveNumber = rand(5);
	var thisLineText = c[getInteractiveNumber];
	var d = new Array;
	d = c[getInteractiveNumber].split("\t");
	document.write(d[0]);
}
