<!--

/*
    IMAGE PAIR RANDOMIZER

    By M. R. Eyestone, 2006-09-17
*/

var picsData = new Array();

// left image path/width/height, right image path/width/height
picsData[0] = "320_flatirons.jpg::Flatirons::320::320::320_randomstudent.jpg::CU Student::320::320";
picsData[1] = "320_oldmain.jpg::Old Main::320::320::320_lecturehall.jpg::Lecture Hall::320::320";
picsData[2] = "320_oldmain2.jpg::Old Main::320::320::320_hands.jpg::Teaching::320::320";
picsData[3] = "320_roof.jpg::Campus Rooftops::320::320::320_library.jpg::CU Library::320::320";
picsData[4] = "320_arches.jpg::Campus Arches::320::320::320_Dan.jpg::Philosophy Grad Student, Daniel Demetriou::320::320";
picsData[5] = "320_arches2.jpg::Campus Arches::320::320::320_Nic.jpg::Visiting Professor, Nic Damnjanovic::320::320";
picsData[6] = "320_boulderfalls.jpg::Boulder Falls::320::320::320_randomstudent2.jpg::CU Undergraduate::320::320";
picsData[7] = "320_pearlstreet.jpg::Pearl Street::320::320::320_teaching.jpg::Outdoor Class::320::320";
picsData[8] = "320_mountain.jpg::The Flatirons from Campus::320::320::320_skiing.jpg::On the slopes::320::320";
picsData[9] = "320_oldmain2.jpg::Old Main::320::320::320_Fisher.jpg::Prof. John Fisher::320::320";
picsData[10] = "320_randomstudent4.jpg::Undergraduate::320::320::320_Mills.jpg::Prof. Claudia Mills::320::320";
picsData[11] = "320_kayak.jpg::Kayaking in Boulder Creek::320::320::320_Heathwood.jpg::Prof. Christopher Heathwood::320::320";
picsData[12] = "320_creek.jpg::Boulder Creek::320::320::320_Lee.jpg::Prof. Mitzi Lee::320::320";
picsData[13] = "320_wintercampus.jpg::Campus in the Winter::320::320::320_Huemer.jpg::Prof. Michael Huemer::320::320";
picsData[14] = "320_rocks.jpg::Climber in El Dorado Canyon::320::320::320_Tooley.jpg::Prof. Michael Tooley::320::320";
picsData[15] = "320_climbing2.jpg::Climbing in El Dorado Canyon::320::320::320_Hanna.jpg::Prof. Robert Hanna::320::320";
picsData[16] = "320_flatirons.jpg::The Flatirons::320::320::320_hands.jpg::Teaching::320::320";
picsData[17] = "320_bouldertheatre2.jpg::Boulder Theatre::320::320::320_Barrett.jpg::Philosophy Grad Student Barrett Emerick::320::320";

/*
picsData[18] = "320_rwanda.jpg::Photo by Cresta King Kutcher (camera_rwanda)::320::320::320_groceries.jpg::Photo by Doug Wilson (iboy daniel)::320::320";
picsData[19] = "320_torture.jpg::Abu Ghraib::320::320::320_airplane.jpg::Photo by Ben McLeod (ben mcleod)::320::320";
picsData[20] = "320_mlk.jpg::Martin Luther King::320::320::320_starsandbars.jpg::Photo by Dana (dana j)::320::320";
picsData[21] = "320_march.jpg::Photo by Philgarlic::320::320::320_riotpolice.jpg::Photo by Centrifuga::320::320";
*/

/*

These are earlier images that we aren't using; and their photographers

Other images and their owners:  
320_bullets3.jpg::Photo by John Hardman (afterdark_)
320_homeless3.jpg::Photo by Berge Gazen (bayat)
320_sick.jpg::Photo by Heather Watts (headur)
320_war2.jpg::Photo by James McCauley (nukeit1)
picsData[15] = "320_heroin2.jpg::Photo by Lenny Montana (lenny montana)::320::320::320_peephole.jpg::Photo by Hobvias Sudoneighm (striatic)::320::320";



picsData[0] = "320_pollution7.jpg::320::320::320_fogtrees.jpg::320::320";
picsData[1] = "320_war.jpg::320::320::320_protest4.jpg::320::320";
picsData[2] = "320_mansion.jpg::320::320::320_slums3.jpg::320::320";
picsData[3] = "320_medical.jpg::320::320::320_embryo.jpg::320::320";
picsData[4] = "320_bullets.jpg::320::320::320_notrespass.jpg::320::320";
picsData[5] = "320_dozer2.jpg::320::320::320_mountainlion2.jpg::320::320";
picsData[6] = "320_cow.jpg::320::320::320_steak.jpg::320::320";
picsData[7] = "320_prison.jpg::320::320::320_fingerprints.jpg::320::320";
picsData[8] = "320_gayhands.jpg::320::320::320_siegheil.jpg::320::320";

*/


var r = Math.round(Math.random() * (picsData.length - 1));

if ((r < 0) || (r > (picsData.length - 1)))
{
    r = 0;
}

var splitData = new Array();
splitData = picsData[r].split("::");
var leftPath = splitData[0];
var leftTITLE = splitData[1];
var leftW = splitData[2];
var leftH = splitData[3];
var rightPath = splitData[4];
var rightTITLE = splitData[5];
var rightW = splitData[6];
var rightH = splitData[7];

var leftImg = '<img src="' + leftPath + '" title="' + leftTITLE + '" width="' + leftW + '" height="' + leftH + '" />';
var rightImg = '<img src="' + rightPath + '" title="' + rightTITLE + '" width="' + rightW + '" height="' + rightH + '" />';

//-->
