function GetSection(id) {
	var query = window.location.href;
	var pairs = query.split("/");
	var lengte = pairs.length;
	var section = pairs[lengte-1].split(".");
	if(section!=null){
		var section2 = section[0].split("-");
		if (section2!=null){
			return section2[id];
		}
		else {
			return false;
		}
	}
	else{
		return false;
	}
}

var DHTML = (document.getElementById || document.all || document.layers);
var x;
var  s1=GetSection(0);
var s2=GetSection(1);

function HighLight(id, color) { // BvO v1.0 - Menu Achtergrond veranderen.
	if(id!=s1) {
 document.getElementById(id).style.backgroundColor = color;
	}
	else {
		document.getElementById(id).style.backgroundColor = "#C3E1D1";	
	}
}


function getObj(name){
  if (document.getElementById){
	this.obj = document.getElementById(name);
  if(this.obj != null){
	this.style = document.getElementById(name).style;
	}else{
	return;
	}
  }
  else if (document.all){
	this.obj = document.all[name];
  if(this.obj != null){
	this.style = document.all[name].style;
}else{
	return;
	}

  }
  else if (document.layers){
   	this.obj = document.layers[name];
  if(this.obj != null){
   	this.style = document.layers[name];
}else{
	return;
	}

  }
}

function setMenu(id) {
	if (DHTML) {
		x= new getObj(id);
		if (x.style!=undefined || x.style!=null) {
			document.getElementById(id).style.backgroundColor = "#C3E1D1";
		}
		else {
			return;
		}
	}
	else {
		return;
	}
}

function GetSection(id) {
	var query = window.location.href;
	var pairs = query.split("/");
	var lengte = pairs.length;
	var section = pairs[lengte-1].split(".");
	if(section!=null){
		var section2 = section[0].split("-");
		if (section2!=null){
			return section2[id];
		}
		else {
			return false;
		}
	}
	else{
		return false;
	}
}

function showActive() {
  if (s1!=null && s1!="") {
    setMenu(s1);
  }else{
    setMenu('Exhebition');
  }
  if (s2!=null && s2!="") {
    setMenu(s2);
  }
}