document.write("<style>\n");
document.write("div div#bubble ul li {\n");
document.write("	display:none;\n");
document.write("}\n");
document.write("div div#bubble ul {\n");
document.write("	padding:0;height:30px;\n");
document.write("}\n");
document.write("div div#bubble p {\n");
document.write("	padding-bottom:0\n");
document.write("}\n");
document.write("div div#bubble select {\n");
document.write("	margin:0 20px; font-size:90%;width:190px\n");
document.write("}\n");
document.write("</style>\n");



mtLibAddEvent(function(){
	createSelect();
}, "load");

function createSelect(){
	if(!document.getElementById("dynSelect")) return;
	var a = document.getElementById("dynSelect").getElementsByTagName("a");
	var sHTML = "";
	sHTML += "<select onchange=\"self.location = this[this.selectedIndex].value\">"
	sHTML += "<option value=\"\">Please select</option>";
	for(var i=0; i<a.length; i++){
		sHTML += "<option style=\"margin:.2em 0\" value=" + a[i].href + ">" + a[i].innerHTML + "</option>";
	};
	sHTML += "</select>";
	document.getElementById("dynSelect").innerHTML = sHTML;
}

document.write("<style type=\"text/css\">");
document.write("	#peopleSearch form fieldset select.multiple {");
document.write("		display:none;");
document.write("	}");
document.write("</style>");

function selectSpecialism(){
	var oSpecialisms 	= document.getElementById("fSpecialisms");
	var aSpecialisms 	= [];
	aSpecialisms[0] 	= "fBusinesses";
	aSpecialisms[1] 	= "fIndividuals";
	
	for(var i = 0, j = aSpecialisms.length; i < j; i++){
		if(oSpecialisms.options[oSpecialisms.options.selectedIndex].value == aSpecialisms[i]){
			document.getElementById("" + aSpecialisms[i] + "").style.display = 'block';
		}else{
			document.getElementById("" + aSpecialisms[i] + "").style.display = 'none';
		};
	};
};

