/*
 * MyFonts Webfont Build ID 739349, 2011-03-30T14:45:57-0400
 * 
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are 
 * explicitly restricted from using the Licensed Webfonts(s).
 * 
 * You may obtain a valid license at the URLs below.
 * 
 * Webfont: Geogrotesque UltraLight
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/ultralight/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-UltraLight
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque SemiBold
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/semibold/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-SemiBold
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Regular
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/regular/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Bold
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/bold/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-Bold
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Thin
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/thin/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-Thin
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Light
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/light/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-Light
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Medium
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/medium/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-Medium
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Thin Italic
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/thin-italic/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-ThinItalic
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Italic
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/italic/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-RegularItalic
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque UltraLight Italic
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/ultralight-italic/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-UltraLightItalic
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque SemiBold Italic
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/semibold-italic/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-SemiBoldItalic
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Medium Italic
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/medium-italic/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-MediumItalic
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Light Italic
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/light-italic/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-LightItalic
 * CSS font-weight: normal
 * 
 * Webfont: Geogrotesque Bold Italic
 * URL: http://new.myfonts.com/fonts/emtype/geogrotesque/bold-italic/
 * Foundry: Emtype Foundry
 * Copyright: Copyright (c) 2009 by Eduardo Manso. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Geogrotesque-BoldItalic
 * CSS font-weight: normal
 * 
 * (c) 2011 Bitstream, Inc
*/



// safari 3.1: data-css
// firefox 3.6+: woff
// firefox 3.5+: data-css
// chrome 4+: data-css
// chrome 6+: woff
// IE 5+: eot
// IE 9: woff
// opera 10.1+: data-css
// mobile safari: svg/data-css
// android: data-css

var browserName, browserVersion, webfontType,  webfontTypeOverride;
 
if (typeof(customPath) == 'undefined')
	var customPath = false;


if (typeof(woffEnabled) == 'undefined')
	var woffEnabled = true;


if (/myfonts_test=on/.test(window.location.search))
	var myfonts_webfont_test = true;

else if (typeof(myfonts_webfont_test) == 'undefined')
	var myfonts_webfont_test = false;


if (customPath)
	var path = customPath;

else {
	var scripts = document.getElementsByTagName("SCRIPT");
	var script = scripts[scripts.length-1].src;

	if (!script.match("://") && script.charAt(0) != '/')
		script = "./"+script;
		
	var path = script.replace(/\\/g,'/').replace(/\/[^\/]*\/?$/, '');
}


if (myfonts_webfont_test)
	document.write('<script type="text/javascript" src="' +path+ '/MyFontsWebfontsOrderM2830605_test.js"></script>');


if (/webfont=(woff|ttf|eot)/.test(window.location.search))
{
	webfontTypeOverride = RegExp.$1;

	if (webfontTypeOverride == 'ttf')
		webfontTypeOverride = 'data-css';
}


if (/MSIE (\d+\.\d+)/.test(navigator.userAgent))
{
	browserName = 'MSIE';
	browserVersion = new Number(RegExp.$1);
	if (browserVersion >= 9.0 && woffEnabled)
		webfontType = 'woff';
	else if (browserVersion >= 5.0)
		webfontType = 'eot';
}
else if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent))
{
	browserName = 'Firefox';
	browserVersion = new Number(RegExp.$1);
	if (browserVersion >= 3.6 && woffEnabled)
		webfontType = 'woff';
	else if (browserVersion >= 3.5)
		webfontType = 'data-css';
}
else if (/Chrome\/(\d+\.\d+)/.test(navigator.userAgent)) // must check before safari
{
	browserName = 'Chrome';
	browserVersion = new Number(RegExp.$1);

	if (browserVersion >= 6.0 && woffEnabled)
		webfontType = 'woff';

	else if (browserVersion >= 4.0)
		webfontType = 'data-css';
}
else if (/Mozilla.*(iPhone|iPad).* OS (\d+)_(\d+).* AppleWebKit.*Safari/.test(navigator.userAgent))
{
		browserName = 'MobileSafari';
		browserVersion = new Number(RegExp.$2) + (new Number(RegExp.$3) / 10)

	if(browserVersion >= 4.2)
		webfontType = 'data-css';

	else
		webfontType = 'svg';
}
else if (/Mozilla.*(iPhone|iPad|BlackBerry).*AppleWebKit.*Safari/.test(navigator.userAgent))
{
	browserName = 'MobileSafari';
	webfontType = 'svg';
}
else if (/Safari\/(\d+\.\d+)/.test(navigator.userAgent))
{
	browserName = 'Safari';
	if (/Version\/(\d+\.\d+)/.test(navigator.userAgent))
	{
		browserVersion = new Number(RegExp.$1);
		if (browserVersion >= 3.1)
			webfontType = 'data-css';
	}
}
else if (/Opera\/(\d+\.\d+)/.test(navigator.userAgent))
{
	browserName = 'Opera';
	if (/Version\/(\d+\.\d+)/.test(navigator.userAgent))
	{
		browserVersion = new Number(RegExp.$1);
		if (browserVersion >= 10.1)
			webfontType = 'data-css';
	}
}


