treenode.prototype.moveUp = function(){
	if(this.getPreviousSibling()){
		
		this.parentNode.oNodeChilds.insertBefore(this.oNode,this.getPreviousSibling());  
		
		if(this.opened){
			this.oNode.oNodeImg.src = treeConfig.tMinusIcon;
			this.oNode.style.backgroundImage = 'url(' + treeConfig.iIcon + ')';
		}else{
			if(this.src || this.oNode.oNodeChilds.childNodes.length){
				this.oNode.oNodeImg.src = treeConfig.tPlusIcon;
			}else{
				this.oNode.oNodeImg.src = treeConfig.tIcon;
			}
		}
		
		// controleren of de volgende node de laatste wordt na een moveup van deze node
		// door te controleren op een nextSibling() van de volgende node
		// zoja dan moet die de L splitsing krijgen (else gedeelte)
		if(this.getNextSibling().obj.getNextSibling()){
			if(this.getNextSibling().obj.opened){
				this.getNextSibling().oNodeImg.src = treeConfig.tMinusIcon;
			}else{
				if(this.getNextSibling().obj.src || this.getNextSibling().oNodeChilds.childNodes.length){
					this.getNextSibling().oNodeImg.src = treeConfig.tPlusIcon;
				}else{
					this.getNextSibling().oNodeImg.src = treeConfig.tIcon;
				}
			}
		}else{
			if(this.getNextSibling().obj.opened){
				this.getNextSibling().oNodeImg.src = treeConfig.lMinusIcon;
				this.getNextSibling().style.backgroundImage = 'url()';
			}else{
				if(this.getNextSibling().obj.src || this.getNextSibling().oNodeChilds.childNodes.length){
					this.getNextSibling().oNodeImg.src = treeConfig.lPlusIcon;
				}else{
					this.getNextSibling().oNodeImg.src = treeConfig.lIcon;
				}
			}
		}
	}
}
	
treenode.prototype.moveDown = function(){
	if(this.getNextSibling()){
		
		this.parentNode.oNodeChilds.insertBefore(this.getNextSibling(),this.oNode);  
												
		if(this.opened){
			if(this.getNextSibling()){
				this.oNode.oNodeImg.src = treeConfig.tMinusIcon;
			}else{
				this.oNode.oNodeImg.src = treeConfig.lMinusIcon;
				this.oNode.style.backgroundImage = 'url()';
			}
		}else{
			if(this.src || this.oNode.oNodeChilds.childNodes.length){
				if(this.getNextSibling()){
					this.oNode.oNodeImg.src = treeConfig.tPlusIcon;
				}else{
					this.oNode.oNodeImg.src = treeConfig.lPlusIcon;
				}
			}else{
				if(this.getNextSibling()){
					this.oNode.oNodeImg.src = treeConfig.tIcon;
				}else{
					this.oNode.oNodeImg.src = treeConfig.lIcon;
				}
			}
		}
		
		// vorige node updaten
		if(this.getPreviousSibling().obj.opened){
			this.getPreviousSibling().oNodeImg.src = treeConfig.tMinusIcon;
			this.getPreviousSibling().style.backgroundImage = 'url(' + treeConfig.iIcon + ')';
		}else{
			if(this.getPreviousSibling().obj.src || this.getPreviousSibling().oNodeChilds.childNodes.length){
				this.getPreviousSibling().oNodeImg.src = treeConfig.tPlusIcon;
			}else{
				this.getPreviousSibling().oNodeImg.src = treeConfig.tIcon;
			}
		}
	}
}

	/* mozilla method of swapNode (needs to be implemented)
Node.prototype.swapNode = function (node) {
var nextSibling = this.nextSibling;
var parentNode = this.parentNode;
node.parentNode.replaceChild(this, node);
parentNode.insertBefore(node, nextSibling);  
}
*/