var i = 1;

images = new Array
images[1] = "../noveltys_2010/83061/83061_00.jpg";
images[2] = "../noveltys_2010/citaro3t/66575_00.jpg";
images[3] = "../noveltys_2010/wawe-9000/67800_00.jpg";
images[4] = "../noveltys_2010/61176/61176_00.jpg";
images[5] = "../noveltys_2010/83058/83059_00.jpg";
images[6] = "../noveltys_2010/83056/83057_00.jpg";
images[7] = "../noveltys_2010/83053/83053_00.jpg";


beschreibung = new Array
beschreibung[1] = "RENAULT NN Torpedo open version";
beschreibung[2] = "MERCEDES-BENZ Citaro E4";
beschreibung[3] = "Water cannon WaWe 9000";
beschreibung[4] = "SCHLINGMANN MAN TGM LF 20/16";
beschreibung[5] = "RENAULT NN pickup with plane";
beschreibung[6] = "RENAULT NN Torpedo";
beschreibung[7] = "RENAULT NN Limousine";


text = new Array
text[1] = "Now available in a version with folded top. In the colors ochre/black and wine-red/black. New on scale of 1:87.";
text[2] = "Now available in the 3-door version with a upright engine. New on scale of 1:87.";
text[3] = "Based on the Mercedes-Benz NG and SK series, ordered in the early 80s. New on scale of 1:87.";
text[4] = "New version with long wheelbase and wide G1 and G2 blinds. New on scale of 1:87.";
text[5] = "The NN as a pickup truck with rund plane. In the colors brown/beige and green/black. New on scale of 1:87.";
text[6] = "The NN in an open version, called Toppedo, with foldable soft top. In the colors blue/black and yellow/black. New on scale of 1:87.";
text[7] = "from 1924 to 1930 as a 4-door versin, in the colors green/black and red/black. New on scale of 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];
	}


}