/*************************************************\
* code for Google style info balloons             * 
\*************************************************/
function searchDirections(loc1, loc2)
{
    if (loc1 == "" || loc2 == "") return;

    var query = new Array();
    query[query.length] = "http://maps.google.com/maps?";

    query[query.length] = "&saddr=";       
    query[query.length] = loc1;

    query[query.length] = "&daddr=";
    query[query.length] = loc2;

    window.open(query.join(""),'','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}

function directionsSearch(loc1, loc2, dmy)
{
    if (loc1 == "" || loc2 == "") return;

    var query = new Array();
    query[query.length] = "http://maps.google.com/maps?";

    query[query.length] = "&saddr=";       
    query[query.length] = loc1;

    query[query.length] = "&daddr=";
    query[query.length] = loc2;

    window.open(query.join(""),'','scrollbars=yes,menubar=yess,height=600,resizable=yes,toolbar=yes,location=yes,status=yes');
}
// These stubs are here to make localinfo.xsl work with minimal changes
// or you can change:  javascript:_m.map.infoWindowNavigate(iwOnLoadFrom, 'from')
// to javascript:_m.map.infoWindowNavigate(null, 'from')
// and the same with "to", and get rid of these.

function iwOnLoadTo() {
}

function iwOnLoadFrom() {
}
