/* TWP.JS
   Copyright © 2005-2010 Taalwerkplaats, Amsterdam. Alle 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 jaar()
{
	if ( document.all || document.getElementById || document.layers )
	{
		document.write( new Date().getFullYear() )
	}
}


/*** EOF ***/

