function ScreenShot(name, description, filename){
this.name=name;
this.desc=description;
this.filename=filename;
}
function Category(name,screenList){
this.name=name;
this.screenShots=screenList;
}

var categories = new Array(
  new Category("Intel\, last day",
                new Array(new ScreenShot("laughter", "How did he miss that ball?", "../Pictures/vb/intel/oh_no.jpg"),
                          new ScreenShot("setting Ravi", "My set was a little high \<smirk\>", "../Pictures/vb/intel/set.jpg"),
                          new ScreenShot("my kill", "This is how it\'s done!", "../Pictures/vb/intel/score.jpg"),
                          new ScreenShot("lunch crew", "Left to right, Top: Max\, Jeff\, Joe; Bottom: Ravi\, Trung\, me\, Pascal\, Frank\, Bob", "../Pictures/vb/intel/intel.jpg"))),
  new Category("Indoor tourney",
                new Array(new ScreenShot("line ref", "Yep, it was out", "../Pictures/vb/cb/lineref.jpg"),
                          new ScreenShot("spectator", "When do we get to play?", "../Pictures/vb/cb/spectate.jpg"))),
  new Category("Santa Cruz",
                new Array(new ScreenShot("Matt and I - 2nd place", "No Attitudes Allowed Tournament\, Santa Cruz Beach\, Aug 2004\, Men's Champions: Dan Monahan, Tom Bensing, Matt Claudius, Chris Satterthwaite", "../Pictures/vb/santa_cruz/10_04_2nd.jpg"),
                          new ScreenShot("Tourney\, Craig and I", "No Attitudes Allowed Tournament\, Santa Cruz Beach\, Aug 2004", "../Pictures/vb/santa_cruz/craig.gif"),
                          new ScreenShot("Open play, Jon and I", "Jon and I - playing pick up games\, Santa Cruz Beach\, Aug 2004", "../Pictures/vb/santa_cruz/jon.jpg"),
                          new ScreenShot("Tourney, Joanne and I", "Joanne and I - No Attitudes Allowed Tournament\, Santa Cruz Beach\, June 2003", "../Pictures/vb/santa_cruz/partner.jpg"),
                          new ScreenShot("Miles and Joanne", "No Attitudes Allowed\, Santa Cruz Beach\, June 2003", "../Pictures/vb/santa_cruz/Miles_Jo.jpg"),
                          new ScreenShot("Jason and Jean", "No Attitudes Allowed Tournament\, Santa Cruz Beach\, June 2003", "../Pictures/vb/santa_cruz/Jason_Jean.jpg"))),
  new Category("Startups",
               new Array(new ScreenShot("G Funk era", "Intel rec 2000", "../Pictures/vb/startups/Gfunk.jpg"),
                         new ScreenShot("Team picture", "Intel rec 2000. Left to right, Top: Jim, Moh, Ed, Ravi; Bottom: Gary, Mike, Chris", "../Pictures/vb/startups/team0.jpg"))));
function refresth_no_warn(){
loadCatOptions();
loadCategory(0);
}

function picturerefresh(){
alert("Disclaimer: Not all of these pictures are recent, and I'm not assuming responsibility for any false representation. <smirk>  I would be happy to update any picture, should a newer one be sent to my mailbox.");
loadCatOptions();
loadCategory(0);
}
			
function loadCategory(catNum){
deleteImageOptions();
loadImageOptions(categories[catNum].screenShots);
loadSS(0);
}

function loadSS(ssNum){
catNum = document.imageForm.catList.selectedIndex;
if (catNum==-1){catNum=0;document.imageForm.catList.options[0].selected=true;}
ss = categories[catNum].screenShots[ssNum];
document.imageForm.imageList.options[ssNum].selected=true;
document.screenImage.src=ss.filename;

if (document.getElementById)
{
	document.getElementById("desc").innerHTML = ss.desc;
}
else if (document.all){
	desc.innerHTML = ss.desc;
}
else{
	document.layers["descNS"].document.write(ss.desc);
	document.layers["descNS"].document.close();
}
}

function deleteImageOptions(){
for (i=0;i<document.imageForm.imageList.options.length;i=i+0){
document.imageForm.imageList.options[i]=null;
}}

function loadImageOptions(imageOptions){
for (i=0;i<imageOptions.length;i++){
document.imageForm.imageList.options[i]=new Option(imageOptions[i].name, i);
}}

function loadCatOptions(){
for (i=0;i<categories.length;i++){
document.imageForm.catList.options[i]=new Option(categories[i].name,i);
}}