 function include_gmaps_api()
{
        var host, key;

        host = location.host;
        path = location.pathname;

        // Do you know that Google Maps API can be used in 'localhost' context?
        // It is very useful for every developer. Try it.
        if(host == 'fremdenverkehr-middels.ns8.omg.de') {
              
                        // Google Maps API key for http://localhost/my_project/trunk/foo/
                        key = 'ABQIAAAACQaUutT6wdOQigd39EABRhSZ7A314XFDkcBOJUJJzxX8PpwdWxQeHWckozs6ZCXHpjsRfirqlPr4Hw';
             
        } 
		
		else if(host == 'fremdenverkehr-middels.de') {
              
                        // Google Maps API key for http://localhost/my_project/trunk/foo/
                        key = 'ABQIAAAACQaUutT6wdOQigd39EABRhQrRyIVzvybMrRDJLmPM86drht4cxR6-plY0z-x0mPhGZT4IiTzyYAFmQ';
             
        }
		else if(host == 'www.fremdenverkehr-middels.de') {
              
                        // Google Maps API key for http://localhost/my_project/trunk/foo/
                        key = 'ABQIAAAACQaUutT6wdOQigd39EABRhRiorMSVPliEgVa9pjZPVzR94dA5BRVwbio2SelKOOZc9L5toTrOtmxBQ';
             
        }
		
        // Include Google Maps API from maps.google.com    
        document.write('<scr'+'ipt src="http://maps.google.com/maps?file=api&v=1&key='+key+'" type="text/javascript"></scr'+'ipt>');

}

// Entry point.
include_gmaps_api(); 
