// JavaScript Document
var tabBallast={ballast:[
                 { 	titel:"DH 7-12",  //Nr 0
				 	bild:'pics/lichttechnik/DH7-12_I.gif',beschreibung:'<span class="text_titel">DH 7-12</span><br><br>Xenon system for battery supply 12V<br>Output Power: 25-45W<br>Input Voltage: 12V DC <br>Lamp type: D2, DUV <br><br><a href="downloads/Lichttechnik/DH7-12_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 70 KB)<br />' },
				 { 	titel:"DH 7-24",  //Nr 1
					bild:'pics/lichttechnik/DH7-24_I.gif',beschreibung:'<span class="text_titel">DH 7-24</span><br><br>Xenon system for battery supply 24V<br>Output Power: 25-45W<br>Input Voltage: 24V DC <br>Lamp type: D2, DUV <br><br><a href="downloads/Lichttechnik/DH7-24_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 70 KB)<br />' },
				 { 	titel:"ECG 200",  //Nr 2
					bild:'pics/lichttechnik/ECG_200_I.jpg',beschreibung:'<span class="text_titel">ECG 200</span><br><br>Electronic HID Ballast System 100-250W<br>Output Power: 100-250W<br>Input Voltage: 90-264V AC / 90-340V DC<br>Lamp type: CST, HMI, HTI, MSR, MSD<br><br><a href="downloads/Lichttechnik/ECG_200_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 140 KB)<br />' },
				 { 	titel:"ECG 800 AC",  //Nr 3
					bild:'pics/lichttechnik/ECG_800_AC_I.jpg',beschreibung:'<span class="text_titel">ECG 800 AC</span><br><br>Electronic HID Ballast 350-850W<br>Output Power: 350-850W<br>Input Voltage: 90-264V AC / 90-340V DC<br>Lamp type: CST, HMI, HTI, MSR, MSD<br><br><a href="downloads/Lichttechnik/ECG_800_AC_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 70 KB)<br />' },
				 { 	titel:"ECG 1200",  //Nr 4
					bild:'pics/lichttechnik/ECG_1200_1.gif',beschreibung:'<span class="text_titel">ECG 1200</span><br><br>Modular HID ballast 400-1200W<br>Output Power: 575-1200W<br>Input Voltage: 180-264V AC<br>Lamp type: CST, HMI, HTI, MSR, MSD<br><br><a href="downloads/Lichttechnik/ECG_1200_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 340 KB)<br />' },
				 { 	titel:"ECB 575 DMX",  //Nr 5
					bild:'pics/lichttechnik/ECB_575_DMX.jpg',beschreibung:'<span class="text_titel">ECB 575 DMX</span><br><br>Electronic Cabinet ballast with DMX Control 350-575W<br>Output Power: 350-575W<br>Input Voltage: 90-264V AC<br>Lamp type: CST, HMI, HTI, MSR, MSD<br><br><a href="downloads/Lichttechnik/ECB_575_DMX.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 150 KB)<br />' },
				 { 	titel:"HQF 3000",  //Nr 6
					bild:'pics/lichttechnik/HQF3000_I.jpg',beschreibung:'<span class="text_titel">HQF 3000</span><br><br>Ballast System for HQI lamps 1500-2600W<br>Output Power: 1500-2600W<br>Input Voltage: 380-480V 3phase<br>Lamp type: HQI<br><br><a href="downloads/Lichttechnik/HQF3000_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 280 KB)<br />' },
				 { 	titel:"BCS 75 DC",  //Nr 7
					bild:'pics/lichttechnik/BCS_75_I.jpg',beschreibung:'<span class="text_titel">BCS 75 DC</span><br><br>HID Ballast 50-100W for Battery Supply<br>Output Power: 50-100W<br>Input Voltage: 11-17V<br>Lamp type: ULR, SMH, SMR<br><br><a href="downloads/Lichttechnik/ECS_75_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 100 KB)<br />' },
				 { 	titel:"ECS 75 DC",  //Nr 8
					bild:'pics/lichttechnik/ECS_75_DC_I.jpg',beschreibung:'<span class="text_titel">ECS 75 DC</span><br><br>HID Ballast 50-100W for Mains Supply<br>Output Power: 90-264V<br>Input Voltage: 11-17V<br>Lamp type: ULR, SMH, SMR<br><br><a href="downloads/Lichttechnik/ECS_75_DC_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 50 KB)<br />' },
				 { 	titel:"ECS 100 DC",  //Nr 9
					bild:'pics/lichttechnik/ECS_100 DC_I.jpg',beschreibung:'<span class="text_titel">ECS 100 DC</span><br><br>Ballast System for Xe and Hg lamps 50-100W<br>Output Power: 90-264V<br>Input Voltage: 11-17V<br>Lamp type: HBO, XBO<br><br><a href="downloads/Lichttechnik/ECS_100 DC_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 80 KB)<br />' },
				 { 	titel:"ECG 300 DC",  //Nr 10
					bild:'pics/lichttechnik/ECG_300_DC_I.jpg',beschreibung:'<span class="text_titel">ECG 300 DC</span><br><br>Ballast System for Xe lamps 150-300W<br>Output Power: 150-300W<br>Input Voltage: 90-264V AC / 90-340V DC<br>Lamp type: XBO, Cermax, CeraLux<br><br><a href="downloads/Lichttechnik/ECG_300_DC_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 60 KB)<br />' },
				 { 	titel:"ECG 800 DC",  //Nr 11
					bild:'pics/lichttechnik/ECG_800_DC_I.jpg',beschreibung:'<span class="text_titel">ECG 800 DC</span><br><br>Ballast for HID DC lamps 350-850W<br>Output Power: 350-850W<br>Input Voltage: 90-264V AC / 90-340V DC<br>Lamp type: SMH<br><br><a href="downloads/Lichttechnik/ECG_800_DC_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 70 KB)<br />' },
				 { 	titel:"ECS 200 DC",  //Nr 12
					bild:'pics/lichttechnik/ECS_200_DC_I.jpg',beschreibung:'<span class="text_titel">ECS 200 DC</span><br><br>Ballast for Hg and HID lamps 100-200W<br>Output Power: 100-200W<br>Input Voltage: 90-264V AC / 90-340V DC<br>Lamp type: HBO, SMR, NTP<br><br><a href="downloads/Lichttechnik/ECS_200_DC_I.pdf" target="_blank">Datenblatt</a> (<img src="pics/pdf_symbol.gif" width="20" height="17" />PDF 210 KB)<br />' }
				]
}
var tabType ={ liste:[
		{ marke:"Philips",
		   lamp: [{title:"D2S", ballastNr:0},
				  {title:"DL35", ballastNr:0},
				  {title:"DUV 35", ballastNr:0}, 
				  {title:"MHD 200", ballastNr:2}, 
				  {title:"MHR 200", ballastNr:2}, 
				  {title:"MSD 1200", ballastNr:4}, 
				  {title:"MSD 200", ballastNr:2}, 
				  {title:"MSD 250", ballastNr:2}, 
				  {title:"MSD 575", ballastNr:3}, 
				  {title:"MSD 700", ballastNr:3}, 
				  {title:"MSI 575", ballastNr:3},
				  {title:"MSP 400", ballastNr:3},
				  {title:"MSP 575", ballastNr:3},
				  {title:"MSR 1200", ballastNr:4},
			      {title:"MSR 1200 HR", ballastNr:4},
				  {title:"MSR 125 HR", ballastNr:2},
				  {title:"MSR 200 HR", ballastNr:2},
				  {title:"MSR 400", ballastNr:3},
				  {title:"MSR 400 HR", ballastNr:3},
				  {title:"MSR 575 HR", ballastNr:3},
				  {title:"MSR 700", ballastNr:3},
				  {title:"RP 50", ballastNr:0} ]
		 },
		 { marke:"Ushio",
		   lamp: [{title:"150W Xe", ballastNr:10},
				  {title:"180W Xe", ballastNr:10},
				  {title:"250W Xe", ballastNr:10},
				  {title:"300W Xe", ballastNr:10},
				  {title:"MHD 100", ballastNr:2},
				  {title:"MHD 150", ballastNr:2},
				  {title:"MHR 150", ballastNr:2},
				  {title:"MHR 200", ballastNr:2},
				  {title:"SHL 50W DC", ballastNr:9},
				  {title:"SMH 350", ballastNr:11},
				  {title:"SMH 600", ballastNr:11},
				  {title:"SMH 75 D1", ballastNr:8},
				  {title:"SMH 850", ballastNr:11},
				  {title:"SMR 200", ballastNr:12},
				  {title:"SMR 75", ballastNr:8},
				  {title:"ULR 50W DC", ballastNr:8},
				  {title:"UXL 75D-O", ballastNr:9},
				  {title:"UXL 75XE", ballastNr:9},
				  {title:"UXL S75MA", ballastNr:9},
				  {title:"UXL S75XE", ballastNr:9},
				  {title:"UXL 102D", ballastNr:9},
				  {title:"UXL 103D", ballastNr:9}]
		 },
	 	{ marke:"Luxtel",
		   lamp: [{title:"CL 300 BF", ballastNr:10},
				  {title:"CL 300 BUV", ballastNr:10},
				  {title:"CL 175 BF", ballastNr:10},
				  {title:"CL 175 BUV", ballastNr:10},
				  {title:"CL 125 BF", ballastNr:10},
				  {title:"CL 125 BUV", ballastNr:10}]	  
		 },	
		 { marke:"Osram",
		   lamp: [{title:"4ARXS HSD 150W/70", ballastNr:2},
				  {title:"4ARXS HSD 250W/80", ballastNr:2},
				  {title:"4ARXS HSD 575W/60", ballastNr:3},
				  {title:"HBO 100", ballastNr:9},
				  {title:"HBO 103W/2", ballastNr:9},
				  {title:"HBO 200", ballastNr:12},				  
				  {title:"HBO 200W/DC ", ballastNr:12},				  
				  {title:"HBO 350W/S", ballastNr:11},				  
				  {title:"HBO 50", ballastNr:9},				  
				  {title:"HBO 500W/A", ballastNr:11},				  
				  {title:"HBO 50W/3 ", ballastNr:9},				  
				  {title:"HBO R 103W/45", ballastNr:9},
				  {title:"HMI 1200", ballastNr:4},
				  {title:"HMI 1200W/DSE", ballastNr:4},
				  {title:"HMI 1200W/S", ballastNr:4},				  
				  {title:"HMI 200", ballastNr:2},				  
				  {title:"HMI 250", ballastNr:2},				  
				  {title:"HMI 400", ballastNr:3},				  
				  {title:"HMI 400W/SE", ballastNr:3},				  
				  {title:"HMI 575", ballastNr:3},				  
				  {title:"HMI 700W/SE", ballastNr:3},				  
				  {title:"HMP 400", ballastNr:3},
				  {title:"HMP 575W", ballastNr:3},
				  {title:"HSD 1200W/60/DSE", ballastNr:4},
				  {title:"HSD 150W/70 DSE", ballastNr:2},				  
				  {title:"HSD 200", ballastNr:2},			  
				  {title:"HSD 250", ballastNr:2},
				  {title:"HSD 575W 95V/DSE", ballastNr:3},
				  {title:"HSR 1200", ballastNr:4},
				  {title:"HSR 1200W/60", ballastNr:4},				  
				  {title:"HSR 400W/60", ballastNr:3},			  
				  {title:"HSR 575", ballastNr:3},
				  {title:"HSR 700", ballastNr:3},
				  {title:"HSR 700W/D", ballastNr:3},
				  {title:"HTI 1200 W/SE", ballastNr:4},				  
				  {title:"HTI 150W", ballastNr:2},
				  {title:"HTI 152W", ballastNr:2},
				  {title:"HTI 400W/24", ballastNr:3},
				  {title:"HTI 600 W/SE", ballastNr:3},
				  {title:"HTI S 35W", ballastNr:0},				  
				  {title:"HXP R 120W/45C UV", ballastNr:2},					  
				  {title:"HXP R 120W/45C VIS ", ballastNr:2},
				  {title:"HXP R 200W/45M", ballastNr:2},
				  {title:"SHARXS HTI 1200W/D7/60", ballastNr:4},
				  {title:"SHARXS HTI 200W/D3/70", ballastNr:2},				  	
				  {title:"SHARXS HTI 400W/D3/75", ballastNr:3},
				  {title:"SHARXS HTI 575W/D4/75", ballastNr:3},
				  {title:"SHARXS HTI 700W/D4/60", ballastNr:3},
				  {title:"VIP 1200", ballastNr:3},
				  {title:"VIP 200", ballastNr:2},
				  {title:"VIP 400", ballastNr:3},
				  {title:"XBO 100W OFR", ballastNr:9},
				  {title:"XBO 150", ballastNr:10},
				  {title:"XBO 150W/1", ballastNr:10},
				  {title:"XBO 250", ballastNr:10},
				  {title:"XBO 50", ballastNr:9},
				  {title:"XBO 75", ballastNr:9},
				  {title:"XBO 75W/2", ballastNr:9},
				  {title:"XBO R 100W/45 OFR", ballastNr:9},
				  {title:"XBO R 180", ballastNr:10},
				  {title:"XBO R 300W/60C 16V OFR", ballastNr:10} ]


}]
}
function removeDuplicateElement(arrayName)
{
	var newArray=new Array();
	label:for(var i=0; i<arrayName.length;i++ )
	{  
	  for(var j=0; j<newArray.length;j++ )
	  {
		if(newArray[j]==arrayName[i]) 
		continue label;
	  }
	  newArray[newArray.length] = arrayName[i];
	}
	return newArray;
}
function updateListe( id ){
	document.getElementById("Type").innerHTML = '';	
	var oOption = document.createElement("option");
	oOption.appendChild(document.createTextNode("Alle ... "));
	oOption.value=0;
	document.getElementById("Type").appendChild(oOption);
	if (id > 0) {
		for (var i=0; i < tabType.liste[id-1].lamp.length; ++i)
		  {
			 	var oOption = document.createElement("option");
				oOption.appendChild(document.createTextNode(tabType.liste[id-1].lamp[i].title));
				oOption.value=(i+1);
				document.getElementById("Type").appendChild(oOption);
		  }
		  document.getElementById("Type").disabled = false;
	} else {
		document.getElementById("Type").disabled = true;
	}
	updateType(id,0); 
}
function updateType( type, lamp ){
	var newArray=new Array();
	for (var i=0; i < tabType.liste.length; i++){
		for (var x=0; x < tabType.liste[i].lamp.length; x++){
			if( ((type ==i+1)&&(lamp==0)) || ((type ==i+1)&&(lamp==x+1)) ){
				newArray[newArray.length] = tabType.liste[i].lamp[x].ballastNr;
			}
		}
	}
	newArray=removeDuplicateElement(newArray);
	var s = "";
	for (var k=0; k < newArray.length; k++){
		s+='<div style="padding:10px;clear:both;background-image:url(pics/transparent_hg.png);margin-top:10px; height:180px;"><div style="float:left;"width="180"> <img src="'+tabBallast.ballast[newArray[k]].bild+'" /></div>';
		s+='<div style="margin-left:200px;">'+tabBallast.ballast[newArray[k]].beschreibung+'</div></div>';
	}
	if(document.getElementById("divInhalt")){
		document.getElementById("divInhalt").innerHTML = s;	
	}
}
	
