
function popUp(winURL, title, width, height, scrollbar, resizable, location, menubar, status, toolbar, directories) {

	if (title == "") {  title = 'anwb'; }
	if ((width == "") || (width == "0")) {  width = 780;  }
	if ((height == "") || (height == "0")) { height = 580; } 

	var winl = (screen.width-width)/2;
	var wint = (screen.height-height)/2;

	if (scrollbar == "") { scrollbar = 'auto'; }
	if (resizable == "") { resizable = '0'; }
	if (location == "") { location = '0'; }
	if (menubar == "") { menubar = '0'; }
	if (status == "") { status = '0'; }
	if (toolbar == "") { toolbar = '0'; }
	if (directories == "") { directories = '0'; }
	
	var w=window.open(winURL,'anwb', "width="+width+", height="+height+", top="+wint+", left="+winl+", scrollbars="+scrollbar+", resizable="+resizable+", location="+location+", menubar="+menubar+", status="+status+", toolbar="+toolbar+", directories="+directories);
	w.focus();	
}

function GetElementValueFromClassName(className,element){var result="";var test=new String(className);var elementString=new String(element);elementString=elementString+":";var startpos=test.indexOf(elementString,0);if(startpos>=0){test=test.substr(startpos,test.length);if(test.indexOf(" ",0)>=0){test=test.substr(elementString.length,test.indexOf(" ",0)-elementString.length);}else{test=test.substr(elementString.length,test.length-elementString.length);}
result=test;}
return result;}


jQuery('a.popup').click(function(){

	var url = this.getAttribute("href");
	var width =  GetElementValueFromClassName(this.className, "w");
	var height = GetElementValueFromClassName(this.className, "h");
	
	var title = 'test'; /* OR GetElementValueFromClassName(this.className, "t"); */
	// unless GetElementValueFromClassName(this.className, "t") has been given
	if(GetElementValueFromClassName(this.className, "t")!=null && GetElementValueFromClassName(this.className, "t")!=""){
		title = GetElementValueFromClassName(this.className, "t"); 
	}
	
	var scrollbar = '1'; /* OR GetElementValueFromClassName(this.className, "s"); */
	// unless GetElementValueFromClassName(this.className, "s") has been given
	if(GetElementValueFromClassName(this.className, "s")!=null && GetElementValueFromClassName(this.className, "s")!=""){
		scrollbar = GetElementValueFromClassName(this.className, "s"); 
	}
	
	var resizable = '1'; /* OR GetElementsValueFromClassName(this.className,"r"); */
	// unless GetElementValueFromClassName(this.className, "r") has been given
	if(GetElementValueFromClassName(this.className, "r")!=null && GetElementValueFromClassName(this.className, "r")!=""){
		resizable = GetElementValueFromClassName(this.className, "r"); 
	}
	
	var location = '0'; /* OR GetElementsValueFromClassName(this.className,"l"); */
	// unless GetElementValueFromClassName(this.className, "l") has been given
	if(GetElementValueFromClassName(this.className, "l")!=null && GetElementValueFromClassName(this.className, "l")!=""){
		location = GetElementValueFromClassName(this.className, "l"); 
	}
	
	var menubar = '0'; /* OR GetElementsValueFromClassName(this.className,"m"); */
	// unless GetElementValueFromClassName(this.className, "m") has been given
	if(GetElementValueFromClassName(this.className, "m")!=null && GetElementValueFromClassName(this.className, "m")!=""){
		menubar = GetElementValueFromClassName(this.className, "m"); 
	}
	
	var status = '0'; /* OR GetElementsValueFromClassName(this.className,"st"); */
	// unless GetElementValueFromClassName(this.className, "m") has been given
	if(GetElementValueFromClassName(this.className, "st")!=null && GetElementValueFromClassName(this.className, "st")!=""){
		status = GetElementValueFromClassName(this.className, "st"); 
	}
	
	var directories = '0'; /* OR GetElementsValueFromClassName(this.className,"d"); */
	// unless GetElementValueFromClassName(this.className, "d") has been given
	if(GetElementValueFromClassName(this.className, "d")!=null && GetElementValueFromClassName(this.className, "d")!=""){
		directories = GetElementValueFromClassName(this.className, "d"); 
	}
	
	var toolbar = '0'; /* OR GetElementsValueFromClassName(this.className,"to"); */
	// unless GetElementValueFromClassName(this.className, "to") has been given
	if(GetElementValueFromClassName(this.className, "to")!=null && GetElementValueFromClassName(this.className, "to")!=""){
		toolbar = GetElementValueFromClassName(this.className, "to"); 
	}
		
	var meetcode = (this.className.indexOf('meetcode') != -1) ;	
	if (meetcode){
		var f = GetElementValueFromClassName(this.className, "meetcodeArgument");
		var href = this.getAttribute('href');	
		dest = addMeetcodeToUrl(f, href) ;
	}

	
	popUp(url, title, width, height, scrollbar, resizable, location, menubar, status, toolbar, directories);

	return false;
});





















