/*
 * MyFonts Webfont Build ID 735346, 2011-03-25T16:12:05-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: News Gothic
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/news-gothic/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-Roman
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Italic
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/italic/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-Italic
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Bold
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/bold/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-Bold
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Bold Italic
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/bold-italic/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-BoldItalic
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Light
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/light/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-Light
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Light Italic
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/light-italic/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-LightItalic
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Condensed
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/condensed/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-RomanCondensed
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Italic Condensed
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/italic-condensed/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-ItalicCondensed
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Bold Condensed
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/bold-condensed/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-BoldCondensed
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Bold Italic Condensed
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/bold-italic-condensed/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-BoldCondItalic
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Extra Condensed
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/extra-condensed/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-ExtraCondensed
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Bold Extra Condensed
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/bold-extra-condensed/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-BoldExtraCondensed
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Demi
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/demi/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-Demi
 * CSS font-weight: normal
 * 
 * Webfont: News Gothic Demi Italic
 * URL: http://new.myfonts.com/fonts/bitstream/news-gothic/demi-italic/
 * Foundry: Bitstream
 * Copyright: Copyright 1990-2003 Bitstream Inc. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: NewsGothicBT-DemiItalic
 * 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+ '/MyFontsWebfontsOrderM2820383_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:\"NewsGothicBT-Roman\";src:url(\"" + path + "/webfonts/eot/style_515.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Italic\";src:url(\"" + path + "/webfonts/eot/style_516.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Bold\";src:url(\"" + path + "/webfonts/eot/style_517.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldItalic\";src:url(\"" + path + "/webfonts/eot/style_518.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Light\";src:url(\"" + path + "/webfonts/eot/style_567.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-LightItalic\";src:url(\"" + path + "/webfonts/eot/style_568.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-RomanCondensed\";src:url(\"" + path + "/webfonts/eot/style_699.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-ItalicCondensed\";src:url(\"" + path + "/webfonts/eot/style_700.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldCondensed\";src:url(\"" + path + "/webfonts/eot/style_701.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldCondItalic\";src:url(\"" + path + "/webfonts/eot/style_702.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-ExtraCondensed\";src:url(\"" + path + "/webfonts/eot/style_945.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldExtraCondensed\";src:url(\"" + path + "/webfonts/eot/style_946.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Demi\";src:url(\"" + path + "/webfonts/eot/style_998.eot\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-DemiItalic\";src:url(\"" + path + "/webfonts/eot/style_999.eot\");}\n");
				document.write("</style>");
		break;
		
		case 'woff':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Roman\";src:url(\"" + path + "/webfonts/woff/style_515.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Italic\";src:url(\"" + path + "/webfonts/woff/style_516.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Bold\";src:url(\"" + path + "/webfonts/woff/style_517.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldItalic\";src:url(\"" + path + "/webfonts/woff/style_518.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Light\";src:url(\"" + path + "/webfonts/woff/style_567.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-LightItalic\";src:url(\"" + path + "/webfonts/woff/style_568.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-RomanCondensed\";src:url(\"" + path + "/webfonts/woff/style_699.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-ItalicCondensed\";src:url(\"" + path + "/webfonts/woff/style_700.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldCondensed\";src:url(\"" + path + "/webfonts/woff/style_701.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldCondItalic\";src:url(\"" + path + "/webfonts/woff/style_702.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-ExtraCondensed\";src:url(\"" + path + "/webfonts/woff/style_945.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldExtraCondensed\";src:url(\"" + path + "/webfonts/woff/style_946.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Demi\";src:url(\"" + path + "/webfonts/woff/style_998.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-DemiItalic\";src:url(\"" + path + "/webfonts/woff/style_999.woff\") format(\"woff\");}\n");
				document.write("</style>");
		break;
	
		case 'data-css':
		document.write("<link rel='stylesheet' type='text/css' href='" + path + "/webfonts/datacss/MyFontsWebfontsOrderM2820383.css'>");
		break;
	
		case 'svg':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Roman\";src:url(\"" + path + "/webfonts/svg/style_515.svg#NewsGothicBT-Roman\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Italic\";src:url(\"" + path + "/webfonts/svg/style_516.svg#NewsGothicBT-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Bold\";src:url(\"" + path + "/webfonts/svg/style_517.svg#NewsGothicBT-Bold\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldItalic\";src:url(\"" + path + "/webfonts/svg/style_518.svg#NewsGothicBT-BoldItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Light\";src:url(\"" + path + "/webfonts/svg/style_567.svg#NewsGothicBT-Light\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-LightItalic\";src:url(\"" + path + "/webfonts/svg/style_568.svg#NewsGothicBT-LightItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-RomanCondensed\";src:url(\"" + path + "/webfonts/svg/style_699.svg#NewsGothicBT-RomanCondensed\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-ItalicCondensed\";src:url(\"" + path + "/webfonts/svg/style_700.svg#NewsGothicBT-ItalicCondensed\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldCondensed\";src:url(\"" + path + "/webfonts/svg/style_701.svg#NewsGothicBT-BoldCondensed\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldCondItalic\";src:url(\"" + path + "/webfonts/svg/style_702.svg#NewsGothicBT-BoldCondItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-ExtraCondensed\";src:url(\"" + path + "/webfonts/svg/style_945.svg#NewsGothicBT-ExtraCondensed\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-BoldExtraCondensed\";src:url(\"" + path + "/webfonts/svg/style_946.svg#NewsGothicBT-BoldExtraCondensed\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-Demi\";src:url(\"" + path + "/webfonts/svg/style_998.svg#NewsGothicBT-Demi\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"NewsGothicBT-DemiItalic\";src:url(\"" + path + "/webfonts/svg/style_999.svg#NewsGothicBT-DemiItalic\") format(\"svg\");}\n");
				document.write("</style>");
		break;
		
	default:
		break;
}
