﻿function ToggleBlueDots() {
    // Save all markers in prop (~69)
    var prop = GMapsProperties.subgurim_GMap.overlayArray;
    // Show Buttons if they are hidden        
    // Check each markers image and show or hide it
    for (var i = 0; i < prop.length; i++) {
        if (prop[i].U[0].src == "http://maps.google.com/mapfiles/ms/micons/blue-dot.png") {
            if (prop[i].U[0].style.width == "0px") {
                prop[i].U[0].style.width = "32px";
                prop[i].U[0].style.height = "32px";
            } else {
                prop[i].U[0].style.width = "0px";
                prop[i].U[0].style.height = "0px";
            }
        }
    }
}
function ToggleRedDots() {
    // Save all markers in prop (~69)
    var prop = GMapsProperties.subgurim_GMap.overlayArray;
    // Show Buttons if they are hidden

    // Check each markers image and show or hide it
    for (var i = 0; i < prop.length; i++) {
        if (prop[i].U[0].src == "http://maps.google.com/mapfiles/ms/micons/red-dot.png") {
            if (prop[i].U[0].style.width == "0px") {
                prop[i].U[0].style.width = "40px";
                prop[i].U[0].style.height = "40px";
            } else {
                prop[i].U[0].style.width = "0px";
                prop[i].U[0].style.height = "0px";
            }
        }
    }
}
function ToggleGreenDots() {
    // Save all markers in prop (~69)
    var prop = GMapsProperties.subgurim_GMap.overlayArray;
    // Show Buttons if they are hidden
    // Check each markers image and show or hide it
    for (var i = 0; i < prop.length; i++) {
        if (prop[i].U[0].src == "http://maps.google.com/mapfiles/ms/micons/green-dot.png") {
            if (prop[i].U[0].style.width == "0px") {
                prop[i].U[0].style.width = "20px";
                prop[i].U[0].style.height = "20px";
            } else {
                prop[i].U[0].style.width = "0px";
                prop[i].U[0].style.height = "0px";
            }
        }
    }

}