		function dropdownbox (id)
		{
			this.object 	= id + "-select";
			this.replace 	= id;
			this.li			= Array();
			this.open		= false;
			this.opened = function ()
			{
				return this.open;
				
			}
			this.onmouseclick = function ()
			{
				
				if (this.open)
				{
					this.replace.id = id;
					this.open = false;
				}
				
			}
			this.init	= function ()
			{
				this.object 	= document.getElementById(this.object);
				this.replace	= document.getElementById(this.replace);
				this.replace.onmouseover = this.object.onmouseover;
				this.replace.onmouseout = this.object.onmouseout;
				var This = this;
				this.replace.onclick = function ()
				{
					if (!This.open)
					{
						This.replace.id = id + "-opened";
						setTimeout(function () { This.open = true; }, 20);
					}
					else
					{
						This.object.onchange();
						
					}
				}
				this.object.style.display ="none";
				this.hideall();
			};
			this.hideall	= function ()
			{
				for (var i =0; i < this.object.options.length; i++)
				{
					var li = document.createElement("li");
					var This = this;
					if (this.object.options[i].selected)
						li.className	= "Selected";
					else
						li.className	= "Unselected";
					li.innerHTML 		= this.object.options[i].innerHTML;
					li.id				= i;
					li.onmouseover		= this.object.options[i].onmouseover;
					li.onmouseout		= this.object.options[i].onmouseout;
					li.onclick	=function ()
					{
						
						This.object.selectedIndex = this.id;
						for (var i =0; i < This.object.options.length; i++)
						{
							This.li[i].className = "Unselected";
						}
						This.li[this.id].className = "Selected";
						
					};
					this.li[i] = li;
					this.replace.appendChild(li);
				}
			};
			this.init();
		}
