function ToonNawInfo(id){
	var links = parseInt((screen.width - 364) / 2);
	var boven = parseInt((screen.height - 182) / 2);

	var windowInfo = "toolbar=no,status=no,width=364,height=";
	windowInfo += "182,directories=no,scrollbars=no,left=" + links;
	windowInfo += ",location=no,resize=no,menubar=no,top=" + boven;
	gInfoWindow = window.open ("/nawinfo.html?id=" + id, "infoWindow", windowInfo);
}

function MaakFLVFilmString(url, format) {
	if (url.substr(0, 7) == "rtmp://") {
		var filenaam = url.substr(url.lastIndexOf("/")+1);
		var streamer = url.substr(0, url.lastIndexOf("/"));
		if (format == "qs") {
			var str = "";
			str = "file="+filenaam+"&streamer="+streamer;
		}
		if (format == "var") {
			var str = new Array();
			str[0] = filenaam;
			str[1] = streamer;
		}
	}
	else {
		if (format == "qs") {
			var str = "";
			str = "file="+url;
		}
		if (format == "var") {
			var str = new Array();
			str[0] = url;
		}
	}
	return str;
}

function DecrapifyMSWordHTML(html) {
	html = html.replace(/ <\/o:[pP]>/g, ""); // Remove all instances of nasty Word tags
  // html = html.replace(/o:/g, ""); // Delete all o: prefixes - May screw up text if turned on
	html = html.replace(/<[pP]>&nbsp;<\/[pP]>/g, ""); // Delete all empty paragraph tags	
  html = html.replace(/<[pP]><\/[pP]>/g, ""); // Delete all empty paragraph tags
  html = html.replace(/<[pP]> <\/[pP]>/g, ""); // Delete all empty paragraph tags	
	html = html.replace(/<[pP]>/g, ""); // Delete all empty paragraph tags		
	return html;
}

function RegistreerKlikGA (url, paramSleutel, paramWaarde) {
	//  registreer klik met Google Analytics
	try {
		var pageTracker = _gat._getTracker("UA-821114-4"); 
		pageTracker._trackPageview(url + "?"+paramSleutel+"="+paramWaarde);
	} catch (err) { }
}