/*	HW.JS
	© 2010 H&W Center, Utrecht. All rights reserved.
*/


function activeren() 
{
	if ( navigator.userAgent.match( /Opera ( \S+ )/ ) )
	{
		var operaVersion = parseInt( navigator.userAgent.match( /Opera ( \S+ )/ )[1] );
	}
	if ( !document.getElementById||operaVersion < 7 ) return;

	var image_array = document.getElementsByTagName( 'img' );
	var pre_load = new Array();
	var image_source = new Array();
	var image_class = new Array();

	for ( i = 0; i < image_array.length; i++ )
	{
		if ( image_array[i].className.indexOf('activeren') != -1 )
		{
			image_source[i] = image_array[i].getAttribute( 'src' );
			image_class[i] = image_array[i].className;
			pre_load[i] = new Image();
			if ( image_class[i].match(/activeren (\S+)/) ) 
			{
				pre_load[i].src = image_class[i].match(/activeren (\S+)/)[1]
			}
			image_array[i].setAttribute( 'source_overlay', image_source[i] );
			image_array[i].onmouseover = function()
			{
				this.setAttribute( 'src',this.className.match( /activeren (\S+)/ )[1] )
			}
			image_array[i].onmouseout = function()
			{
				this.setAttribute( 'src',this.getAttribute( 'source_overlay' ) )
			}
		}
	}
}
activeren();


function popvenster( url )
{
	eval("page"+"=window.open(url,'','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=620,height=400,top=0,left=0');" );
}


function jaar()
{
	if ( document.all || document.getElementById || document.layers )
	{
		document.write( new Date().getFullYear() )
	}
}


/*** EOF ***/

