var facebook_actie = {
	id: 'facebook_actie_id',
	append: function() {
		var thisHandle = this, popup = document.createElement('div'), handle = document.body;
		
		popup.id = this.id;
		popup.innerHTML = '<div style="width: 100%; height: 100%; position: fixed; left: 0px; top: 0px; filter: alpha(opacity=50); background: #fff; z-index: 998; opacity: 0.50;"></div><a href="http://www.facebook.com/Tools4ever.Identity.access.management.software?sk=app_220463268020619" style="display: block; width: 300px; height: 150px; position: absolute; z-index: 999; top: 400px; left: 50%; margin: -75px 0px 0px -150px; background: url(/script/facebook-actie.jpg); border: 1px solid #999;" target="_blank"></a>';
		
		popup.onclick = function() {
			thisHandle.hide();
		}
		
		document.onclick = function() {
			thisHandle.hide();
			document.onclick = null;
		}
		
		handle.appendChild(popup);
	},
	hide: function() {
		var handle;
		if (handle = document.getElementById(this.id)) handle.style.display = 'none';
	},
	init: function() {
		var temp = window.onload;
		window.onload = function() {
			if (temp) temp();
			var d = new Date();
			if (String(window.location).indexOf('fb=true') != -1 || (d.getDate() >= 19 || d.getMonth() != 11)) {
				facebook_actie.append();
			}
		}
	}
};

facebook_actie.init();
