function dropMenu(width,layer,left,top,img1,img2,img3) {
	if (layer == undefined) layer = 1;
	this.obj = document.createElement("div");
	this.obj.style.display = "none";
	this.obj.style.position = "absolute";
	this.obj.style.left = left + "px";
	this.obj.style.top = top + "px";
	this.obj.style.zIndex = layer;
	this.obj.style.width = width + "px";
	this.arrayText = new Array();
	this.arrayLink = new Array();
	this.obj1 = document.createElement("div");
	this.obj2 = document.createElement("div");
	this.obj3 = document.createElement("div");
	this.obj4 = document.createElement("div");
	this.obj1.style.backgroundImage = "url(" + img1 + ")";
	this.obj1.style.backgroundRepeat = "no-repeat";
	this.obj1.style.backgroundPosition = "left top";
	this.obj2.style.backgroundImage = "url(" + img3 + ")";
	this.obj2.style.backgroundRepeat = "no-repeat";
	this.obj2.style.backgroundPosition = "left bottom";
	this.obj3.style.backgroundImage = "url(" + img2 + ")";
	this.obj3.style.backgroundRepeat = "no-repeat";
	this.obj3.style.backgroundPosition = "0px 44px";
	pad = document.createElement("div");
	pad.style.padding = "10px";
	obj6 = document.createElement("div");
	obj6.style.height = "6px";
	obj7 = document.createElement("div");
	obj7.style.height = "6px";
	//this.obj3.style.backgroundColor = "#ff0000";
	this.obj.appendChild(this.obj1);
	this.obj1.appendChild(this.obj2);
	this.obj2.appendChild(obj6);
	this.obj2.appendChild(this.obj3);
	this.obj2.appendChild(obj7);
	this.obj3.appendChild(pad);
	pad.appendChild(this.obj4);
	document.body.appendChild(this.obj);
}

dropMenu.prototype.addLink = function(text,lnk,style,target) {
	objNow = document.createElement("div");
	if (style != undefined) objNow.className = style;
	if (target == undefined) objNow.innerHTML = "<a href=\"" + lnk + "\">" + text + "</a>";
	else objNow.innerHTML = "<a href=\"" + lnk + "\" target=\"" + target + "\">" + text + "</a>";
	this.obj4.appendChild(objNow);
}

dropMenu.prototype.addArrayLink = function(arrText,arrLink,style) {
	for (i = 0;i < arrText.length;i++) {
		this.addLink(arrText[i],arrLink[i],style);
	}
}

dropMenu.prototype.appear = function(bAppear) {
	if (bAppear == undefined) bAppear = true;
	if (bAppear) this.obj.style.display = "";
	else this.obj.style.display = "none";
}