var autoPopulate={sInputClass:'autopopulate',init:function(){if(!document.getElementById||!document.createTextNode){return;}
var arrInputs=jQuery('input.'+autoPopulate.sInputClass);var iInputs=arrInputs.length;var oInput;for(var i=0;i<iInputs;i++){oInput=arrInputs[i];if(oInput.type!='text'){continue;}
if((oInput.value=='')&&(oInput.title!='')){oInput.value=oInput.title;jQuery(oInput).addClass('defaultInput');}
if(oInput.value==oInput.title){jQuery(oInput).addClass('defaultInput');}
jQuery('input.autopopulate').focus(function(){if(this.value==this.title){this.value='';this.select();jQuery(this).val('').removeClass('defaultInput');}});jQuery('input.autopopulate').blur(function(){if(!this.value.length){this.value=this.title;jQuery(this).addClass('defaultInput');}
else{if(this.value!=this.title){jQuery(this).removeClass('defaultInput');}}});}}};

autoPopulate.init();




/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-06-20 03:23:36 +0200 (Mi, 20 Jun 2007) $
 * $Rev: 2110 $
 *
 * Version 2.1
 */

(function($){

/* @name bgiframe
 * @type jQuery
 * @cat Plugins/bgiframe
 * @author Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 */

$.fn.bgIframe = $.fn.bgiframe = function(s) {
	// This is only for IE6
	if ( $.browser.msie && parseInt($.browser.version) <= 6 ) {
		s = $.extend({
			top     : 'auto', // auto == .currentStyle.borderTopWidth
			left    : 'auto', // auto == .currentStyle.borderLeftWidth
			width   : 'auto', // auto == offsetWidth
			height  : 'auto', // auto == offsetHeight
			opacity : true,
			src     : 'javascript:false;'
		}, s || {});
		var prop = function(n){return n&&n.constructor==Number?n+'px':n;},
		    html = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+
		               'style="display:block;position:absolute;z-index:-1;'+
			               (s.opacity !== false?'filter:Alpha(Opacity=\'0\');':'')+
					       'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+
					       'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+
					       'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+
					       'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+
					'"/>';
		return this.each(function() {
			if ( $('> iframe.bgiframe', this).length == 0 )
				this.insertBefore( document.createElement(html), this.firstChild );
		});
	}
	return this;
};

// Add browser.version if it doesn't exist
if (!$.browser.version)
	$.browser.version = navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1];

})(jQuery);



