var i = 1;

images = new Array
images[1] = "../images/img_swmn-2012/swmn_logo.jpg";
images[2] = "../noveltys_2011/skyliner_2011/69001_00.jpg";
images[3] = "../noveltys_2011/citaro_2011/68705_00.jpg";
images[4] = "../noveltys_2011/solaris-u18-hybrid/69100_00.jpg";
images[5] = "../noveltys_2011/man-race/83200_00.jpg";


beschreibung = new Array
beschreibung[1] = "International Toy Fair";
beschreibung[2] = "NEOPLAN Skyliner 2011";
beschreibung[3] = "MERCEDES-BENZ Citaro 2011";
beschreibung[4] = "SOLARIS Urbino 18 Hybrid DIWA";
beschreibung[5] = "MAN Race Track";


text = new Array
text[1] = "Informations about news at the Toy Fair 2012 in Nuremberg.";
text[2] = "The double-decker touring coach from Neoplan,  since 1991 in Rietze model program in the fourth generation. New in scale 1:87.";
text[3] = "The new Citaro is in the stores, as solo bus and in the  articulated version. New in scale 1:87.";
text[4] = "In construction design of the system DIWAhybrid from manufacturer Voith Turbo. New in scale 1:87.";
text[5] = "In design of the drivers Antonio Albacete and Uwe Nittel from Team Lutz Bernau, Truck Grand Prix. New in scale 1:87.";


AnzPic = (images.length-1);

function previmg()
{
	if (i == 1) {
		i = AnzPic;
		document.img.src = images[i];
		document.getElementsByTagName("h5")[0].firstChild.data = beschreibung[i];
		document.getElementsByTagName("h6")[0].firstChild.data = text[i];
	}

	else
	{
		i --;
		document.img.src = images[i];
		document.getElementsByTagName("h5")[0].firstChild.data = beschreibung[i];
		document.getElementsByTagName("h6")[0].firstChild.data = text[i];
	}
}

function nextimg()
{
	if (i == AnzPic) {
		i = 1;
		document.img.src = images[i];
		document.getElementsByTagName("h5")[0].firstChild.data = beschreibung[i];
		document.getElementsByTagName("h6")[0].firstChild.data = text[i]; 
	}
	else
	{
		i ++;
		document.img.src = images[i];
		document.getElementsByTagName("h5")[0].firstChild.data = beschreibung[i];
		document.getElementsByTagName("h6")[0].firstChild.data = text[i];
	}


}