if (webfontTypeOverride)
	webfontType = webfontTypeOverride;

switch (webfontType)
{
		case 'eot':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"Geogrotesque-UltraLight\";src:url(\"" + path + "/webfonts/eot/style_169903.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-SemiBold\";src:url(\"" + path + "/webfonts/eot/style_169898.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Regular\";src:url(\"" + path + "/webfonts/eot/style_169901.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Bold\";src:url(\"" + path + "/webfonts/eot/style_169902.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Thin\";src:url(\"" + path + "/webfonts/eot/style_169899.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Light\";src:url(\"" + path + "/webfonts/eot/style_169900.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Medium\";src:url(\"" + path + "/webfonts/eot/style_169904.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-ThinItalic\";src:url(\"" + path + "/webfonts/eot/style_175373.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-RegularItalic\";src:url(\"" + path + "/webfonts/eot/style_175374.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-UltraLightItalic\";src:url(\"" + path + "/webfonts/eot/style_175375.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-SemiBoldItalic\";src:url(\"" + path + "/webfonts/eot/style_175376.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-MediumItalic\";src:url(\"" + path + "/webfonts/eot/style_175377.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-LightItalic\";src:url(\"" + path + "/webfonts/eot/style_175378.eot\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-BoldItalic\";src:url(\"" + path + "/webfonts/eot/style_175379.eot\");}\n");
				document.write("</style>");
		break;
		
		case 'woff':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"Geogrotesque-UltraLight\";src:url(\"" + path + "/webfonts/woff/style_169903.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-SemiBold\";src:url(\"" + path + "/webfonts/woff/style_169898.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Regular\";src:url(\"" + path + "/webfonts/woff/style_169901.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Bold\";src:url(\"" + path + "/webfonts/woff/style_169902.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Thin\";src:url(\"" + path + "/webfonts/woff/style_169899.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Light\";src:url(\"" + path + "/webfonts/woff/style_169900.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Medium\";src:url(\"" + path + "/webfonts/woff/style_169904.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-ThinItalic\";src:url(\"" + path + "/webfonts/woff/style_175373.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-RegularItalic\";src:url(\"" + path + "/webfonts/woff/style_175374.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-UltraLightItalic\";src:url(\"" + path + "/webfonts/woff/style_175375.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-SemiBoldItalic\";src:url(\"" + path + "/webfonts/woff/style_175376.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-MediumItalic\";src:url(\"" + path + "/webfonts/woff/style_175377.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-LightItalic\";src:url(\"" + path + "/webfonts/woff/style_175378.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-BoldItalic\";src:url(\"" + path + "/webfonts/woff/style_175379.woff\") format(\"woff\");}\n");
				document.write("</style>");
		break;
	
		case 'data-css':
		document.write("<link rel='stylesheet' type='text/css' href='" + path + "/webfonts/datacss/MyFontsWebfontsOrderM2830605.css'>");
		break;
	
		case 'svg':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"Geogrotesque-UltraLight\";src:url(\"" + path + "/webfonts/svg/style_169903.svg#Geogrotesque-UltraLight\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-SemiBold\";src:url(\"" + path + "/webfonts/svg/style_169898.svg#Geogrotesque-SemiBold\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Regular\";src:url(\"" + path + "/webfonts/svg/style_169901.svg#Geogrotesque-Regular\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Bold\";src:url(\"" + path + "/webfonts/svg/style_169902.svg#Geogrotesque-Bold\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Thin\";src:url(\"" + path + "/webfonts/svg/style_169899.svg#Geogrotesque-Thin\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Light\";src:url(\"" + path + "/webfonts/svg/style_169900.svg#Geogrotesque-Light\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-Medium\";src:url(\"" + path + "/webfonts/svg/style_169904.svg#Geogrotesque-Medium\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-ThinItalic\";src:url(\"" + path + "/webfonts/svg/style_175373.svg#Geogrotesque-ThinItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-RegularItalic\";src:url(\"" + path + "/webfonts/svg/style_175374.svg#Geogrotesque-RegularItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-UltraLightItalic\";src:url(\"" + path + "/webfonts/svg/style_175375.svg#Geogrotesque-UltraLightItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-SemiBoldItalic\";src:url(\"" + path + "/webfonts/svg/style_175376.svg#Geogrotesque-SemiBoldItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-MediumItalic\";src:url(\"" + path + "/webfonts/svg/style_175377.svg#Geogrotesque-MediumItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-LightItalic\";src:url(\"" + path + "/webfonts/svg/style_175378.svg#Geogrotesque-LightItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Geogrotesque-BoldItalic\";src:url(\"" + path + "/webfonts/svg/style_175379.svg#Geogrotesque-BoldItalic\") format(\"svg\");}\n");
				document.write("</style>");
		break;
		
	default:
		break;
}
