// JavaScript Document
// Copyright 2006-2007 javascript-array.com

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;
var backColor = 0;
var textColor =0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
	

	// get new layer and show it
	ddmenuitem = document.getElementById(id);	
	ddmenuitem.style.visibility = 'visible';
	

	
}
function setbackgroundcolor(color , Actief){	
	// delete background color
	if(backColor){
		backColor.style.backgroundColor="";
		backColor.style.color='#666666';
	}
	// Set new backgroundcolor	
	
	backColor = document.getElementById(color);
	backColor.style.color='#FFFFFF';
	backColor.style.backgroundColor="#6D0C3D";
	//backColor.style.color="#6D0C3D";
	
}

// close showed layer

function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
	if(backColor){
		backColor.style.backgroundColor="";
		backColor.style.color='#666666';
	}
}

// go close timer
function mclosetime(textC)
{	
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out


