﻿
if (window.bericht_url == null)
	var bericht_url = window.location.href;

if (window.bericht_titel == null)
	var bericht_titel = document.title;

if (window.bericht_omschrijving == null)
	var bericht_omschrijving = '';

if (window.bericht_image == null)
	var bericht_image = '';

if (window.bericht_tags == null)
	var bericht_tags = '';

if (window.bericht_geolocation == null)
	var bericht_geolocation = '';

if (window.nujij_count_type == null)
	var nujij_count_type = 'comments';

if (window.nujij_delay == null)
	var nujij_delay = 250;

if (window.nujij_container_id == null) {
	var nujij_container_id = 'nujij-container';
	document.write('<span id="' + nujij_container_id + '"></span>');	
}

if (window.nujij_mobile == null)
	var nujij_mobile = false;
	

var nujijContainer = document.getElementById(nujij_container_id);

if ( window.nujij_apikey != null && nujijContainer )
	setTimeout(function() {
		nujijContainer.innerHTML = '<iframe class="NUjijButton" width="60" height="18" frameborder="no" scrolling="no" src="http://api.nujij.nl/' + nujij_apikey + '/button?t=' + encodeURIComponent(bericht_titel) + '&u=' + encodeURIComponent(bericht_url) + '&b=' + encodeURIComponent(bericht_omschrijving) + '&i=' + encodeURIComponent(bericht_image) + '&x=' + encodeURIComponent(bericht_tags) + '&g=' + encodeURIComponent(bericht_geolocation) + '&c=' + nujij_count_type + '&mobile=' + nujij_mobile + '"></iframe>';
	}, nujij_delay );
