// JavaScript Document
 //<![CDATA[

 function initialize() {  
  
  if (document.getElementById("prestonmap")) {
  var prLatlng = new google.maps.LatLng(53.853408,-2.763571); 
  var prOptions = {
    zoom: 16,
    center: prLatlng,
    mapTypeId: google.maps.MapTypeId.HYBRID
  }
  var prmap = new google.maps.Map(document.getElementById("prestonmap"), prOptions);
  var prmarker = new google.maps.Marker({
      position: prLatlng, 
      map: prmap, 
      title:"Myerscough College Preston Centre"
  }); 
  
  var noentryPic = 'http://www.myerscough.ac.uk/images/layouts/icons/no-entry.gif';
  var noentryLatLng = new google.maps.LatLng(53.854754,-2.76088);
  var noentryMarker = new google.maps.Marker({
      position: noentryLatLng,
      map: prmap,
      icon: noentryPic
  });
  }
  
  if (document.getElementById("liverpoolmap")) {
  var crLatlng = new google.maps.LatLng(53.443115,-2.891252);
  var crOptions = {
    zoom: 16,
    center: crLatlng,
    mapTypeId: google.maps.MapTypeId.HYBRID
  }
  var crmap = new google.maps.Map(document.getElementById("liverpoolmap"), crOptions);
  var crmarker = new google.maps.Marker({
      position: crLatlng, 
      map: crmap, 
      title:"Myerscough College in Croxteth"
  });
  }
  
  if (document.getElementById("manchestermap")) {
  var wyLatlng = new google.maps.LatLng(53.403353,-2.281085);
  var wyOptions = {
    zoom: 16,
    center: wyLatlng,
    mapTypeId: google.maps.MapTypeId.HYBRID
  }
  var wymap = new google.maps.Map(document.getElementById("manchestermap"), wyOptions);
  var wymarker = new google.maps.Marker({
      position: wyLatlng, 
      map: wymap, 
      title:"Myerscough College in Wythenshawe"
  });  
  }
  
  if (document.getElementById("lcccmap")) {
  var lcLatlng = new google.maps.LatLng(53.455336,-2.2881);  
  var lcOptions = {
    zoom: 16,
    center: lcLatlng,
    mapTypeId: google.maps.MapTypeId.HYBRID
  }
  var lcmap = new google.maps.Map(document.getElementById("lcccmap"), lcOptions);
  var lcmarker = new google.maps.Marker({
      position: lcLatlng, 
      map: lcmap, 
      title:"Myerscough College at Lancs County Cricket Club"
  });
  }
  
  if (document.getElementById("crowmap")) {
  var cwLatlng = new google.maps.LatLng(53.802577,-2.253356);
  var cwOptions = {
    zoom: 15,
    center: cwLatlng,
    mapTypeId: google.maps.MapTypeId.HYBRID
  }
  var cwmap = new google.maps.Map(document.getElementById("crowmap"), cwOptions);
  var cwmarker = new google.maps.Marker({
      position: cwLatlng, 
      map: cwmap, 
      title:"Myerscough College at Crow Wood Equestrian Centre"
  });
  }
  
  if (document.getElementById("blackburnmap")) {
  var wiLatlng = new google.maps.LatLng(53.7413,-2.517328);
  var wiOptions = {
    zoom: 16,
    center: wiLatlng,
    mapTypeId: google.maps.MapTypeId.HYBRID
  }
  var wimap = new google.maps.Map(document.getElementById("blackburnmap"), wiOptions);
  var wimarker = new google.maps.Marker({
      position: wiLatlng, 
      map: wimap, 
      title:"Myerscough College at Witton Park"
  });
  }
  
  if (document.getElementById("roversmap")) {
  var brLatlng = new google.maps.LatLng(53.726659,-2.488254);
  var brOptions = {
    zoom: 16,
    center: brLatlng,
    mapTypeId: google.maps.MapTypeId.HYBRID
  }
  var brmap = new google.maps.Map(document.getElementById("roversmap"), brOptions);
  var brmarker = new google.maps.Marker({
      position: brLatlng, 
      map: brmap, 
      title:"Myerscough College at Blackburn Rovers Football Club"
  });
  }
  
  if (document.getElementById("dorsetmap")) {
  var lyLatlng = new google.maps.LatLng(50.710639,-2.460498);
  var lyOptions = {
    zoom: 16,
    center: lyLatlng,
    mapTypeId: google.maps.MapTypeId.HYBRID
  }
  var lymap = new google.maps.Map(document.getElementById("dorsetmap"), lyOptions);
  var lymarker = new google.maps.Marker({
      position: lyLatlng, 
      map: lymap, 
      title:"Myerscough College at Lynwood Veterinary Nursing School"
  });  
  }

  if (document.getElementById("chestergatesmap")) {
  var chLatlng = new google.maps.LatLng(53.24719,-2.932212);
  var chOptions = {
    zoom: 14,
    center: chLatlng,
    mapTypeId: google.maps.MapTypeId.HYBRID
  }
  var chmap = new google.maps.Map(document.getElementById("chestergatesmap"), chOptions);
  var chmarker = new google.maps.Marker({
      position: chLatlng, 
      map: chmap, 
      title:"Myerscough College at ChesterGates Veterinary Nursing School"
  });  
  }
    
}


//]]>

