
<!-- hide script from old browsers

function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}

function toggleMe(a){
var e=document.getElementById(a);
if(!e)return true;
if(e.style.display=="none"){
e.style.display="block"
}
else{
e.style.display="none"
}
return true;
}


// end hiding script from old browsers -->


   //global vars
    var map = null;
    //55.76087509090986, 12.573562860488891
    var xpos = "55.76087509090986";
    var ypos = "12.573562860488891";
    var mapdirections;

    function ShowMap() {
        var htmlstring = "<div style='width: 120px; height: 120px;'><p class='texthead'>Lector Aps</p>Ordrupvej 101<br/>2920 Charlottenlund<br/><br/>Telefon +45 44 50 21 50<br/><br/></div>";
        var ct = new GLatLng(xpos, ypos);
        map = new GMap2(document.getElementById("LectorMap"), { googleBarOptions: { suppressInitialResultSelection: true, showOnLoad: true} });
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());

        map.setCenter(ct, 15);

        var gll = new GLatLng(xpos, ypos);
        var gm = new GMarker(gll);
        GEvent.addListener(gm, "click", function() {
        gm.openInfoWindowHtml(htmlstring);
        });
        map.addOverlay(gm);
        
        // Create parking icon
        var tinyIcon = new GIcon();
        tinyIcon.image = "images/parking.png";
        tinyIcon.iconSize = new GSize(25, 25);
        tinyIcon.iconAnchor = new GPoint(6, 20);
        tinyIcon.infoWindowAnchor = new GPoint(5, 1);
        var markerOptions = { icon: tinyIcon, autoPan: false };
        //55.76053100556145, 12.573648691177368
        var gll = new GLatLng("55.76053100556145", "12.573648691177368");
        var gm = new GMarker(gll, markerOptions);
        map.addOverlay(gm);
        

        gm.openInfoWindowHtml(htmlstring);
        mapdirections = new GDirections(map, document.getElementById("panel"));
    }

    function GetDirections() {
        
        document.getElementById("LectorMap").style.width = "450px";
        document.getElementById("panel").style.visibility = "visible";
        var directionsString = "from: " + document.getElementById("findaddressBox").value + " to: " + xpos + "," + ypos;
        mapdirections.load(directionsString);
        map.checkResize();
        
    }

    function SelectAll(id) {
        document.getElementById(id).focus();
        document.getElementById(id).select();
    }

    function clickButton(e, buttonid) {
        var evt = e ? e : window.event;
        var bt = document.getElementById(buttonid);
        if (bt) {

            if (evt.keyCode == 13) {
                bt.click();
                return false;
            }
        }
    }

function printmap() {
    window.print();
}

