var map=null;
var geocoder=null;
var destination=null;
var overview=false;
var zoom=null;
function doOnload(){
var temp=destination.split("|");
destination=temp[0];
zoom=temp[1]-1;
if(destination=="overview"){
overview=true;
}
if(GBrowserIsCompatible()){
map=new GMap2(document.getElementById("map"),G_SATELLITE_MAP);
map.addControl(new GSmallZoomControl());
map.addControl(new GMapTypeControl());
if(!overview){
geocoder=new GClientGeocoder();
if(geocoder){
geocoder.getLatLng(destination,function(_a5c){
if(_a5c){
map.setCenter(_a5c,parseInt(zoom));
map.setMapType(G_NORMAL_MAP);
}
});
}
}else{
map.setCenter(new GLatLng(22.4419,-38.1419),1);
map.setMapType(G_SATELLITE_MAP);
}
}
}
function addParams(){
if(!document.getElementsByTagName){
return;
}
var _a5d=document.getElementsByTagName("a");
var _a5e=0;
for(var i=0;i<_a5d.length;i++){
var _a60=_a5d[i];
if(_a60.href.indexOf("#")>=1||_a60.getAttribute("href")==null||_a60.href.indexOf("et_cid=4&et_lid=59268")>=1){
continue;
}
if(_a60.href.indexOf("?")==-1){
_a60.href=_a60.getAttribute("href")+"?et_cid=4&et_lid=59268&et_sub="+encodeURI(filename);
_a5e++;
}else{
_a60.href=_a60.getAttribute("href")+"&et_cid=4&et_lid=59268&et_sub="+encodeURI(filename);
_a5e++;
}
}
}
