            var dia;
            var root;
            var totaal;
			var fotolijst = new Array();
            var Findex = 0;
            var Fmax;
            var Fori = "l";

// Available slideshows:

function init_ullevi() {
	Fmax = 7;
	Findex = 0;
	root = "../grafik/ullevi/";
	for (i=0; i<Fmax; i++) {
		fotolijst[i] = new Image;
		fotolijst[i].src = root+"ullevi"+((i < 9) ? "0" : "")+(i+1)+".jpg";
		fotolijst[i].ori = "l";	// l = landscape; p = portrait
	}
// Define portrait-oriented pictures:	
	fotolijst[5].ori = "p";
// Descriptions:	
	fotolijst[0].desc = "Ullevi during the installation of the modules";
	fotolijst[1].desc = "Switchpower always takes appropriate measurements for the safety of its personell and the equipment handled";
	fotolijst[2].desc = "All cables are neatly tied and fixed to the mounting system before they are covered";
	fotolijst[3].desc = "The special outdoor inverters used at Ullevi are placed at a restricted and sheltered location";
	fotolijst[4].desc = "Each inverter has a nominal power of 4500W";
	fotolijst[5].desc = "The solar PV modules make the appearance of Ullevi even more impressive";
	fotolijst[6].desc = "An impression of the system as future visitors to Ullevi will see it";
}

function init_alvsjo() {
	Fmax = 8;
	Findex = 0;
	root = "grafik/alvsjo/";
	for (i=0; i<Fmax; i++) {
		fotolijst[i] = new Image;
		fotolijst[i].src = root+"alvsjo"+((i < 9) ? "0" : "")+(i+1)+".jpg";
		fotolijst[i].ori = "l";	// l = landscape; p = portrait
	}
// Define portrait-oriented pictures:	
	fotolijst[4].ori = "p";
	fotolijst[6].ori = "p";
// Descriptions:	
	fotolijst[0].desc = "Of the 10 schools in Älvsjö, 2 were supplied with a 7.45kWp system (shown here: Dalskolan)";
	fotolijst[1].desc = "Three inverters transform the DC power from the PV modules into AC power";
	fotolijst[2].desc = "The remaining 8 schools all have 2.5kWp systems";
	fotolijst[3].desc = "The system on Ekängens skola is visible for passers-by on Svartlösagatan";
	fotolijst[4].desc = "A similar system was installed on the Speldosan school";
	fotolijst[5].desc = "Also this system is visible from the street";
	fotolijst[6].desc = "The system on the Vandrarskon school is facing the school's playground";
	fotolijst[7].desc = "Both children and their parents become aware of solar energy as a solution for their future energy supply (shown here: Vindleken)";
}

function init_akeshov() {
	Fmax = 3;
	Findex = 0;
	root = "grafik/akeshov/";
	for (i=0; i<Fmax; i++) {
		fotolijst[i] = new Image;
		fotolijst[i].src = root+"akeshov"+((i < 9) ? "0" : "")+(i+1)+".jpg";
		fotolijst[i].ori = "l";	// l = landscape; p = portrait
	}
// Define portrait-oriented pictures:	
// Descriptions:	
	fotolijst[0].desc = "Ground view on the Åkeshov PV-wing system";
	fotolijst[1].desc = "The two installed systems in one view. One on the roof of the gymnastics hall and one on the swimming pool&#180;s";
	fotolijst[2].desc = "Close up of the wing system";
}


        	function resizePic() {
					((Fori=="l") ? ww=337 : ww=600)
					dias.style.width = ww + "px";;
					dias.style.marginLeft = "-" + ww/2 + "px";
					comm.style.width = (ww-92) + "px";
					((Fori=="l") ? Fori="p" : Fori="l")
				}
            
            function initShow(diashow) {
				eval('init_'+diashow+'()');
                startShow();
            }
            
            function startShow() {
                dia = new getObj('slideshow');
                dia.obj.src = fotolijst[Findex].src;
                comm = new getObj('piccomment');
                comm.obj.innerHTML = fotolijst[Findex].desc;
                haze = new getObj('overlay');
                dias = new getObj('picscreen');
                // Resize picture DIV:
                if (fotolijst[Findex].ori!=Fori) {
					resizePic()
				}
                // Show picture
                haze.style.visibility='visible';
                dias.style.visibility='visible';
            }




            function exitShow(foto) {

                haze = new getObj('overlay');

                haze.style.visibility='hidden';

                dias = new getObj('picscreen');

                dias.style.visibility='hidden';

            }

            
            function showNext() {
                Findex++;
                if(Findex<Fmax) {
	                // Resize picture DIV:
	                if (fotolijst[Findex].ori!=Fori) {
						resizePic()
					}
	                dia.obj.src = fotolijst[Findex].src;
	                comm.obj.innerHTML = fotolijst[Findex].desc;
               }
                else {
                    Findex = Fmax-1;
                    dia.obj.src = fotolijst[Findex].src;
                    comm.obj.innerHTML = "This is the last picture";
                }
            }

            function showPrev() {
                Findex--;
                if(Findex>=0) {
	                // Resize picture DIV:
	                if (fotolijst[Findex].ori!=Fori) {
						resizePic()
					}
                    dia.obj.src = fotolijst[Findex].src;
	                comm.obj.innerHTML = fotolijst[Findex].desc;
                }
                else {
                    Findex = 0;
                    dia.obj.src = fotolijst[Findex].src;
                    comm.obj.innerHTML = "This is the first picture";
                }
            }
