 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 == 'www.klinikum-emden.de') {
              
                        // Google Maps API key for http://localhost/my_project/trunk/foo/
                        key = 'ABQIAAAACQaUutT6wdOQigd39EABRhS9JY6nLO0AIxQcjLFA3y3e6_A8DRQvr6cDJuAr1JiNJIIj5FyyGpYq7g';
             
        } 
		
		else if(host == 'klinikum-emden.ns7.omg.de') {
              
                        // Google Maps API key for http://localhost/my_project/trunk/foo/
                        key = 'ABQIAAAACQaUutT6wdOQigd39EABRhQxDNbc_r_M7UsI7NlN_d7FovYy4hRcCwZ437Mx8dUMP-a8qPmIPrFMww';
             
		}

        // 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(); 