function changePicture(pic) {
	document.getElementById("navigatieElement").SetVariable("newPhoto", pic);	
}

function cpf(pic) { 
//	alert('cpf'+pic);
//hier nog een timeout
	
	
	var newvar="cpf2('" + pic + "')";
	//alert(newvar);
	window.setTimeout(newvar,1000);	 

}




function cpf2(pic){
		//alert('nu '+pic);
		parent.window.document.getElementById("navigatieElement").SetVariable("newPhoto", pic);
}

function showVideo(v) {
	width = 320;
	height = 240;
	version = "8,0,0,0,";
	id="videoFlashPlayer";
	document.getElementById('videoPlace').style.display='block';document.getElementById('fotoPlace').style.display='none';
	file = "/images/video.swf?flv="+v;
		document.getElementById("videoPlace").innerHTML = '<div onMouseDown="removeFlashRightButtonMenu()" style="width:'+width+'"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width="'+width+'" height="'+height+'" id="'+encodeURI(file)+'" name="'+id+'">' +
		'<param name="movie" value="'+file+'" />' +
		'<param name="quality" value="high" />' +
		'<param name="menu" value="false" />' +
		'<param name="swliveconnect" value="true" />' +
		((getBrowser()=="ie")?'<param name="wmode" value="transparent" />':'') +
		'<embed src="'+file+'" swliveconnect="true" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" '+((getBrowser()=="ie")?'wmode="transparent"':'')+' id="'+encodeURI(file)+'" name="'+id+'"></embed>' +
		'</object></div>';

}
