/*
 * MyFonts Webfont Build ID 187404, 2010-12-19T18:28:02-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: Galderglynn Esq. UltraLight
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/ultralight/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqUl-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. UltraLight Italic
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/ultralight-italic/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqUl-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. ExtraLight
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/extralight/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqEl-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. ExtraLight Italic
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/extralight-italic/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqEl-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Light
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/light/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqLt-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Light Italic
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/light-italic/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqLt-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Book
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/book/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqBk-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Book Italic
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/book-italic/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqBk-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Regular
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/regular/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqRg-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Italic
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/italic/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqRg-Italic
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Bold
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/bold/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqRg-Bold
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Bold Italic
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/bold-italic/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqRg-BoldItalic
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Black
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/black/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqBl-Regular
 * CSS font-weight: normal
 * 
 * Webfont: Galderglynn Esq. Black Italic
 * Url: http://new.myfonts.com/fonts/typodermic/galderglynn-esquire/black-italic/
 * Foundry: Typodermic
 * Copyright: Copyright (c) 2010 Typodermic Fonts. This font is not freely distributable. Visit typodermic.com for more info.
 * License: http://www.myfonts.com/viewlicense?1056
 * Licensed pageviews: 10,000/month
 * CSS font-family: GalderglynnEsqBl-Italic
 * CSS font-weight: normal
 * 
 * (c) 2010 Bitstream, Inc
*/



// change this to false if you're having trouble with WOFFs
var woffEnabled = true;
// uncomment this and set it to the path of your webfont directory
//var customPath = "/themes/fonts"; 

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(/\/[^\/]*\/?$/, '');

// 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



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 && 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).*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:\"GalderglynnEsqUl-Regular\";src:url(\"" + path + "/webfonts/eot/style_184913.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqUl-Italic\";src:url(\"" + path + "/webfonts/eot/style_184922.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqEl-Regular\";src:url(\"" + path + "/webfonts/eot/style_184911.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqEl-Italic\";src:url(\"" + path + "/webfonts/eot/style_184915.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqLt-Regular\";src:url(\"" + path + "/webfonts/eot/style_184918.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqLt-Italic\";src:url(\"" + path + "/webfonts/eot/style_184920.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBk-Regular\";src:url(\"" + path + "/webfonts/eot/style_184914.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBk-Italic\";src:url(\"" + path + "/webfonts/eot/style_184916.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-Regular\";src:url(\"" + path + "/webfonts/eot/style_184912.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-Italic\";src:url(\"" + path + "/webfonts/eot/style_184921.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-Bold\";src:url(\"" + path + "/webfonts/eot/style_184919.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-BoldItalic\";src:url(\"" + path + "/webfonts/eot/style_184910.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBl-Regular\";src:url(\"" + path + "/webfonts/eot/style_184923.eot\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBl-Italic\";src:url(\"" + path + "/webfonts/eot/style_184917.eot\");}\n");
				document.write("</style>");
		break;
		
		case 'woff':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"GalderglynnEsqUl-Regular\";src:url(\"" + path + "/webfonts/woff/style_184913.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqUl-Italic\";src:url(\"" + path + "/webfonts/woff/style_184922.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqEl-Regular\";src:url(\"" + path + "/webfonts/woff/style_184911.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqEl-Italic\";src:url(\"" + path + "/webfonts/woff/style_184915.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqLt-Regular\";src:url(\"" + path + "/webfonts/woff/style_184918.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqLt-Italic\";src:url(\"" + path + "/webfonts/woff/style_184920.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBk-Regular\";src:url(\"" + path + "/webfonts/woff/style_184914.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBk-Italic\";src:url(\"" + path + "/webfonts/woff/style_184916.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-Regular\";src:url(\"" + path + "/webfonts/woff/style_184912.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-Italic\";src:url(\"" + path + "/webfonts/woff/style_184921.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-Bold\";src:url(\"" + path + "/webfonts/woff/style_184919.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-BoldItalic\";src:url(\"" + path + "/webfonts/woff/style_184910.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBl-Regular\";src:url(\"" + path + "/webfonts/woff/style_184923.woff\") format(\"woff\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBl-Italic\";src:url(\"" + path + "/webfonts/woff/style_184917.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 M2465080.css'>");
		break;
	
		case 'svg':
		document.write("<style>\n");
				document.write("@font-face {font-family:\"GalderglynnEsqUl-Regular\";src:url(\"" + path + "/webfonts/svg/style_184913.svg#GalderglynnEsqUl-Regular\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqUl-Italic\";src:url(\"" + path + "/webfonts/svg/style_184922.svg#GalderglynnEsqUl-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqEl-Regular\";src:url(\"" + path + "/webfonts/svg/style_184911.svg#GalderglynnEsqEl-Regular\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqEl-Italic\";src:url(\"" + path + "/webfonts/svg/style_184915.svg#GalderglynnEsqEl-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqLt-Regular\";src:url(\"" + path + "/webfonts/svg/style_184918.svg#GalderglynnEsqLt-Regular\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqLt-Italic\";src:url(\"" + path + "/webfonts/svg/style_184920.svg#GalderglynnEsqLt-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBk-Regular\";src:url(\"" + path + "/webfonts/svg/style_184914.svg#GalderglynnEsqBk-Regular\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBk-Italic\";src:url(\"" + path + "/webfonts/svg/style_184916.svg#GalderglynnEsqBk-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-Regular\";src:url(\"" + path + "/webfonts/svg/style_184912.svg#GalderglynnEsqRg-Regular\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-Italic\";src:url(\"" + path + "/webfonts/svg/style_184921.svg#GalderglynnEsqRg-Italic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-Bold\";src:url(\"" + path + "/webfonts/svg/style_184919.svg#GalderglynnEsqRg-Bold\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqRg-BoldItalic\";src:url(\"" + path + "/webfonts/svg/style_184910.svg#GalderglynnEsqRg-BoldItalic\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBl-Regular\";src:url(\"" + path + "/webfonts/svg/style_184923.svg#GalderglynnEsqBl-Regular\") format(\"svg\");}\n");
				document.write("@font-face {font-family:\"GalderglynnEsqBl-Italic\";src:url(\"" + path + "/webfonts/svg/style_184917.svg#GalderglynnEsqBl-Italic\") format(\"svg\");}\n");
				document.write("</style>");
		break;
		
	default:
		webfontType = 'default';
		break;
}

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