// popup

var newwindow = '';

function popitup(url)
{
	if (newwindow.location && !newwindow.closed)
	{
		newwindow.location.href = url;
	}
	else
	{
		newwindow=window.open(url,'name','width=655,height=458,scrollbars=no,left=100,top=100');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
}

// mouseover teksten

function showLayer(sel) {
    var productsSubmenu = getObj('nm0');
    if (sel == 0) {
        productsSubmenu.visibility='visible';
        productsSubmenu.zIndex=1;    
    } else {
        productsSubmenu.visibility='hidden';
        productsSubmenu.zIndex=0;    
    }
}

function getObj(name) {
    if (document.getElementById) {
        return document.getElementById(name).style;
    } else if (document.all) {
        return document.all[name].style;
    } else if (document.layers) {
        return document.layers[name];
    }
}

// mouseover borders images

function init2()
{
	if (document.getElementsByTagName)
		var x = document.getElementsByTagName('IMG');
	else if (document.all)
		var x = document.all.tags('IMG');
	else return;
	for (var i=0;i<x.length;i++)
	{
		if (x[i].id == 'niceImage')
		{
			x[i].onmouseover = function () {this.style.borderColor = '#000000'};
			x[i].onmouseout = function () {this.style.borderColor = '#000000'};
		}
	}
}

var layers = new Array('fotobijschrift1','fotobijschrift2','fotobijschrift3','fotobijschrift4','fotobijschrift5','fotobijschrift6','fotobijschrift7','fotobijschrift8','fotobijschrift9','fotobijschrift10','fotobijschrift11','fotobijschrift12','fotobijschrift13','fotobijschrift14','fotobijschrift15','fotobijschrift16','fotobijschrift17','fotobijschrift18','fotobijschrift19','fotobijschrift20','fotobijschrift21','fotobijschrift22','fotobijschrift23','fotobijschrift24','fotobijschrift25')

function makeStyleObject(id) {
  if (document.getElementById){
    this.el = document.getElementById(id).style
  }
  else if (document.layers){
    this.el = document.layers[id]
  }
  else if (document.all) {
    this.el = document.all[id].style
  }
  return this
}

function init3() {
  for (var i=0; i<layers.length;i++) {
    layers[i] = new makeStyleObject(layers[i])
  }
}

function toonFotobijschrift(sel) {
  for (var i=0;i<layers.length;i++) {
        if (i!=sel) {
          layers[i].el.visibility="hidden"
          layers[i].el.zIndex=1
        } else {
          layers[i].el.visibility="visible"
          layers[i].el.zIndex=1000
        }
  }
}

function getObj(name)
{
 if (document.getElementById)
 {
   return document.getElementById(name).style;
 }
 else if (document.all)
 {
   return document.all[name].style;
 }
 else if (document.layers)
 {
   return document.layers[name];
 }
}
