
function createMarker(point,html) {
    var marker = new GMarker(point);
    GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml(html);
            });
    return marker;
}

function populateMap(){
    var map = new GMap(document.getElementById("map"));
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    map.addControl(new GScaleControl());
    map.centerAndZoom(new GPoint(-7.932129,53.429174), 10);
marker = createMarker(new GPoint(-8.5343,51.8840), "<h3>Cork Institute of Technology&nbsp;&nbsp;(CIT)</h3><ul><li>Rossa Avenue, Bishopstown, Co. Cork, Ireland.</li><li><a href=\"http://www.cit.ie\">http://www.cit.ie</a></li><li><a href=\"http://sindar.net/iuaa/results/college/2/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-6.2573,53.3825), "<h3>Dublin City University&nbsp;&nbsp;(DCU)</h3><ul><li>Dublin 9, Ireland.</li><li><a href=\"http://www.dcu.ie\">http://www.dcu.ie</a></li><li><a href=\"http://www.redbrick.dcu.ie/~athletic/\">http://www.redbrick.dcu.ie/~athletic/</a></li><li><a href=\"http://sindar.net/iuaa/results/college/3/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-6.9380,52.8200), "<h3>Institute of Technology Carlow&nbsp;&nbsp;(IT Carlow)</h3><ul><li>Kilkenny Road, Carlow, Ireland.</li><li><a href=\"http://www.itcarlow.ie\">http://www.itcarlow.ie</a></li><li><a href=\"http://www.itcarlowathletics.com/\">http://www.itcarlowathletics.com/</a></li><li><a href=\"http://sindar.net/iuaa/results/college/10/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-6.2488,53.3489), "<h3>National College of Ireland&nbsp;&nbsp;(NCI)</h3><ul><li>Mayor Street, IFSC, Dublin 1, Ireland.</li><li><a href=\"http://www.ncirl.ie\">http://www.ncirl.ie</a></li><li><a href=\"http://sindar.net/iuaa/results/college/17/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-9.0590,53.2790), "<h3>National University of Ireland Galway&nbsp;&nbsp;(NUIG)</h3><ul><li>University Road, Galway, Ireland.</li><li><a href=\"http://www.nuigalway.ie\">http://www.nuigalway.ie</a></li><li><a href=\"http://sindar.net/iuaa/results/college/18/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-6.5970,53.3800), "<h3>National University of Ireland Maynooth&nbsp;&nbsp;(NUIM)</h3><ul><li>Maynooth, Co. Kildare, Ireland.</li><li><a href=\"http://www.may.ie\">http://www.may.ie</a></li><li><a href=\"http://sindar.net/iuaa/results/college/19/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-6.2655,53.3303), "<h3>Portobello College&nbsp;&nbsp;(Portobello)</h3><ul><li>South Richmond Street, Dublin 2, Ireland.</li><li><a href=\"http://www.portobello.ie\">http://www.portobello.ie</a></li><li><a href=\"http://sindar.net/iuaa/results/college/20/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-5.9370,54.5810), "<h3>Queen's University Belfast&nbsp;&nbsp;(QUB)</h3><ul><li>University Road, Belfast BT7 1NN, Northern Ireland.</li><li><a href=\"http://www.qub.ac.uk\">http://www.qub.ac.uk</a></li><li><a href=\"http://www.qubathletics.co.uk\">http://www.qubathletics.co.uk</a></li><li><a href=\"http://sindar.net/iuaa/results/college/21/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-6.2619,53.3389), "<h3>Royal College of Surgeons in Ireland&nbsp;&nbsp;(RCSI)</h3><ul><li>123 St. Stephens Green, Dublin 2, Ireland.</li><li><a href=\"http://www.rcsi.ie\">http://www.rcsi.ie</a></li><li><a href=\"http://sindar.net/iuaa/results/college/22/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-6.2541,53.3428), "<h3>Trinity College Dublin&nbsp;&nbsp;(TCD)</h3><ul><li>Dublin 2, Ireland.</li><li><a href=\"http://www.tcd.ie\">http://www.tcd.ie</a></li><li><a href=\"http://www.tcd.ie/Clubs/DUHAC/\">http://www.tcd.ie/Clubs/DUHAC/</a></li><li><a href=\"http://sindar.net/iuaa/results/college/23/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-8.4920,51.8930), "<h3>University College Cork&nbsp;&nbsp;(UCC)</h3><ul><li>College Road, Cork, Ireland.</li><li><a href=\"http://www.ucc.ie\">http://www.ucc.ie</a></li><li><a href=\"http://www.ucc.ie/students/socs/athletic/\">http://www.ucc.ie/students/socs/athletic/</a></li><li><a href=\"http://sindar.net/iuaa/results/college/24/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-6.2220,53.3080), "<h3>University College Dublin&nbsp;&nbsp;(UCD)</h3><ul><li>Belfield, Dublin 4, Ireland.</li><li><a href=\"http://www.ucd.ie\">http://www.ucd.ie</a></li><li><a href=\"http://www.ucdac.com/\">http://www.ucdac.com/</a></li><li><a href=\"http://sindar.net/iuaa/results/college/25/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-8.5666,52.6737), "<h3>University of Limerick&nbsp;&nbsp;(UL)</h3><ul><li>Limerick, Ireland.</li><li><a href=\"http://www.ul.ie\">http://www.ul.ie</a></li><li><a href=\"http://sindar.net/iuaa/results/college/26/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-7.1390,52.2460), "<h3>Waterford Institute of Technology&nbsp;&nbsp;(WIT)</h3><ul><li>Cork Road, Waterford, Ireland.</li><li><a href=\"http://www.wit.ie\">http://www.wit.ie</a></li><li><a href=\"http://www.wit.ie/clubsandsocs/athletic/\">http://www.wit.ie/clubsandsocs/athletic/</a></li><li><a href=\"http://sindar.net/iuaa/results/college/28/\">College Details</a></li></ul>");
map.addOverlay(marker);
marker = createMarker(new GPoint(-4.2504,55.8672), "<h3>Glasgow Caledonain University&nbsp;&nbsp;(GCU)</h3><ul><li>70 Cowcaddens Road, Glasgow, United Kingdom, G4 0BA</li><li><a href=\"http://www.gcal.ac.uk/\">http://www.gcal.ac.uk/</a></li><li><a href=\"http://sindar.net/iuaa/results/college/70/\">College Details</a></li></ul>");
map.addOverlay(marker);

}

window.onload = populateMap;
