You are here

Contact Us

<?php print t("Address") ; ?>
<?php print variable_get('contacts_address', "Avenida da Liberdade Nº15S. Brás de AlportelAlgarvePortugal8150-101");?>

<?php print t("Contact") ; ?>
Email: "><?php print variable_get('contacts_email', "info@amoita.com") ;?>
Telephone: <?php print variable_get('contacts_phone', "(+351) 289 843137"); ?>
Fax: <?php print variable_get('contacts_fax', "(+351) 289 845645"); ?>

<?php print t("Email Us") ; ?>
<?php print node_view(node_load(382),$teaser = FALSE, $page = TRUE, $links = TRUE); ?>

<?php print t("Get To Us") ; ?>

<?php print t("Your adress");?> " />

 
 

var gdir;
var geocoder = null;
var addressMarker;

function setDirections(fromAddress, toAddress, locale) {
gdir.load("from: " + fromAddress + " to: " + toAddress,
{ "locale": locale });
}
function onGDirectionsLoad(){
// Use this function to access information about the latest load()
// results.

// e.g.
// document.getElementById("getStatus").innerHTML = gdir.getStatus().code;
// and yada yada yada...
}

function handleErrors(){
if (gdir.getStatus().code == G_GEO_UNKNOWN_ADDRESS)
alert("Morada não encontrada.\n Exemplo de pesquisa: Rua , Localidade , Cod. Postal (4 digitos).\nErro: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_SERVER_ERROR)
alert("Erro.\n Erro: " + gdir.getStatus().code);

else if (gdir.getStatus().code == G_GEO_MISSING_QUERY)
alert("Introduza uma morada.\n Erro: " + gdir.getStatus().code);

// else if (gdir.getStatus().code == G_UNAVAILABLE_ADDRESS) <--- Doc bug... this is either not defined, or Doc is wrong
// alert("Erro.\n Erro: " + gdir.getStatus().code);

else if (gdir.getStatus().code == G_GEO_BAD_KEY)
alert("The given key is either invalid or does not match the domain for which it was given. \n Erro: " + gdir.getStatus().code);

else if (gdir.getStatus().code == G_GEO_BAD_REQUEST)
alert("Morada não encontrada.\n Erro: " + gdir.getStatus().code);

else alert("Erro.");

}

if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.03,-7.971847), 12);
map.addOverlay(new GMarker(new GLatLng(37.03,-7.971847)));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());

gdir = new GDirections(map, document.getElementById("directions"));
GEvent.addListener(gdir, "load", onGDirectionsLoad);
GEvent.addListener(gdir, "error", handleErrors);

}