var height = 20; // hoogte hoofditems
var iheight = 15; // hoogte subitems
  
var bgc = "#6699CC" // achtergrondkleur subitems
var tc = "#FFFFFF" // tekstkleur subitems  

var hbgc = "#CDCDCD" // achtergrondkleur items
var htc = "#FFFFFF" // tekstkleur items
  
var over_bgc = "#003399"; // achtergrondkleur bij muisover
var over_tc = "#FFFFFF"; // tekstkleur bij muisover
  
var width = 125

var self_menu = new Array();

function color(obj)
{
 document.getElementById(obj).style.backgroundColor = over_bgc;
 document.getElementById(obj).style.color = over_tc
}

function uncolor(obj)
{
 document.getElementById(obj).style.backgroundColor = bgc;
 document.getElementById(obj).style.color = tc
}

function recolor(obj)
{
 document.getElementById(obj).style.backgroundColor = hbgc;
 document.getElementById(obj).style.color = htc
}

function startup()
{
  document.write("<div align='right' width='100%'>\n");
  for(i=0;i<Link.length;i++)
  {
    la = Link[i].split("|");
	document.write('<a href="'+la[2]+'" class="whitelink">\n');
    if (la[0] == "0")
	{
      document.write("<div class='menu' width='125' id='menuitem" + i + "' onmouseover='color(this.id)' onmouseout='recolor(this.id)'>"+ la[1] + "</div>");
	}
	else if (la[0] == "1")
	{
	  document.write("<div class='item' width='123' id='menuitem" + i + "' onmouseover='color(this.id)' onmouseout='uncolor(this.id)'>"+ la[1] + "</div>");
	}
	else
	{
	  document.write("<div class='item2' width='123' id='menuitem" + i + "' onmouseover='color(this.id)' onmouseout='uncolor(this.id)'>"+ la[1] + "</div>");
//	  document.write("<div class='item2' width='123' id='menuitem" + i + "' onmouseover='color(this.id)' onmouseout='uncolor(this.id)'><table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'>::&nbsp;</td><td>" + la[1] + "</td></tr></table></div>");
	}
	document.write("</a>\n");
  }
  document.write("</div>\n");
}
