// JavaScript Document function map_hover(el) { /* update map graphic */ var po = el*480; document.getElementById('africa_map').style.backgroundPosition = '-' + po + 'px 0'; /* update info overlay */ fadeTo('dot_details_'+el, 100, 150); /* document.getElementById("dot_details_"+el).style.display = 'block'; */ } function map_unhover(el) { document.getElementById('africa_map').style.backgroundPosition = '0 0'; fadeTo('dot_details_'+el, 0, 400); /* document.getElementById("dot_details_"+el).style.display = 'none'; */ } function map_select(country) { window.location.href = '/' + country + '/'; } function show_dot_details(el) { fadeTo('dot_details_'+el, 100, 200); } function hide_dot_details(el) { fadeTo('dot_details_'+el, 0, 200); }