
/* mouse over */
var content=new Array()
//change the array below to the text associated with your links Expand or contract the array, depending on how many links you have
content[0]='<img width="505" height="219" src="images/txt_znbv.gif">'
content[1]='<img width="505" height="219" src="images/txt_machinefabriek.gif">'
content[2]='<img width="505" height="219" src="images/txt_scheepvaart.gif">'
content[3]='<img width="505" height="219" src="images/txt_trading.gif">'

content[4]='<img width="505" height="219" src="images/txt_znbv_d.gif">'
content[5]='<img width="505" height="219" src="images/txt_machinefabriek_d.gif">'
content[6]='<img width="505" height="219" src="images/txt_scheepvaart_d.gif">'
content[7]='<img width="505" height="219" src="images/txt_trading_d.gif">'

content[8]='<img width="505" height="219" src="images/txt_znbv_uk.gif">'
content[9]='<img width="505" height="219" src="images/txt_machinefabriek_uk.gif">'
content[10]='<img width="505" height="219" src="images/txt_scheepvaart_uk.gif">'
content[11]='<img width="505" height="219" src="images/txt_trading_uk.gif">'
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}

function changetext(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML='<font face="Verdana"><small>'+whichcontent+'<font></small>'
}
else if (document.layers){
document.d1.document.d2.document.write('<font face="Verdana"><small>'+whichcontent+'</small></font>')
document.d1.document.d2.document.close()
}

}

function appear(){
document.d1.visibility='show'
}

window.onload=regenerate2





/* menu */
function init() {
	if (!document.getElementById) return
	imgarr = document.getElementsByTagName('img');

	var clicked;
	var preloadarr = Array();

	for (var i = 0; i < imgarr.length; i++) {
		imgarr[i].setAttribute( "orgsrc", imgarr[i].getAttribute( "src" ) );

		imgarr[i].onmouseover = function() {
			if( clicked != this && this.getAttribute('hsrc') ) {
				this.setAttribute('src',this.getAttribute('hsrc'))
			}
		}

		imgarr[i].onmouseout = function() {
			if( clicked != this ) {
				this.setAttribute('src',this.getAttribute('orgsrc'))
			}
		}

		imgarr[i].onclick = function() {
			if( this.getAttribute('clicksrc') ) { 
				clearAll();

				this.setAttribute('src',this.getAttribute('clicksrc'))
				clicked = this;
			}
		}

		/* Preload - Start */
		if( imgarr[i].getAttribute( "hsrc" ) ) {
			x = preloadarr.length;

			preloadarr[x] = new Image();
			preloadarr[x].src = imgarr[i].getAttribute( "hsrc" );
		}

		if( imgarr[i].getAttribute( "clicksrc" ) ) {
			x = preloadarr.length;

			preloadarr[x] = new Image();
			preloadarr[x].src = imgarr[i].getAttribute( "clicksrc" );
		}
		/* Preload - Einde */
	}
}

function clearAll() {
	if (!document.getElementById) return
	for (var i = 0; i < imgarr.length; i++) {
		imgarr[i].setAttribute( "src", imgarr[i].getAttribute( "orgsrc" ) );
	}
}
window.onload=init;
