// JavaScript Document

	function fixIeDropDown(select){

		var select = (typeof select == "string") ? document.getElementById(select) : select;

		// THIS FUNCTION IS ONLY CONCERNED WITH INTERNET EXPLORER NON-MULTIPLE SELECT NODES THAT HAVE A SPECIFIC WIDTH DEFINED
		if(!select.attachEvent || navigator.userAgent.indexOf("Opera") > -1 || select.multiple || select.currentStyle.width == "auto") { return; }

		var body = document.getElementsByTagName("body").item(0);

		var si = select.selectedIndex;

		var clone = select.cloneNode(true);
		clone.style.position = "absolute";
		clone.style.visibility = "hidden";
		clone.style.width = "auto";
		body.appendChild(clone);

		clone._initialOffsetWidth = select.offsetWidth;
		clone._initialOffsetHeight = select.offsetHeight;
		clone._autoWidth = clone.offsetWidth;

		clone = body.removeChild(clone);
		clone.style.visibility = "visible";
		clone.style.width = clone._initialOffsetWidth + "px";

		var span = document.createElement("span");
		span._isIeDropDownContainer = true;
		span.style.position = "relative";
		span.style.width = clone._initialOffsetWidth + "px";
		span.style.height = clone._initialOffsetHeight + "px";
		span.style.marginBottom = "-4"; //hmm...quirky...
		span.appendChild(clone);

		if (select.parentNode._isIeDropDownContainer){
			select.parentNode.parentNode.replaceChild(span, select.parentNode);
		}else{
			select.parentNode.replaceChild(span, select);
		}

		if (clone._autoWidth > clone._initialOffsetWidth){
			var expand = function(){
				event.srcElement.parentNode.style.zIndex = 1;
				event.srcElement.style.width = "auto";
				if (event.srcElement.offsetWidth > event.srcElement._initialOffsetWidth){
					event.srcElement.style.width = "auto";
				}else{
					event.srcElement.style.width = event.srcElement._initialOffsetWidth + "px";
				}
			};
			var contract = function(){
				event.srcElement.parentNode.style.zIndex = 0;
				event.srcElement.style.width = event.srcElement._initialOffsetWidth + "px";
			};
			clone.attachEvent("onactivate", expand);
			clone.attachEvent("ondeactivate", contract);
		}
		clone.selectedIndex = si;
	}

	window.onload = function(){
		fixIeDropDown("techspecs-dropdown");
	};

