function highlightZone(map, zone) {
  if (map == 'distritos') {
    var coords = new Array();
    coords[1] = 320;
    coords[2] = 640;
    coords[3] = 960;
    coords[4] = 1280;
    coords[5] = 1600;
    coords[6] = 1920;
    coords[7] = 2240;
    coords[8] = 2560;
    coords[9] = 2880;
    coords[10] = 3200;
    coords[11] = 3520;
    coords[13] = 3520;
    coords[14] = 3840;
    coords[15] = 4160;
    coords[16] = 4480;
    coords[17] = 4800;
    coords[18] = 5120;
    coords[19] = 5440;    
  }  

  $('mapContainer').setStyle({
      backgroundPosition: '0px -' + coords[zone] + 'px'
  });
}



function resetZone() {
  $('mapContainer').setStyle({
    backgroundPosition: '0 0'
  });
}

function clearCombo(oCombo) {
	while(oCombo.options.length > 0) {
		oCombo.remove(0);
		
	}
}

function addOption(oCombo, value, text) {
	var oOption 	= document.createElement("OPTION");
	oOption.text	= text;
	oOption.value	= value;
	oCombo.options.add(oOption);
}

function comboGetSelectedText(oCombo) {
	for (i = 0; i < oCombo.options.length ; i++) {
		if (oCombo.options[i].selected) {
			return oCombo.options[i].text;
		}
	}
	return null;
}

function selectItemCombo(oCombo,sValue) {
		for (i = 0; i < oCombo.options.length ; i++) {
			if (oCombo.options[i].value == sValue) {
				oCombo.options[i].selected = true;
			}
		}
}

/*function ajaxUpdater(url){
   
}*/