	function popupSchoolPicker(element,seo_url,id,name) {
		school_category = document.getElementById('schoolCategory'+id);
		school_category.className = "displayNone";
		// Build the category region selection if it has never been built before
		if (!document.getElementById('categoryRegion'+id)) {
			var tmp = '';
			tmp += '<span id="categoryRegion'+id+'"><h3>'+name+'</h3><select style="width:180px;" id="categoryRegionSelect'+id+'" onchange="jumpPage(\''+seo_url+'\',\''+id+'\');"><option value="">Select a Region</option>';
			count_states_expanded = states_expanded.length;
			for (i = 0; i < count_states_expanded; i++) {
				tmp += '<option value="'+states_expanded[i][0]+'/">'+states_expanded[i][1]+'</option>';
			}
			tmp += '</select><br style="line-height:5px;"/><br style="line-height:5px;"/><select style="width:180px;" onclick="javascript:location.href=\''+('/school-listings/'+name.replace(' ','-')+'/'+id+'.php')+'\'"><option value="">Browse Featured Schools</option></select><br style="line-height:5px;"/><br style="line-height:5px;"/><select style="width:180px;" onclick="javascript:location.href=\'/'+seo_url+'/\'"><option value="">View All Regions</option></select>';
			element.innerHTML += tmp;
		} else {

			// Get the current Region selector and make sure it does not have displayNone attached to it
			document.getElementById('categoryRegion'+id).className = "";

		}


		// Get all other categories and make sure they they display the image and not the region selector
		cat_count = categoryArray.length
		for (i=1; i<cat_count; i++) {
			if (categoryArray[i] != id) {
				if (document.getElementById('schoolCategory'+categoryArray[i])) {
					document.getElementById('schoolCategory'+categoryArray[i]).className = "";
				}
				if (document.getElementById('categoryRegion'+categoryArray[i])) {
					document.getElementById('categoryRegion'+categoryArray[i]).className = "displayNone";
				}
			}
		}
		return false;		
	}
	function jumpPage(seo_url,id) {
		location.href='/'+seo_url+'/'+(document.getElementById('categoryRegionSelect'+id).value);
	}
