var imageBrowsers = new Object();
imageBrowsers['losglissandinos'] = new Object();
imageBrowsers['losglissandinos']['current'] = 1;
imageBrowsers['losglissandinos']['captions'] = new Array(
	"even the glissis have weak moments, new york/williamsburg 10/2006 (foto by oblaat)", 
	"live at ausland, berlin 04/2007 (foto by marcus liebig)", 
	"soundcheck at q-o2, brussels 04/2007 (foto by marie-helene elleboudt)", 
	"concert at q-o2, brussels 04/2007 (foto by marie-helene elleboudt)", 
	"on the road in graz, 10/2005 (foto by wolfgang fuchs)", 
	"glissis at konfrontationen, nickelsdorf 07/2004 (foto by dieb13)", 
	"glissis in the spanish sun, aielo de malferit 02/2006 (foto by klaus filip)", 
	"above montreal, 08/2007 (foto by oblaat)", 
	"no sleep till brooklyn, new york 09/2006 (foto by oblaat)", 
	"kai n' klaus live at erstquake, tonic, new york 09/2006 (foto by n.n.)"
);

imageBrowsers['kai'] = new Object();
imageBrowsers['kai']['current'] = 1;
imageBrowsers['kai']['captions'] = new Array(
	"jeffrey, jon, nicole, bonnie and kai in front of santropol, montreal 08/2007 (foto by klaus filip)", 
	"me and the birds, montreal 08/2007 (foto by klaus filip)", 
	"who's gonna wear a shirt these days? new york/williamsburg 10/2006)", 
	"live at music unlimited, wels 11/2006 (foto by katerina ratajova)", 
	"finest clarinet entertainment - live at music unlimited, wels 11/2006 (foto by katerina ratajova)", 
	"going home, bussels 04/2007 (foto by marie-helene elleboudt)"
);

imageBrowsers['musik'] = new Object();
imageBrowsers['musik']['current'] = 1;
imageBrowsers['musik']['captions'] = new Array(
	"burkhard & kai live at erstquake, tonic, new york 10/2006 (foto by n.n.)", 
	"burkhard & kai at rio maeuerle's raumklavier, kylehof 08/2007 (foto by klaus filip)", 
	"burkhard & kai after dinner, nickelsdorf 08/2007 (foto by klaus filip)", 
	"burkhard & kai live at dessous shop boudoir, vienna 05/2006", 
	"kai & burkhard live at the wirtshaus, vienna 05/2006"
);

imageBrowsers['magic'] = new Object();
imageBrowsers['magic']['current'] = 1;
imageBrowsers['magic']['captions'] = new Array(
	"the magic i.d. going underground, berlin 08/2007 (foto by gianmarco bresadola)", 
	"the magic i.d. big band, berlin 08/2007 (foto by gianmarco bresadola)", 
	"the magic i.d. live at music unlimited, wels 11/2006 (foto by katerina ratajova)", 
	"the magic i.d. at the park, berlin 08/2006 (foto by fabiola rossi)"
);

imageBrowsers['sun'] = new Object();
imageBrowsers['sun']['current'] = 1;
imageBrowsers['sun']['captions'] = new Array(
	"here comes the sun live at music unlimited, wels 11/2006 (foto by katerina ratajova)", 
	"gunter & kai live at music unlimited, wels 11/2006 (foto by katerina ratajova)", 
	"the first concert - live at raumschiff zitrone, berlin 01/2006 (foto by marcus liebig)"
);

imageBrowsers['fagal'] = new Object();
imageBrowsers['fagal']['current'] = 1;
imageBrowsers['fagal']['captions'] = new Array(
	"bernhard & kai at the markthalle kreuzberg, berlin 2005 (foto y bernhard gal)", 
	"bernhard & kai live at ausland, berlin 02/2004 (foto by marcus liebig)"
);

imageBrowsers['tin'] = new Object();
imageBrowsers['tin']['current'] = 1;
imageBrowsers['tin']['captions'] = new Array(
	"kai and michael back in the early days - live at raumschiff zitrone, berlin 02/2002 (foto by marcus liebig)"
);

imageBrowsers['rebecca'] = new Object();
imageBrowsers['rebecca']['current'] = 1;
imageBrowsers['rebecca']['captions'] = new Array(
	"rebecca live at ausland, berlin 09/2004 (foto by marcus liebig)"
);

imageBrowsers['kommando'] = new Object();
imageBrowsers['kommando']['current'] = 1;
imageBrowsers['kommando']['captions'] = new Array(
	"kommando raumschiff zitrone playing the final concert at raumschiff zitrone, berlin 10/2006 (foto by marcus liebig)"
);


/* keine Aenderungen unterhalb dieser Zeile!!!*/

var imgArray;
var imgCount = 0;
var imgCollection;
var imgCollectionSize;

function startImageBrowser(which){
	imgCount++;
	imgArray = imageBrowsers[which]['captions'];
	imgCollection = which;
	imgCollectionSize = imgArray.length;

	if (imgCollectionSize == 1){
		$('ib_back').hide();
		$('ib_forward').hide();
	}

	$('imageBrowser').show();

	var src = getSrcString(which, imgCount);
	$('ib_image').setAttribute('src', src);
	$('ib_caption').replace("<p id=\"ib_caption\">"+imgArray[imgCount-1]+"</p>");

	return void(0);
}

function getSrcString(which, count){
	var src = 'images/'+which+'/'+which+'-';
	if (count > 9) {
		src += count+'.jpg';
	} else {
		src += '0'+count+'.jpg';
	}
	return src;
}

function hideBrowser(){
	$('imageBrowser').hide();
	imgCount = 0;
}

function nextImage(){
	imgCount++;

	if (imgCount > imgCollectionSize){
		imgCount = 1;
	}

	var src = getSrcString(imgCollection, imgCount);
	$('ib_image').setAttribute('src', src);
	$('ib_caption').replace("<p id=\"ib_caption\">"+imgArray[imgCount-1]+"</p>");


}

function previousImage(){
	imgCount--;

	if (imgCount <= 0 ){
		imgCount = imgCollectionSize;
	}

	var src = getSrcString(imgCollection, imgCount);
	$('ib_image').setAttribute('src', src);
	$('ib_caption').replace("<p id=\"ib_caption\">"+imgArray[imgCount-1]+"</p>");
}

