/*
 * MyFonts Webfont Build ID 116604, 2010-10-26T23:38:06-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: Duality
 * Url: http://new.myfonts.com/fonts/larabie/duality/duality/
 * Foundry: Larabie
 * Copyright: (c) 2000-2009 Ray Larabie. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font. Latin A-B accents by Chikako Larabie
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Duality-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Effloresce
 * Url: http://new.myfonts.com/fonts/larabie/effloresce/effloresce/
 * Foundry: Larabie
 * Copyright: (c) 1999 Ray Larabie. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Effloresce-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Effloresce Antique
 * Url: http://new.myfonts.com/fonts/larabie/effloresce/antique/
 * Foundry: Larabie
 * Copyright: (c) 1999 Ray Larabie. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: EffloresceAntique-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Effloresce Bold
 * Url: http://new.myfonts.com/fonts/larabie/effloresce/bold/
 * Foundry: Larabie
 * Copyright: (c) 1999 Ray Larabie. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Effloresce-Bold
 * CSS font-weight: normal
 * 
 * Webfont: Effloresce Bold Italic
 * Url: http://new.myfonts.com/fonts/larabie/effloresce/bold-italic/
 * Foundry: Larabie
 * Copyright: (c) 1999 Ray Larabie. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Effloresce-BoldItalic
 * CSS font-weight: normal
 * 
 * Webfont: Effloresce Italic
 * Url: http://new.myfonts.com/fonts/larabie/effloresce/italic/
 * Foundry: Larabie
 * Copyright: (c) 2000 Ray Larabie. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Effloresce-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Pupcat
 * Url: http://new.myfonts.com/fonts/larabie/pupcat/pupcat/
 * Foundry: Larabie
 * Copyright: (c) 2001-2009 Ray Larabie. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: PupcatRg-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Teen Light Italic
 * Url: http://new.myfonts.com/fonts/larabie/teen/light-italic/
 * Foundry: Larabie
 * Copyright: (c) 2000 Ray Larabie & Martin Archer. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: TeenLight-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Teen
 * Url: http://new.myfonts.com/fonts/larabie/teen/regular/
 * Foundry: Larabie
 * Copyright: (c) 2000 Ray Larabie & Martin Archer. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Teen-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Teen Italic
 * Url: http://new.myfonts.com/fonts/larabie/teen/italic/
 * Foundry: Larabie
 * Copyright: (c) 2000 Ray Larabie & Martin Archer. See attached license agreement for more information. If EULA is missing, visit www.larabiefonts.com for an updated version of this font.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: Teen-Italic
 * CSS font-weight: normal
 * 
 * (c) 2010 Bitstream, Inc
*/



var scripts = document.getElementsByTagName("SCRIPT");
var script = scripts[scripts.length-1].src;
var path = script.replace(/\\/g,'/').replace(/\/[^\/]*\/?$/, '');

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

//document.write(navigator.userAgent);
var browserName, browserVersion, webfontType;

var webfontTypeOverride;

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)
		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.5 && browserVersion < 3.6)
		webfontType = 'data-css';
	else if (browserVersion >= 3.6)
		webfontType = 'woff';
}

else if (/Chrome\/(\d+\.\d+)/.test(navigator.userAgent)) // must check before safari
{
	browserName = 'Chrome';
	browserVersion = new Number(RegExp.$1);

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

	else if (browserVersion >= 4.0)
		webfontType = 'data-css';
}

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 (!webfontType)
{
	// use flash?
}

if (webfontTypeOverride)
	webfontType = webfontTypeOverride;

switch (webfontType)
{
		case 'eot':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"Duality-Regular\";src:url(\"" + path + "/webfonts/eot/style_123265.eot\");}\n");
				document.write("@font-face {font-family:\"Effloresce-Regular\";src:url(\"" + path + "/webfonts/eot/style_8391.eot\");}\n");
				document.write("@font-face {font-family:\"EffloresceAntique-Regular\";src:url(\"" + path + "/webfonts/eot/style_8429.eot\");}\n");
				document.write("@font-face {font-family:\"Effloresce-Bold\";src:url(\"" + path + "/webfonts/eot/style_8388.eot\");}\n");
				document.write("@font-face {font-family:\"Effloresce-BoldItalic\";src:url(\"" + path + "/webfonts/eot/style_8389.eot\");}\n");
				document.write("@font-face {font-family:\"Effloresce-Italic\";src:url(\"" + path + "/webfonts/eot/style_8390.eot\");}\n");
				document.write("@font-face {font-family:\"PupcatRg-Regular\";src:url(\"" + path + "/webfonts/eot/style_122458.eot\");}\n");
				document.write("@font-face {font-family:\"TeenLight-Italic\";src:url(\"" + path + "/webfonts/eot/style_122823.eot\");}\n");
				document.write("@font-face {font-family:\"Teen-Regular\";src:url(\"" + path + "/webfonts/eot/style_122820.eot\");}\n");
				document.write("@font-face {font-family:\"Teen-Italic\";src:url(\"" + path + "/webfonts/eot/style_122821.eot\");}\n");
				document.write("</style>");
		break;
		
		case 'woff':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"Duality-Regular\";src:url(\"" + path + "/webfonts/woff/style_123265.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Effloresce-Regular\";src:url(\"" + path + "/webfonts/woff/style_8391.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"EffloresceAntique-Regular\";src:url(\"" + path + "/webfonts/woff/style_8429.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Effloresce-Bold\";src:url(\"" + path + "/webfonts/woff/style_8388.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Effloresce-BoldItalic\";src:url(\"" + path + "/webfonts/woff/style_8389.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Effloresce-Italic\";src:url(\"" + path + "/webfonts/woff/style_8390.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"PupcatRg-Regular\";src:url(\"" + path + "/webfonts/woff/style_122458.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"TeenLight-Italic\";src:url(\"" + path + "/webfonts/woff/style_122823.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Teen-Regular\";src:url(\"" + path + "/webfonts/woff/style_122820.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"Teen-Italic\";src:url(\"" + path + "/webfonts/woff/style_122821.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 M2487409.css'>");
		break;
	
		
	default:
		webfontType = 'default';
		break;
}

//document.write(browserName + ' ' + browserVersion + ': ' + webfontType + ' [' + navigator.userAgent + ']');
