function showLeftMenuSubs(p_sWhich)
{
	var oSubMenus = document.getElementById ('sub_'+p_sWhich);
	oSubMenus.className='linker_menu_subs_over';

//	for (var i = 0; i < oSubMenus.childNodes.length; i++)
//	{
//		var child = oSubMenus.childNodes [i];
//		if (child.tagName == 'DIV')
//		{
//			child.onmouseover = function (e) { this.id ='linker_menu_sub_item_over'; 	};
//			child.onmouseout = function (e)  { this.id ='linker_menu_sub_item'; 	};
//		}
//	}
}

function hideLeftMenuSubs(p_sWhich)
{
	var oSubMenus = document.getElementById ('sub_'+p_sWhich);
	oSubMenus.className='linker_menu_subs';
}
		

var lasthoofdcat = undefined;

function activate_leftmenu()
{
  var oSubMenus = document.getElementById ('linker_menu');

  for (var i = 0; i < oSubMenus.childNodes.length; i++)
  {
	  var child = oSubMenus.childNodes [i];
	 
	  if (child.tagName == 'DIV' && (child.className=='linker_menu_item' || child.className=='linker_menu_item_over') )
	  {

			
			child.onmouseover = function (e) {
						if (!document.getElementById ('sub_' + this.id))
						 this.className = "linker_menu_item_over_no_subs"; 						
						else
						 this.className = "linker_menu_item_over"; 

						lasthoofdcat=this
						
	
						};
			child.onmouseout = function  (e) 
			{
				lasthoofdcat = this;
		  		if ( showntab==undefined ) {
					this.className = "linker_menu_item"; 
					this.style.behavior = "url(/js/iepngfix.htc)";
					
				}
				
				
			};
	  }		  	
	 // if (child.className == 'linker_menu_item')
		// child.style.behavior = "url(/js/iepngfix.htc)";
  }
  
  

 // activate_hardloopschoenen();
}

function showhoofdcatmouseover()
{
	
}

var showntab = undefined;
var tabtimer = undefined;

function showtab(tab)
{
	cleardelayhidetab();
	if ( showntab!=undefined && tab!=showntab ) hidetab();
	document.getElementById(tab).style.display='block';
	showntab = tab;
}

function hidetab()
{
	// document.getElementById("laatste").innerHTML = lasthoofdcat.id;
	cleardelayhidetab();
	if ( lasthoofdcat!=undefined ) 
	{
			lasthoofdcat.className = "linker_menu_item";
			lasthoofdcat = undefined;
	}
	if ( showntab!=undefined ) document.getElementById(showntab).style.display='none';
	showntab = undefined;
}

function delayhidetab()
{
	cleardelayhidetab();
	tabtimer = setTimeout(hidetab,1);	
}

function cleardelayhidetab()
{
	if (tabtimer)
	{
		clearTimeout(tabtimer);
		tabtimer = undefined;
	}
}


//var bk = document.onmousemove;
//document.onmousemove = move;
//
//function move(e)
//{
//  if (!e)
//  e = event
//  
//  alert(e.target.currentTarget);
//  if (e.target.currentTarget == 'linker_menu')
//   hidetab();
 //  bk();
//}

