siteRoot="/";

function makeJSDate(sDate){var a=sDate.split("/");return new Date(a[2]>95?19+a[2]:20+a[2],a[0],a[1])}

function makeSearchDate(sDate){
	var a=sDate.split("/");
	if(eval(a[0])<10){a[0]="0"+a[0]};
	if(eval(a[1])<10){a[1]="0"+a[1]};
	return a.join(".")+"  ";
}

function makeDisplayDate(sDate){var a=sDate.split("/");return a[1]+"."+getMonthName(a[0])+'.'+(a[2]>95?19+a[2]:20+a[2])}
function getMonthName(iMonth){iMonth=iMonth-1;var months=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul",      "Aug","Sep","Oct","Nov","Dec");return months[iMonth]}
function makeImg(root,type,dir,base){return root+type+"/"+dir+"/"+dir+"-"+base+".jpg"}
function loadExhibit(id){for(var i=0;toc.length;i++){if(toc[i].id==id){return toc[i]}}}

function Exhibit(id,type,name,location,date,images,keywords){
	id=!id?"":id.toLowerCase();type=!type?"music":type.toLowerCase()
	var aImgs=images.toLowerCase().split(" "),defimg=makeImg(siteRoot,type,id,aImgs[0])
	for(var i=0;i<aImgs.length;i++){
		var pic=aImgs[i],i2=pic.length-1;if(pic.charAt(i2)=="*"){pic=pic.slice(0,-1);defimg=makeImg(siteRoot,type,id,pic);};aImgs[i]=makeImg(siteRoot,type,id,pic);
	}
	this.images=aImgs;this.defimg=defimg;this.id=id||"";this.dir=siteRoot+type+"/"+id+"/"||"new";this.type=type;this.name=name||"new exhibit";this.location=location||"new location";this.title=(name+"@"+location).toLowerCase();
	this.date=makeJSDate(date)||new Date();this.displaydate=makeDisplayDate(date)||makeDisplayDate(new Date());this.searchdate=makeSearchDate(date)||makeSearchDate(new Date());this.keywords=keywords.toLowerCase()+" "+name+" "+location||"";
}

var toc=new Array(
	new Exhibit("rufus","","Rufus Wainwright","Crocodile","5/3/01","sing explain sis2 teeth hand teeth2 teeth3 think waits kiss",""),
	new Exhibit("furs","","Psychedelic Furs","Showbox","4/19/01","face red spread smile pink orange",""),
	new Exhibit("dfw","","Diamond Fist Werny","EMP","3/17/01","good classic drum lookside oh pose step stripes",""),
	new Exhibit("maktub","","Maktub","EMP","3/17/01","smile clap cross lights smile2 blur four teeth",""),
	new Exhibit("jwh","","John Wesley Harding","Showbox","2/27/01","bwah chris rock lookaway maxin cross blur dance",""),
	new Exhibit("ventures","","Ventures","EMP","2/24/01","strum fire stripes o monitors overlap flex one",""),
	new Exhibit("unified","","Unified Theory","Showbox","2/15/01","blur sneer tall nose dreds yell kneel up",""),
	new Exhibit("pm","","Peter Murphy","Showbox","11/21/00","stand blue arm* pink",""),
	new Exhibit("astroman","","Man...Or Astroman?","Graceland","9/12/00","trace red* agape guitarblur purse lookaway crop reel",""),
	new Exhibit("carissa","","Carissa's Weird","Sit And Spin","9/11/00","mic lookdown openmouth upsidedown violin lookup stand headcut",""),
	new Exhibit("getup","","The Get Up Kids","Graceland","9/11/00","mouthopen lift two guitar",""),
	new Exhibit("deathcab","","Death Cab For Cutie","Bumbershoot 2000","9/1/00","spook backturn cell red leanback smile teeth* stand",""),
	new Exhibit("deftones","","Deftones","Endfest 2000","8/5/00","money bent dreds* fist bent2 tall1",""),
	new Exhibit("korn","","KoRn","Endfest 2000","8/5/00","money 2headbangers pack phonehome boo pensive dance",""),
	new Exhibit("pm5k","","Powerman 5000","Endfest 2000","8/5/00","tongue armsout point scoop clench devil",""),
	new Exhibit("3eb","","Third Eye Blind","Endfest 2000","8/5/00","armsout cross one two teeth wand pose cord",""),
	new Exhibit("roach","","Papa Roach","Endfest 2000","8/5/00","teeth wet intense cord hands fist sleep think",""),
	new Exhibit("3dd","","Three Doors Down","Endfest 2000","8/5/00","apart squint 3dd shoe two side",""),
	new Exhibit("mxpx","","MxPx","Endfest 2000","8/5/00","beachball jump2 openmouth straight crop jump",""),
	new Exhibit("everlast","","Everlast","Endfest 2000","8/5/00","point smile* cord block goatee sneer",""),
	new Exhibit("mcd","","Murder City Devils","Endfest 2000","8/5/00","jenn group3 fist group2 security group tall ooh",""),
	new Exhibit("hack","","Dynamite Hack","Endfest 2000","8/5/00","foot drivein* thrash sneer purse lift",""),
	new Exhibit("bt","","BT","Endfest 2000","8/5/00","armsup tilt sun dancers tall bad",""),
	new Exhibit("harvey","","Harvey Danger","Endfest 2000","8/5/00","birthmark splits three* bracelet",""),
	new Exhibit("weezer","","Weezer","Showbox","7/23/00","two up2 turnback three up one fanarms please",""),
	new Exhibit("black","","Blackalicious","Showbox","7/21/00","mouth hands mic bent three cut two",""),
	new Exhibit("kinski","","Kinski","I-Spy","7/21/00","blurhand cross* two ball",""),
	new Exhibit("marcolsen","","Marc Olsen","Tractor","6/21/00","straight headdown both bracelet",""),
	new Exhibit("spyglass","","Spyglass","Tractor","6/21/00","side lookaway alanis rear flute",""),
	new Exhibit("pparker","","Peter Parker","Breakroom","11/9/99","lookup side crooked straight feet drummer",""),
	new Exhibit("melody","","Melody Unit","Graceland","10/14/99","4 7 2 8 5 6 1 3",""),
	new Exhibit("ministry","","Ministry","Paramount","9/14/99","micstand white swim guitar back hat",""),
	new Exhibit("l7","","L7","Paramount","9/14/99","1 2* 3 4 5 6",""),
	new Exhibit("moby","","Moby","Endfest 1999","8/7/99","stand fire fists guitarist guitar* heart mist nike",""),
	new Exhibit("everclear","","Everclear","Endfest 1999","8/7/99","lift jump strum jump2 fist mask",""),
	new Exhibit("kidrock","","Kid Rock","Endfest 1999","8/7/99","headbang bent wide fist yell armsup hair blue*",""),
	new Exhibit("primus","","Primus","Endfest 1999","8/7/99","yell strum rules chastize cross mosh",""),
	new Exhibit("orgy","","Orgy","Endfest 1999","8/7/99","angry agape fistshake armsout crooked wide",""),
	new Exhibit("len","","Len","Endfest 1999","8/7/99","mock pose kneel* underexposed wave wobble hug point",""),
	new Exhibit("juno","","Juno","DV8","7/23/99","perp eyes open guitar cross backturn",""),
	new Exhibit("lips","","Flaming Lips","Showbox","6/23/99","2waynes both salute psych lips gong tracks glitter",""),
	new Exhibit("sebadoh","","Sebadoh","Showbox","6/23/99","&drum stand 2hands head",""),
	new Exhibit("scm","","Sky Cries Mary","Marymoor Park","7/23/99","anisa redroderick prayer dancer roderick redanisa armup jam",""),
	new Exhibit("ganger","","Ganger","Breakroom","6/17/99","blur side all sing",""),
	new Exhibit("b2s","","Built To Spill","Breakroom","6/12/99","bent sing guitar stage water red",""),
	new Exhibit("rancid","","Rancid","Board Stiff","8/1/98","fuckup spooked lips butt ptdown against",""),
	new Exhibit("blink182","","Blink 182","Board Stiff","8/1/98","finger 2smoke up two forward strum jump tongue",""),
	new Exhibit("specials","","Specials","Board Stiff","8/1/98","lean splits guitar lips cough feet sing two",""),
	new Exhibit("beck","","Beck","Bumbershoot98","7/23/98","oh yell chicken guitar",""),
	new Exhibit("foo","","Foo Fighters","Bumbershoot98","7/23/98","yell stand blur drum",""),
	new Exhibit("spirit","","Spiritualized","Bumbershoot98","7/23/98","harmonica hair guitar nose",""),
	new Exhibit("benlee","","Ben Lee","Bumbershoot98","7/23/98","smile concentrate serious closeup",""),
	new Exhibit("massive","","Massive Attack","Paramount","6/23/98","eyesclosed armsout smear green* sad",""),
	new Exhibit("fatboy","","Fatboy Slim","Showbox","5/1/98","smile smirk spread vinyl fists adjust",""),
	new Exhibit("phead","","Portishead","Paramount","3/1/98","side red shadow yell boot smoke","")
)