function button( menuID)
{
 document.getElementById("menuImage0").style.display = "none";
 document.getElementById("menuImage1").style.display = "none";
 document.getElementById("menuImage2").style.display = "none";
 document.getElementById("menuImage3").style.display = "none";
 mi = document.getElementById("menuImage"+menuID);
 mi.style.display = "block";
}
function menu( menuID)
{
 frm = document.subForm;
 switch ( menuID) {
  case 0:
   frm.action = "getdoc.php?"+Math.random();
	 frm.fName.value = "welkom.html";
	 frm.submit();
	 break;
  case 1:
   frm.action = "getdoc.php?"+Math.random();
	 frm.fName.value = "webapplicaties.html";
	 frm.submit();
	 break;
  case 2:
   frm.action = "getdoc.php?"+Math.random();
	 frm.fName.value = "msaccess.html";
	 frm.submit();
	 break;
  case 3:
   frm.action = "getdoc.php?"+Math.random();
	 frm.fName.value = "portfolio.html";
	 frm.submit();
	 break;
 }
}

function doResize()
{
 bs = document.getElementById("bSize");
 db = document.getElementById("dataBody");
 nb = document.getElementById("newsBody");
 nt = document.getElementById("newsTitle");
 mn = document.getElementById("menu");
 lg = document.getElementById("logo");
 st = document.getElementById("statics");

 it = eval((bs.offsetHeight - 593)/2);
 il = eval((bs.offsetWidth - 1000)/2);

 mt = eval(it + 165);
 ml = eval(il + 45);
 db.style.top = mt+"px";
 db.style.left = ml+"px";
 db.style.visibility = "visible";

 mt = eval(it + 122);
 ml = eval(il + 35);
 mn.style.top = mt+"px";
 mn.style.left = ml+"px";
 mn.style.visibility = "visible";

 mt = eval(it + 175);
 ml = eval(il + 705);
 nb.style.top = mt+"px";
 nb.style.left = ml+"px";
 nb.style.visibility = "visible";

 mt = eval(it + 123);
 ml = eval(il + 705);
 nt.style.top = mt+"px";
 nt.style.left = ml+"px";
 nt.style.visibility = "visible";

 mt = eval(it + 40);
 ml = eval(il + 700);
 lg.style.top = mt+"px";
 lg.style.left = ml+"px";
 lg.style.visibility = "visible";

 mt = eval(it + 10);
 ml = eval(il + 10);
 st.style.top = mt+"px";
 st.style.left = ml+"px";
 st.style.visibility = "visible";

}

function showImage( imageName, imageComment)
{
 window.open("showimage.php?foto="+imageName+"&comment="+imageComment,"","status=no,toolbar=no,menubar=no,location=no,directories=no,resizable=no,width=1000,height=700");
}

function startNews()
{
 pf1 = document.getElementById("NB1");
 pf2 = document.getElementById("NB2");

 pf1.style.top = 0+"px";
 pf2.style.top = eval( pf1.offsetHeight)+"px";

 scrollNews();
}
function scrollNews()
{
 pf1 = document.getElementById("NB1");
 pf2 = document.getElementById("NB2");

 pf1T = pf1.offsetTop - 1;
 pf1H = pf1.offsetHeight;
 if (  pf1T + pf1H <= 0) {
  pf1T = 0;
 }

 pf1.style.top = eval(pf1T)+"px";
 pf2.style.top = eval( pf1T + pf1H)+"px";

 window.setTimeout( "scrollNews()", 200);
}
