function menumover(ref) {
  ref.className += ' active';

  // var children = ref.getElementsByTagName("ul");
  // for (var c=0; c<children.length; c++) {
  //   children[c].style.display = "block";
  //   var bounds = objectBounds(ref);
  //   children[c].style.top = bounds.top+"px";
  //   children[c].style.left = (bounds.left+bounds.width)+"px";
  // }
}
function menumout(ref) {
  ref.className = ref.className.replace(/\ active/,"");

  // var children = ref.getElementsByTagName("ul");
  // for (var c=0; c<children.length; c++) {
  //   children[c].style.display = "none"; 
  // }
}

// function objectBounds(obj) {
// 	var o = new Object;
// 	o.top = 0;
// 	o.left = 0;
// 	o.width = obj.offsetWidth;
// 	o.height = obj.offsetHeight;
// 
// 	if (obj.offsetParent) {
// 		while (obj.offsetParent) {
// 			o.top += obj.offsetTop;
// 			o.left += obj.offsetLeft;
// 			obj = obj.offsetParent;
// 		}
// 		o.top += obj.offsetTop;
// 		o.left += obj.offsetLeft;
// 	} else if (obj.x && obj.y) {
// 		o.left += obj.x;
// 		o.top += obj.y;
// 	}
// 	return o;
// }

var menu_3 = false;
function find_menu_3() {
	var lis = document.getElementsByTagName('li');
	for (var c=0; c<lis.length; c++) {
		var li = lis[c];
		if (li.className=='menu_3') {
			menu_3 = li;
		}
	}
}
function init() {
	find_menu_3();
	var submenu = menu_3.getElementsByTagName("ul")[0];

	var p = window.location;

	if (/Uw\+voordeel/.test(p) || /Onkosten/.test(p) || /Belastingtarieven/.test(p) || /Schenking/.test(p) || /Heffingskorting/.test(p) || /Bijverdienen/.test(p) || /Ouderenkorting/.test(p) || /Huurtoeslag/.test(p) || /Inkomensafhankelijke\+bijdrage/.test(p) || /Zorgtoeslag/.test(p) || /Arbeidskorting/.test(p) || /Werkeloos/.test(p)) {
		return;
	}

	if (submenu) {
		submenu.style.display = 'none';
	}
	menu_3.onclick = open_menu_3;
}
function open_menu_3() {
	var submenu = menu_3.getElementsByTagName("ul")[0];
	if (submenu) {
		submenu.style.display = '';
	}
}
window.onload = init;



