var activeImage;
var activeProduct;
var productImages = new Array();

var copy = new Array();

	copy['ultralite'] = new Array();
	copy['ultralite'][0] = 'Medite Ultralite ist f&uuml;r Ausstellungsstands, Trennw&auml;nde und Bilderrahmen geeignet.';
	copy['ultralite'][1] = 'Medite Ultralite ist f&uuml;r Ausstellungsstands, Trennw&auml;nde und Bilderrahmen geeignet.';
	copy['ultralite'][2] = 'Medite Ultralite ist f&uuml;r Ausstellungsstands, Trennw&auml;nde und Bilderrahmen geeignet.';
	copy['ultralite'][3] = 'Medite Ultralite ist f&uuml;r Ausstellungsstands, Trennw&auml;nde und Bilderrahmen geeignet.';
	copy['ultralite'][4] = 'Medite Ultralite ist f&uuml;r Ausstellungsstands, Trennw&auml;nde und Bilderrahmen geeignet.';
	copy['ultralite'][5] = 'Medite Ultralite ist f&uuml;r Ausstellungsstands, Trennw&auml;nde und Bilderrahmen geeignet.';


	copy['premier'] = new Array();
	copy['premier'][0] = 'M&eacute;diath&egrave;que de Dole, Jura, Frankreich';
	copy['premier'][1] = 'M&ouml;bel von Lord Sheratons Furniture, Zypern';
	copy['premier'][2] = 'Messestand, Prism Displays, Herts, England';
	copy['premier'][3] = 'Lackierte, individuell gefertigte M&ouml;bel von Joiners Bressers';
	copy['premier'][4] = 'Technische Innovation von Medite';
	copy['premier'][5] = 'Einbaum&ouml;bel, die Niederlande';

	copy['plus'] = new Array();
	copy['plus'][0] = 'Medite PLUS f&uuml;r Schlafzimmerm&ouml;bel';
	copy['plus'][1] = 'Medite PLUS Pressplatte';
	copy['plus'][2] = 'Medite PLUS Farbplatten';
	copy['plus'][3] = 'Tieffr&auml;sm&ouml;glichkeiten mit Medite PLUS';
	copy['plus'][4] = 'Technologie hat die Entwicklung von Medite PLUS erm&ouml;glicht';
	copy['plus'][5] = 'Medite PLUS Platten mit und ohne Oberfl&auml;chenbehandlung';

	copy['exterior'] = new Array();
	copy['exterior'][0] = 'Medite EXTERIOR Ladenfront Llechwedd, Wales';
	copy['exterior'][1] = 'Bau der Konzerthalle Luzern, Schweiz';
	copy['exterior'][2] = 'Beweglicher Garten - Blumenausstellung Chelsea 2002';
	copy['exterior'][3] = 'Franz&ouml;sischer Kiosk';
	copy['exterior'][4] = 'Medite Au&szlig;enschild Barnabys Fish Restaurant';
	copy['exterior'][5] = 'Medite Exterior T&uuml;r';

	copy['ecologique'] = new Array();
	copy['ecologique'][0] = 'Playfair-Projekt, Edinburgh, Schottland';
	copy['ecologique'][1] = 'Corinium Museum 2, Cirencester, England';
	copy['ecologique'][2] = 'Display-Geh&auml;use, Corinium Museum, Cirencester';
	copy['ecologique'][3] = 'Laborm&ouml;bel';
	copy['ecologique'][4] = 'Corinium Museum, Cirencester';
	copy['ecologique'][5] = 'Display-Sockel, Kunstgalerie in New York';

	copy['MR'] = new Array();
	copy['MR'][0] = 'Medite MR Profilleisten f&uuml;r den Bau in einer exklusiven Wohnung';
	copy['MR'][1] = 'Medite MR in einer hochwertigen Einbauk&uuml;che, England';
	copy['MR'][2] = 'Medite MR in einem hochwertigen Einbaubadezimmer, England';
	copy['MR'][3] = 'Medite MR. The White House-Appartments, South Bank, London';
	copy['MR'][4] = 'Medite MR Profilleisten';
	copy['MR'][5] = 'Medite MR Treppe';

	copy['FQ'] = new Array();
	copy['FQ'][0] = 'Wohnzimmer mit Ahornlaminatboden, mit freundlicher Genehmigung von Alloc';
	copy['FQ'][1] = 'Medite FQ Esszimmerboden, mit freundlicher Genehmigung von Alloc';
	copy['FQ'][2] = 'Medite FQ Kundenraum, Clonmel, Irland';
	copy['FQ'][3] = 'Medite FQ Buchelaminatboden mit Tisch';
	copy['FQ'][4] = 'Medite FQ Laminatmuster';
	copy['FQ'][5] = 'Medite FQ Laminatboden';


	copy['FR'] = new Array();
	copy['FR'][0] = 'FR Klasse B &amp; C Okura Hotel, Amsterdam';
	copy['FR'][1] = 'FR Klasse B &amp; C Mahony Hall, Dublin';
	copy['FR'][2] = 'FR Klasse B &amp; C Pavillon, New Maltings, Gro&szlig;-Brittanien';
	copy['FR'][3] = 'FR Klasse B &amp; C Dakota Bar, Flughafen Schiphol, Amsterdam';
	copy['FR'][4] = 'FR Klasse B &amp; C Opernhaus Kopenhagen, Proberaum';
	copy['FR'][5] = 'FR Klasse B &amp; C Opernhaus Kopenhagen';










function loadProductImages(productname)
{

	activeProduct = productname;
	for(i = 0; i < 6; i++)
	{
		productImages[i] = new Object();
		productImages[i].image = new Image();
		productImages[i].image.src = '/images/products/'+productname+'_'+(i + 1)+'.jpg';
		productImages[i].thumb_active = new Image();
		productImages[i].thumb_active.src = '/images/products/'+productname+'_'+(i + 1)+'_thumb_over.jpg'; 
		productImages[i].thumb_inactive = new Image();
		productImages[i].thumb_inactive.src = '/images/products/'+productname+'_'+(i + 1)+'_thumb.jpg';
	}

}




function showImage(id)
{
	if(id != activeImage)
	{
		var obj = productImages[id - 1];
		
		var parNode = document.getElementById('displayArea');
		var thumbsNode = document.getElementById('browserthumbs');
		var bannerNode;
		var imageNode;
		var captionNode;
		
		try
		{
			bannerNode = document.getElementById('banner');
			parNode.removeChild(bannerNode);
		}
		catch ( e )
		{
			 
		}
		captionNode = document.getElementById('caption'); 
		imageNode = document.getElementById('displayimage');
		captionNode.style.display = 'block';
		captionNode.innerHTML = copy[activeProduct][id - 1];

		imageNode.style.display = 'block';
		imageNode.src= obj.image.src;
		imageNode.alt = copy[activeProduct][id - 1];
		
		var newThumbImage = document.getElementById('thumb'+id);
		newThumbImage.src = obj.thumb_active.src;
		if(activeImage != undefined)
		{
			var oldThumb = document.getElementById('thumb'+activeImage);
			oldThumb.src = productImages[activeImage-1].thumb_inactive.src;
		}
		
		activeImage = id;
		
		
		
	}
}