(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){$.tooltip.blocked=!$.tooltip.blocked;}};$.fn.extend({tooltip:function(settings){settings=$.extend({},$.tooltip.defaults,settings);createHelper(settings);return this.each(function(){$.data(this,"tooltip-settings",settings);this.tooltipText=this.title;$(this).removeAttr("title");this.alt="";}).hover(save,hide).click(hide);},fixPNG:IE?function(){return this.each(function(){var image=$(this).css('backgroundImage');if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({'backgroundImage':'none','filter':"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+image+"')"}).each(function(){var position=$(this).css('position');if(position!='absolute'&&position!='relative')
$(this).css('position','relative');});}});}:function(){return this;},unfixPNG:IE?function(){return this.each(function(){$(this).css({'filter':'',backgroundImage:''});});}:function(){return this;},hideWhenEmpty:function(){return this.each(function(){$(this)[$(this).html()?"show":"hide"]();});},url:function(){return this.attr('href')||this.attr('src');}});function createHelper(settings){if(helper.parent)
return;helper.parent=$('<div id="'+settings.id+'"><strong></strong><p></p><span class="url"></span></div>').appendTo(document.body).hide();if($.fn.bgiframe)
helper.parent.bgiframe();helper.title=$('strong',helper.parent);helper.body=$('p',helper.parent);helper.url=$('span.url',helper.parent);}
function settings(element){return $.data(element,"tooltip-settings");}
function handle(event){if(settings(this).delay)
tID=setTimeout(show,settings(this).delay);else
show();track=!!settings(this).track;$(document.body).bind('mousemove',update);update(event);}
function save(){if($.tooltip.blocked||this==current||(!this.tooltipText&&!settings(this).bodyHandler))
return;current=this;title=this.tooltipText;if(settings(this).bodyHandler){helper.title.hide();var bodyContent=settings(this).bodyHandler.call(this);if(bodyContent.nodeType||bodyContent.jquery){helper.body.empty().append(bodyContent)}else{helper.body.html(bodyContent);}
helper.body.show();}else if(settings(this).showBody){var parts=title.split(settings(this).showBody);helper.title.html(parts.shift()).show();helper.body.empty();for(var i=0,part;part=parts[i];i++){if(i>0)
helper.body.append("<br/>");helper.body.append(part);}
helper.body.hideWhenEmpty();}else{helper.title.html(title).show();helper.body.hide();}
if(settings(this).showURL&&$(this).url())
helper.url.html($(this).url().replace('http://','')).show();else
helper.url.hide();helper.parent.addClass(settings(this).extraClass);if(settings(this).fixPNG)
helper.parent.fixPNG();handle.apply(this,arguments);}
function show(){tID=null;helper.parent.show();update();}
function update(event){if($.tooltip.blocked)
return;if(!track&&helper.parent.is(":visible")){$(document.body).unbind('mousemove',update)}
if(current==null){$(document.body).unbind('mousemove',update);return;}
helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");var left=helper.parent[0].offsetLeft;var top=helper.parent[0].offsetTop;if(event){left=event.pageX+settings(current).left;top=event.pageY+settings(current).top;helper.parent.css({left:left+'px',top:top+'px'});}
var v=viewport(),h=helper.parent[0];if(v.x+v.cx<h.offsetLeft+h.offsetWidth){left-=h.offsetWidth+20+settings(current).left;helper.parent.css({left:left+'px'}).addClass("viewport-right");}
if(v.y+v.cy<h.offsetTop+h.offsetHeight){top-=h.offsetHeight+20+settings(current).top;helper.parent.css({top:top+'px'}).addClass("viewport-bottom");}}
function viewport(){return{x:$(window).scrollLeft(),y:$(window).scrollTop(),cx:$(window).width(),cy:$(window).height()};}
function hide(event){if($.tooltip.blocked)
return;if(tID)
clearTimeout(tID);current=null;helper.parent.hide().removeClass(settings(this).extraClass);if(settings(this).fixPNG)
helper.parent.unfixPNG();}
$.fn.Tooltip=$.fn.tooltip;})(jQuery);;var TooltipManager=function(){};TooltipManager.prototype.getDefaultPropertiesObject=function(){var tooltipProperties=new Object();tooltipProperties.delay=0;tooltipProperties.event="rollover";tooltipProperties.extraClass="";tooltipProperties.fixPNG=true;tooltipProperties.showURL=false;tooltipProperties.showBody=" ; ";tooltipProperties.track=true;return tooltipProperties;};TooltipManager.prototype.getImageAndTextPropertiesObject=function(){var propObj=this.getDefaultPropertiesObject();propObj.bodyHandler=function(){return('<img align="baseline" src="'+this.src+'"/><p>'+this.tooltipText+'</p>');};return propObj;};TooltipManager.prototype.createTooltips=function(tooltipSelector,tooltipProperties){if(tooltipSelector){var properties;if(tooltipProperties){properties=tooltipProperties;}else{properties=this.getDefaultPropertiesObject();}
$(tooltipSelector).tooltip(properties);}else{alert("TooltipManager ERROR: selector and/or properties not or incorrectly defined");}};

var tm = new TooltipManager();
tm.createTooltips(".tooltip");


// zet mfinfo commentaar in de array
function getComments(node) { 
	//create an array.
	var c = new Array();
		//if the current DOM node is a comment.
		if (node.nodeType == 8) {
		//only the mfinfo comments we are interrested in.
		if(((node.nodeValue).substring(1,7)) == 'mfinfo'){
			//add it's text to the array.
			c[c.length] = node.nodeValue;
			}
		} else if (node.childNodes != null) { //Otherwise, if it has children
				for (var i=0; i < node.childNodes.length; i++) { //iterate through each child
				c = c.concat(getComments(node.childNodes.item(i))); //add it's comments too.
				}
			}
		//return the array.
		return c;
}


// Gebruik de comment tag van het oude moniforce om de pagetracker af te vuren
function external(href){

		var comment = getComments(jQuery('head')[0]);
		var pagina = (comment[1]).substring(14);

		var lengte = pagina.indexOf("'");
		var track = pagina.substring(0,lengte);
		pageTracker._trackPageview(track+"/"+href);

}


















// OUDE MEUK ASAP ERUIT !! EERST IN HTML CODE HERZIEN EN DAN DEZE VERWIJDEREN EN ALGEMENE TOGGLE FUNCTIE AANROEPEN!!

function ExpandOrCollapse(obj1,obj2) {

var el = document.getElementById(obj1);
var il = document.getElementById(obj2);


        if ( el.style.display != "none" ) {
		el.style.display = 'none';
		il.className = 'in';
        }
        else {
		el.style.display = '';
		il.className = 'out';
        }
}



function Expand (obj1,obj2,obj3) {

var el = document.getElementById(obj1);
var il = document.getElementById(obj2);
var al = document.getElementById(obj3);


        if ( el.style.display != "none" ) {
		el.style.display = 'none';
		il.className = 'in';
		al.className = 'txtin';
        }
        else {
		el.style.display = '';
		il.className = 'out';
		al.className = 'txtout';
        }
}