// JavaScript Document
document.write("<span id='daVinciNizer' name='daVinciNizer'>Bezig met laden...</span>")
function da_get(url, spanControl, js_loadfunctie) {
	xmlhttp = false;
	// branch for native XMLHttpRequest object
	if(window.XMLHttpRequest) {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch(e) {
			xmlhttp = false;
		}
		// branch for IE/Windows ActiveX version
	} 
	else if(window.ActiveXObject) {
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e) {
				xmlhttp = false;
			}
		}
	}
	if(xmlhttp) {
		xmlhttp.onreadystatechange = function() {
 			if (xmlhttp.readyState==4) {
   				if (spanControl!="") document.getElementById(spanControl).innerHTML = xmlhttp.responseText;
				if (js_loadfunctie!="") eval(js_loadfunctie);
  			}
		}
		xmlhttp.open("GET", url, true);
		xmlhttp.send("");
	}
}

function daTextShow() {
	document.getElementById("daText_short").style.display = "none";
	document.getElementById("daText_full").style.display = "block";
}

function daTextHide() {
	document.getElementById("daText_short").style.display = "block";
	document.getElementById("daText_full").style.display = "none";
}

function da_info() {
  var da_info_huidig = document.getElementById("daVinciInfo").style.display;
  if (da_info_huidig=="block") {
  	da_info_close();}
  else {
  	da_info_open();
  }
}

function da_info_open() {
	document.getElementById("daVinciInfo").style.display = "block";
}
function da_info_close() {
	document.getElementById("daVinciInfo").style.display = "none";
}

da_get("http://www.grenswetenschap.nl/davincinizer/leonardo.asp", "daVinciNizer", "");
