
  map_blank = new Image;
  map_blank.src = "../images/maps/map.blank.gif";
  
  var array_uk = ["seg.uk.scotland.gif", "seg.uk.northeast.gif", "seg.uk.yorkshire.gif", "seg.uk.northwest.gif", "seg.uk.eastmidlands.gif", "seg.uk.westmidlands.gif", "seg.uk.wales.gif", "seg.uk.east.gif", "seg.uk.london.gif", "seg.uk.southeast.gif", "seg.uk.southwest.gif", "seg.uk.nireland.gif", "seg.uk.ireland.gif", "seg.uk.england.gif"];
  var array_lon = ["seg.london.north.gif", "seg.london.northwest.gif", "seg.london.southeast.gif", "seg.london.west.gif", "seg.london.southwest.gif", "seg.london.central.gif", "seg.london.east.gif", "seg.london.back.gif"];
  
  for (var i=1; i<=array_uk.length; i++) {
    eval ("map_uk_" + i + " = new Image");
    eval ("map_uk_" + i + ".src = \"../images/maps/" + array_uk[i - 1] + "\"");      
  }
  
  for (var i=1; i<=array_lon.length; i++) {
    eval ("map_lon_" + i + " = new Image");
    eval ("map_lon_" + i + ".src = \"../images/maps/" + array_lon[i - 1] + "\"");       
  }

  function map_over(element, map, region) {
	
    eval("document.getElementById(\"map_copy\").src=map_" + map + "_" + region + ".src");
    
    /*
    new Tip($(element), {
      ajax: {
        url: '../ajax/maps/index/?map=' + map + '&region=' + region
      },
      style: 'map',
      hook: { tip: 'topLeft', mouse: true },
      hideOthers: true
    });
        
    */
    
    /*
    new Tip($(element), 'content', {
      title: 'This tooltip has a title',
      style: 'protoblue',
      stem: 'topLeft',
      hook: { tip: 'topLeft', mouse: true },
      hideOthers: true
    });
    
    */
     
    //var tip_array = new Array("Scotland", "North East England", "North West England", "Yorkshire and the Humber", "East Midlands", "West Midlands", "Wales", "East of England", "Greater London", "South East England", "South West England", "Northern Ireland", "Republic of Ireland");
    //var tip_text = tip_array[region - 1];
    
    //*Tip(tip_text, BGCOLOR, "#ffffff", BORDERCOLOR, "#000000", DELAY, 200, FONTCOLOR, "#000000", FONTFACE, "Arial, Helvetica, sans-serif", FONTSIZE, "12px", OPACITY, 90);
  	
  }

  function map_out() {
    
    document.map_copy.src = map_blank.src;
    
  }
  
  function map_change(id) {
    
    Tips.hideAll()
    
    var map_index = document.getElementById("map_index");
    
    map_index.style.backgroundImage = "url(\"../images/maps/map." + id + ".gif\")";
    map_index.innerHTML = "<img src=\"../images/maps/map.blank.gif\" alt=\"\" name=\"map_copy\" width=\"320\" height=\"391\" usemap=\"#map_" + id + "\" id=\"map_copy\" />";
    
  }