// JavaScript Document

// GLOBAL VARIABLES
// make the pages objects
// so we can snatch them later
pages=new Array()
pages[1]="DeathIsBeautiful/DeathIsBeautiful.html"
pages[2]="DOD/DOD.html"
pages[3]="HeartGlue/HeartGlue.html"
pages[4]="HowIThinkUpDiseases/HowIThinkUpDiseases.html"
pages[5]="HowToSmile/lesson1/How-To-Smile-Lesson1.html"
pages[6]="HowToSmile/lesson2/How-To-Smile_Lesson2.html"
pages[7]="HowToSmile/lesson3/How-To-Smile-Lesson3.html"
pages[8]="Intelligent-Design/birth/birth.html"
pages[9]="Intelligent-Design/Center-Of-The-Universe/Center-Of-The-Universe.html"
pages[10]="Intelligent-Design/Planet-Earth/Planet-Earth.html"
pages[11]="Intelligent-Design/Texas-Via-Satellite/Texas-Via-Satellite.html"
pages[12]="pressureBuilding/pressureBuilding.html"
pages[13]="Sacrifice/blur/Sacrifice_blur.html"
pages[14]="Sacrifice/burn/Sacrifice_burn.html"
pages[15]="Sacrifice/deadLove/Sacrifice_deadlove.html"
pages[16]="Sacrifice/dread/Sacrifice_dread.html"
pages[17]="Sacrifice/lost/Sacrifice_lost.html"
pages[18]="Sacrifice/pixels/Sacrifice_pixels.html"
pages[19]="war/war.html"
//
// Just define this in case things change.
// We just have to change this and add
// the page to the array above.
maxPages=19
//
// make a function that chooses a random number
//
newPage= function (){return Math.floor(Math.random()*maxPages)+1}
//
// make a function that redirects the page
//
function switchEm()
{
// seed the first attempt
// with a random page
//
var strTemp=pages[newPage()];
//
// check for the page in the url of
// the current page.
//
while (window.location.href.indexOf(strTemp)!=-1){
//
// If it's there, pick a new page and loop
//
strTemp=pages[newPage()]
}
window.location.href=strTemp
}