/*			
	Applicatie: I-Core V 2 / Construct
	Bouw: 1.04
	Datum: 08-08-2007 / 05-09-2007 / 09-07-2008 / 15-07-2008 / 18-12-2008
*/

/* 
		Globale mappings
		ol = onload beheer
		or = onresize beheer
		g = applicatie object
*/
	
	var pUrl = null;
	
	function _nbinitgooglemaps(){
	
       $.g.pad = '/'; 
       $.g.applicatie.gm = {};
       
		if(window.location.href.indexOf('derckx.com') != -1){
			$.g.applicatie.gm.sleutel ='ABQIAAAA9Wuruwk8N8W-yTYDH44JORTcfb5oQdFrgm28JnFnT99AHtSLBxQMzDa0BuEg9b-Scrl4Fpz54rhcJQ'; // derckx.com live
		}
		else{
			$.g.applicatie.gm.sleutel ='ABQIAAAA9Wuruwk8N8W-yTYDH44JORRY25hMKAPETagOEEL80MtRuq1a8RTijJ7B-5L6X3HUZjyBZv6GawtdkA'; // derckx.nl live
		}
      // $.g.applicatie.gm.sleutel ='ABQIAAAA9Wuruwk8N8W-yTYDH44JORRY25hMKAPETagOEEL80MtRuq1a8RTijJ7B-5L6X3HUZjyBZv6GawtdkA'; // derckx live
       $.g.applicatie.gm.icoon = $.g.domein + $.g.pad + 'backend/beelden/iconen/gmpin.png';
       $.g.applicatie.gm.infowindow = {};
       $.g.applicatie.gm.infowindow.breedte = 300;
		pUrl = $.g.domein + $.g.pad + 'backend/plugins/googlemaps/';
		
		// Map en stijlen
		_nbcssbibliotheekladen(pUrl + 'stijl.css', 'all');
		_nbbibliotheekladen(pUrl + 'map.js');
		
		var t = $.crel('table');
		t.style.width = '100%';t.style.height = '100%';t.style.margin = '0px';t.style.padding = '0px';t.cellSpacing = 0;
		var tb = $.crel('tbody');
		// tb = _nbsluitknop(tb);
		var tr = $.crel('tr');
		var ltd = $.crel('td', 'catOverzicht');
		ltd.className = 'nb_categorie_overzicht';
		tr.appendChild(ltd);
		var rtd = $.crel('td');
		var kaart = $.crel('div', 'kaartCanvas', 'height:598px;border:1px solid #5E5E5E');
		rtd.appendChild(kaart);
		rtd.className = 'nb_kaart_overzicht';
		tr.appendChild(rtd);
		tb.appendChild(tr);
		t.appendChild(tb);
	
		$.$('nb_glob_ipopup_venster').innerHTML = '';
		$.$('nb_glob_ipopup_venster').appendChild(t);
		
		var cache = $.crel('div', 'kaartCache');
		document.body.appendChild(cache);
		
		_nbbibliotheekladen('http://maps.google.com/maps?file=api&v=2.x&key=' + $.g.applicatie.gm.sleutel + '&async=2&callback=_nbkaartopbouw', 'body');
	}
	
	function _nbkaartopbouw(){
		_nbinitmap();
		$.xData('s', pUrl + 'categorieen.nb9', 'catOverzicht');
	}
	
	function _nbcategorieverversen(){
		_nbherstelkaart();
		var checkboxes = $.$('catOverzicht').getElementsByTagName('INPUT');
		var categorieen = new Array();
		var herstel = new Array();
		var j = 0;
		var k = 0;
		for (var i=0; i < checkboxes.length; i++){
			if (checkboxes[i].type == 'checkbox'){
				if (checkboxes[i].checked == 'true' || checkboxes[i].checked == 1){
					categorieen[j] = checkboxes[i].value;
					j++;
				}
				else{
					herstel[k] = checkboxes[i].value;
					k++;
				}
			}
		}
		var argumenten = '';
		if (categorieen.length > 0){
			argumenten = '?categorieen=' + categorieen.join(',');
		}
		else{
			argumenten = '?categorieen=-1';
		}
		if (herstel.length > 0){
			// OPTIONEEL: argumenten += '&herstel=' + herstel.join(',');
		}
		$.xData('s', pUrl + 'kaart.nb9' + argumenten, 'kaartCache');
	}
	
	function _nbsluitknop(tb){
		var tr = $.crel('tr');
		var rtd = $.crel('td');
		rtd.colSpan = 2;
		rtd.align = 'right';
		rtd.innerHTML = '<'+'a href="java'+'scr'+'ipt:_nb_ipopup_sluit();void(0);">X<\/a>';
		rtd.className = 'koprij';
		tr.appendChild(rtd);
		tb.appendChild(tr);
		return tb;
	}
	
	function _nbburl(){
		var url = document.location.href;
		var bUrl = url.substring(0, url.indexOf('/', 14));
		if (bUrl.indexOf('http://localhost') != -1){
			var pathname = document.location.pathname;
			var index1 = url.indexOf(pathname);
			var index2 = url.indexOf('/', index1 + 1);
			var bLocalurl = url.substr(0, index2);
			return bLocalurl + '/';
		}
		else{
			return bUrl + '/';
		}
	}
	
	var $ = {
		d: document, w: window, s: screen, c: {}, m: {}, g: {}, ol: new Array(), or: new Array(), oul: new Array(), bul: new Array(),
		
		$: function (id){
			if (typeof(id) == 'string' && $.d.getElementById(id)){
				var obj = $.d.getElementById(id);

				obj.gs = function(type){return this.style[type];};
				obj.ss = function(type, waarde){this.style[type] = waarde;};
				obj.laag = function(modus){if(typeof(modus)=='undefined'){if($.$(this.id).style.display=='none'){var modus=1;}else{var modus=0;}};$.laag(this.id, modus);};
				obj.laatsteoptie = function(){this.selectedIndex = (this.length - 1);};
				obj.eersteoptie = function(){this.selectedIndex = 0;};
				obj.nieuweoptie = function(){this[this.length] = new Option(arguments[0], arguments[1]);};
				obj.wegoptie = function(){element[arguments] = null;};
				obj.check = function(waarde){if(typeof(waarde)!='undefined' && waarde < 2){this.checked=waarde;}else{if(this.checked==1){this.checked=0;}else{this.checked=1}}};
				
				return obj;
			}
			return false;
		},
		
		bytn: function (tag){ 
			return $.d.getElementsByTagName(tag); 
		},
		
		crel: function (element, naam, stijl){
			var e = $.d.createElement(element);
			if (typeof(naam) == 'string'){
				e.id = naam;
				e.name = naam;
			}
			if (typeof(stijl) == 'string'){
				sreeks = stijl.split(';');
				var swaarden = '';
				for (var i=0; i < sreeks.length; i++){
					swaarden = sreeks[i].split(':');
					e.style[swaarden[0]] = swaarden[1];
				}
			}
			return e; 
		},
		
		eltoe: function (parent, element){
			if ($.d[parent]){
				$.d[parent].appendChild(element);
			}
			else if ($.$(parent)){
				$.$(parent).appendChild(element);
			}
		},
		
		crat: function (attribuut){	
			return $.d.createAttribute(attribuut); 
		},
		
		alert: function (tekst){
			alert('Waarschuwing\n\n' + tekst);	
		},
		
		statusbalk: function (tekst){
			if (typeof(tekst) == 'undefined'){
				tekst = '';
			}
			$.w.status = tekst.kapeerst();
			return true; 
		},
		
		anker: function (id){ 
			$.$(id).scrollIntoView(true); 
		},
		
		home: function (){
			$.d.location.href=$.g.domein+$.g.pad;
		},
		
		eurl: function (url){
			$.d.location.href = url;
		},
		
		seat: function (id, attribuut, waarde){
			var att = $.$(id);
			att.setAttribute(attribuut, waarde);
		},
		
		gurl: function (url){ 
			if (typeof($.g.domein) != 'undefined'){ 
				$.d.location.href = $.g.domein + $.g.pad + url; 
			}
			else{
				$.alert('Het domein en pad zijn niet gedefinieerd.');
			}
		},
		
		/* Div lagen schakelen */
		laag: function(laag, modus, x, y){
			var modi = new Array('none' ,'block', 'switch');
			var div = $.$(laag).style;
			if (arguments.length > 1){
				var weergave = modi[modus];
				switch (weergave){
					case 'block':
						if (arguments.length > 2 && typeof(x) == 'number'){
							div.left = x + 'px';
						}
						if (arguments.length > 3 && typeof(y) == 'number'){
							div.top = y + 'px';
						}
					break;
					case 'switch':
						weergave = (div.display=='block')?'none':'block';
					break;
				}
				div.display = weergave;
			}
		},
		
		x: function(laag){
			return $.$(laag).style.width;
		},
		
		y: function(laag){
			return $.$(laag).style.height;
		},
		
		b: function(){
			if (typeof($.w.innerWidth) == 'number'){
				var t = $.w.innerWidth;
			}
			else{
				var t = $.d.documentElement.clientWidth;
			}
			return this.no(t);
		},
		
		h: function(){
			if (typeof($.w.innerHeight) == 'number'){
				var t = $.w.innerHeight;
			}
			else{
				var t = $.d.documentElement.clientHeight;
			}
			return this.no(t);
		},
		
		/* Scherm (popup) verschalen */
		schalen: function (b, h){
			if (b > $.s.width){
				b = $.s.width;
			}
			if (h > ($.s.height - 35)){
				h = ($.s.height - 35);
			}
			var x = ($.s.width - b) / 2;
			var y = ($.s.height - h - 31) / 2;
			$.w.moveTo(x, y);
			$.w.resizeTo(b, h);
		},
		
		cm: function(e){
			var div = $.$('nb_globaal_context').style;
			if ($.m.cm(e)){
				div.left = $.m.x + 12;
				div.top = $.m.y + 12;
				div.display = 'block';
			}
			return true;
		},
		
		ct: function(stek, id){
			clearTimeout($[stek]['cache']['timers'][id]);
			$[stek]['cache']['timers'][id] = null;
		},
		
		no: function(num){
			return new Number(num);
		},
		
		/* Div resizen voor scrollbar bug AJAX */
		divschalen: function(id, dimensie){
			if (typeof(dimensie) == 'undefined'){
				var dimensie = 'height';
			}
			if ($.$(id)){
				var om = _nbpakstijl(id, dimensie);
				_nbmaakstijl(id, dimensie, (parseInt(om) - 1) + 'px');
				setTimeout('_nbmaakstijl(\'' + id + '\',\'' + dimensie + '\',\'' + om + '\');', 10);
			}
			else{
				$.alert('U wilt ' + div + ' opnieuw bematen maar dit element bestaat niet.');
			}
		},
		
		/* Div verschonen voor scrollbar/gescrollde afstand bug AJAX */
		divverversen: function(id){
			if ($.$(id)){
				var om = _nbpakstijl(id, 'height');
				_nbmaakstijl(id, 'height', (parseInt(om) - 1) + 'px');
				setTimeout('_nbmaakstijl(\'' + id + '\',\'height\',\'' + om + '\');', 10);
				$.$(id).scrollIntoView(true);
			}
			else{
				$.alert('U wilt ' + div + ' verversen maar dit element bestaat niet.');
			}
		},
		
		/* Classes besturen */
		ctoe: function(obj, c){
			obj.className += ' ' + c;
		},
		caf: function(obj, c){
			obj.className = obj.className.replace(c, '');
		},
		c: function(obj, c){
			obj.className = c;
		},
		
		/* Onload functies in reeks opslaan voor window.onload */
		opladen: function(f){
			$.ol[$.ol.length] = f;
		},
		
		/* Onunload functies in reeks opslaan voor window.onunload */
		ontladen: function(f){
			$.oul[$.oul.length] = f;
		},
		
		/* Onresize functies in reeks opslaan voor window.onresize */
		opschalen: function(f){
			$.or[$.or.length] = f;
		},
		
		/* Onbeforeunload functies in reeks opslaan voor window.onresize */
		voorontladen: function(f){
			$.bul[$.bul.length] = f;
		},
		
		/* Geschiedenis */
		log: function(m){
			if (typeof(m) == 'undefined'){
				m = -1;
			}
			$.w.history.go(-1);
		}
	};
	
	$.g = {
		domein: _nbburl(), 
		pad: '', 
		cookietijd: 31, 
		startx: 0,
		starty: 0,
		container: '', // _nb_site_init
		hoogte: $.h(),
		breedte: $.b(),
		applicatie: {
			titel: document.title, 
			naam: ''
		}, 
		sjabloon: {
			naam: ''
		},
		mod: {},
		ajax: {}
	};
	
	/* Direct html of andere content grabben voor een id */
	$.xData = function(cNaam, bNaam, eId){
		var x = (window.ActiveXObject) ? new ActiveXObject('Microsoft.XMLHTTP'): new XMLHttpRequest();
		switch (cNaam){
			case 'b':
				//bNaam += '.nb9';
				if (x){
					x.onreadystatechange = function(){
						if (x.readyState == 4 && x.status == 200){
							el = $.$(eId);
							el.innerHTML = x.responseText;
						}
					}
					x.open('GET', bNaam, true);
					x.send(null);
				}
			break;
			case 's':
				if (x){
					x.onreadystatechange = function(){
						if (x.readyState == 4 && x.status == 200){
							el = $.$(eId);
							el.innerHTML = '&nbsp;' + x.responseText;
							var s = el.getElementsByTagName('script');
							for(var i=0;i<s.length;i++){
								eval(s[i].text);
							}
						}
					}
					x.open('GET', bNaam, true);
					x.send(null);
				}
			break;
		}
	}
	
	/* Cache inrichten */
	$.g['cache'] = {};
		$.g.cache.timers = {};
		$.g.cache.geheugen = {};
	
	/* Afmetingen body bijhouden */
	$.opschalen('_nb_site_dim();');
	
	document.write('<!--[if IE]><script type="text/javascript">$.browser = \'ie\';</script><![endif]-->');
	
	function _nb_site_init(container){
		if (typeof(container) != 'undefined'){
			$.g.container = container;
		}
		else{
			$.alert('U heeft geen alles omvattende container doorgegeven aan i-core!');
		}
		setTimeout('_nbx_init()', 500);
		_nb_form_init();
		_nb_site_dim();
		if (typeof($.browser) == 'undefined'){
			$.browser = 'nie';
		}
	}
	
	function _nb_site_dim(){
		$.g.hoogte = $.h();
		$.g.breedte = $.b();
		if ($.g.container != ''){
			$.g.startx = _nbobjectpositie($.g.container, 'x');
			$.g.starty = _nbobjectpositie($.g.container, 'y');
		}
	}
	
	var _nbbibliotheekladen = function(url, doel){
		var s = $.crel('script');
		s.src = url;
		s.type = 'text/javascript';
		if (typeof(doel) == 'undefined'){
			$.bytn('head')[0].appendChild(s);
		}
		else{
			if (doel == 'body'){
				document.body.appendChild(s);
			}
			else{
				$.bytn('head')[0].appendChild(s);
			}
		}
		_nbactielog('De bibliotheek ' + url + ' is geladen.');
	}
	
	var _nbcssbibliotheekladen = function(url, type){
		var s = $.crel('link');
		s.href = url;
		s.type = 'text/css';
		s.rel = 'stylesheet';
		if (typeof(type) != 'undefined'){
			s.media = type;
		}
		$.bytn('head')[0].appendChild(s);
	}
	
	var _nbactielog = function(actie, query){
		if (!$.$('nb_actie_log')){
			var d = $.crel('div', 'nb_actie_log_container', 'display:none;z-index:-1');
			var t = $.crel('textarea', 'nb_actie_log', 'width: 90%; height: 90%');
			d.appendChild(t);
			$.eltoe('body', d);
		}
		if (typeof(query) != 'undefined'){
			$.$('nb_actie_log').value += '<' + 'br><' + 'b>QUERY ERROR<\/b><' + 'br><' + 'br>' + actie + '<' + 'br><' + 'br>';
		}
		else{
			actie = actie.replace(/br>/g, 'br>&nbsp;&nbsp;&nbsp; ');
			$.$('nb_actie_log').value += '&middot;&nbsp; ' + actie + '<' + 'br>';
		}
	}
	
	var _nbkijklog = function(){
		var m = 'Er is geen logboek vermelding gevonden.';
		if ($.$('nb_actie_log')){
			m = $.$('nb_actie_log').value;
		}
		return m;
	}
	
	var _nbpoplog = function(){
		if (typeof(_nb_ipopup) == 'function'){
			_nb_ipopup(800, 500, 'Diagnostisch logboek', 'c-m', 1, 1, 'nb_ipopup_venster', '', '$.$(\'nb_glob_ipopup_venster_html\').innerHTML=_nbkijklog()');
		}
		else{
			_nbpopup('about:blank', 'log', 600, 400, 'yes', 'yes');
			$.g.venster.document.write('<' + 'b>Logboek<\/b><' + 'br><' + 'br>' + _nbkijklog() + '<' + 'br><' + 'button onclick="window.close();">Sluiten<\/button>');
		}
	}
	
	/* Interne popup */
	function _nb_ipopup_init(){
		var obj = $.crel('div', 'nb_glob_ipopup');
		obj.style.display = 'none';
		obj.style.position = 'absolute';
		obj.style.backgroundColor = '#fff';
		obj.style.height = $.g.hoogte + 'px';
		obj.style.width = '100%';
		obj.style.left = '0px';
		obj.style.top = '0px';
		obj.style.zIndex = 100000;
		$.d['body'].appendChild(obj);
	}
	
	/* Interne popup maken en weergeven */ 
	//	positie - c (center), l (links), r (rechts), t (boven), m (midden), b (onder)
	function _nb_ipopup(breedte, hoogte, titel, positie, scrollen, sluiten, klasse, html, func){
		var bodytop = 0;
		if(document.documentElement && document.documentElement.scrollTop){
			bodytop = document.documentElement.scrollTop;
		}
		else if(document.body){
			bodytop = document.body.scrollTop;
		}

		if (!$.$('nb_glob_ipopup')){
			_nb_ipopup_init();
		}
		$.laag('nb_glob_ipopup', 1);
		
		//_nbtransproces('nb_glob_ipopup', 20, 0.001, 60);
		
		_nbtransparantie('nb_glob_ipopup', 75);
		//_nbschaalproces('nb_glob_ipopup', 10, [50,0], [50,0], [0,100], [0,100], '%');

		if (typeof(titel) == 'undefined'){
			var titel = 'Geen titel';
		}
		if (typeof(scrollen) == 'undefined'){
			var scrollen = 0;
		}
		if (typeof(positie) == 'undefined'){
			var positie = 'c-m';
		}
		var p = positie.split('-');
		if (typeof(html) == 'undefined'){
			var html = 'Laden...';
		}
		if ($.$('nb_glob_ipopup_venster')){
			$.d['body'].removeChild($.$('nb_glob_ipopup_venster'));
		}
		var obj = $.crel('div', 'nb_glob_ipopup_venster');
		obj.style.display = 'block';
		obj.style.width = breedte + 'px';
		obj.style.height = hoogte + 'px';
		obj.style.position = 'absolute';
		obj.style.zIndex = 100001;
		if (p[0] == 'l'){
			obj.style.left = '0px';
		}
		if (p[0] == 'r'){
			obj.style.left = ($.g.breedte - breedte) + 'px';
		}
		if (p[0] == 'c'){
			obj.style.left = (($.g.breedte - breedte)/2) + 'px';
		}
		if (p[1] == 't'){
			obj.style.top = (0 + bodytop) + 'px';
		}
		if (p[1] == 'b'){
			obj.style.top = (($.g.hoogte - hoogte) + bodytop) + 'px';
		}
		if (p[1] == 'm'){
			obj.style.top = (((($.g.hoogte - hoogte)/2) - 30) + bodytop) + 'px';
		}
		if (typeof(klasse) != 'undefined'){
			obj.className = klasse;
		}
		if (typeof(sluiten) == 'undefined'){
			sluiten = 0;
		}
		
		var t = $.crel('table');
		t.style.width = breedte + 'px';
		t.style.margin = '0px';
		t.style.padding = '0px';
		var tb = $.crel('tbody');
		var tr = $.crel('tr');
		var ltd = $.crel('td');
		ltd.className = 'koprij';
		ltd.innerHTML = titel;
		tr.appendChild(ltd);
		var rtd = $.crel('td');
		rtd.align = 'right';
		if (sluiten){
			rtd.innerHTML = '<'+'a href="java'+'scr'+'ipt:_nb_ipopup_sluit();void(0);">X<\/a>';
		}
		rtd.innerHTML += '&' + 'nbsp;';
		rtd.className = 'koprij';
		tr.appendChild(rtd);
		tb.appendChild(tr);
		var tr2 = $.crel('tr');
		var td = $.crel('td');
		td.colSpan = 2;
		td.style.height = (hoogte - 32) + 'px';
		
		var d = $.crel('div', 'nb_glob_ipopup_venster_html');
		d.style.height = (hoogte - 31) + 'px';
		d.style.display = 'block';
		d.style.paddingTop = '5px';
		d.style.paddingLeft = '5px';
		if (scrollen == 1){
			d.style.overflow = 'auto';
		}
		else{
			d.style.overflow = 'hidden';
		}
		d.innerHTML = html;
		td.appendChild(d);
		tr2.appendChild(td);
		tb.appendChild(tr2);
		t.appendChild(tb);
		obj.appendChild(t);
		
		$.d['body'].appendChild(obj);
		
		_nbtransproces('nb_glob_ipopup_venster', 20, 0.01);
		//_nbtransparantie('nb_glob_ipopup_venster', 100);
		
		// Callback
		if (typeof(func) != 'undefined'){
			eval(func);
		}
	}
	
	/* Interne popup sluiten */
	function _nb_ipopup_sluit(){
		setTimeout('\$.laag(\'nb_glob_ipopup\', 0);_nbtransparantie(\'nb_glob_ipopup\',0);', 50);		
		$.d['body'].removeChild($.$('nb_glob_ipopup_venster'));
	}
	
		/* Transparant maken van een gebied */
	var _nbtransparantie = function(id, gradatie){
		if ($.$(id)){
			var obj = $.$(id);
			if (typeof(obj.style.opacity) != 'undefined'){
				obj.style.opacity = gradatie/100;
			}
			if (typeof(obj.style.filter) != 'undefined'){
				obj.style.filter = 'alpha(opacity=' + gradatie + ')';
			}
			if (typeof(obj.style.MozOpacity) != 'undefined'){
				obj.style.MozOpacity = gradatie/100;
			}
			if (typeof(obj.style.KhtmlOpacity) != 'undefined'){
				obj.style.KhtmlOpacity = gradatie/100;
			}
		}
		else{
			_nbactielog('Het element (' + id + ') bestaat niet, de transparantie kan niet aangepast worden.');
		}
	};
	
	/* Huidige transparantie lezen */
	var _nbtranslezen = function(id){
		if ($.$(id)){
			var obj = $.$(id);
			if (typeof(obj.style.opacity) != 'undefined'){
				if (obj.style.opacity == ''){
					return '';
				}
				return (obj.style.opacity * 100);
			}
			else if (typeof(obj.style.filter) != 'undefined'){
				if (obj.style.filter.indexOf('opacity=') != -1){
					return $.no(obj.style.filter.substring((obj.style.filter.indexOf('opacity=') + 8), obj.style.filter.indexOf('\)')));
				}
				return 0;
			}
			else if (obj.style.MozOpacity){
				return (obj.style.MozOpacity * 100);
			}
			else if (obj.style.KhtmlOpacity){
				return (obj.style.KhtmlOpacity * 100);
			}
		}
		else{
			_nbactielog('Het element (' + id + ') bestaat niet, de transparantie kan niet gelezen worden.');
		}
	};
	
	/* Transparant maken of andersom */
	var _nbtransproces = function(id, percentage, interval, limiet){
		if ($.$(id)){
			if (typeof(interval) == 'undefined'){
				var interval = 1;
			}
			if (typeof(limiet) == 'undefined'){
				var limiet = 100;
			}
			var gradatie = _nbtranslezen(id);
			var obj = $.$(id);
					
			if (gradatie == 0 && percentage < 0){
				_nbtransparantie(id, limiet);
			}
			else if (gradatie == limiet && percentage > 0){
				_nbtransparantie(id, 0);
			}
			
			var ngradatie = gradatie + percentage;
			var einde = false;
			
			if (gradatie < limiet && ngradatie > limiet){
				ngradatie = limiet;
			}
			if (gradatie > 0 && ngradatie < 0){
				ngradatie = 0;
			}
			if (ngradatie <= 0 || ngradatie == limiet){
				einde = true;
			}
			_nbtransparantie(id, ngradatie);
			
			_nbactielog('Nieuw transparantie niveau van ' + ngradatie + ' voor element ' + id + '.');
	
			if (!einde){
				setTimeout('_nbtransproces(\'' + id + '\', ' + percentage + ', ' + interval + ', ' +  limiet + ')', (interval * 1000));
			}
			else{
				_nbactielog('Transparantie proces voor element ' + id + ' gestopt.');
			}
		}
		else{
			_nbactielog('Transparantie proces voor element ' + id + ' afgebroken het element ' + id + ' bestaat niet (meer).');
		}
	};