var key1 = 'XXXXXXXXXXXXXXXXXXXXXX';
var key2 = 'YYYYYYYYYYYYYYYYYYYYYY';

if (window.location.host == 'www.domain1.com' || window.location.host
== 'domain1.com') {
  var myKey = key1;
}
else {
  var myKey = key2;
}
var scriptTag = '<' + 'script src="http://maps.google.com/maps?
file=api&v=2&key=' + myKey + '">'+'<'+'/script>';
document.write(scriptTag);

--
Marcelo - http://maps.forum.nu
--

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to