function hover(p, img, tditem, imgitem, submenu)
{
	var p
    if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    } else if (p == "luchtvaart") {
			document.getElementById(tditem).style.background = "url('gfx/luchtvaart_menu_pointer.jpg') no-repeat bottom center";
    }

	document.getElementById(imgitem).src = 'gfx/'+p+'_menu_item'+img+'_hover.jpg';
  document.getElementById(submenu).style.display = "block";
  
}

function restore(p, img, tditem, imgitem, submenu)
{
	var p
    if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('') no-repeat bottom center";
    }

	document.getElementById(imgitem).src = 'gfx/'+p+'_menu_item'+img+'.jpg';
  document.getElementById(submenu).style.display = "none";
  
}

function base(p, img, tditem, imgitem, submenu)
{
	var p
    if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    }

	document.getElementById(imgitem).src = 'gfx/'+p+'_menu_item'+img+'_hover.jpg';
  document.getElementById(submenu).style.display = "none";
  
}

function base_start(tditem, img, p, imgitem)
{
	var p
    if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    }

	document.getElementById(imgitem).src = 'gfx/'+p+'_menu_'+img+'_hover.jpg';
}

function showsub(submenu, p, img, tditem, imgitem)
{
	var p
    if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    }

	document.getElementById(imgitem).src = 'gfx/'+p+'_menu_item'+img+'_hover.jpg';
  document.getElementById(submenu).style.display = "block";
}

function hidesub(submenu, p, img, tditem, imgitem)
{
	var p
    if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('') no-repeat bottom center";
    }

	document.getElementById(imgitem).src = 'gfx/'+p+'_menu_item'+img+'.jpg';
  document.getElementById(submenu).style.display = "none";
}

function basesub(submenu, p, img, tditem, imgitem)
{
	var p
    if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(tditem).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    }

	document.getElementById(imgitem).src = 'gfx/'+p+'_menu_item'+img+'_hover.jpg';
  document.getElementById(submenu).style.display = "none";
}

/*function hover(td, img, p, submenu)
{
	var p
	document.getElementById(img).src = 'gfx/'+p+'_menu_'+img+'_hover.jpg';
  	if (p == "mmt") {
			document.getElementById(td).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(td).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    }
  document.getElementById(submenu).style.display = "block";
}

function base(td, img, p)
{
	var p
	document.getElementById(img).src = 'gfx/'+p+'_menu_'+img+'_hover.jpg';
  	if (p == "mmt") {
			document.getElementById(td).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(td).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    }
}

function base_sub(td, item, img, p)
{
	var p
	document.getElementById(img).src = 'gfx/'+p+'_menu_'+img+'_hover.jpg';
  	if (p == "mmt") {
			document.getElementById(td).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(td).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    }
  document.getElementById('submenu_'+item).style.display = "none";
}

function normal(td, img, p)
{
			document.getElementById(img).src = 'gfx/'+p+'_menu_'+img+'.jpg';
			document.getElementById(td).style.background = "url('') no-repeat bottom center";
}*/



function show_sub(item, menu, p, img)
{
  document.getElementById(item).style.display = "block";
	document.getElementById(img).src = 'gfx/'+p+'_menu_'+img+'_hover.jpg';
  var p
  	if (p == "mmt") {
			document.getElementById(menu).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    } else if (p == "mmt") {
			document.getElementById(menu).style.background = "url('gfx/mmt_menu_pointer.jpg') no-repeat bottom center";
    }
}

function hide_sub(item, menu, p, img)
{
  document.getElementById(item).style.display = "none";
	document.getElementById(menu).style.background = "url('') no-repeat bottom center";
	document.getElementById(img).src = 'gfx/'+p+'_menu_'+img+'.jpg';
}







function submenu_pointer(name)
{
			document.getElementById(name).src = 'gfx/mmt_submenu_arrow_hover.jpg';
}

function submenu_return(name)
{
			document.getElementById(name).src = 'gfx/mmt_submenu_arrow.jpg';
}