var oPrev;
var Prevonmouseover;
var Prevonmouseout;

function onmouseover_A(name) {
}

function onmouseout_A(name) {
}

function onclick_A(name) {

	  //var myLinkColl = document.all.tags("A")
  	  //for (i=0;i<myLinkColl.length;i++) {
	  //		myLinkColl[i].style.color='white';
   	  //}
	  //event.srcElement.style.color='#009900';
	  name = 'sub' + name;
	  var mydiv = document.getElementById(name);
	  if (mydiv == null) {
		return;
	  }
	  if (mydiv.style.display=="") {
   		  mydiv.style.display="none";
	  } else {
		var divColl = document.getElementsByTagName("DIV")
		for (i=0;i<divColl.length;i++) {
			// This code assumes that DIV's needing to be hidden have an id, and all others have not
			// As needed this criterion can be changed
			if (divColl[i].id != "") {
				if (divColl[i].id.substring(1,3) == "sub") {
					divColl[i].style.display="none";
				}
			}
		}
		mydiv.style.display="";
	  }



}

function rollover(O) {
	Opeers = O.parentNode.getElementsByTagName("TD");
	for (i=0;i<Opeers.length;i++) {
		if (Opeers[i].className != 'hoofdmenu_active') {
			Opeers[i].className = '';
		}
	}
	if (O.className != 'hoofdmenu_active') O.className = 'hoofdmenu_selected';
	O.style.cursor='hand';
}

function rollout(O) {
	//O.bgColor='';
}

function doclick(O) {
	var A = O.getElementsByTagName("A")[0];
	document.location.href=A.href;
}

function runSlideShow() {
	
	if (document.all) {

		document.getElementById('thefoto').style.filter="blendTrans(duration=3)";
		document.getElementById('thefoto').filters.blendTrans.Apply();
	}
	document.getElementById('thefoto').alt = apic[parseInt(j)];
	document.getElementById('thefoto').src = ppic[parseInt(j)];
	var url = upic[parseInt(j)];
	
	if (document.all) // MSIE
	{
		if (url)
		{
			document.getElementById('fotoreal').style.cursor = '';
			document.getElementById('fotoreal').onclick = function()
			{
				if (url.indexOf('http') != -1)
				{
					window.open(url,'klik');
				}
				else
				{
					document.location.href= url;
				}
			}
		}
		else
		{
			document.getElementById('fotoreal').style.cursor = '';
			document.getElementById('fotoreal').onclick = function()
			{
				//void();
			}
		}
	}
	else // FF
	{
		if (url)
		{
			document.getElementById('fotoinner').style.cursor = '';
			document.getElementById('fotoinner').onclick = function()
			{
				if (url.indexOf('http') != -1)
				{
					window.open(url,'klik');
				}
				else
				{
					document.location.href= url;
				}
			}
		}
		else
		{
			document.getElementById('fotoinner').style.cursor = '';
			document.getElementById('fotoinner').onclick = function()
			{
				//void();
			}
		}
	}		
	if (document.all)
	{
		document.getElementById('thefoto').filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p - 1))
	{
		 j = 0;
	}
	t = setTimeout('runSlideShow()', slideShowSpeed);
}

