/*
 * MyFonts Webfont Build ID 672610, 2011-02-16T19:32:57-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: Beton Light
 * Url: http://new.myfonts.com/fonts/urw/beton/t-light/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Beton-Lig
 * CSS font-weight: normal
 * 
 * Webfont: Beton Demi
 * Url: http://new.myfonts.com/fonts/urw/beton/t-demi/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Beton-Dem
 * CSS font-weight: normal
 * 
 * Webfont: Beton Bold
 * Url: http://new.myfonts.com/fonts/urw/beton/t-bold/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Beton-Bol
 * CSS font-weight: normal
 * 
 * Webfont: Beton Extra Bold
 * Url: http://new.myfonts.com/fonts/urw/beton/t-extra-bold/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Beton-ExtBol
 * CSS font-weight: normal
 * 
 * Webfont: Beton Cond Bold
 * Url: http://new.myfonts.com/fonts/urw/beton/t-bold-condensed/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: BetonCon-Bol
 * CSS font-weight: normal
 * 
 * Webfont: Beton P Extra Bold
 * Url: http://new.myfonts.com/fonts/urw/beton/extra-bold/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: BetonP-ExtBol
 * CSS font-weight: normal
 * 
 * Webfont: Beton Compress D Bold
 * Url: http://new.myfonts.com/fonts/urw/beton/compress-d-bold/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: BetonComD-Bol
 * CSS font-weight: normal
 * 
 * Webfont: Beton Stencil D Extra Bold
 * Url: http://new.myfonts.com/fonts/urw/beton/stencil-d-extra-bold/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: BetonSteD-ExtBol
 * CSS font-weight: normal
 * 
 * Webfont: Beton Outline P Extra Bold
 * Url: http://new.myfonts.com/fonts/urw/beton/outline-p-extra-bold/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: BetonOutP-ExtBol
 * CSS font-weight: normal
 * 
 * Webfont: Beton Extra Bold Relief
 * Url: http://new.myfonts.com/fonts/urw/beton/extra-bold-relief/
 * Foundry: URW++
 * Copyright: Copyright 2010 URW++ Design & Development Hamburg
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: BetonT-ExtrBoldRe1
 * 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-M2738513_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:\"Beton-Lig\";src:url(\"" + path + "/webfonts/eot/style_3627.eot\");}\n");
				document.write("@font-face {font-family:\"Beton-Dem\";src:url(\"" + path + "/webfonts/eot/style_3628.eot\");}\n");
				document.write("@font-face {font-family:\"Beton-Bol\";src:url(\"" + path + "/webfonts/eot/style_3629.eot\");}\n");
				document.write("@font-face {font-family:\"Beton-ExtBol\";src:url(\"" + path + "/webfonts/eot/style_3631.eot\");}\n");
				document.write("@font-face {font-family:\"BetonCon-Bol\";src:url(\"" + path + "/webfonts/eot/style_3632.eot\");}\n");
				document.write("@font-face {font-family:\"BetonP-ExtBol\";src:url(\"" + path + "/webfonts/eot/style_3630.eot\");}\n");
				document.write("@font-face {font-family:\"BetonComD-Bol\";src:url(\"" + path + "/webfonts/eot/style_3633.eot\");}\n");
				document.write("@font-face {font-family:\"BetonSteD-ExtBol\";src:url(\"" + path + "/webfonts/eot/style_3830.eot\");}\n");
				document.write("@font-face {font-family:\"BetonOutP-ExtBol\";src:url(\"" + path + "/webfonts/eot/style_3634.eot\");}\n");
				document.write("@font-face {font-family:\"BetonT-ExtrBoldRe1\";src:url(\"" + path + "/webfonts/eot/style_3865.eot\");}\n");
				document.write("</style>");
		break;
		
		case 'woff':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"Beton-Lig\";src:url(\"" + path + "/webfonts/woff/style_3627.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Beton-Dem\";src:url(\"" + path + "/webfonts/woff/style_3628.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Beton-Bol\";src:url(\"" + path + "/webfonts/woff/style_3629.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Beton-ExtBol\";src:url(\"" + path + "/webfonts/woff/style_3631.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"BetonCon-Bol\";src:url(\"" + path + "/webfonts/woff/style_3632.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"BetonP-ExtBol\";src:url(\"" + path + "/webfonts/woff/style_3630.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"BetonComD-Bol\";src:url(\"" + path + "/webfonts/woff/style_3633.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"BetonSteD-ExtBol\";src:url(\"" + path + "/webfonts/woff/style_3830.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"BetonOutP-ExtBol\";src:url(\"" + path + "/webfonts/woff/style_3634.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"BetonT-ExtrBoldRe1\";src:url(\"" + path + "/webfonts/woff/style_3865.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-M2738513.css'>");
		break;
	
		case 'svg':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"Beton-Lig\";src:url(\"" + path + "/webfonts/svg/style_3627.svg#Beton-Lig\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Beton-Dem\";src:url(\"" + path + "/webfonts/svg/style_3628.svg#Beton-Dem\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Beton-Bol\";src:url(\"" + path + "/webfonts/svg/style_3629.svg#Beton-Bol\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"Beton-ExtBol\";src:url(\"" + path + "/webfonts/svg/style_3631.svg#Beton-ExtBol\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"BetonCon-Bol\";src:url(\"" + path + "/webfonts/svg/style_3632.svg#BetonCon-Bol\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"BetonP-ExtBol\";src:url(\"" + path + "/webfonts/svg/style_3630.svg#BetonP-ExtBol\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"BetonComD-Bol\";src:url(\"" + path + "/webfonts/svg/style_3633.svg#BetonComD-Bol\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"BetonSteD-ExtBol\";src:url(\"" + path + "/webfonts/svg/style_3830.svg#BetonSteD-ExtBol\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"BetonOutP-ExtBol\";src:url(\"" + path + "/webfonts/svg/style_3634.svg#BetonOutP-ExtBol\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"BetonT-ExtrBoldRe1\";src:url(\"" + path + "/webfonts/svg/style_3865.svg#BetonT-ExtrBoldRe1\") format(\"svg\");}\n");
				document.write("</style>");
		break;
		
	default:
		break;
}
