                /*   function mapa(){
				   if (GBrowserIsCompatible()) {
                        map = new GMap2(document.getElementById("mapa"));
                        map.setCenter(new GLatLng(-15.780148, -47.92917), 4);
                        map.addControl(new GMapTypeControl());
                        map.addControl(new GLargeMapControl());
                        geocoder = new GClientGeocoder();
                        var baseIcon = new GIcon();
                        baseIcon.shadow = "http://www.multipark.com.br/seta.gif";
                        baseIcon.iconSize = new GSize(32, 32);
                        baseIcon.shadowSize = new GSize(32, 32);
                        baseIcon.iconAnchor = new GPoint(32, 32);
                        baseIcon.infoWindowAnchor = new GPoint(9, 2);
                        baseIcon.infoShadowAnchor = new GPoint(18, 25);
                    }
					}

                    function localizaEndereco() {
                        var endereco = document.getElementById('hfmFormulario:hitEndereco').value;
                        var cidade = document.getElementById('hfmFormulario:hsomCidade').value;
                        var local = endereco + ' - ' + cidade;

                        localizacao(local, 16);
                    }

                    function centralizaMapa(endereco, zoom) {
                        if (geocoder) {
                            geocoder.getLatLng(
                                endereco,
                                function(point) {
                                    if (point) {
                                        map.setCenter(point, zoom);
                                    }
                                }
                            );
                        }
                    }

                    function localizacao(endereco, zoom) {
                        if (geocoder) {
                            geocoder.getLatLng(
                                endereco,
                                function(point) {
                                    if (point) {
                                        map.setCenter(point, zoom);
                                        markerOptions = {icon:baseIcon};
                                        var marker = new GMarker(point);
                                        map.addOverlay(marker);
                                        marker.openInfoWindowHtml('<label style="font-family: Arial; position: relative; float: left; margin-left: 10px; margin-top: 10px; font-size: 8pt;">Seu local de destino.</label>');
                                    }
                                }
                            );
                        }
                    }

                    function createMarker(point, texto) {
                        markerOptions = { icon:baseIcon };
                        var marker = new GMarker(point, markerOptions);

                        GEvent.addListener(marker, "click", function() {
                            marker.openInfoWindowHtml('' + texto + '');
                        });

                        return marker;
                    }

                    function adicionaPonto(texto, latitude, longitude) {
                        var point = new GLatLng(latitude, longitude);
                        map.addOverlay(createMarker(point, texto));

                    }

                    function carregaMapa() {
                        for (x = 0; x < filiais.length; x++) {
                            var bufferFilial = filiais[x].split('@@');
                            var bufferLatitude = bufferFilial[0].split(' ');
                            var logradouro = bufferFilial[1];

                            adicionaPonto(logradouro, bufferLatitude[0], bufferLatitude[1]);
                        }
                    }

             
*/

function o(l){
        var b = document.getElementById(l);
        if (b.style.display != 'block'){
  document.getElementById(l).style.display = 'block';
        }else{
             document.getElementById(l).style.display = 'none';
        }
}


function mapa(local)
{
 local = unescape(local);
 //alert(local);
// var mapa = new GMap2(document.getElementById("rat_player"));
// mapa.addControl(new GSmallMapControl());


/*
 var blueIcon = new GIcon(G_DEFAULT_ICON);
 blueIcon.image = "http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png";

 markerOptions = { icon:blueIcon };

 //var point = new GLatLng(,);


*/
geocoder = new GClientGeocoder();
geocoder.getLocations(local, function (response) {
			if (response && response.Status.code == 200) {
				place = response.Placemark[0];
				point = new GLatLng(place.Point.coordinates[1],
									place.Point.coordinates[0]);
				marker = new GMarker(point);
				
				map = new GMap2(document.getElementById("mapa"));
				map.setCenter(point, 15);
				map.addControl(new GSmallMapControl());
//				map.addControl(new GMapTypeControl());
				
				map.clearOverlays();
				
				map.addOverlay(marker);
				//marker.openInfoWindowHtml('<small style="font-family:Arial"><strong>' + title + '</strong><br />' + place.address + '</small>');
			}
			else
			{
				document.getElementById("mapa").style.height="20px"; 
				document.getElementById("mapa").innerHTML ="<strong style=\"color:red\">Endereço não encontrado</strong>";
				
			}
		});

}

startList = function() {
        if (document.all&&document.getElementById) {
			
			
			
                navRoot = document.getElementById("menu");
                for (i=0; i<navRoot.childNodes.length; i++) {
                        node = navRoot.childNodes[i];
                        if (node.nodeName=="LI") {
                                node.onmouseover=function() {
                                        this.className+=" over";
                                }
                                node.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                }
                        }
                }
        }
}
window.onload=startList;
