var ie=document.all;
var nn6=document.getElementById&&!document.all;

this.openCategories = function(){
	document.getElementById("categList").style.display = "block";
};

this.changeCategory = function(str){
	document.getElementById("categList").style.display = "none";
	document.getElementById("searchCategory").value = str;
	document.getElementById("categDisplay").innerHTML = str;	
};

this.mouseUp = function(e){
	var fobj  = nn6 ? e.target : event.srcElement;
  var topelement = nn6 ? "HTML" : "BODY";	
  while (fobj.tagName != topelement && fobj.id != "categList"){
    fobj = nn6 ? fobj.parentNode : fobj.parentElement;
  };	
	if (fobj.id != "categList"){
		document.getElementById("categList").style.display = "none";
	};
}


this.showFunction = function(img){
	document.getElementById("toolFunction").innerHTML = "<img src=\""+ img +"\" alt\"\"/>";
};

this.init = function(){
};
document.onmouseup=mouseUp;
//window.onload = init;