// JavaScript Document
//zet de submenu onzichtbaar in het begin. Als de gebruiker met de muis over de foto komt, verschijnt het submenu.
function setSubTableVisible(subTable){
  if(document.getElementById(subTable).style.visibility=="visible")
  	{
  		document.getElementById(subTable).style.visibility="hidden";
	}
	else
	{
		document.getElementById(subTable).style.visibility="visible";
	}
  }
  //om de achtergrond te veranderen wanneer men over de foto's komt.
  function bgChange(td,bg)
{
//	 werkt enkel met IE 
	document.getElementById(td).background=bg;
	//alert(document.getElementById(td).background);
	//document.getElementById(td).style.backgroundImage="url('./img/Dienstverlening_Front.jpg')";	
	//alert(bg);
// uitzoeken voor firefox!!!!	document.getElementById(td).style.backgroundImage="url(bg)";
	//document.getElementById(td).style.backgroundImage="url('./img/Middenschool_Front.jpg')";	
	//eval('document.getElementById(td).style.backgroundImage="url('''+bg+''')"');	
	//eval("document.getElementById(td).style.backgroundImage='url(bg)');

}
  //om de kleur te veranderen van de submenu-items wanneer men over submenu's komt.
function bgChangeColor(div,status,a)
{
	if(status=='over')
	{
		document.getElementById(div).style.backgroundColor='#cccccc';
//		document.getElementById(a).style.color='white';
	}
	else
	{
		document.getElementById(div).style.backgroundColor='transparent';
//		document.getElementById(a).style.color='black';
	}
}

function setColorLink(div)
{
		document.getElementById(div).style.color = "#666666";
}
function setColorLinkOut(div)
{
		document.getElementById(div).style.color = "#CCCCCC";
}

//om de scroll te laten werken
/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/
var timer_id;
function scroll_iframe(frm,inc,dir) {

  if (timer_id) clearTimeout(timer_id);
  if (window.frames[frm]) {
    if (dir == "v") window.frames[frm].scrollBy(0, inc);
    else window.frames[frm].scrollBy(inc, 0);
    timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20);
  }
}

function stopScroll() { if (timer_id) clearTimeout(timer_id); }


/*einde scrollen*/

//om foto's in diashow te tone

	function OpenWin(mapNaam){
	
		DiaWin =window.open("./fotos/" + mapNaam + "/popSlide.htm", "Picture", "toolbar=no,status=no,height=480,width=640");
		DiaWin.focus();
	}
