var combodropimage_fundselect='/gsam/img/selectBoxes/handle4.gif' //path to "drop down" image
var combozindex=100
var ver = navigator.appVersion;

if (ver.indexOf("MSIE") != -1){
	var combodropoffsetY=-14 //offset of drop down menu vertically from default location (in px)
}
else{
	var combodropoffsetY=0 //offset of drop down menu vertically from default location (in px)
}

if (combodropimage_fundselect!="")
	combodropimage_fundselect='<img class="downimage_fundselect" src="'+combodropimage_fundselect+'" title="Select an option" />'

function dhtmlFundSelect(selectid, selectwidth, optionwidth){
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="dhtmlFundSelect">'+selectbox.title+" "+combodropimage_fundselect+'<div class="dropdown">')
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	document.write('</div></div>')
	selectbox.style.display="none"
	var dhtmlFundSelectbox=document.getElementById("dhtml_"+selectid)
	dhtmlFundSelectbox.style.zIndex=combozindex
	combozindex--
	if (typeof selectwidth!="undefined")
		dhtmlFundSelectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlFundSelectbox.getElementsByTagName("div")[0].style.width=optionwidth
	dhtmlFundSelectbox.getElementsByTagName("div")[0].style.top=dhtmlFundSelectbox.offsetHeight-combodropoffsetY+"px"
	if (combodropimage_fundselect!="")
		dhtmlFundSelectbox.getElementsByTagName("img")[0].style.left=dhtmlFundSelectbox.offsetWidth+3+"px"
	dhtmlFundSelectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlFundSelectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}
