var bildnummer = 1;

var markus_infotexte = new Array();
markus_infotexte[1] = "Hier diskutiere ich mit einem Schiedsrichter bei der Roboter-WM 2008 in Minneapolis/USA.";
markus_infotexte[2] = "Als Helfer f&uuml;r die Landesinitiative Zukunft durch Innovation.NRW erkl&auml;re ich Prof. Dr. Andreas Pinkwart die Aufgaben f&uuml;r ein Roboterspielfeld.";
markus_infotexte[3] = "Zusammen mit meinem Entwicklerteam f&uuml;r neue Roboteraufgaben pr&auml;sentiere ich Staatssekret&auml;r Dr. Michael St&uuml;ckradt den entworfenen Aufgabenparcours.";
markus_infotexte[4] = "Der gr&ouml;&szlig;ste bisher gewonnene Pokal f&uuml;r den Weltmeistertitel im Roboterbau bei der WM in Taiwan 2010.";
markus_infotexte[5] = "Vor der Mall of America, eine der gr&ouml;&szlig;ten Shopping-Malls der Welt (in Minneapolis/USA).";
markus_infotexte[6] = "In Taiwan mit einer Figur.";
markus_infotexte[7] = "Kanu fahren in Minneapolis/USA.";
markus_infotexte[8] = "Wandern in den Alpen.";
markus_infotexte[9] = "Meine Schwester, mein Abizeugnis und ich.";
markus_infotexte[10] = "Als Keyboardspieler bei einem Musical-Projekt";

var markus_infotexte_en = new Array();
markus_infotexte_en[1] = "Here I'm discusssing rules with a referee at the robotic world championship in Minneapolis in the USA in 2008.";
markus_infotexte_en[2] = "I'm explaining the tasks for a robotic tournament to the politician Prof. Dr. Andreas Pinkwart.";
markus_infotexte_en[3] = "Together with my development team for new robotic tasks I present the tasks to the state secretary Dr. Michael St&uuml;ckradt.";
markus_infotexte_en[4] = "The biggest award my team and I got for winning the world championship in Taiwan in 2010.";
markus_infotexte_en[5] = "In front of the Mall of America, one of the biggest shopping areas in the world (Minneapolis/USA).";
markus_infotexte_en[6] = "In Taiwan with a statue.";
markus_infotexte_en[7] = "Canoeing in Minneapolis/USA.";
markus_infotexte_en[8] = "Hiking in the alps.";
markus_infotexte_en[9] = "My sister, my secondary school exam and me.";
markus_infotexte_en[10] = "Playing keyboard at a musical project.";

var lukas_infotexte = new Array();
lukas_infotexte[1] = "LEGO-Roboter-Lauf beim Mitteleuropafinale in Triberg (2007).";
lukas_infotexte[2] = "Wasserfall in einem Stadt-Park von Minneapolis.";
lukas_infotexte[3] = "LEGO-Steine vor der Mall of America in Minneapolis.";
lukas_infotexte[4] = "In Taiwan mit einem Teil des Roboterteams und einem taiwanesischen Helfer.";
lukas_infotexte[5] = "Programmierung eines Roboters bei der World Robot Olympiad 2009 in Bocholt.";
lukas_infotexte[6] = "Nach verlorener Roboter-Weltmeister-Wette gab es f&uuml;r Markus und mich f&uuml;r zwei Wochen gr&uuml;ne Haare.";
lukas_infotexte[7] = "Mit den Jungsch&uuml;tzen beim Pfarrfest in Oesbern";

var lukas_infotexte_en = new Array();
lukas_infotexte_en[1] = "Robot run at the middle European final in Triberg (2007).";
lukas_infotexte_en[2] = "Waterfall at a park in Minneapolis.";
lukas_infotexte_en[3] = "Me and huge LEGO stones in front of the Mall of America";
lukas_infotexte_en[4] = "In Taiwan with members of my robot team and a taiwanese.";
lukas_infotexte_en[5] = "Robotic programming at the World Robot Olympiad 2009 in Bocholt.";
lukas_infotexte_en[6] = "After losing a bet concerning the Robotic Worldchampionship Markus and me got green hair for about 2 weeks.";
lukas_infotexte_en[7] = "With some friends at a local celebration at my village Oesbern.";

function bild_config(name, sprache, typ)
{
	if(name == "markus") { var anzahl = 10; }
	if(name == "lukas") { var anzahl = 7; }
	
	if(typ == 0) {
		bild_weiter(name, sprache, anzahl);
	}
	if(typ == 1) {
		bild_zurueck(name, sprache, anzahl);
	}
	
	
		
	
}


function bild_weiter(name,sprache, anzahl_bilder) {
bildnummer++;
if (bildnummer > anzahl_bilder) { bildnummer = 1; }
setzeBild(name,sprache);
}

function bild_zurueck(name,sprache, anzahl_bilder) {
bildnummer--;
if (bildnummer == 0) { bildnummer = anzahl_bilder; }
setzeBild(name,sprache);
}

function setzeBild(name,sprache){
	var image = document.createElement("img");
	var b = new Image();
	b.src = "images/"+name+"/"+name+"_"+bildnummer+".jpg";
	image.setAttribute('src',"images/"+name+"/"+name+"_"+bildnummer+".jpg");
	image.setAttribute('width',"220");
	image.setAttribute('height',"150");
	image.setAttribute('alt',"Bild"+bildnummer);
	document.getElementById(""+name+"_bild").replaceChild(image,document.getElementById("bild"));
	image.setAttribute('id',"bild");
	if(sprache == "de" && name == "markus") {
	document.getElementById(""+name+"_bild_beschreibung").innerHTML= markus_infotexte[bildnummer];	
	}
	if(sprache == "en" && name == "markus") {
	document.getElementById(""+name+"_bild_beschreibung").innerHTML= markus_infotexte_en[bildnummer];	
	}
	if(sprache == "de" && name == "lukas") {
	document.getElementById(""+name+"_bild_beschreibung").innerHTML= lukas_infotexte[bildnummer];	
	}
	if(sprache == "en" && name == "lukas") {
	document.getElementById(""+name+"_bild_beschreibung").innerHTML= lukas_infotexte_en[bildnummer];	
	}
	
}




