/*
 * MyFonts Webfont Build ID 718591, 2011-03-09T19:46:14-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: Museo Slab 1000 Italic
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/1000-italic/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-1000Italic
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 100
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/100/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-100
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 700
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/700/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-700
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 900
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/900/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-900
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 300
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/300/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-300
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 1000
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/1000/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-1000
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 500
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/500/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-500
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 300 Italic
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/300-italic/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-300Italic
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 700 Italic
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/700-italic/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-700Italic
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 500 Italic
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/500-italic/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-500Italic
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 900 Italic
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/900-italic/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-900Italic
 * CSS font-weight: normal
 * 
 * Webfont: Museo Slab 100 Italic
 * URL: http://new.myfonts.com/fonts/exljbris/museo-slab/100-italic/
 * Foundry: exljbris
 * Copyright: Copyright (c) 2009 by Jos Buivenga. All rights reserved.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: MuseoSlab-100Italic
 * 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+ '/MuseoSlab_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:\"MuseoSlab-1000Italic\";src:url(\"" + path + "/webfonts/eot/style_183111.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-100\";src:url(\"" + path + "/webfonts/eot/style_183112.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-700\";src:url(\"" + path + "/webfonts/eot/style_183113.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-900\";src:url(\"" + path + "/webfonts/eot/style_183114.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-300\";src:url(\"" + path + "/webfonts/eot/style_183115.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-1000\";src:url(\"" + path + "/webfonts/eot/style_183116.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-500\";src:url(\"" + path + "/webfonts/eot/style_183117.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-300Italic\";src:url(\"" + path + "/webfonts/eot/style_183118.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-700Italic\";src:url(\"" + path + "/webfonts/eot/style_183119.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-500Italic\";src:url(\"" + path + "/webfonts/eot/style_183120.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-900Italic\";src:url(\"" + path + "/webfonts/eot/style_183121.eot\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-100Italic\";src:url(\"" + path + "/webfonts/eot/style_183122.eot\");}\n");
				document.write("</style>");
		break;
		
		case 'woff':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"MuseoSlab-1000Italic\";src:url(\"" + path + "/webfonts/woff/style_183111.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-100\";src:url(\"" + path + "/webfonts/woff/style_183112.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-700\";src:url(\"" + path + "/webfonts/woff/style_183113.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-900\";src:url(\"" + path + "/webfonts/woff/style_183114.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-300\";src:url(\"" + path + "/webfonts/woff/style_183115.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-1000\";src:url(\"" + path + "/webfonts/woff/style_183116.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-500\";src:url(\"" + path + "/webfonts/woff/style_183117.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-300Italic\";src:url(\"" + path + "/webfonts/woff/style_183118.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-700Italic\";src:url(\"" + path + "/webfonts/woff/style_183119.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-500Italic\";src:url(\"" + path + "/webfonts/woff/style_183120.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-900Italic\";src:url(\"" + path + "/webfonts/woff/style_183121.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-100Italic\";src:url(\"" + path + "/webfonts/woff/style_183122.woff\") format(\"woff\");}\n");
				document.write("</style>");
		break;
	
		case 'data-css':
		document.write("<link rel='stylesheet' type='text/css' href='" + path + "/webfonts/datacss/MuseoSlab.css'>");
		break;
	
		case 'svg':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"MuseoSlab-1000Italic\";src:url(\"" + path + "/webfonts/svg/style_183111.svg#MuseoSlab-1000Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-100\";src:url(\"" + path + "/webfonts/svg/style_183112.svg#MuseoSlab-100\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-700\";src:url(\"" + path + "/webfonts/svg/style_183113.svg#MuseoSlab-700\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-900\";src:url(\"" + path + "/webfonts/svg/style_183114.svg#MuseoSlab-900\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-300\";src:url(\"" + path + "/webfonts/svg/style_183115.svg#MuseoSlab-300\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-1000\";src:url(\"" + path + "/webfonts/svg/style_183116.svg#MuseoSlab-1000\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-500\";src:url(\"" + path + "/webfonts/svg/style_183117.svg#MuseoSlab-500\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-300Italic\";src:url(\"" + path + "/webfonts/svg/style_183118.svg#MuseoSlab-300Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-700Italic\";src:url(\"" + path + "/webfonts/svg/style_183119.svg#MuseoSlab-700Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-500Italic\";src:url(\"" + path + "/webfonts/svg/style_183120.svg#MuseoSlab-500Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-900Italic\";src:url(\"" + path + "/webfonts/svg/style_183121.svg#MuseoSlab-900Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"MuseoSlab-100Italic\";src:url(\"" + path + "/webfonts/svg/style_183122.svg#MuseoSlab-100Italic\") format(\"svg\");}\n");
				document.write("</style>");
		break;
		
	default:
		break;
}
