// JavaScript Document

// This writes the script tag to the page with the appropriate google maps API key based on the domain of the page being loaded.  
// Even though there are ten "domains" being called, I'm only using 4 API keys.  
// One is for devl.cms.vt.edu.  I just wanted to include the call with the port and one without.
// One is for pprd.cms.vt.edu.  Again, I wanted to include the call with a port and one without.
// Another is for ensemble.vt.edu, so people can preview the maps in the production CMS environment
// The third is offices.ext.vt.edu which, according to the documentation, works for all subdomains under that.
// This means it should work for www.offices.ext.vt.edu and even stage-cms-devl.offices.ext.vt.edu.
// Of course, I have to check each of these separately since they are technically different domains/sud-domains.

document.write(
	'<script src="http://maps.google.com/maps?file=api&v=2&key=' +
    {
    	'devl.cms.vt.edu': 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhSHEB7OHvxnDYCjEyhjOw8danu_yhQAcUnJ-MmkZbEpE7SUbmWG-58iZA',
		'devl.cms.vt.edu:29943': 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhSHEB7OHvxnDYCjEyhjOw8danu_yhQAcUnJ-MmkZbEpE7SUbmWG-58iZA',
       	'ensemble.vt.edu': 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhScxWQgro6JyrZIx-lTt7te6DwXDBTaJXl51UcDr2SXMWpaOH3S8k7uZg',
		'ensemble.vt.edu:443': 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhScxWQgro6JyrZIx-lTt7te6DwXDBTaJXl51UcDr2SXMWpaOH3S8k7uZg',
		'ensemble.vt.edu:9943': 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhScxWQgro6JyrZIx-lTt7te6DwXDBTaJXl51UcDr2SXMWpaOH3S8k7uZg',
		'stage-cms-devl.offices.ext.vt.edu': 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhRDFh4dPYNf1IjojoTZ72ba5G3imRRtkLku3hAYuBHaY4JlDjeeQatM_A',
		'www.offices.ext.vt.edu': 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhRDFh4dPYNf1IjojoTZ72ba5G3imRRtkLku3hAYuBHaY4JlDjeeQatM_A',
		'offices.ext.vt.edu': 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhRDFh4dPYNf1IjojoTZ72ba5G3imRRtkLku3hAYuBHaY4JlDjeeQatM_A',
		'pprd.cms.vt.edu' : 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhRcDz70zNBSF4nWdnaQup5bewTjDRRt8xLzTeiKerdXm7ZDP9uDxzUOuQ',
		'pprd.cms.vt.edu:19943' : 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhRcDz70zNBSF4nWdnaQup5bewTjDRRt8xLzTeiKerdXm7ZDP9uDxzUOuQ',
		'stage-cms-pprd.offices.ext.vt.edu' : 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhRDFh4dPYNf1IjojoTZ72ba5G3imRRtkLku3hAYuBHaY4JlDjeeQatM_A',
		'stage-cms-prod.offices.ext.vt.edu' : 'ABQIAAAAbD0SiBrL3gX8FxNdUEC4UhRDFh4dPYNf1IjojoTZ72ba5G3imRRtkLku3hAYuBHaY4JlDjeeQatM_A'
    }[location.host] +
    '" type="text/javascript"><\/script>' );

function sfHover()
{
}