
function changeCSS(objId,theProp,theValue) {
//alert(objId);
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
  return obj;
}

function showFrontSubMenu(menuId) { 
	for (i=1; changeCSS('frontSubMenu'+i, 'style.display', 'none') ; i++)  ;
	changeCSS('frontSubMenu'+menuId, 'style.display', 'block');
}

function activateFrontMenu(menuId) {
	if (menuId <= frontMenuLast) 
		changeCSS('frontMenu'+menuId, 'className', 'activeFrontMenuItem');
	else
		changeCSS('frontMenu'+menuId, 'className', 'frontMenuLastItem activeFrontMenuItem');
	showFrontSubMenu(menuId);
}

function mailLink(name, email) {
	name = ":" + name;
	domain = "vereniging-hiambacht.";
	document.write("<a href='mai" + "lto" + name + "@oranje" + domain + "nl'>");
	document.write(email);
	document.write("</a>");
}

function mailEnvelop(name) {
	name = ":" + name;
	domain = "vereniging-hiambacht.";
	document.write("<a href='mai" + "lto" + name + "@oranje" + domain + "nl'>");
	document.write("<img src=\"http://www.oranjevereniging-hiambacht.nl/breakfastrun2010/_data/images/envelop.gif\" alt=\"e-mail\" border=\"0\">");
	document.write("</a>");
}

function mailEnvelopBFR(name) {
	name = ":" + name;
	domain = "fastrun.";
	document.write("<a href='mai" + "lto" + name + "@break" + domain + "nl'>");
	document.write("<img src=\"http://www.oranjevereniging-hiambacht.nl/breakfastrun2010/_data/images/envelop.gif\" alt=\"e-mail\" border=\"0\">");
	document.write("</a>");
}
