function showCamOutput(htmlID){
	var aOutput = document.getElementById('webcam-wrapper').getElementsByTagName('li');
	var date = new Date();
	
	for(var i = 0; i < aOutput.length; i++){
		if(aOutput[i].getAttribute('id').toLowerCase() == htmlID){
			aOutput[i].style.display = 'block';
			
			if(htmlID.toLowerCase() != 'stream'){
				image = aOutput[i].getElementsByTagName('img')[0];
				
				if(!image.getAttribute('originalSource')){
					image.setAttribute('originalSource', image.getAttribute('src'));
				}
				
				image.src = (image.getAttribute('originalSource')) + '?foo=' + date;
			}
			
		}else{
			aOutput[i].style.display = 'none';
		}
	}

	if(htmlID.toLowerCase() == 'stream'){
		HTML = '';
		HTML += '<object id="MediaPlayer" width="640" height="480" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject">';
		//	HTML += '<param name="FileName" value="http://members.multiweb.nl/j.stroomer/dorp.wmv?foo=' + date + '">';
			HTML += '<param name="FileName" value="http://members.multiweb.nl/j.stroomer/strand.wmv?foo=' + date + '">';
			HTML += '<param name="autostart" value="true" />';
			HTML += '<param name="ShowControls" value="0" />';
			HTML += '<param name="ShowStatusBar" value="0" />';
			HTML += '<param name="ShowDisplay" value="0" />';
			HTML += '<param name="TransparentAtStart" value="true" />';
			HTML += '<embed type="application/x-mplayer2" src="http://members.multiweb.nl/j.stroomer/strand.wmv?foo=' + date + '" name="MediaPlayer" width="640" height="480" ShowControls="0" ShowStatusBar="0" ShowDisplay="0" autostart="1" TransparentAtStart="true"> </embed>';
		HTML += '</object>';
		
		document.getElementById('stream').innerHTML = HTML;
	}
}

