129
| <![CDATA[<script type="text/javascript">//<![CDATA[
var tstPhocaMap = document.getElementById('phocaMap');
var tstIntPhocaMap;
var mapPhocaMap;
var markersmapPhocaMap = [];
function CancelEventPhocaMap(event) {
var e = event;
if (typeof e.preventDefault == 'function') e.preventDefault();
if (typeof e.stopPropagation == 'function') e.stopPropagation();
if (window.event) {
window.event.cancelBubble = true; /* for IE */
window.event.returnValue = false; /* for IE */
}
}
function CheckPhocaMap() {
if (tstPhocaMap) {
if (tstPhocaMap.offsetWidth != tstPhocaMap.getAttribute("oldValue")) {
tstPhocaMap.setAttribute("oldValue",tstPhocaMap.offsetWidth);
if (tstPhocaMap.getAttribute("refreshMap")==0) {
if (tstPhocaMap.offsetWidth > 0) {
clearInterval(tstIntPhocaMap);
getPhocaMap();
tstPhocaMap.setAttribute("refreshMap", 1);
}
}
}
}
}
function getPhocaMap(){
if (tstPhocaMap.offsetWidth > 0) {
var phocaLatLng = new google.maps.LatLng(-19.645325830715933, -43.90469312667847);
var phocaOptions = {
zoom: 14,
center: phocaLatLng,
mapTypeControl: false,
navigationControl: false,
scaleControl: true,
scrollwheel: '',
disableDoubleClickZoom: '',
styles: '',
mapTypeId: google.maps.MapTypeId.ROADMAP
};
mapPhocaMap = new google.maps.Map(document.getElementById('phocaMap'), phocaOptions);
var phocaImagedefault2 = new google.maps.MarkerImage('/media/com_phocamaps/images/iyellow/image.png',
new google.maps.Size(26,30),
new google.maps.Point(0,0),
new google.maps.Point(5,30));
var phocaImageShadowdefault2 = new google.maps.MarkerImage('/media/com_phocamaps/images/iyellow/shadow.png',
new google.maps.Size(41,30),
new google.maps.Point(0,0),
new google.maps.Point(5,30));
var phocaImageShapedefault2 = {
coord: [18,1,19,2,21,3,23,4,24,5,24,6,24,7,24,8,23,9,23,10,22,11,22,12,21,13,20,14,20,15,19,16,19,17,18,18,17,19,18,20,20,21,22,22,22,23,22,24,22,25,18,26,15,27,12,28,8,29,4,29,4,28,3,27,3,26,3,25,3,24,3,23,2,22,2,21,2,20,2,19,2,18,1,17,1,16,1,15,1,14,1,13,1,12,1,11,9,10,10,9,10,8,11,7,11,6,12,5,12,4,13,3,14,2,14,1],
type: 'poly'
};
var phocaPoint7 = new google.maps.LatLng(-19.645145215721136, -43.90492916107178);
var markerPhocaMarker7 = new google.maps.Marker({
title:"Centro Administrativo",
icon:phocaImagedefault2,
shadow:phocaImageShadowdefault2,
shape:phocaImageShapedefault2,
position: phocaPoint7,
map: mapPhocaMap
});
var infoPhocaWindow7 = new google.maps.InfoWindow({
content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">Centro Administrativo</div><div><p>Av. Acadêmico Nilo Figueiredo, nº 2.500, <br />Santos Dumont, Lagoa Santa / MG<br />CEP: 33.239-310.</p><p>Telefone: (31) 3688-1300.</p><p>* Recepção pela Loja 28, com entrada <br />voltada para a Rua Coronel Durões.</p></div>'
});
google.maps.event.addListener(markerPhocaMarker7, 'click', function() {
infoPhocaWindow7.open(mapPhocaMap, markerPhocaMarker7 );
});
google.maps.event.trigger(markerPhocaMarker7, 'click');
}
}
function initMap() {
tstPhocaMap.setAttribute("oldValue",0);
tstPhocaMap.setAttribute("refreshMap",0);
tstIntPhocaMap = setInterval("CheckPhocaMap()",500);
}
function initMaps() {
initMap();
}
//]]></script>]]>
|