/*
 * MyFonts Webfont Build ID 376370, 2011-02-10T12:15:31-0500
 * 
 * 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: Gabriel Sans Thin
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/thin/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Thin
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Thin Italic
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/thin-italic/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Thin-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Light
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/light/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Light
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Light Italic
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/light-italic/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Light-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Normal
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/normal/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Normal
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Normal Italic
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/normal-italic/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Normal-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Medium
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/medium/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Medium
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Medium Italic
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/medium-italic/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Medium-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Bold
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/bold/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Bold
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Bold Italic
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/bold-italic/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Bold-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Black
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/black/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Black
 * CSS font-weight: normal
 * 
 * Webfont: Gabriel Sans Black Italic
 * Url: http://new.myfonts.com/fonts/font-fabric/gabriel-sans/black-italic/
 * Foundry: Fontfabric
 * Copyright: Copyright (c) 2010 by Svetoslav Simov. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Gabriel-Sans-Black-Italic
 * 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+ '/MyFonts Webfonts Order M2723598_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).*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:\"Gabriel-Sans-Thin\";src:url(\"" + path + "/webfonts/eot/style_197280.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Thin-Italic\";src:url(\"" + path + "/webfonts/eot/style_197286.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Light\";src:url(\"" + path + "/webfonts/eot/style_197289.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Light-Italic\";src:url(\"" + path + "/webfonts/eot/style_197287.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Normal\";src:url(\"" + path + "/webfonts/eot/style_197284.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Normal-Italic\";src:url(\"" + path + "/webfonts/eot/style_197279.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Medium\";src:url(\"" + path + "/webfonts/eot/style_197285.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Medium-Italic\";src:url(\"" + path + "/webfonts/eot/style_197281.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Bold\";src:url(\"" + path + "/webfonts/eot/style_197288.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Bold-Italic\";src:url(\"" + path + "/webfonts/eot/style_197283.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Black\";src:url(\"" + path + "/webfonts/eot/style_197278.eot\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Black-Italic\";src:url(\"" + path + "/webfonts/eot/style_197282.eot\");}\n");
				document.write("</style>");
		break;
		
		case 'woff':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Thin\";src:url(\"" + path + "/webfonts/woff/style_197280.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Thin-Italic\";src:url(\"" + path + "/webfonts/woff/style_197286.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Light\";src:url(\"" + path + "/webfonts/woff/style_197289.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Light-Italic\";src:url(\"" + path + "/webfonts/woff/style_197287.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Normal\";src:url(\"" + path + "/webfonts/woff/style_197284.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Normal-Italic\";src:url(\"" + path + "/webfonts/woff/style_197279.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Medium\";src:url(\"" + path + "/webfonts/woff/style_197285.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Medium-Italic\";src:url(\"" + path + "/webfonts/woff/style_197281.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Bold\";src:url(\"" + path + "/webfonts/woff/style_197288.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Bold-Italic\";src:url(\"" + path + "/webfonts/woff/style_197283.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Black\";src:url(\"" + path + "/webfonts/woff/style_197278.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Black-Italic\";src:url(\"" + path + "/webfonts/woff/style_197282.woff\") format(\"woff\");}\n");
				document.write("</style>");
		break;
	
		case 'data-css':
		document.write("<link rel='stylesheet' type='text/css' href='" + path + "/webfonts/datacss/MyFonts Webfonts Order M2723598.css'>");
		break;
	
		case 'svg':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Thin\";src:url(\"" + path + "/webfonts/svg/style_197280.svg#Gabriel-Sans-Thin\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Thin-Italic\";src:url(\"" + path + "/webfonts/svg/style_197286.svg#Gabriel-Sans-Thin-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Light\";src:url(\"" + path + "/webfonts/svg/style_197289.svg#Gabriel-Sans-Light\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Light-Italic\";src:url(\"" + path + "/webfonts/svg/style_197287.svg#Gabriel-Sans-Light-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Normal\";src:url(\"" + path + "/webfonts/svg/style_197284.svg#Gabriel-Sans-Normal\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Normal-Italic\";src:url(\"" + path + "/webfonts/svg/style_197279.svg#Gabriel-Sans-Normal-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Medium\";src:url(\"" + path + "/webfonts/svg/style_197285.svg#Gabriel-Sans-Medium\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Medium-Italic\";src:url(\"" + path + "/webfonts/svg/style_197281.svg#Gabriel-Sans-Medium-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Bold\";src:url(\"" + path + "/webfonts/svg/style_197288.svg#Gabriel-Sans-Bold\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Bold-Italic\";src:url(\"" + path + "/webfonts/svg/style_197283.svg#Gabriel-Sans-Bold-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Black\";src:url(\"" + path + "/webfonts/svg/style_197278.svg#Gabriel-Sans-Black\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Gabriel-Sans-Black-Italic\";src:url(\"" + path + "/webfonts/svg/style_197282.svg#Gabriel-Sans-Black-Italic\") format(\"svg\");}\n");
				document.write("</style>");
		break;
		
	default:
		break;
}
