/*
 * object menuKnop en methodes
 */
function menuKnop(figuur, label, alt, target){
    this.figuur = figuur;
    this.label = label;
    if (target.search(/^http/) == -1) {
        this.target = 'lnkmenu' + target;
        this.extern = false;
    }
    else {
        this.target = target;
        this.extern = true;
    }
    this.alt = alt;
    this.obj = document.getElementById(this.target);
}

menuKnop.prototype = {
    maak: function($parent){
/*        oKnop = document.createElement("img");
        oKnop.id = this.target;
        oKnop.setAttribute("title", this.label);
        oKnop.setAttribute("alt", this.alt);
        oKnop.setAttribute("class", "menuhead");
        oKnop.setAttribute("src", 'images/' + this.figuur + '.png');
 */
	oKnop = document.createElement("li");
        oKnop.id = this.target;
  	oKnop.setAttribute("class", "menuhead");
        oKnop.innerHTML = this.label;
        oKnop.menuKnop = this;
        if (this.extern) {
		oImg = oKnop;
            	oKnop = document.createElement("a");
		oKnop.setAttribute("href", this.target)
		oKnop.appendChild(oImg);
        }
        $parent.append(oKnop);
    }
}

