/*!
 *
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 *
 */

/*!	SWFObject v2.2 <http://code.google.com/p/swfobject/>
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/

var swfobject = function() {

	var UNDEF = "undefined",
		OBJECT = "object",
		SHOCKWAVE_FLASH = "Shockwave Flash",
		SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
		FLASH_MIME_TYPE = "application/x-shockwave-flash",
		EXPRESS_INSTALL_ID = "SWFObjectExprInst",
		ON_READY_STATE_CHANGE = "onreadystatechange",

		win = window,
		doc = document,
		nav = navigator,

		plugin = false,
		domLoadFnArr = [main],
		regObjArr = [],
		objIdArr = [],
		listenersArr = [],
		storedAltContent,
		storedAltContentId,
		storedCallbackFn,
		storedCallbackObj,
		isDomLoaded = false,
		isExpressInstallActive = false,
		dynamicStylesheet,
		dynamicStylesheetMedia,
		autoHideShow = true,

	/* Centralized function for browser feature detection
		- User agent string detection is only used when no good alternative is possible
		- Is executed directly for optimal performance
	*/
	ua = function() {
		var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF,
			u = nav.userAgent.toLowerCase(),
			p = nav.platform.toLowerCase(),
			windows = p ? /win/.test(p) : /win/.test(u),
			mac = p ? /mac/.test(p) : /mac/.test(u),
			webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
			ie = !+"\v1", // feature detection based on Andrea Giammarchi's solution: http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html
			playerVersion = [0,0,0],
			d = null;
		if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
			d = nav.plugins[SHOCKWAVE_FLASH].description;
			if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { // navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin indicates whether plug-ins are enabled or disabled in Safari 3+
				plugin = true;
				ie = false; // cascaded feature detection for Internet Explorer
				d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
				playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
				playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
				playerVersion[2] = /[a-zA-Z]/.test(d) ? parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0;
			}
		}
		else if (typeof win.ActiveXObject != UNDEF) {
			try {
				var a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
				if (a) { // a will return null when ActiveX is disabled
					d = a.GetVariable("$version");
					if (d) {
						ie = true; // cascaded feature detection for Internet Explorer
						d = d.split(" ")[1].split(",");
						playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
					}
				}
			}
			catch(e) {}
		}
		return { w3:w3cdom, pv:playerVersion, wk:webkit, ie:ie, win:windows, mac:mac };
	}(),

	/* Cross-browser onDomLoad
		- Will fire an event as soon as the DOM of a web page is loaded
		- Internet Explorer workaround based on Diego Perini's solution: http://javascript.nwbox.com/IEContentLoaded/
		- Regular onload serves as fallback
	*/
	onDomLoad = function() {
		if (!ua.w3) { return; }
		if ((typeof doc.readyState != UNDEF && doc.readyState == "complete") || (typeof doc.readyState == UNDEF && (doc.getElementsByTagName("body")[0] || doc.body))) { // function is fired after onload, e.g. when script is inserted dynamically
			callDomLoadFunctions();
		}
		if (!isDomLoaded) {
			if (typeof doc.addEventListener != UNDEF) {
				doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, false);
			}
			if (ua.ie && ua.win) {
				doc.attachEvent(ON_READY_STATE_CHANGE, function() {
					if (doc.readyState == "complete") {
						doc.detachEvent(ON_READY_STATE_CHANGE, arguments.callee);
						callDomLoadFunctions();
					}
				});
				if (win == top) { // if not inside an iframe
					(function(){
						if (isDomLoaded) { return; }
						try {
							doc.documentElement.doScroll("left");
						}
						catch(e) {
							setTimeout(arguments.callee, 0);
							return;
						}
						callDomLoadFunctions();
					})();
				}
			}
			if (ua.wk) {
				(function(){
					if (isDomLoaded) { return; }
					if (!/loaded|complete/.test(doc.readyState)) {
						setTimeout(arguments.callee, 0);
						return;
					}
					callDomLoadFunctions();
				})();
			}
			addLoadEvent(callDomLoadFunctions);
		}
	}();

	function callDomLoadFunctions() {
		if (isDomLoaded) { return; }
		try { // test if we can really add/remove elements to/from the DOM; we don't want to fire it too early
			var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span"));
			t.parentNode.removeChild(t);
		}
		catch (e) { return; }
		isDomLoaded = true;
		var dl = domLoadFnArr.length;
		for (var i = 0; i < dl; i++) {
			domLoadFnArr[i]();
		}
	}

	function addDomLoadEvent(fn) {
		if (isDomLoaded) {
			fn();
		}
		else {
			domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
		}
	}

	/* Cross-browser onload
		- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
		- Will fire an event as soon as a web page including all of its assets are loaded
	 */
	function addLoadEvent(fn) {
		if (typeof win.addEventListener != UNDEF) {
			win.addEventListener("load", fn, false);
		}
		else if (typeof doc.addEventListener != UNDEF) {
			doc.addEventListener("load", fn, false);
		}
		else if (typeof win.attachEvent != UNDEF) {
			addListener(win, "onload", fn);
		}
		else if (typeof win.onload == "function") {
			var fnOld = win.onload;
			win.onload = function() {
				fnOld();
				fn();
			};
		}
		else {
			win.onload = fn;
		}
	}

	/* Main function
		- Will preferably execute onDomLoad, otherwise onload (as a fallback)
	*/
	function main() {
		if (plugin) {
			testPlayerVersion();
		}
		else {
			matchVersions();
		}
	}

	/* Detect the Flash Player version for non-Internet Explorer browsers
		- Detecting the plug-in version via the object element is more precise than using the plugins collection item's description:
		  a. Both release and build numbers can be detected
		  b. Avoid wrong descriptions by corrupt installers provided by Adobe
		  c. Avoid wrong descriptions by multiple Flash Player entries in the plugin Array, caused by incorrect browser imports
		- Disadvantage of this method is that it depends on the availability of the DOM, while the plugins collection is immediately available
	*/
	function testPlayerVersion() {
		var b = doc.getElementsByTagName("body")[0];
		var o = createElement(OBJECT);
		o.setAttribute("type", FLASH_MIME_TYPE);
		var t = b.appendChild(o);
		if (t) {
			var counter = 0;
			(function(){
				if (typeof t.GetVariable != UNDEF) {
					var d = t.GetVariable("$version");
					if (d) {
						d = d.split(" ")[1].split(",");
						ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
					}
				}
				else if (counter < 10) {
					counter++;
					setTimeout(arguments.callee, 10);
					return;
				}
				b.removeChild(o);
				t = null;
				matchVersions();
			})();
		}
		else {
			matchVersions();
		}
	}

	/* Perform Flash Player and SWF version matching; static publishing only
	*/
	function matchVersions() {
		var rl = regObjArr.length;
		if (rl > 0) {
			for (var i = 0; i < rl; i++) { // for each registered object element
				var id = regObjArr[i].id;
				var cb = regObjArr[i].callbackFn;
				var cbObj = {success:false, id:id};
				if (ua.pv[0] > 0) {
					var obj = getElementById(id);
					if (obj) {
						if (hasPlayerVersion(regObjArr[i].swfVersion) && !(ua.wk && ua.wk < 312)) { // Flash Player version >= published SWF version: Houston, we have a match!
							setVisibility(id, true);
							if (cb) {
								cbObj.success = true;
								cbObj.ref = getObjectById(id);
								cb(cbObj);
							}
						}
						else if (regObjArr[i].expressInstall && canExpressInstall()) { // show the Adobe Express Install dialog if set by the web page author and if supported
							var att = {};
							att.data = regObjArr[i].expressInstall;
							att.width = obj.getAttribute("width") || "0";
							att.height = obj.getAttribute("height") || "0";
							if (obj.getAttribute("class")) { att.styleclass = obj.getAttribute("class"); }
							if (obj.getAttribute("align")) { att.align = obj.getAttribute("align"); }
							// parse HTML object param element's name-value pairs
							var par = {};
							var p = obj.getElementsByTagName("param");
							var pl = p.length;
							for (var j = 0; j < pl; j++) {
								if (p[j].getAttribute("name").toLowerCase() != "movie") {
									par[p[j].getAttribute("name")] = p[j].getAttribute("value");
								}
							}
							showExpressInstall(att, par, id, cb);
						}
						else { // Flash Player and SWF version mismatch or an older Webkit engine that ignores the HTML object element's nested param elements: display alternative content instead of SWF
							displayAltContent(obj);
							if (cb) { cb(cbObj); }
						}
					}
				}
				else {	// if no Flash Player is installed or the fp version cannot be detected we let the HTML object element do its job (either show a SWF or alternative content)
					setVisibility(id, true);
					if (cb) {
						var o = getObjectById(id); // test whether there is an HTML object element or not
						if (o && typeof o.SetVariable != UNDEF) {
							cbObj.success = true;
							cbObj.ref = o;
						}
						cb(cbObj);
					}
				}
			}
		}
	}

	function getObjectById(objectIdStr) {
		var r = null;
		var o = getElementById(objectIdStr);
		if (o && o.nodeName == "OBJECT") {
			if (typeof o.SetVariable != UNDEF) {
				r = o;
			}
			else {
				var n = o.getElementsByTagName(OBJECT)[0];
				if (n) {
					r = n;
				}
			}
		}
		return r;
	}

	/* Requirements for Adobe Express Install
		- only one instance can be active at a time
		- fp 6.0.65 or higher
		- Win/Mac OS only
		- no Webkit engines older than version 312
	*/
	function canExpressInstall() {
		return !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac) && !(ua.wk && ua.wk < 312);
	}

	/* Show the Adobe Express Install dialog
		- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
	*/
	function showExpressInstall(att, par, replaceElemIdStr, callbackFn) {
		isExpressInstallActive = true;
		storedCallbackFn = callbackFn || null;
		storedCallbackObj = {success:false, id:replaceElemIdStr};
		var obj = getElementById(replaceElemIdStr);
		if (obj) {
			if (obj.nodeName == "OBJECT") { // static publishing
				storedAltContent = abstractAltContent(obj);
				storedAltContentId = null;
			}
			else { // dynamic publishing
				storedAltContent = obj;
				storedAltContentId = replaceElemIdStr;
			}
			att.id = EXPRESS_INSTALL_ID;
			if (typeof att.width == UNDEF || (!/%$/.test(att.width) && parseInt(att.width, 10) < 310)) { att.width = "310"; }
			if (typeof att.height == UNDEF || (!/%$/.test(att.height) && parseInt(att.height, 10) < 137)) { att.height = "137"; }
			doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
			var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
				fv = "MMredirectURL=" + win.location.toString().replace(/&/g,"%26") + "&MMplayerType=" + pt + "&MMdoctitle=" + doc.title;
			if (typeof par.flashvars != UNDEF) {
				par.flashvars += "&" + fv;
			}
			else {
				par.flashvars = fv;
			}
			// IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
			// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
			if (ua.ie && ua.win && obj.readyState != 4) {
				var newObj = createElement("div");
				replaceElemIdStr += "SWFObjectNew";
				newObj.setAttribute("id", replaceElemIdStr);
				obj.parentNode.insertBefore(newObj, obj); // insert placeholder div that will be replaced by the object element that loads expressinstall.swf
				obj.style.display = "none";
				(function(){
					if (obj.readyState == 4) {
						obj.parentNode.removeChild(obj);
					}
					else {
						setTimeout(arguments.callee, 10);
					}
				})();
			}
			createSWF(att, par, replaceElemIdStr);
		}
	}

	/* Functions to abstract and display alternative content
	*/
	function displayAltContent(obj) {
		if (ua.ie && ua.win && obj.readyState != 4) {
			// IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
			// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
			var el = createElement("div");
			obj.parentNode.insertBefore(el, obj); // insert placeholder div that will be replaced by the alternative content
			el.parentNode.replaceChild(abstractAltContent(obj), el);
			obj.style.display = "none";
			(function(){
				if (obj.readyState == 4) {
					obj.parentNode.removeChild(obj);
				}
				else {
					setTimeout(arguments.callee, 10);
				}
			})();
		}
		else {
			obj.parentNode.replaceChild(abstractAltContent(obj), obj);
		}
	}

	function abstractAltContent(obj) {
		var ac = createElement("div");
		if (ua.win && ua.ie) {
			ac.innerHTML = obj.innerHTML;
		}
		else {
			var nestedObj = obj.getElementsByTagName(OBJECT)[0];
			if (nestedObj) {
				var c = nestedObj.childNodes;
				if (c) {
					var cl = c.length;
					for (var i = 0; i < cl; i++) {
						if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) {
							ac.appendChild(c[i].cloneNode(true));
						}
					}
				}
			}
		}
		return ac;
	}

	/* Cross-browser dynamic SWF creation
	*/
	function createSWF(attObj, parObj, id) {
		var r, el = getElementById(id);
		if (ua.wk && ua.wk < 312) { return r; }
		if (el) {
			if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
				attObj.id = id;
			}
			if (ua.ie && ua.win) { // Internet Explorer + the HTML object element + W3C DOM methods do not combine: fall back to outerHTML
				var att = "";
				for (var i in attObj) {
					if (attObj[i] != Object.prototype[i]) { // filter out prototype additions from other potential libraries
						if (i.toLowerCase() == "data") {
							parObj.movie = attObj[i];
						}
						else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
							att += ' class="' + attObj[i] + '"';
						}
						else if (i.toLowerCase() != "classid") {
							att += ' ' + i + '="' + attObj[i] + '"';
						}
					}
				}
				var par = "";
				for (var j in parObj) {
					if (parObj[j] != Object.prototype[j]) { // filter out prototype additions from other potential libraries
						par += '<param name="' + j + '" value="' + parObj[j] + '" />';
					}
				}
				el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
				objIdArr[objIdArr.length] = attObj.id; // stored to fix object 'leaks' on unload (dynamic publishing only)
				r = getElementById(attObj.id);
			}
			else { // well-behaving browsers
				var o = createElement(OBJECT);
				o.setAttribute("type", FLASH_MIME_TYPE);
				for (var m in attObj) {
					if (attObj[m] != Object.prototype[m]) { // filter out prototype additions from other potential libraries
						if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
							o.setAttribute("class", attObj[m]);
						}
						else if (m.toLowerCase() != "classid") { // filter out IE specific attribute
							o.setAttribute(m, attObj[m]);
						}
					}
				}
				for (var n in parObj) {
					if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") { // filter out prototype additions from other potential libraries and IE specific param element
						createObjParam(o, n, parObj[n]);
					}
				}
				el.parentNode.replaceChild(o, el);
				r = o;
			}
		}
		return r;
	}

	function createObjParam(el, pName, pValue) {
		var p = createElement("param");
		p.setAttribute("name", pName);
		p.setAttribute("value", pValue);
		el.appendChild(p);
	}

	/* Cross-browser SWF removal
		- Especially needed to safely and completely remove a SWF in Internet Explorer
	*/
	function removeSWF(id) {
		var obj = getElementById(id);
		if (obj && obj.nodeName == "OBJECT") {
			if (ua.ie && ua.win) {
				obj.style.display = "none";
				(function(){
					if (obj.readyState == 4) {
						removeObjectInIE(id);
					}
					else {
						setTimeout(arguments.callee, 10);
					}
				})();
			}
			else {
				obj.parentNode.removeChild(obj);
			}
		}
	}

	function removeObjectInIE(id) {
		var obj = getElementById(id);
		if (obj) {
			for (var i in obj) {
				if (typeof obj[i] == "function") {
					obj[i] = null;
				}
			}
			obj.parentNode.removeChild(obj);
		}
	}

	/* Functions to optimize JavaScript compression
	*/
	function getElementById(id) {
		var el = null;
		try {
			el = doc.getElementById(id);
		}
		catch (e) {}
		return el;
	}

	function createElement(el) {
		return doc.createElement(el);
	}

	/* Updated attachEvent function for Internet Explorer
		- Stores attachEvent information in an Array, so on unload the detachEvent functions can be called to avoid memory leaks
	*/
	function addListener(target, eventType, fn) {
		target.attachEvent(eventType, fn);
		listenersArr[listenersArr.length] = [target, eventType, fn];
	}

	/* Flash Player and SWF content version matching
	*/
	function hasPlayerVersion(rv) {
		var pv = ua.pv, v = rv.split(".");
		v[0] = parseInt(v[0], 10);
		v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
		v[2] = parseInt(v[2], 10) || 0;
		return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
	}

	/* Cross-browser dynamic CSS creation
		- Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
	*/
	function createCSS(sel, decl, media, newStyle) {
		if (ua.ie && ua.mac) { return; }
		var h = doc.getElementsByTagName("head")[0];
		if (!h) { return; } // to also support badly authored HTML pages that lack a head element
		var m = (media && typeof media == "string") ? media : "screen";
		if (newStyle) {
			dynamicStylesheet = null;
			dynamicStylesheetMedia = null;
		}
		if (!dynamicStylesheet || dynamicStylesheetMedia != m) {
			// create dynamic stylesheet + get a global reference to it
			var s = createElement("style");
			s.setAttribute("type", "text/css");
			s.setAttribute("media", m);
			dynamicStylesheet = h.appendChild(s);
			if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
				dynamicStylesheet = doc.styleSheets[doc.styleSheets.length - 1];
			}
			dynamicStylesheetMedia = m;
		}
		// add style rule
		if (ua.ie && ua.win) {
			if (dynamicStylesheet && typeof dynamicStylesheet.addRule == OBJECT) {
				dynamicStylesheet.addRule(sel, decl);
			}
		}
		else {
			if (dynamicStylesheet && typeof doc.createTextNode != UNDEF) {
				dynamicStylesheet.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
			}
		}
	}

	function setVisibility(id, isVisible) {
		if (!autoHideShow) { return; }
		var v = isVisible ? "visible" : "hidden";
		if (isDomLoaded && getElementById(id)) {
			getElementById(id).style.visibility = v;
		}
		else {
			createCSS("#" + id, "visibility:" + v);
		}
	}

	/* Filter to avoid XSS attacks
	*/
	function urlEncodeIfNecessary(s) {
		var regex = /[\\\"<>\.;]/;
		var hasBadChars = regex.exec(s) != null;
		return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;
	}

	/* Release memory to avoid memory leaks caused by closures, fix hanging audio/video threads and force open sockets/NetConnections to disconnect (Internet Explorer only)
	*/
	var cleanup = function() {
		if (ua.ie && ua.win) {
			window.attachEvent("onunload", function() {
				// remove listeners to avoid memory leaks
				var ll = listenersArr.length;
				for (var i = 0; i < ll; i++) {
					listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]);
				}
				// cleanup dynamically embedded objects to fix audio/video threads and force open sockets and NetConnections to disconnect
				var il = objIdArr.length;
				for (var j = 0; j < il; j++) {
					removeSWF(objIdArr[j]);
				}
				// cleanup library's main closures to avoid memory leaks
				for (var k in ua) {
					ua[k] = null;
				}
				ua = null;
				for (var l in swfobject) {
					swfobject[l] = null;
				}
				swfobject = null;
			});
		}
	}();

	return {
		/* Public API
			- Reference: http://code.google.com/p/swfobject/wiki/documentation
		*/
		registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr, callbackFn) {
			if (ua.w3 && objectIdStr && swfVersionStr) {
				var regObj = {};
				regObj.id = objectIdStr;
				regObj.swfVersion = swfVersionStr;
				regObj.expressInstall = xiSwfUrlStr;
				regObj.callbackFn = callbackFn;
				regObjArr[regObjArr.length] = regObj;
				setVisibility(objectIdStr, false);
			}
			else if (callbackFn) {
				callbackFn({success:false, id:objectIdStr});
			}
		},

		getObjectById: function(objectIdStr) {
			if (ua.w3) {
				return getObjectById(objectIdStr);
			}
		},

		embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn) {
			var callbackObj = {success:false, id:replaceElemIdStr};
			if (ua.w3 && !(ua.wk && ua.wk < 312) && swfUrlStr && replaceElemIdStr && widthStr && heightStr && swfVersionStr) {
				setVisibility(replaceElemIdStr, false);
				addDomLoadEvent(function() {
					widthStr += ""; // auto-convert to string
					heightStr += "";
					var att = {};
					if (attObj && typeof attObj === OBJECT) {
						for (var i in attObj) { // copy object to avoid the use of references, because web authors often reuse attObj for multiple SWFs
							att[i] = attObj[i];
						}
					}
					att.data = swfUrlStr;
					att.width = widthStr;
					att.height = heightStr;
					var par = {};
					if (parObj && typeof parObj === OBJECT) {
						for (var j in parObj) { // copy object to avoid the use of references, because web authors often reuse parObj for multiple SWFs
							par[j] = parObj[j];
						}
					}
					if (flashvarsObj && typeof flashvarsObj === OBJECT) {
						for (var k in flashvarsObj) { // copy object to avoid the use of references, because web authors often reuse flashvarsObj for multiple SWFs
							if (typeof par.flashvars != UNDEF) {
								par.flashvars += "&" + k + "=" + flashvarsObj[k];
							}
							else {
								par.flashvars = k + "=" + flashvarsObj[k];
							}
						}
					}
					if (hasPlayerVersion(swfVersionStr)) { // create SWF
						var obj = createSWF(att, par, replaceElemIdStr);
						if (att.id == replaceElemIdStr) {
							setVisibility(replaceElemIdStr, true);
						}
						callbackObj.success = true;
						callbackObj.ref = obj;
					}
					else if (xiSwfUrlStr && canExpressInstall()) { // show Adobe Express Install
						att.data = xiSwfUrlStr;
						showExpressInstall(att, par, replaceElemIdStr, callbackFn);
						return;
					}
					else { // show alternative content
						setVisibility(replaceElemIdStr, true);
					}
					if (callbackFn) { callbackFn(callbackObj); }
				});
			}
			else if (callbackFn) { callbackFn(callbackObj);	}
		},

		switchOffAutoHideShow: function() {
			autoHideShow = false;
		},

		ua: ua,

		getFlashPlayerVersion: function() {
			return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
		},

		hasFlashPlayerVersion: hasPlayerVersion,

		createSWF: function(attObj, parObj, replaceElemIdStr) {
			if (ua.w3) {
				return createSWF(attObj, parObj, replaceElemIdStr);
			}
			else {
				return undefined;
			}
		},

		showExpressInstall: function(att, par, replaceElemIdStr, callbackFn) {
			if (ua.w3 && canExpressInstall()) {
				showExpressInstall(att, par, replaceElemIdStr, callbackFn);
			}
		},

		removeSWF: function(objElemIdStr) {
			if (ua.w3) {
				removeSWF(objElemIdStr);
			}
		},

		createCSS: function(selStr, declStr, mediaStr, newStyleBoolean) {
			if (ua.w3) {
				createCSS(selStr, declStr, mediaStr, newStyleBoolean);
			}
		},

		addDomLoadEvent: addDomLoadEvent,

		addLoadEvent: addLoadEvent,

		getQueryParamValue: function(param) {
			var q = doc.location.search || doc.location.hash;
			if (q) {
				if (/\?/.test(q)) { q = q.split("?")[1]; } // strip question mark
				if (param == null) {
					return urlEncodeIfNecessary(q);
				}
				var pairs = q.split("&");
				for (var i = 0; i < pairs.length; i++) {
					if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
						return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1)));
					}
				}
			}
			return "";
		},

		// For internal usage only
		expressInstallCallback: function() {
			if (isExpressInstallActive) {
				var obj = getElementById(EXPRESS_INSTALL_ID);
				if (obj && storedAltContent) {
					obj.parentNode.replaceChild(storedAltContent, obj);
					if (storedAltContentId) {
						setVisibility(storedAltContentId, true);
						if (ua.ie && ua.win) { storedAltContent.style.display = "block"; }
					}
					if (storedCallbackFn) { storedCallbackFn(storedCallbackObj); }
				}
				isExpressInstallActive = false;
			}
		}
	};
}();
/*!
 * jQuery JavaScript Library v1.7.1
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Mon Nov 21 21:11:03 2011 -0500
 */
(function( window, undefined ) {

// Use the correct document accordingly with window argument (sandbox)
var document = window.document,
	navigator = window.navigator,
	location = window.location;
var jQuery = (function() {

// Define a local copy of jQuery
var jQuery = function( selector, context ) {
		// The jQuery object is actually just the init constructor 'enhanced'
		return new jQuery.fn.init( selector, context, rootjQuery );
	},

	// Map over jQuery in case of overwrite
	_jQuery = window.jQuery,

	// Map over the $ in case of overwrite
	_$ = window.$,

	// A central reference to the root jQuery(document)
	rootjQuery,

	// A simple way to check for HTML strings or ID strings
	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
	quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,

	// Check if a string has a non-whitespace character in it
	rnotwhite = /\S/,

	// Used for trimming whitespace
	trimLeft = /^\s+/,
	trimRight = /\s+$/,

	// Match a standalone tag
	rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,

	// JSON RegExp
	rvalidchars = /^[\],:{}\s]*$/,
	rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
	rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
	rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,

	// Useragent RegExp
	rwebkit = /(webkit)[ \/]([\w.]+)/,
	ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
	rmsie = /(msie) ([\w.]+)/,
	rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,

	// Matches dashed string for camelizing
	rdashAlpha = /-([a-z]|[0-9])/ig,
	rmsPrefix = /^-ms-/,

	// Used by jQuery.camelCase as callback to replace()
	fcamelCase = function( all, letter ) {
		return ( letter + "" ).toUpperCase();
	},

	// Keep a UserAgent string for use with jQuery.browser
	userAgent = navigator.userAgent,

	// For matching the engine and version of the browser
	browserMatch,

	// The deferred used on DOM ready
	readyList,

	// The ready event handler
	DOMContentLoaded,

	// Save a reference to some core methods
	toString = Object.prototype.toString,
	hasOwn = Object.prototype.hasOwnProperty,
	push = Array.prototype.push,
	slice = Array.prototype.slice,
	trim = String.prototype.trim,
	indexOf = Array.prototype.indexOf,

	// [[Class]] -> type pairs
	class2type = {};

jQuery.fn = jQuery.prototype = {
	constructor: jQuery,
	init: function( selector, context, rootjQuery ) {
		var match, elem, ret, doc;

		// Handle $(""), $(null), or $(undefined)
		if ( !selector ) {
			return this;
		}

		// Handle $(DOMElement)
		if ( selector.nodeType ) {
			this.context = this[0] = selector;
			this.length = 1;
			return this;
		}

		// The body element only exists once, optimize finding it
		if ( selector === "body" && !context && document.body ) {
			this.context = document;
			this[0] = document.body;
			this.selector = selector;
			this.length = 1;
			return this;
		}

		// Handle HTML strings
		if ( typeof selector === "string" ) {
			// Are we dealing with HTML string or an ID?
			if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
				// Assume that strings that start and end with <> are HTML and skip the regex check
				match = [ null, selector, null ];

			} else {
				match = quickExpr.exec( selector );
			}

			// Verify a match, and that no context was specified for #id
			if ( match && (match[1] || !context) ) {

				// HANDLE: $(html) -> $(array)
				if ( match[1] ) {
					context = context instanceof jQuery ? context[0] : context;
					doc = ( context ? context.ownerDocument || context : document );

					// If a single string is passed in and it's a single tag
					// just do a createElement and skip the rest
					ret = rsingleTag.exec( selector );

					if ( ret ) {
						if ( jQuery.isPlainObject( context ) ) {
							selector = [ document.createElement( ret[1] ) ];
							jQuery.fn.attr.call( selector, context, true );

						} else {
							selector = [ doc.createElement( ret[1] ) ];
						}

					} else {
						ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
						selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
					}

					return jQuery.merge( this, selector );

				// HANDLE: $("#id")
				} else {
					elem = document.getElementById( match[2] );

					// Check parentNode to catch when Blackberry 4.6 returns
					// nodes that are no longer in the document #6963
					if ( elem && elem.parentNode ) {
						// Handle the case where IE and Opera return items
						// by name instead of ID
						if ( elem.id !== match[2] ) {
							return rootjQuery.find( selector );
						}

						// Otherwise, we inject the element directly into the jQuery object
						this.length = 1;
						this[0] = elem;
					}

					this.context = document;
					this.selector = selector;
					return this;
				}

			// HANDLE: $(expr, $(...))
			} else if ( !context || context.jquery ) {
				return ( context || rootjQuery ).find( selector );

			// HANDLE: $(expr, context)
			// (which is just equivalent to: $(context).find(expr)
			} else {
				return this.constructor( context ).find( selector );
			}

		// HANDLE: $(function)
		// Shortcut for document ready
		} else if ( jQuery.isFunction( selector ) ) {
			return rootjQuery.ready( selector );
		}

		if ( selector.selector !== undefined ) {
			this.selector = selector.selector;
			this.context = selector.context;
		}

		return jQuery.makeArray( selector, this );
	},

	// Start with an empty selector
	selector: "",

	// The current version of jQuery being used
	jquery: "1.7.1",

	// The default length of a jQuery object is 0
	length: 0,

	// The number of elements contained in the matched element set
	size: function() {
		return this.length;
	},

	toArray: function() {
		return slice.call( this, 0 );
	},

	// Get the Nth element in the matched element set OR
	// Get the whole matched element set as a clean array
	get: function( num ) {
		return num == null ?

			// Return a 'clean' array
			this.toArray() :

			// Return just the object
			( num < 0 ? this[ this.length + num ] : this[ num ] );
	},

	// Take an array of elements and push it onto the stack
	// (returning the new matched element set)
	pushStack: function( elems, name, selector ) {
		// Build a new jQuery matched element set
		var ret = this.constructor();

		if ( jQuery.isArray( elems ) ) {
			push.apply( ret, elems );

		} else {
			jQuery.merge( ret, elems );
		}

		// Add the old object onto the stack (as a reference)
		ret.prevObject = this;

		ret.context = this.context;

		if ( name === "find" ) {
			ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
		} else if ( name ) {
			ret.selector = this.selector + "." + name + "(" + selector + ")";
		}

		// Return the newly-formed element set
		return ret;
	},

	// Execute a callback for every element in the matched set.
	// (You can seed the arguments with an array of args, but this is
	// only used internally.)
	each: function( callback, args ) {
		return jQuery.each( this, callback, args );
	},

	ready: function( fn ) {
		// Attach the listeners
		jQuery.bindReady();

		// Add the callback
		readyList.add( fn );

		return this;
	},

	eq: function( i ) {
		i = +i;
		return i === -1 ?
			this.slice( i ) :
			this.slice( i, i + 1 );
	},

	first: function() {
		return this.eq( 0 );
	},

	last: function() {
		return this.eq( -1 );
	},

	slice: function() {
		return this.pushStack( slice.apply( this, arguments ),
			"slice", slice.call(arguments).join(",") );
	},

	map: function( callback ) {
		return this.pushStack( jQuery.map(this, function( elem, i ) {
			return callback.call( elem, i, elem );
		}));
	},

	end: function() {
		return this.prevObject || this.constructor(null);
	},

	// For internal use only.
	// Behaves like an Array's method, not like a jQuery method.
	push: push,
	sort: [].sort,
	splice: [].splice
};

// Give the init function the jQuery prototype for later instantiation
jQuery.fn.init.prototype = jQuery.fn;

jQuery.extend = jQuery.fn.extend = function() {
	var options, name, src, copy, copyIsArray, clone,
		target = arguments[0] || {},
		i = 1,
		length = arguments.length,
		deep = false;

	// Handle a deep copy situation
	if ( typeof target === "boolean" ) {
		deep = target;
		target = arguments[1] || {};
		// skip the boolean and the target
		i = 2;
	}

	// Handle case when target is a string or something (possible in deep copy)
	if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
		target = {};
	}

	// extend jQuery itself if only one argument is passed
	if ( length === i ) {
		target = this;
		--i;
	}

	for ( ; i < length; i++ ) {
		// Only deal with non-null/undefined values
		if ( (options = arguments[ i ]) != null ) {
			// Extend the base object
			for ( name in options ) {
				src = target[ name ];
				copy = options[ name ];

				// Prevent never-ending loop
				if ( target === copy ) {
					continue;
				}

				// Recurse if we're merging plain objects or arrays
				if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
					if ( copyIsArray ) {
						copyIsArray = false;
						clone = src && jQuery.isArray(src) ? src : [];

					} else {
						clone = src && jQuery.isPlainObject(src) ? src : {};
					}

					// Never move original objects, clone them
					target[ name ] = jQuery.extend( deep, clone, copy );

				// Don't bring in undefined values
				} else if ( copy !== undefined ) {
					target[ name ] = copy;
				}
			}
		}
	}

	// Return the modified object
	return target;
};

jQuery.extend({
	noConflict: function( deep ) {
		if ( window.$ === jQuery ) {
			window.$ = _$;
		}

		if ( deep && window.jQuery === jQuery ) {
			window.jQuery = _jQuery;
		}

		return jQuery;
	},

	// Is the DOM ready to be used? Set to true once it occurs.
	isReady: false,

	// A counter to track how many items to wait for before
	// the ready event fires. See #6781
	readyWait: 1,

	// Hold (or release) the ready event
	holdReady: function( hold ) {
		if ( hold ) {
			jQuery.readyWait++;
		} else {
			jQuery.ready( true );
		}
	},

	// Handle when the DOM is ready
	ready: function( wait ) {
		// Either a released hold or an DOMready/load event and not yet ready
		if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
			// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
			if ( !document.body ) {
				return setTimeout( jQuery.ready, 1 );
			}

			// Remember that the DOM is ready
			jQuery.isReady = true;

			// If a normal DOM Ready event fired, decrement, and wait if need be
			if ( wait !== true && --jQuery.readyWait > 0 ) {
				return;
			}

			// If there are functions bound, to execute
			readyList.fireWith( document, [ jQuery ] );

			// Trigger any bound ready events
			if ( jQuery.fn.trigger ) {
				jQuery( document ).trigger( "ready" ).off( "ready" );
			}
		}
	},

	bindReady: function() {
		if ( readyList ) {
			return;
		}

		readyList = jQuery.Callbacks( "once memory" );

		// Catch cases where $(document).ready() is called after the
		// browser event has already occurred.
		if ( document.readyState === "complete" ) {
			// Handle it asynchronously to allow scripts the opportunity to delay ready
			return setTimeout( jQuery.ready, 1 );
		}

		// Mozilla, Opera and webkit nightlies currently support this event
		if ( document.addEventListener ) {
			// Use the handy event callback
			document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );

			// A fallback to window.onload, that will always work
			window.addEventListener( "load", jQuery.ready, false );

		// If IE event model is used
		} else if ( document.attachEvent ) {
			// ensure firing before onload,
			// maybe late but safe also for iframes
			document.attachEvent( "onreadystatechange", DOMContentLoaded );

			// A fallback to window.onload, that will always work
			window.attachEvent( "onload", jQuery.ready );

			// If IE and not a frame
			// continually check to see if the document is ready
			var toplevel = false;

			try {
				toplevel = window.frameElement == null;
			} catch(e) {}

			if ( document.documentElement.doScroll && toplevel ) {
				doScrollCheck();
			}
		}
	},

	// See test/unit/core.js for details concerning isFunction.
	// Since version 1.3, DOM methods and functions like alert
	// aren't supported. They return false on IE (#2968).
	isFunction: function( obj ) {
		return jQuery.type(obj) === "function";
	},

	isArray: Array.isArray || function( obj ) {
		return jQuery.type(obj) === "array";
	},

	// A crude way of determining if an object is a window
	isWindow: function( obj ) {
		return obj && typeof obj === "object" && "setInterval" in obj;
	},

	isNumeric: function( obj ) {
		return !isNaN( parseFloat(obj) ) && isFinite( obj );
	},

	type: function( obj ) {
		return obj == null ?
			String( obj ) :
			class2type[ toString.call(obj) ] || "object";
	},

	isPlainObject: function( obj ) {
		// Must be an Object.
		// Because of IE, we also have to check the presence of the constructor property.
		// Make sure that DOM nodes and window objects don't pass through, as well
		if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
			return false;
		}

		try {
			// Not own constructor property must be Object
			if ( obj.constructor &&
				!hasOwn.call(obj, "constructor") &&
				!hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
				return false;
			}
		} catch ( e ) {
			// IE8,9 Will throw exceptions on certain host objects #9897
			return false;
		}

		// Own properties are enumerated firstly, so to speed up,
		// if last one is own, then all properties are own.

		var key;
		for ( key in obj ) {}

		return key === undefined || hasOwn.call( obj, key );
	},

	isEmptyObject: function( obj ) {
		for ( var name in obj ) {
			return false;
		}
		return true;
	},

	error: function( msg ) {
		throw new Error( msg );
	},

	parseJSON: function( data ) {
		if ( typeof data !== "string" || !data ) {
			return null;
		}

		// Make sure leading/trailing whitespace is removed (IE can't handle it)
		data = jQuery.trim( data );

		// Attempt to parse using the native JSON parser first
		if ( window.JSON && window.JSON.parse ) {
			return window.JSON.parse( data );
		}

		// Make sure the incoming data is actual JSON
		// Logic borrowed from http://json.org/json2.js
		if ( rvalidchars.test( data.replace( rvalidescape, "@" )
			.replace( rvalidtokens, "]" )
			.replace( rvalidbraces, "")) ) {

			return ( new Function( "return " + data ) )();

		}
		jQuery.error( "Invalid JSON: " + data );
	},

	// Cross-browser xml parsing
	parseXML: function( data ) {
		var xml, tmp;
		try {
			if ( window.DOMParser ) { // Standard
				tmp = new DOMParser();
				xml = tmp.parseFromString( data , "text/xml" );
			} else { // IE
				xml = new ActiveXObject( "Microsoft.XMLDOM" );
				xml.async = "false";
				xml.loadXML( data );
			}
		} catch( e ) {
			xml = undefined;
		}
		if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
			jQuery.error( "Invalid XML: " + data );
		}
		return xml;
	},

	noop: function() {},

	// Evaluates a script in a global context
	// Workarounds based on findings by Jim Driscoll
	// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
	globalEval: function( data ) {
		if ( data && rnotwhite.test( data ) ) {
			// We use execScript on Internet Explorer
			// We use an anonymous function so that context is window
			// rather than jQuery in Firefox
			( window.execScript || function( data ) {
				window[ "eval" ].call( window, data );
			} )( data );
		}
	},

	// Convert dashed to camelCase; used by the css and data modules
	// Microsoft forgot to hump their vendor prefix (#9572)
	camelCase: function( string ) {
		return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
	},

	nodeName: function( elem, name ) {
		return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
	},

	// args is for internal usage only
	each: function( object, callback, args ) {
		var name, i = 0,
			length = object.length,
			isObj = length === undefined || jQuery.isFunction( object );

		if ( args ) {
			if ( isObj ) {
				for ( name in object ) {
					if ( callback.apply( object[ name ], args ) === false ) {
						break;
					}
				}
			} else {
				for ( ; i < length; ) {
					if ( callback.apply( object[ i++ ], args ) === false ) {
						break;
					}
				}
			}

		// A special, fast, case for the most common use of each
		} else {
			if ( isObj ) {
				for ( name in object ) {
					if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
						break;
					}
				}
			} else {
				for ( ; i < length; ) {
					if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
						break;
					}
				}
			}
		}

		return object;
	},

	// Use native String.trim function wherever possible
	trim: trim ?
		function( text ) {
			return text == null ?
				"" :
				trim.call( text );
		} :

		// Otherwise use our own trimming functionality
		function( text ) {
			return text == null ?
				"" :
				text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
		},

	// results is for internal usage only
	makeArray: function( array, results ) {
		var ret = results || [];

		if ( array != null ) {
			// The window, strings (and functions) also have 'length'
			// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
			var type = jQuery.type( array );

			if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
				push.call( ret, array );
			} else {
				jQuery.merge( ret, array );
			}
		}

		return ret;
	},

	inArray: function( elem, array, i ) {
		var len;

		if ( array ) {
			if ( indexOf ) {
				return indexOf.call( array, elem, i );
			}

			len = array.length;
			i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;

			for ( ; i < len; i++ ) {
				// Skip accessing in sparse arrays
				if ( i in array && array[ i ] === elem ) {
					return i;
				}
			}
		}

		return -1;
	},

	merge: function( first, second ) {
		var i = first.length,
			j = 0;

		if ( typeof second.length === "number" ) {
			for ( var l = second.length; j < l; j++ ) {
				first[ i++ ] = second[ j ];
			}

		} else {
			while ( second[j] !== undefined ) {
				first[ i++ ] = second[ j++ ];
			}
		}

		first.length = i;

		return first;
	},

	grep: function( elems, callback, inv ) {
		var ret = [], retVal;
		inv = !!inv;

		// Go through the array, only saving the items
		// that pass the validator function
		for ( var i = 0, length = elems.length; i < length; i++ ) {
			retVal = !!callback( elems[ i ], i );
			if ( inv !== retVal ) {
				ret.push( elems[ i ] );
			}
		}

		return ret;
	},

	// arg is for internal usage only
	map: function( elems, callback, arg ) {
		var value, key, ret = [],
			i = 0,
			length = elems.length,
			// jquery objects are treated as arrays
			isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;

		// Go through the array, translating each of the items to their
		if ( isArray ) {
			for ( ; i < length; i++ ) {
				value = callback( elems[ i ], i, arg );

				if ( value != null ) {
					ret[ ret.length ] = value;
				}
			}

		// Go through every key on the object,
		} else {
			for ( key in elems ) {
				value = callback( elems[ key ], key, arg );

				if ( value != null ) {
					ret[ ret.length ] = value;
				}
			}
		}

		// Flatten any nested arrays
		return ret.concat.apply( [], ret );
	},

	// A global GUID counter for objects
	guid: 1,

	// Bind a function to a context, optionally partially applying any
	// arguments.
	proxy: function( fn, context ) {
		if ( typeof context === "string" ) {
			var tmp = fn[ context ];
			context = fn;
			fn = tmp;
		}

		// Quick check to determine if target is callable, in the spec
		// this throws a TypeError, but we will just return undefined.
		if ( !jQuery.isFunction( fn ) ) {
			return undefined;
		}

		// Simulated bind
		var args = slice.call( arguments, 2 ),
			proxy = function() {
				return fn.apply( context, args.concat( slice.call( arguments ) ) );
			};

		// Set the guid of unique handler to the same of original handler, so it can be removed
		proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;

		return proxy;
	},

	// Mutifunctional method to get and set values to a collection
	// The value/s can optionally be executed if it's a function
	access: function( elems, key, value, exec, fn, pass ) {
		var length = elems.length;

		// Setting many attributes
		if ( typeof key === "object" ) {
			for ( var k in key ) {
				jQuery.access( elems, k, key[k], exec, fn, value );
			}
			return elems;
		}

		// Setting one attribute
		if ( value !== undefined ) {
			// Optionally, function values get executed if exec is true
			exec = !pass && exec && jQuery.isFunction(value);

			for ( var i = 0; i < length; i++ ) {
				fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
			}

			return elems;
		}

		// Getting an attribute
		return length ? fn( elems[0], key ) : undefined;
	},

	now: function() {
		return ( new Date() ).getTime();
	},

	// Use of jQuery.browser is frowned upon.
	// More details: http://docs.jquery.com/Utilities/jQuery.browser
	uaMatch: function( ua ) {
		ua = ua.toLowerCase();

		var match = rwebkit.exec( ua ) ||
			ropera.exec( ua ) ||
			rmsie.exec( ua ) ||
			ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
			[];

		return { browser: match[1] || "", version: match[2] || "0" };
	},

	sub: function() {
		function jQuerySub( selector, context ) {
			return new jQuerySub.fn.init( selector, context );
		}
		jQuery.extend( true, jQuerySub, this );
		jQuerySub.superclass = this;
		jQuerySub.fn = jQuerySub.prototype = this();
		jQuerySub.fn.constructor = jQuerySub;
		jQuerySub.sub = this.sub;
		jQuerySub.fn.init = function init( selector, context ) {
			if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
				context = jQuerySub( context );
			}

			return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
		};
		jQuerySub.fn.init.prototype = jQuerySub.fn;
		var rootjQuerySub = jQuerySub(document);
		return jQuerySub;
	},

	browser: {}
});

// Populate the class2type map
jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
	class2type[ "[object " + name + "]" ] = name.toLowerCase();
});

browserMatch = jQuery.uaMatch( userAgent );
if ( browserMatch.browser ) {
	jQuery.browser[ browserMatch.browser ] = true;
	jQuery.browser.version = browserMatch.version;
}

// Deprecated, use jQuery.browser.webkit instead
if ( jQuery.browser.webkit ) {
	jQuery.browser.safari = true;
}

// IE doesn't match non-breaking spaces with \s
if ( rnotwhite.test( "\xA0" ) ) {
	trimLeft = /^[\s\xA0]+/;
	trimRight = /[\s\xA0]+$/;
}

// All jQuery objects should point back to these
rootjQuery = jQuery(document);

// Cleanup functions for the document ready method
if ( document.addEventListener ) {
	DOMContentLoaded = function() {
		document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
		jQuery.ready();
	};

} else if ( document.attachEvent ) {
	DOMContentLoaded = function() {
		// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
		if ( document.readyState === "complete" ) {
			document.detachEvent( "onreadystatechange", DOMContentLoaded );
			jQuery.ready();
		}
	};
}

// The DOM ready check for Internet Explorer
function doScrollCheck() {
	if ( jQuery.isReady ) {
		return;
	}

	try {
		// If IE is used, use the trick by Diego Perini
		// http://javascript.nwbox.com/IEContentLoaded/
		document.documentElement.doScroll("left");
	} catch(e) {
		setTimeout( doScrollCheck, 1 );
		return;
	}

	// and execute any waiting functions
	jQuery.ready();
}

return jQuery;

})();


// String to Object flags format cache
var flagsCache = {};

// Convert String-formatted flags into Object-formatted ones and store in cache
function createFlags( flags ) {
	var object = flagsCache[ flags ] = {},
		i, length;
	flags = flags.split( /\s+/ );
	for ( i = 0, length = flags.length; i < length; i++ ) {
		object[ flags[i] ] = true;
	}
	return object;
}

/*
 * Create a callback list using the following parameters:
 *
 *	flags:	an optional list of space-separated flags that will change how
 *			the callback list behaves
 *
 * By default a callback list will act like an event callback list and can be
 * "fired" multiple times.
 *
 * Possible flags:
 *
 *	once:			will ensure the callback list can only be fired once (like a Deferred)
 *
 *	memory:			will keep track of previous values and will call any callback added
 *					after the list has been fired right away with the latest "memorized"
 *					values (like a Deferred)
 *
 *	unique:			will ensure a callback can only be added once (no duplicate in the list)
 *
 *	stopOnFalse:	interrupt callings when a callback returns false
 *
 */
jQuery.Callbacks = function( flags ) {

	// Convert flags from String-formatted to Object-formatted
	// (we check in cache first)
	flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};

	var // Actual callback list
		list = [],
		// Stack of fire calls for repeatable lists
		stack = [],
		// Last fire value (for non-forgettable lists)
		memory,
		// Flag to know if list is currently firing
		firing,
		// First callback to fire (used internally by add and fireWith)
		firingStart,
		// End of the loop when firing
		firingLength,
		// Index of currently firing callback (modified by remove if needed)
		firingIndex,
		// Add one or several callbacks to the list
		add = function( args ) {
			var i,
				length,
				elem,
				type,
				actual;
			for ( i = 0, length = args.length; i < length; i++ ) {
				elem = args[ i ];
				type = jQuery.type( elem );
				if ( type === "array" ) {
					// Inspect recursively
					add( elem );
				} else if ( type === "function" ) {
					// Add if not in unique mode and callback is not in
					if ( !flags.unique || !self.has( elem ) ) {
						list.push( elem );
					}
				}
			}
		},
		// Fire callbacks
		fire = function( context, args ) {
			args = args || [];
			memory = !flags.memory || [ context, args ];
			firing = true;
			firingIndex = firingStart || 0;
			firingStart = 0;
			firingLength = list.length;
			for ( ; list && firingIndex < firingLength; firingIndex++ ) {
				if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
					memory = true; // Mark as halted
					break;
				}
			}
			firing = false;
			if ( list ) {
				if ( !flags.once ) {
					if ( stack && stack.length ) {
						memory = stack.shift();
						self.fireWith( memory[ 0 ], memory[ 1 ] );
					}
				} else if ( memory === true ) {
					self.disable();
				} else {
					list = [];
				}
			}
		},
		// Actual Callbacks object
		self = {
			// Add a callback or a collection of callbacks to the list
			add: function() {
				if ( list ) {
					var length = list.length;
					add( arguments );
					// Do we need to add the callbacks to the
					// current firing batch?
					if ( firing ) {
						firingLength = list.length;
					// With memory, if we're not firing then
					// we should call right away, unless previous
					// firing was halted (stopOnFalse)
					} else if ( memory && memory !== true ) {
						firingStart = length;
						fire( memory[ 0 ], memory[ 1 ] );
					}
				}
				return this;
			},
			// Remove a callback from the list
			remove: function() {
				if ( list ) {
					var args = arguments,
						argIndex = 0,
						argLength = args.length;
					for ( ; argIndex < argLength ; argIndex++ ) {
						for ( var i = 0; i < list.length; i++ ) {
							if ( args[ argIndex ] === list[ i ] ) {
								// Handle firingIndex and firingLength
								if ( firing ) {
									if ( i <= firingLength ) {
										firingLength--;
										if ( i <= firingIndex ) {
											firingIndex--;
										}
									}
								}
								// Remove the element
								list.splice( i--, 1 );
								// If we have some unicity property then
								// we only need to do this once
								if ( flags.unique ) {
									break;
								}
							}
						}
					}
				}
				return this;
			},
			// Control if a given callback is in the list
			has: function( fn ) {
				if ( list ) {
					var i = 0,
						length = list.length;
					for ( ; i < length; i++ ) {
						if ( fn === list[ i ] ) {
							return true;
						}
					}
				}
				return false;
			},
			// Remove all callbacks from the list
			empty: function() {
				list = [];
				return this;
			},
			// Have the list do nothing anymore
			disable: function() {
				list = stack = memory = undefined;
				return this;
			},
			// Is it disabled?
			disabled: function() {
				return !list;
			},
			// Lock the list in its current state
			lock: function() {
				stack = undefined;
				if ( !memory || memory === true ) {
					self.disable();
				}
				return this;
			},
			// Is it locked?
			locked: function() {
				return !stack;
			},
			// Call all callbacks with the given context and arguments
			fireWith: function( context, args ) {
				if ( stack ) {
					if ( firing ) {
						if ( !flags.once ) {
							stack.push( [ context, args ] );
						}
					} else if ( !( flags.once && memory ) ) {
						fire( context, args );
					}
				}
				return this;
			},
			// Call all the callbacks with the given arguments
			fire: function() {
				self.fireWith( this, arguments );
				return this;
			},
			// To know if the callbacks have already been called at least once
			fired: function() {
				return !!memory;
			}
		};

	return self;
};




var // Static reference to slice
	sliceDeferred = [].slice;

jQuery.extend({

	Deferred: function( func ) {
		var doneList = jQuery.Callbacks( "once memory" ),
			failList = jQuery.Callbacks( "once memory" ),
			progressList = jQuery.Callbacks( "memory" ),
			state = "pending",
			lists = {
				resolve: doneList,
				reject: failList,
				notify: progressList
			},
			promise = {
				done: doneList.add,
				fail: failList.add,
				progress: progressList.add,

				state: function() {
					return state;
				},

				// Deprecated
				isResolved: doneList.fired,
				isRejected: failList.fired,

				then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
					deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
					return this;
				},
				always: function() {
					deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
					return this;
				},
				pipe: function( fnDone, fnFail, fnProgress ) {
					return jQuery.Deferred(function( newDefer ) {
						jQuery.each( {
							done: [ fnDone, "resolve" ],
							fail: [ fnFail, "reject" ],
							progress: [ fnProgress, "notify" ]
						}, function( handler, data ) {
							var fn = data[ 0 ],
								action = data[ 1 ],
								returned;
							if ( jQuery.isFunction( fn ) ) {
								deferred[ handler ](function() {
									returned = fn.apply( this, arguments );
									if ( returned && jQuery.isFunction( returned.promise ) ) {
										returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
									} else {
										newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
									}
								});
							} else {
								deferred[ handler ]( newDefer[ action ] );
							}
						});
					}).promise();
				},
				// Get a promise for this deferred
				// If obj is provided, the promise aspect is added to the object
				promise: function( obj ) {
					if ( obj == null ) {
						obj = promise;
					} else {
						for ( var key in promise ) {
							obj[ key ] = promise[ key ];
						}
					}
					return obj;
				}
			},
			deferred = promise.promise({}),
			key;

		for ( key in lists ) {
			deferred[ key ] = lists[ key ].fire;
			deferred[ key + "With" ] = lists[ key ].fireWith;
		}

		// Handle state
		deferred.done( function() {
			state = "resolved";
		}, failList.disable, progressList.lock ).fail( function() {
			state = "rejected";
		}, doneList.disable, progressList.lock );

		// Call given func if any
		if ( func ) {
			func.call( deferred, deferred );
		}

		// All done!
		return deferred;
	},

	// Deferred helper
	when: function( firstParam ) {
		var args = sliceDeferred.call( arguments, 0 ),
			i = 0,
			length = args.length,
			pValues = new Array( length ),
			count = length,
			pCount = length,
			deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
				firstParam :
				jQuery.Deferred(),
			promise = deferred.promise();
		function resolveFunc( i ) {
			return function( value ) {
				args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
				if ( !( --count ) ) {
					deferred.resolveWith( deferred, args );
				}
			};
		}
		function progressFunc( i ) {
			return function( value ) {
				pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
				deferred.notifyWith( promise, pValues );
			};
		}
		if ( length > 1 ) {
			for ( ; i < length; i++ ) {
				if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
					args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
				} else {
					--count;
				}
			}
			if ( !count ) {
				deferred.resolveWith( deferred, args );
			}
		} else if ( deferred !== firstParam ) {
			deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
		}
		return promise;
	}
});




jQuery.support = (function() {

	var support,
		all,
		a,
		select,
		opt,
		input,
		marginDiv,
		fragment,
		tds,
		events,
		eventName,
		i,
		isSupported,
		div = document.createElement( "div" ),
		documentElement = document.documentElement;

	// Preliminary tests
	div.setAttribute("className", "t");
	div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";

	all = div.getElementsByTagName( "*" );
	a = div.getElementsByTagName( "a" )[ 0 ];

	// Can't get basic test support
	if ( !all || !all.length || !a ) {
		return {};
	}

	// First batch of supports tests
	select = document.createElement( "select" );
	opt = select.appendChild( document.createElement("option") );
	input = div.getElementsByTagName( "input" )[ 0 ];

	support = {
		// IE strips leading whitespace when .innerHTML is used
		leadingWhitespace: ( div.firstChild.nodeType === 3 ),

		// Make sure that tbody elements aren't automatically inserted
		// IE will insert them into empty tables
		tbody: !div.getElementsByTagName("tbody").length,

		// Make sure that link elements get serialized correctly by innerHTML
		// This requires a wrapper element in IE
		htmlSerialize: !!div.getElementsByTagName("link").length,

		// Get the style information from getAttribute
		// (IE uses .cssText instead)
		style: /top/.test( a.getAttribute("style") ),

		// Make sure that URLs aren't manipulated
		// (IE normalizes it by default)
		hrefNormalized: ( a.getAttribute("href") === "/a" ),

		// Make sure that element opacity exists
		// (IE uses filter instead)
		// Use a regex to work around a WebKit issue. See #5145
		opacity: /^0.55/.test( a.style.opacity ),

		// Verify style float existence
		// (IE uses styleFloat instead of cssFloat)
		cssFloat: !!a.style.cssFloat,

		// Make sure that if no value is specified for a checkbox
		// that it defaults to "on".
		// (WebKit defaults to "" instead)
		checkOn: ( input.value === "on" ),

		// Make sure that a selected-by-default option has a working selected property.
		// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
		optSelected: opt.selected,

		// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
		getSetAttribute: div.className !== "t",

		// Tests for enctype support on a form(#6743)
		enctype: !!document.createElement("form").enctype,

		// Makes sure cloning an html5 element does not cause problems
		// Where outerHTML is undefined, this still works
		html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",

		// Will be defined later
		submitBubbles: true,
		changeBubbles: true,
		focusinBubbles: false,
		deleteExpando: true,
		noCloneEvent: true,
		inlineBlockNeedsLayout: false,
		shrinkWrapBlocks: false,
		reliableMarginRight: true
	};

	// Make sure checked status is properly cloned
	input.checked = true;
	support.noCloneChecked = input.cloneNode( true ).checked;

	// Make sure that the options inside disabled selects aren't marked as disabled
	// (WebKit marks them as disabled)
	select.disabled = true;
	support.optDisabled = !opt.disabled;

	// Test to see if it's possible to delete an expando from an element
	// Fails in Internet Explorer
	try {
		delete div.test;
	} catch( e ) {
		support.deleteExpando = false;
	}

	if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
		div.attachEvent( "onclick", function() {
			// Cloning a node shouldn't copy over any
			// bound event handlers (IE does this)
			support.noCloneEvent = false;
		});
		div.cloneNode( true ).fireEvent( "onclick" );
	}

	// Check if a radio maintains its value
	// after being appended to the DOM
	input = document.createElement("input");
	input.value = "t";
	input.setAttribute("type", "radio");
	support.radioValue = input.value === "t";

	input.setAttribute("checked", "checked");
	div.appendChild( input );
	fragment = document.createDocumentFragment();
	fragment.appendChild( div.lastChild );

	// WebKit doesn't clone checked state correctly in fragments
	support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;

	// Check if a disconnected checkbox will retain its checked
	// value of true after appended to the DOM (IE6/7)
	support.appendChecked = input.checked;

	fragment.removeChild( input );
	fragment.appendChild( div );

	div.innerHTML = "";

	// Check if div with explicit width and no margin-right incorrectly
	// gets computed margin-right based on width of container. For more
	// info see bug #3333
	// Fails in WebKit before Feb 2011 nightlies
	// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
	if ( window.getComputedStyle ) {
		marginDiv = document.createElement( "div" );
		marginDiv.style.width = "0";
		marginDiv.style.marginRight = "0";
		div.style.width = "2px";
		div.appendChild( marginDiv );
		support.reliableMarginRight =
			( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
	}

	// Technique from Juriy Zaytsev
	// http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
	// We only care about the case where non-standard event systems
	// are used, namely in IE. Short-circuiting here helps us to
	// avoid an eval call (in setAttribute) which can cause CSP
	// to go haywire. See: https://developer.mozilla.org/en/Security/CSP
	if ( div.attachEvent ) {
		for( i in {
			submit: 1,
			change: 1,
			focusin: 1
		}) {
			eventName = "on" + i;
			isSupported = ( eventName in div );
			if ( !isSupported ) {
				div.setAttribute( eventName, "return;" );
				isSupported = ( typeof div[ eventName ] === "function" );
			}
			support[ i + "Bubbles" ] = isSupported;
		}
	}

	fragment.removeChild( div );

	// Null elements to avoid leaks in IE
	fragment = select = opt = marginDiv = div = input = null;

	// Run tests that need a body at doc ready
	jQuery(function() {
		var container, outer, inner, table, td, offsetSupport,
			conMarginTop, ptlm, vb, style, html,
			body = document.getElementsByTagName("body")[0];

		if ( !body ) {
			// Return for frameset docs that don't have a body
			return;
		}

		conMarginTop = 1;
		ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";
		vb = "visibility:hidden;border:0;";
		style = "style='" + ptlm + "border:5px solid #000;padding:0;'";
		html = "<div " + style + "><div></div></div>" +
			"<table " + style + " cellpadding='0' cellspacing='0'>" +
			"<tr><td></td></tr></table>";

		container = document.createElement("div");
		container.style.cssText = vb + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
		body.insertBefore( container, body.firstChild );

		// Construct the test element
		div = document.createElement("div");
		container.appendChild( div );

		// Check if table cells still have offsetWidth/Height when they are set
		// to display:none and there are still other visible table cells in a
		// table row; if so, offsetWidth/Height are not reliable for use when
		// determining if an element has been hidden directly using
		// display:none (it is still safe to use offsets if a parent element is
		// hidden; don safety goggles and see bug #4512 for more information).
		// (only IE 8 fails this test)
		div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
		tds = div.getElementsByTagName( "td" );
		isSupported = ( tds[ 0 ].offsetHeight === 0 );

		tds[ 0 ].style.display = "";
		tds[ 1 ].style.display = "none";

		// Check if empty table cells still have offsetWidth/Height
		// (IE <= 8 fail this test)
		support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );

		// Figure out if the W3C box model works as expected
		div.innerHTML = "";
		div.style.width = div.style.paddingLeft = "1px";
		jQuery.boxModel = support.boxModel = div.offsetWidth === 2;

		if ( typeof div.style.zoom !== "undefined" ) {
			// Check if natively block-level elements act like inline-block
			// elements when setting their display to 'inline' and giving
			// them layout
			// (IE < 8 does this)
			div.style.display = "inline";
			div.style.zoom = 1;
			support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );

			// Check if elements with layout shrink-wrap their children
			// (IE 6 does this)
			div.style.display = "";
			div.innerHTML = "<div style='width:4px;'></div>";
			support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
		}

		div.style.cssText = ptlm + vb;
		div.innerHTML = html;

		outer = div.firstChild;
		inner = outer.firstChild;
		td = outer.nextSibling.firstChild.firstChild;

		offsetSupport = {
			doesNotAddBorder: ( inner.offsetTop !== 5 ),
			doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
		};

		inner.style.position = "fixed";
		inner.style.top = "20px";

		// safari subtracts parent border width here which is 5px
		offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
		inner.style.position = inner.style.top = "";

		outer.style.overflow = "hidden";
		outer.style.position = "relative";

		offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
		offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );

		body.removeChild( container );
		div  = container = null;

		jQuery.extend( support, offsetSupport );
	});

	return support;
})();




var rbrace = /^(?:\{.*\}|\[.*\])$/,
	rmultiDash = /([A-Z])/g;

jQuery.extend({
	cache: {},

	// Please use with caution
	uuid: 0,

	// Unique for each copy of jQuery on the page
	// Non-digits removed to match rinlinejQuery
	expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),

	// The following elements throw uncatchable exceptions if you
	// attempt to add expando properties to them.
	noData: {
		"embed": true,
		// Ban all objects except for Flash (which handle expandos)
		"object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
		"applet": true
	},

	hasData: function( elem ) {
		elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
		return !!elem && !isEmptyDataObject( elem );
	},

	data: function( elem, name, data, pvt /* Internal Use Only */ ) {
		if ( !jQuery.acceptData( elem ) ) {
			return;
		}

		var privateCache, thisCache, ret,
			internalKey = jQuery.expando,
			getByName = typeof name === "string",

			// We have to handle DOM nodes and JS objects differently because IE6-7
			// can't GC object references properly across the DOM-JS boundary
			isNode = elem.nodeType,

			// Only DOM nodes need the global jQuery cache; JS object data is
			// attached directly to the object so GC can occur automatically
			cache = isNode ? jQuery.cache : elem,

			// Only defining an ID for JS objects if its cache already exists allows
			// the code to shortcut on the same path as a DOM node with no cache
			id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,
			isEvents = name === "events";

		// Avoid doing any more work than we need to when trying to get data on an
		// object that has no data at all
		if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
			return;
		}

		if ( !id ) {
			// Only DOM nodes need a new unique ID for each element since their data
			// ends up in the global cache
			if ( isNode ) {
				elem[ internalKey ] = id = ++jQuery.uuid;
			} else {
				id = internalKey;
			}
		}

		if ( !cache[ id ] ) {
			cache[ id ] = {};

			// Avoids exposing jQuery metadata on plain JS objects when the object
			// is serialized using JSON.stringify
			if ( !isNode ) {
				cache[ id ].toJSON = jQuery.noop;
			}
		}

		// An object can be passed to jQuery.data instead of a key/value pair; this gets
		// shallow copied over onto the existing cache
		if ( typeof name === "object" || typeof name === "function" ) {
			if ( pvt ) {
				cache[ id ] = jQuery.extend( cache[ id ], name );
			} else {
				cache[ id ].data = jQuery.extend( cache[ id ].data, name );
			}
		}

		privateCache = thisCache = cache[ id ];

		// jQuery data() is stored in a separate object inside the object's internal data
		// cache in order to avoid key collisions between internal data and user-defined
		// data.
		if ( !pvt ) {
			if ( !thisCache.data ) {
				thisCache.data = {};
			}

			thisCache = thisCache.data;
		}

		if ( data !== undefined ) {
			thisCache[ jQuery.camelCase( name ) ] = data;
		}

		// Users should not attempt to inspect the internal events object using jQuery.data,
		// it is undocumented and subject to change. But does anyone listen? No.
		if ( isEvents && !thisCache[ name ] ) {
			return privateCache.events;
		}

		// Check for both converted-to-camel and non-converted data property names
		// If a data property was specified
		if ( getByName ) {

			// First Try to find as-is property data
			ret = thisCache[ name ];

			// Test for null|undefined property data
			if ( ret == null ) {

				// Try to find the camelCased property
				ret = thisCache[ jQuery.camelCase( name ) ];
			}
		} else {
			ret = thisCache;
		}

		return ret;
	},

	removeData: function( elem, name, pvt /* Internal Use Only */ ) {
		if ( !jQuery.acceptData( elem ) ) {
			return;
		}

		var thisCache, i, l,

			// Reference to internal data cache key
			internalKey = jQuery.expando,

			isNode = elem.nodeType,

			// See jQuery.data for more information
			cache = isNode ? jQuery.cache : elem,

			// See jQuery.data for more information
			id = isNode ? elem[ internalKey ] : internalKey;

		// If there is already no cache entry for this object, there is no
		// purpose in continuing
		if ( !cache[ id ] ) {
			return;
		}

		if ( name ) {

			thisCache = pvt ? cache[ id ] : cache[ id ].data;

			if ( thisCache ) {

				// Support array or space separated string names for data keys
				if ( !jQuery.isArray( name ) ) {

					// try the string as a key before any manipulation
					if ( name in thisCache ) {
						name = [ name ];
					} else {

						// split the camel cased version by spaces unless a key with the spaces exists
						name = jQuery.camelCase( name );
						if ( name in thisCache ) {
							name = [ name ];
						} else {
							name = name.split( " " );
						}
					}
				}

				for ( i = 0, l = name.length; i < l; i++ ) {
					delete thisCache[ name[i] ];
				}

				// If there is no data left in the cache, we want to continue
				// and let the cache object itself get destroyed
				if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
					return;
				}
			}
		}

		// See jQuery.data for more information
		if ( !pvt ) {
			delete cache[ id ].data;

			// Don't destroy the parent cache unless the internal data object
			// had been the only thing left in it
			if ( !isEmptyDataObject(cache[ id ]) ) {
				return;
			}
		}

		// Browsers that fail expando deletion also refuse to delete expandos on
		// the window, but it will allow it on all other JS objects; other browsers
		// don't care
		// Ensure that `cache` is not a window object #10080
		if ( jQuery.support.deleteExpando || !cache.setInterval ) {
			delete cache[ id ];
		} else {
			cache[ id ] = null;
		}

		// We destroyed the cache and need to eliminate the expando on the node to avoid
		// false lookups in the cache for entries that no longer exist
		if ( isNode ) {
			// IE does not allow us to delete expando properties from nodes,
			// nor does it have a removeAttribute function on Document nodes;
			// we must handle all of these cases
			if ( jQuery.support.deleteExpando ) {
				delete elem[ internalKey ];
			} else if ( elem.removeAttribute ) {
				elem.removeAttribute( internalKey );
			} else {
				elem[ internalKey ] = null;
			}
		}
	},

	// For internal use only.
	_data: function( elem, name, data ) {
		return jQuery.data( elem, name, data, true );
	},

	// A method for determining if a DOM node can handle the data expando
	acceptData: function( elem ) {
		if ( elem.nodeName ) {
			var match = jQuery.noData[ elem.nodeName.toLowerCase() ];

			if ( match ) {
				return !(match === true || elem.getAttribute("classid") !== match);
			}
		}

		return true;
	}
});

jQuery.fn.extend({
	data: function( key, value ) {
		var parts, attr, name,
			data = null;

		if ( typeof key === "undefined" ) {
			if ( this.length ) {
				data = jQuery.data( this[0] );

				if ( this[0].nodeType === 1 && !jQuery._data( this[0], "parsedAttrs" ) ) {
					attr = this[0].attributes;
					for ( var i = 0, l = attr.length; i < l; i++ ) {
						name = attr[i].name;

						if ( name.indexOf( "data-" ) === 0 ) {
							name = jQuery.camelCase( name.substring(5) );

							dataAttr( this[0], name, data[ name ] );
						}
					}
					jQuery._data( this[0], "parsedAttrs", true );
				}
			}

			return data;

		} else if ( typeof key === "object" ) {
			return this.each(function() {
				jQuery.data( this, key );
			});
		}

		parts = key.split(".");
		parts[1] = parts[1] ? "." + parts[1] : "";

		if ( value === undefined ) {
			data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);

			// Try to fetch any internally stored data first
			if ( data === undefined && this.length ) {
				data = jQuery.data( this[0], key );
				data = dataAttr( this[0], key, data );
			}

			return data === undefined && parts[1] ?
				this.data( parts[0] ) :
				data;

		} else {
			return this.each(function() {
				var self = jQuery( this ),
					args = [ parts[0], value ];

				self.triggerHandler( "setData" + parts[1] + "!", args );
				jQuery.data( this, key, value );
				self.triggerHandler( "changeData" + parts[1] + "!", args );
			});
		}
	},

	removeData: function( key ) {
		return this.each(function() {
			jQuery.removeData( this, key );
		});
	}
});

function dataAttr( elem, key, data ) {
	// If nothing was found internally, try to fetch any
	// data from the HTML5 data-* attribute
	if ( data === undefined && elem.nodeType === 1 ) {

		var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();

		data = elem.getAttribute( name );

		if ( typeof data === "string" ) {
			try {
				data = data === "true" ? true :
				data === "false" ? false :
				data === "null" ? null :
				jQuery.isNumeric( data ) ? parseFloat( data ) :
					rbrace.test( data ) ? jQuery.parseJSON( data ) :
					data;
			} catch( e ) {}

			// Make sure we set the data so it isn't changed later
			jQuery.data( elem, key, data );

		} else {
			data = undefined;
		}
	}

	return data;
}

// checks a cache object for emptiness
function isEmptyDataObject( obj ) {
	for ( var name in obj ) {

		// if the public data object is empty, the private is still empty
		if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
			continue;
		}
		if ( name !== "toJSON" ) {
			return false;
		}
	}

	return true;
}




function handleQueueMarkDefer( elem, type, src ) {
	var deferDataKey = type + "defer",
		queueDataKey = type + "queue",
		markDataKey = type + "mark",
		defer = jQuery._data( elem, deferDataKey );
	if ( defer &&
		( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
		( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
		// Give room for hard-coded callbacks to fire first
		// and eventually mark/queue something else on the element
		setTimeout( function() {
			if ( !jQuery._data( elem, queueDataKey ) &&
				!jQuery._data( elem, markDataKey ) ) {
				jQuery.removeData( elem, deferDataKey, true );
				defer.fire();
			}
		}, 0 );
	}
}

jQuery.extend({

	_mark: function( elem, type ) {
		if ( elem ) {
			type = ( type || "fx" ) + "mark";
			jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
		}
	},

	_unmark: function( force, elem, type ) {
		if ( force !== true ) {
			type = elem;
			elem = force;
			force = false;
		}
		if ( elem ) {
			type = type || "fx";
			var key = type + "mark",
				count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
			if ( count ) {
				jQuery._data( elem, key, count );
			} else {
				jQuery.removeData( elem, key, true );
				handleQueueMarkDefer( elem, type, "mark" );
			}
		}
	},

	queue: function( elem, type, data ) {
		var q;
		if ( elem ) {
			type = ( type || "fx" ) + "queue";
			q = jQuery._data( elem, type );

			// Speed up dequeue by getting out quickly if this is just a lookup
			if ( data ) {
				if ( !q || jQuery.isArray(data) ) {
					q = jQuery._data( elem, type, jQuery.makeArray(data) );
				} else {
					q.push( data );
				}
			}
			return q || [];
		}
	},

	dequeue: function( elem, type ) {
		type = type || "fx";

		var queue = jQuery.queue( elem, type ),
			fn = queue.shift(),
			hooks = {};

		// If the fx queue is dequeued, always remove the progress sentinel
		if ( fn === "inprogress" ) {
			fn = queue.shift();
		}

		if ( fn ) {
			// Add a progress sentinel to prevent the fx queue from being
			// automatically dequeued
			if ( type === "fx" ) {
				queue.unshift( "inprogress" );
			}

			jQuery._data( elem, type + ".run", hooks );
			fn.call( elem, function() {
				jQuery.dequeue( elem, type );
			}, hooks );
		}

		if ( !queue.length ) {
			jQuery.removeData( elem, type + "queue " + type + ".run", true );
			handleQueueMarkDefer( elem, type, "queue" );
		}
	}
});

jQuery.fn.extend({
	queue: function( type, data ) {
		if ( typeof type !== "string" ) {
			data = type;
			type = "fx";
		}

		if ( data === undefined ) {
			return jQuery.queue( this[0], type );
		}
		return this.each(function() {
			var queue = jQuery.queue( this, type, data );

			if ( type === "fx" && queue[0] !== "inprogress" ) {
				jQuery.dequeue( this, type );
			}
		});
	},
	dequeue: function( type ) {
		return this.each(function() {
			jQuery.dequeue( this, type );
		});
	},
	// Based off of the plugin by Clint Helfers, with permission.
	// http://blindsignals.com/index.php/2009/07/jquery-delay/
	delay: function( time, type ) {
		time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
		type = type || "fx";

		return this.queue( type, function( next, hooks ) {
			var timeout = setTimeout( next, time );
			hooks.stop = function() {
				clearTimeout( timeout );
			};
		});
	},
	clearQueue: function( type ) {
		return this.queue( type || "fx", [] );
	},
	// Get a promise resolved when queues of a certain type
	// are emptied (fx is the type by default)
	promise: function( type, object ) {
		if ( typeof type !== "string" ) {
			object = type;
			type = undefined;
		}
		type = type || "fx";
		var defer = jQuery.Deferred(),
			elements = this,
			i = elements.length,
			count = 1,
			deferDataKey = type + "defer",
			queueDataKey = type + "queue",
			markDataKey = type + "mark",
			tmp;
		function resolve() {
			if ( !( --count ) ) {
				defer.resolveWith( elements, [ elements ] );
			}
		}
		while( i-- ) {
			if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
					( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
						jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
					jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
				count++;
				tmp.add( resolve );
			}
		}
		resolve();
		return defer.promise();
	}
});




var rclass = /[\n\t\r]/g,
	rspace = /\s+/,
	rreturn = /\r/g,
	rtype = /^(?:button|input)$/i,
	rfocusable = /^(?:button|input|object|select|textarea)$/i,
	rclickable = /^a(?:rea)?$/i,
	rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
	getSetAttribute = jQuery.support.getSetAttribute,
	nodeHook, boolHook, fixSpecified;

jQuery.fn.extend({
	attr: function( name, value ) {
		return jQuery.access( this, name, value, true, jQuery.attr );
	},

	removeAttr: function( name ) {
		return this.each(function() {
			jQuery.removeAttr( this, name );
		});
	},

	prop: function( name, value ) {
		return jQuery.access( this, name, value, true, jQuery.prop );
	},

	removeProp: function( name ) {
		name = jQuery.propFix[ name ] || name;
		return this.each(function() {
			// try/catch handles cases where IE balks (such as removing a property on window)
			try {
				this[ name ] = undefined;
				delete this[ name ];
			} catch( e ) {}
		});
	},

	addClass: function( value ) {
		var classNames, i, l, elem,
			setClass, c, cl;

		if ( jQuery.isFunction( value ) ) {
			return this.each(function( j ) {
				jQuery( this ).addClass( value.call(this, j, this.className) );
			});
		}

		if ( value && typeof value === "string" ) {
			classNames = value.split( rspace );

			for ( i = 0, l = this.length; i < l; i++ ) {
				elem = this[ i ];

				if ( elem.nodeType === 1 ) {
					if ( !elem.className && classNames.length === 1 ) {
						elem.className = value;

					} else {
						setClass = " " + elem.className + " ";

						for ( c = 0, cl = classNames.length; c < cl; c++ ) {
							if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
								setClass += classNames[ c ] + " ";
							}
						}
						elem.className = jQuery.trim( setClass );
					}
				}
			}
		}

		return this;
	},

	removeClass: function( value ) {
		var classNames, i, l, elem, className, c, cl;

		if ( jQuery.isFunction( value ) ) {
			return this.each(function( j ) {
				jQuery( this ).removeClass( value.call(this, j, this.className) );
			});
		}

		if ( (value && typeof value === "string") || value === undefined ) {
			classNames = ( value || "" ).split( rspace );

			for ( i = 0, l = this.length; i < l; i++ ) {
				elem = this[ i ];

				if ( elem.nodeType === 1 && elem.className ) {
					if ( value ) {
						className = (" " + elem.className + " ").replace( rclass, " " );
						for ( c = 0, cl = classNames.length; c < cl; c++ ) {
							className = className.replace(" " + classNames[ c ] + " ", " ");
						}
						elem.className = jQuery.trim( className );

					} else {
						elem.className = "";
					}
				}
			}
		}

		return this;
	},

	toggleClass: function( value, stateVal ) {
		var type = typeof value,
			isBool = typeof stateVal === "boolean";

		if ( jQuery.isFunction( value ) ) {
			return this.each(function( i ) {
				jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
			});
		}

		return this.each(function() {
			if ( type === "string" ) {
				// toggle individual class names
				var className,
					i = 0,
					self = jQuery( this ),
					state = stateVal,
					classNames = value.split( rspace );

				while ( (className = classNames[ i++ ]) ) {
					// check each className given, space seperated list
					state = isBool ? state : !self.hasClass( className );
					self[ state ? "addClass" : "removeClass" ]( className );
				}

			} else if ( type === "undefined" || type === "boolean" ) {
				if ( this.className ) {
					// store className if set
					jQuery._data( this, "__className__", this.className );
				}

				// toggle whole className
				this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
			}
		});
	},

	hasClass: function( selector ) {
		var className = " " + selector + " ",
			i = 0,
			l = this.length;
		for ( ; i < l; i++ ) {
			if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
				return true;
			}
		}

		return false;
	},

	val: function( value ) {
		var hooks, ret, isFunction,
			elem = this[0];

		if ( !arguments.length ) {
			if ( elem ) {
				hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];

				if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
					return ret;
				}

				ret = elem.value;

				return typeof ret === "string" ?
					// handle most common string cases
					ret.replace(rreturn, "") :
					// handle cases where value is null/undef or number
					ret == null ? "" : ret;
			}

			return;
		}

		isFunction = jQuery.isFunction( value );

		return this.each(function( i ) {
			var self = jQuery(this), val;

			if ( this.nodeType !== 1 ) {
				return;
			}

			if ( isFunction ) {
				val = value.call( this, i, self.val() );
			} else {
				val = value;
			}

			// Treat null/undefined as ""; convert numbers to string
			if ( val == null ) {
				val = "";
			} else if ( typeof val === "number" ) {
				val += "";
			} else if ( jQuery.isArray( val ) ) {
				val = jQuery.map(val, function ( value ) {
					return value == null ? "" : value + "";
				});
			}

			hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];

			// If set returns undefined, fall back to normal setting
			if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
				this.value = val;
			}
		});
	}
});

jQuery.extend({
	valHooks: {
		option: {
			get: function( elem ) {
				// attributes.value is undefined in Blackberry 4.7 but
				// uses .value. See #6932
				var val = elem.attributes.value;
				return !val || val.specified ? elem.value : elem.text;
			}
		},
		select: {
			get: function( elem ) {
				var value, i, max, option,
					index = elem.selectedIndex,
					values = [],
					options = elem.options,
					one = elem.type === "select-one";

				// Nothing was selected
				if ( index < 0 ) {
					return null;
				}

				// Loop through all the selected options
				i = one ? index : 0;
				max = one ? index + 1 : options.length;
				for ( ; i < max; i++ ) {
					option = options[ i ];

					// Don't return options that are disabled or in a disabled optgroup
					if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
							(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {

						// Get the specific value for the option
						value = jQuery( option ).val();

						// We don't need an array for one selects
						if ( one ) {
							return value;
						}

						// Multi-Selects return an array
						values.push( value );
					}
				}

				// Fixes Bug #2551 -- select.val() broken in IE after form.reset()
				if ( one && !values.length && options.length ) {
					return jQuery( options[ index ] ).val();
				}

				return values;
			},

			set: function( elem, value ) {
				var values = jQuery.makeArray( value );

				jQuery(elem).find("option").each(function() {
					this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
				});

				if ( !values.length ) {
					elem.selectedIndex = -1;
				}
				return values;
			}
		}
	},

	attrFn: {
		val: true,
		css: true,
		html: true,
		text: true,
		data: true,
		width: true,
		height: true,
		offset: true
	},

	attr: function( elem, name, value, pass ) {
		var ret, hooks, notxml,
			nType = elem.nodeType;

		// don't get/set attributes on text, comment and attribute nodes
		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
			return;
		}

		if ( pass && name in jQuery.attrFn ) {
			return jQuery( elem )[ name ]( value );
		}

		// Fallback to prop when attributes are not supported
		if ( typeof elem.getAttribute === "undefined" ) {
			return jQuery.prop( elem, name, value );
		}

		notxml = nType !== 1 || !jQuery.isXMLDoc( elem );

		// All attributes are lowercase
		// Grab necessary hook if one is defined
		if ( notxml ) {
			name = name.toLowerCase();
			hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
		}

		if ( value !== undefined ) {

			if ( value === null ) {
				jQuery.removeAttr( elem, name );
				return;

			} else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
				return ret;

			} else {
				elem.setAttribute( name, "" + value );
				return value;
			}

		} else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
			return ret;

		} else {

			ret = elem.getAttribute( name );

			// Non-existent attributes return null, we normalize to undefined
			return ret === null ?
				undefined :
				ret;
		}
	},

	removeAttr: function( elem, value ) {
		var propName, attrNames, name, l,
			i = 0;

		if ( value && elem.nodeType === 1 ) {
			attrNames = value.toLowerCase().split( rspace );
			l = attrNames.length;

			for ( ; i < l; i++ ) {
				name = attrNames[ i ];

				if ( name ) {
					propName = jQuery.propFix[ name ] || name;

					// See #9699 for explanation of this approach (setting first, then removal)
					jQuery.attr( elem, name, "" );
					elem.removeAttribute( getSetAttribute ? name : propName );

					// Set corresponding property to false for boolean attributes
					if ( rboolean.test( name ) && propName in elem ) {
						elem[ propName ] = false;
					}
				}
			}
		}
	},

	attrHooks: {
		type: {
			set: function( elem, value ) {
				// We can't allow the type property to be changed (since it causes problems in IE)
				if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
					jQuery.error( "type property can't be changed" );
				} else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
					// Setting the type on a radio button after the value resets the value in IE6-9
					// Reset value to it's default in case type is set after value
					// This is for element creation
					var val = elem.value;
					elem.setAttribute( "type", value );
					if ( val ) {
						elem.value = val;
					}
					return value;
				}
			}
		},
		// Use the value property for back compat
		// Use the nodeHook for button elements in IE6/7 (#1954)
		value: {
			get: function( elem, name ) {
				if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
					return nodeHook.get( elem, name );
				}
				return name in elem ?
					elem.value :
					null;
			},
			set: function( elem, value, name ) {
				if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
					return nodeHook.set( elem, value, name );
				}
				// Does not return so that setAttribute is also used
				elem.value = value;
			}
		}
	},

	propFix: {
		tabindex: "tabIndex",
		readonly: "readOnly",
		"for": "htmlFor",
		"class": "className",
		maxlength: "maxLength",
		cellspacing: "cellSpacing",
		cellpadding: "cellPadding",
		rowspan: "rowSpan",
		colspan: "colSpan",
		usemap: "useMap",
		frameborder: "frameBorder",
		contenteditable: "contentEditable"
	},

	prop: function( elem, name, value ) {
		var ret, hooks, notxml,
			nType = elem.nodeType;

		// don't get/set properties on text, comment and attribute nodes
		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
			return;
		}

		notxml = nType !== 1 || !jQuery.isXMLDoc( elem );

		if ( notxml ) {
			// Fix name and attach hooks
			name = jQuery.propFix[ name ] || name;
			hooks = jQuery.propHooks[ name ];
		}

		if ( value !== undefined ) {
			if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
				return ret;

			} else {
				return ( elem[ name ] = value );
			}

		} else {
			if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
				return ret;

			} else {
				return elem[ name ];
			}
		}
	},

	propHooks: {
		tabIndex: {
			get: function( elem ) {
				// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
				// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
				var attributeNode = elem.getAttributeNode("tabindex");

				return attributeNode && attributeNode.specified ?
					parseInt( attributeNode.value, 10 ) :
					rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
						0 :
						undefined;
			}
		}
	}
});

// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;

// Hook for boolean attributes
boolHook = {
	get: function( elem, name ) {
		// Align boolean attributes with corresponding properties
		// Fall back to attribute presence where some booleans are not supported
		var attrNode,
			property = jQuery.prop( elem, name );
		return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
			name.toLowerCase() :
			undefined;
	},
	set: function( elem, value, name ) {
		var propName;
		if ( value === false ) {
			// Remove boolean attributes when set to false
			jQuery.removeAttr( elem, name );
		} else {
			// value is true since we know at this point it's type boolean and not false
			// Set boolean attributes to the same name and set the DOM property
			propName = jQuery.propFix[ name ] || name;
			if ( propName in elem ) {
				// Only set the IDL specifically if it already exists on the element
				elem[ propName ] = true;
			}

			elem.setAttribute( name, name.toLowerCase() );
		}
		return name;
	}
};

// IE6/7 do not support getting/setting some attributes with get/setAttribute
if ( !getSetAttribute ) {

	fixSpecified = {
		name: true,
		id: true
	};

	// Use this for any attribute in IE6/7
	// This fixes almost every IE6/7 issue
	nodeHook = jQuery.valHooks.button = {
		get: function( elem, name ) {
			var ret;
			ret = elem.getAttributeNode( name );
			return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
				ret.nodeValue :
				undefined;
		},
		set: function( elem, value, name ) {
			// Set the existing or create a new attribute node
			var ret = elem.getAttributeNode( name );
			if ( !ret ) {
				ret = document.createAttribute( name );
				elem.setAttributeNode( ret );
			}
			return ( ret.nodeValue = value + "" );
		}
	};

	// Apply the nodeHook to tabindex
	jQuery.attrHooks.tabindex.set = nodeHook.set;

	// Set width and height to auto instead of 0 on empty string( Bug #8150 )
	// This is for removals
	jQuery.each([ "width", "height" ], function( i, name ) {
		jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
			set: function( elem, value ) {
				if ( value === "" ) {
					elem.setAttribute( name, "auto" );
					return value;
				}
			}
		});
	});

	// Set contenteditable to false on removals(#10429)
	// Setting to empty string throws an error as an invalid value
	jQuery.attrHooks.contenteditable = {
		get: nodeHook.get,
		set: function( elem, value, name ) {
			if ( value === "" ) {
				value = "false";
			}
			nodeHook.set( elem, value, name );
		}
	};
}


// Some attributes require a special call on IE
if ( !jQuery.support.hrefNormalized ) {
	jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
		jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
			get: function( elem ) {
				var ret = elem.getAttribute( name, 2 );
				return ret === null ? undefined : ret;
			}
		});
	});
}

if ( !jQuery.support.style ) {
	jQuery.attrHooks.style = {
		get: function( elem ) {
			// Return undefined in the case of empty string
			// Normalize to lowercase since IE uppercases css property names
			return elem.style.cssText.toLowerCase() || undefined;
		},
		set: function( elem, value ) {
			return ( elem.style.cssText = "" + value );
		}
	};
}

// Safari mis-reports the default selected property of an option
// Accessing the parent's selectedIndex property fixes it
if ( !jQuery.support.optSelected ) {
	jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
		get: function( elem ) {
			var parent = elem.parentNode;

			if ( parent ) {
				parent.selectedIndex;

				// Make sure that it also works with optgroups, see #5701
				if ( parent.parentNode ) {
					parent.parentNode.selectedIndex;
				}
			}
			return null;
		}
	});
}

// IE6/7 call enctype encoding
if ( !jQuery.support.enctype ) {
	jQuery.propFix.enctype = "encoding";
}

// Radios and checkboxes getter/setter
if ( !jQuery.support.checkOn ) {
	jQuery.each([ "radio", "checkbox" ], function() {
		jQuery.valHooks[ this ] = {
			get: function( elem ) {
				// Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
				return elem.getAttribute("value") === null ? "on" : elem.value;
			}
		};
	});
}
jQuery.each([ "radio", "checkbox" ], function() {
	jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
		set: function( elem, value ) {
			if ( jQuery.isArray( value ) ) {
				return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
			}
		}
	});
});




var rformElems = /^(?:textarea|input|select)$/i,
	rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
	rhoverHack = /\bhover(\.\S+)?\b/,
	rkeyEvent = /^key/,
	rmouseEvent = /^(?:mouse|contextmenu)|click/,
	rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
	rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
	quickParse = function( selector ) {
		var quick = rquickIs.exec( selector );
		if ( quick ) {
			//   0  1    2   3
			// [ _, tag, id, class ]
			quick[1] = ( quick[1] || "" ).toLowerCase();
			quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
		}
		return quick;
	},
	quickIs = function( elem, m ) {
		var attrs = elem.attributes || {};
		return (
			(!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
			(!m[2] || (attrs.id || {}).value === m[2]) &&
			(!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))
		);
	},
	hoverHack = function( events ) {
		return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
	};

/*
 * Helper functions for managing events -- not part of the public interface.
 * Props to Dean Edwards' addEvent library for many of the ideas.
 */
jQuery.event = {

	add: function( elem, types, handler, data, selector ) {

		var elemData, eventHandle, events,
			t, tns, type, namespaces, handleObj,
			handleObjIn, quick, handlers, special;

		// Don't attach events to noData or text/comment nodes (allow plain objects tho)
		if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
			return;
		}

		// Caller can pass in an object of custom data in lieu of the handler
		if ( handler.handler ) {
			handleObjIn = handler;
			handler = handleObjIn.handler;
		}

		// Make sure that the handler has a unique ID, used to find/remove it later
		if ( !handler.guid ) {
			handler.guid = jQuery.guid++;
		}

		// Init the element's event structure and main handler, if this is the first
		events = elemData.events;
		if ( !events ) {
			elemData.events = events = {};
		}
		eventHandle = elemData.handle;
		if ( !eventHandle ) {
			elemData.handle = eventHandle = function( e ) {
				// Discard the second event of a jQuery.event.trigger() and
				// when an event is called after a page has unloaded
				return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
					jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
					undefined;
			};
			// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
			eventHandle.elem = elem;
		}

		// Handle multiple events separated by a space
		// jQuery(...).bind("mouseover mouseout", fn);
		types = jQuery.trim( hoverHack(types) ).split( " " );
		for ( t = 0; t < types.length; t++ ) {

			tns = rtypenamespace.exec( types[t] ) || [];
			type = tns[1];
			namespaces = ( tns[2] || "" ).split( "." ).sort();

			// If event changes its type, use the special event handlers for the changed type
			special = jQuery.event.special[ type ] || {};

			// If selector defined, determine special event api type, otherwise given type
			type = ( selector ? special.delegateType : special.bindType ) || type;

			// Update special based on newly reset type
			special = jQuery.event.special[ type ] || {};

			// handleObj is passed to all event handlers
			handleObj = jQuery.extend({
				type: type,
				origType: tns[1],
				data: data,
				handler: handler,
				guid: handler.guid,
				selector: selector,
				quick: quickParse( selector ),
				namespace: namespaces.join(".")
			}, handleObjIn );

			// Init the event handler queue if we're the first
			handlers = events[ type ];
			if ( !handlers ) {
				handlers = events[ type ] = [];
				handlers.delegateCount = 0;

				// Only use addEventListener/attachEvent if the special events handler returns false
				if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
					// Bind the global event handler to the element
					if ( elem.addEventListener ) {
						elem.addEventListener( type, eventHandle, false );

					} else if ( elem.attachEvent ) {
						elem.attachEvent( "on" + type, eventHandle );
					}
				}
			}

			if ( special.add ) {
				special.add.call( elem, handleObj );

				if ( !handleObj.handler.guid ) {
					handleObj.handler.guid = handler.guid;
				}
			}

			// Add to the element's handler list, delegates in front
			if ( selector ) {
				handlers.splice( handlers.delegateCount++, 0, handleObj );
			} else {
				handlers.push( handleObj );
			}

			// Keep track of which events have ever been used, for event optimization
			jQuery.event.global[ type ] = true;
		}

		// Nullify elem to prevent memory leaks in IE
		elem = null;
	},

	global: {},

	// Detach an event or set of events from an element
	remove: function( elem, types, handler, selector, mappedTypes ) {

		var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
			t, tns, type, origType, namespaces, origCount,
			j, events, special, handle, eventType, handleObj;

		if ( !elemData || !(events = elemData.events) ) {
			return;
		}

		// Once for each type.namespace in types; type may be omitted
		types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
		for ( t = 0; t < types.length; t++ ) {
			tns = rtypenamespace.exec( types[t] ) || [];
			type = origType = tns[1];
			namespaces = tns[2];

			// Unbind all events (on this namespace, if provided) for the element
			if ( !type ) {
				for ( type in events ) {
					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
				}
				continue;
			}

			special = jQuery.event.special[ type ] || {};
			type = ( selector? special.delegateType : special.bindType ) || type;
			eventType = events[ type ] || [];
			origCount = eventType.length;
			namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;

			// Remove matching events
			for ( j = 0; j < eventType.length; j++ ) {
				handleObj = eventType[ j ];

				if ( ( mappedTypes || origType === handleObj.origType ) &&
					 ( !handler || handler.guid === handleObj.guid ) &&
					 ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
					 ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
					eventType.splice( j--, 1 );

					if ( handleObj.selector ) {
						eventType.delegateCount--;
					}
					if ( special.remove ) {
						special.remove.call( elem, handleObj );
					}
				}
			}

			// Remove generic event handler if we removed something and no more handlers exist
			// (avoids potential for endless recursion during removal of special event handlers)
			if ( eventType.length === 0 && origCount !== eventType.length ) {
				if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
					jQuery.removeEvent( elem, type, elemData.handle );
				}

				delete events[ type ];
			}
		}

		// Remove the expando if it's no longer used
		if ( jQuery.isEmptyObject( events ) ) {
			handle = elemData.handle;
			if ( handle ) {
				handle.elem = null;
			}

			// removeData also checks for emptiness and clears the expando if empty
			// so use it instead of delete
			jQuery.removeData( elem, [ "events", "handle" ], true );
		}
	},

	// Events that are safe to short-circuit if no handlers are attached.
	// Native DOM events should not be added, they may have inline handlers.
	customEvent: {
		"getData": true,
		"setData": true,
		"changeData": true
	},

	trigger: function( event, data, elem, onlyHandlers ) {
		// Don't do events on text and comment nodes
		if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
			return;
		}

		// Event object or event type
		var type = event.type || event,
			namespaces = [],
			cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;

		// focus/blur morphs to focusin/out; ensure we're not firing them right now
		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
			return;
		}

		if ( type.indexOf( "!" ) >= 0 ) {
			// Exclusive events trigger only for the exact event (no namespaces)
			type = type.slice(0, -1);
			exclusive = true;
		}

		if ( type.indexOf( "." ) >= 0 ) {
			// Namespaced trigger; create a regexp to match event type in handle()
			namespaces = type.split(".");
			type = namespaces.shift();
			namespaces.sort();
		}

		if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
			// No jQuery handlers for this event type, and it can't have inline handlers
			return;
		}

		// Caller can pass in an Event, Object, or just an event type string
		event = typeof event === "object" ?
			// jQuery.Event object
			event[ jQuery.expando ] ? event :
			// Object literal
			new jQuery.Event( type, event ) :
			// Just the event type (string)
			new jQuery.Event( type );

		event.type = type;
		event.isTrigger = true;
		event.exclusive = exclusive;
		event.namespace = namespaces.join( "." );
		event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
		ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";

		// Handle a global trigger
		if ( !elem ) {

			// TODO: Stop taunting the data cache; remove global events and always attach to document
			cache = jQuery.cache;
			for ( i in cache ) {
				if ( cache[ i ].events && cache[ i ].events[ type ] ) {
					jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
				}
			}
			return;
		}

		// Clean up the event in case it is being reused
		event.result = undefined;
		if ( !event.target ) {
			event.target = elem;
		}

		// Clone any incoming data and prepend the event, creating the handler arg list
		data = data != null ? jQuery.makeArray( data ) : [];
		data.unshift( event );

		// Allow special events to draw outside the lines
		special = jQuery.event.special[ type ] || {};
		if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
			return;
		}

		// Determine event propagation path in advance, per W3C events spec (#9951)
		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
		eventPath = [[ elem, special.bindType || type ]];
		if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {

			bubbleType = special.delegateType || type;
			cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
			old = null;
			for ( ; cur; cur = cur.parentNode ) {
				eventPath.push([ cur, bubbleType ]);
				old = cur;
			}

			// Only add window if we got to document (e.g., not plain obj or detached DOM)
			if ( old && old === elem.ownerDocument ) {
				eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
			}
		}

		// Fire handlers on the event path
		for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {

			cur = eventPath[i][0];
			event.type = eventPath[i][1];

			handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
			if ( handle ) {
				handle.apply( cur, data );
			}
			// Note that this is a bare JS function and not a jQuery handler
			handle = ontype && cur[ ontype ];
			if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
				event.preventDefault();
			}
		}
		event.type = type;

		// If nobody prevented the default action, do it now
		if ( !onlyHandlers && !event.isDefaultPrevented() ) {

			if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
				!(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {

				// Call a native DOM method on the target with the same name name as the event.
				// Can't use an .isFunction() check here because IE6/7 fails that test.
				// Don't do default actions on window, that's where global variables be (#6170)
				// IE<9 dies on focus/blur to hidden element (#1486)
				if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {

					// Don't re-trigger an onFOO event when we call its FOO() method
					old = elem[ ontype ];

					if ( old ) {
						elem[ ontype ] = null;
					}

					// Prevent re-triggering of the same event, since we already bubbled it above
					jQuery.event.triggered = type;
					elem[ type ]();
					jQuery.event.triggered = undefined;

					if ( old ) {
						elem[ ontype ] = old;
					}
				}
			}
		}

		return event.result;
	},

	dispatch: function( event ) {

		// Make a writable jQuery.Event from the native event object
		event = jQuery.event.fix( event || window.event );

		var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
			delegateCount = handlers.delegateCount,
			args = [].slice.call( arguments, 0 ),
			run_all = !event.exclusive && !event.namespace,
			handlerQueue = [],
			i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;

		// Use the fix-ed jQuery.Event rather than the (read-only) native event
		args[0] = event;
		event.delegateTarget = this;

		// Determine handlers that should run if there are delegated events
		// Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
		if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {

			// Pregenerate a single jQuery object for reuse with .is()
			jqcur = jQuery(this);
			jqcur.context = this.ownerDocument || this;

			for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
				selMatch = {};
				matches = [];
				jqcur[0] = cur;
				for ( i = 0; i < delegateCount; i++ ) {
					handleObj = handlers[ i ];
					sel = handleObj.selector;

					if ( selMatch[ sel ] === undefined ) {
						selMatch[ sel ] = (
							handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
						);
					}
					if ( selMatch[ sel ] ) {
						matches.push( handleObj );
					}
				}
				if ( matches.length ) {
					handlerQueue.push({ elem: cur, matches: matches });
				}
			}
		}

		// Add the remaining (directly-bound) handlers
		if ( handlers.length > delegateCount ) {
			handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
		}

		// Run delegates first; they may want to stop propagation beneath us
		for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
			matched = handlerQueue[ i ];
			event.currentTarget = matched.elem;

			for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
				handleObj = matched.matches[ j ];

				// Triggered event must either 1) be non-exclusive and have no namespace, or
				// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
				if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {

					event.data = handleObj.data;
					event.handleObj = handleObj;

					ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
							.apply( matched.elem, args );

					if ( ret !== undefined ) {
						event.result = ret;
						if ( ret === false ) {
							event.preventDefault();
							event.stopPropagation();
						}
					}
				}
			}
		}

		return event.result;
	},

	// Includes some event props shared by KeyEvent and MouseEvent
	// *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
	props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),

	fixHooks: {},

	keyHooks: {
		props: "char charCode key keyCode".split(" "),
		filter: function( event, original ) {

			// Add which for key events
			if ( event.which == null ) {
				event.which = original.charCode != null ? original.charCode : original.keyCode;
			}

			return event;
		}
	},

	mouseHooks: {
		props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
		filter: function( event, original ) {
			var eventDoc, doc, body,
				button = original.button,
				fromElement = original.fromElement;

			// Calculate pageX/Y if missing and clientX/Y available
			if ( event.pageX == null && original.clientX != null ) {
				eventDoc = event.target.ownerDocument || document;
				doc = eventDoc.documentElement;
				body = eventDoc.body;

				event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
				event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
			}

			// Add relatedTarget, if necessary
			if ( !event.relatedTarget && fromElement ) {
				event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
			}

			// Add which for click: 1 === left; 2 === middle; 3 === right
			// Note: button is not normalized, so don't use it
			if ( !event.which && button !== undefined ) {
				event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
			}

			return event;
		}
	},

	fix: function( event ) {
		if ( event[ jQuery.expando ] ) {
			return event;
		}

		// Create a writable copy of the event object and normalize some properties
		var i, prop,
			originalEvent = event,
			fixHook = jQuery.event.fixHooks[ event.type ] || {},
			copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;

		event = jQuery.Event( originalEvent );

		for ( i = copy.length; i; ) {
			prop = copy[ --i ];
			event[ prop ] = originalEvent[ prop ];
		}

		// Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
		if ( !event.target ) {
			event.target = originalEvent.srcElement || document;
		}

		// Target should not be a text node (#504, Safari)
		if ( event.target.nodeType === 3 ) {
			event.target = event.target.parentNode;
		}

		// For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
		if ( event.metaKey === undefined ) {
			event.metaKey = event.ctrlKey;
		}

		return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
	},

	special: {
		ready: {
			// Make sure the ready event is setup
			setup: jQuery.bindReady
		},

		load: {
			// Prevent triggered image.load events from bubbling to window.load
			noBubble: true
		},

		focus: {
			delegateType: "focusin"
		},
		blur: {
			delegateType: "focusout"
		},

		beforeunload: {
			setup: function( data, namespaces, eventHandle ) {
				// We only want to do this special case on windows
				if ( jQuery.isWindow( this ) ) {
					this.onbeforeunload = eventHandle;
				}
			},

			teardown: function( namespaces, eventHandle ) {
				if ( this.onbeforeunload === eventHandle ) {
					this.onbeforeunload = null;
				}
			}
		}
	},

	simulate: function( type, elem, event, bubble ) {
		// Piggyback on a donor event to simulate a different one.
		// Fake originalEvent to avoid donor's stopPropagation, but if the
		// simulated event prevents default then we do the same on the donor.
		var e = jQuery.extend(
			new jQuery.Event(),
			event,
			{ type: type,
				isSimulated: true,
				originalEvent: {}
			}
		);
		if ( bubble ) {
			jQuery.event.trigger( e, null, elem );
		} else {
			jQuery.event.dispatch.call( elem, e );
		}
		if ( e.isDefaultPrevented() ) {
			event.preventDefault();
		}
	}
};

// Some plugins are using, but it's undocumented/deprecated and will be removed.
// The 1.7 special event interface should provide all the hooks needed now.
jQuery.event.handle = jQuery.event.dispatch;

jQuery.removeEvent = document.removeEventListener ?
	function( elem, type, handle ) {
		if ( elem.removeEventListener ) {
			elem.removeEventListener( type, handle, false );
		}
	} :
	function( elem, type, handle ) {
		if ( elem.detachEvent ) {
			elem.detachEvent( "on" + type, handle );
		}
	};

jQuery.Event = function( src, props ) {
	// Allow instantiation without the 'new' keyword
	if ( !(this instanceof jQuery.Event) ) {
		return new jQuery.Event( src, props );
	}

	// Event object
	if ( src && src.type ) {
		this.originalEvent = src;
		this.type = src.type;

		// Events bubbling up the document may have been marked as prevented
		// by a handler lower down the tree; reflect the correct value.
		this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
			src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;

	// Event type
	} else {
		this.type = src;
	}

	// Put explicitly provided properties onto the event object
	if ( props ) {
		jQuery.extend( this, props );
	}

	// Create a timestamp if incoming event doesn't have one
	this.timeStamp = src && src.timeStamp || jQuery.now();

	// Mark it as fixed
	this[ jQuery.expando ] = true;
};

function returnFalse() {
	return false;
}
function returnTrue() {
	return true;
}

// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
jQuery.Event.prototype = {
	preventDefault: function() {
		this.isDefaultPrevented = returnTrue;

		var e = this.originalEvent;
		if ( !e ) {
			return;
		}

		// if preventDefault exists run it on the original event
		if ( e.preventDefault ) {
			e.preventDefault();

		// otherwise set the returnValue property of the original event to false (IE)
		} else {
			e.returnValue = false;
		}
	},
	stopPropagation: function() {
		this.isPropagationStopped = returnTrue;

		var e = this.originalEvent;
		if ( !e ) {
			return;
		}
		// if stopPropagation exists run it on the original event
		if ( e.stopPropagation ) {
			e.stopPropagation();
		}
		// otherwise set the cancelBubble property of the original event to true (IE)
		e.cancelBubble = true;
	},
	stopImmediatePropagation: function() {
		this.isImmediatePropagationStopped = returnTrue;
		this.stopPropagation();
	},
	isDefaultPrevented: returnFalse,
	isPropagationStopped: returnFalse,
	isImmediatePropagationStopped: returnFalse
};

// Create mouseenter/leave events using mouseover/out and event-time checks
jQuery.each({
	mouseenter: "mouseover",
	mouseleave: "mouseout"
}, function( orig, fix ) {
	jQuery.event.special[ orig ] = {
		delegateType: fix,
		bindType: fix,

		handle: function( event ) {
			var target = this,
				related = event.relatedTarget,
				handleObj = event.handleObj,
				selector = handleObj.selector,
				ret;

			// For mousenter/leave call the handler if related is outside the target.
			// NB: No relatedTarget if the mouse left/entered the browser window
			if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
				event.type = handleObj.origType;
				ret = handleObj.handler.apply( this, arguments );
				event.type = fix;
			}
			return ret;
		}
	};
});

// IE submit delegation
if ( !jQuery.support.submitBubbles ) {

	jQuery.event.special.submit = {
		setup: function() {
			// Only need this for delegated form submit events
			if ( jQuery.nodeName( this, "form" ) ) {
				return false;
			}

			// Lazy-add a submit handler when a descendant form may potentially be submitted
			jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
				// Node name check avoids a VML-related crash in IE (#9807)
				var elem = e.target,
					form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
				if ( form && !form._submit_attached ) {
					jQuery.event.add( form, "submit._submit", function( event ) {
						// If form was submitted by the user, bubble the event up the tree
						if ( this.parentNode && !event.isTrigger ) {
							jQuery.event.simulate( "submit", this.parentNode, event, true );
						}
					});
					form._submit_attached = true;
				}
			});
			// return undefined since we don't need an event listener
		},

		teardown: function() {
			// Only need this for delegated form submit events
			if ( jQuery.nodeName( this, "form" ) ) {
				return false;
			}

			// Remove delegated handlers; cleanData eventually reaps submit handlers attached above
			jQuery.event.remove( this, "._submit" );
		}
	};
}

// IE change delegation and checkbox/radio fix
if ( !jQuery.support.changeBubbles ) {

	jQuery.event.special.change = {

		setup: function() {

			if ( rformElems.test( this.nodeName ) ) {
				// IE doesn't fire change on a check/radio until blur; trigger it on click
				// after a propertychange. Eat the blur-change in special.change.handle.
				// This still fires onchange a second time for check/radio after blur.
				if ( this.type === "checkbox" || this.type === "radio" ) {
					jQuery.event.add( this, "propertychange._change", function( event ) {
						if ( event.originalEvent.propertyName === "checked" ) {
							this._just_changed = true;
						}
					});
					jQuery.event.add( this, "click._change", function( event ) {
						if ( this._just_changed && !event.isTrigger ) {
							this._just_changed = false;
							jQuery.event.simulate( "change", this, event, true );
						}
					});
				}
				return false;
			}
			// Delegated event; lazy-add a change handler on descendant inputs
			jQuery.event.add( this, "beforeactivate._change", function( e ) {
				var elem = e.target;

				if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
					jQuery.event.add( elem, "change._change", function( event ) {
						if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
							jQuery.event.simulate( "change", this.parentNode, event, true );
						}
					});
					elem._change_attached = true;
				}
			});
		},

		handle: function( event ) {
			var elem = event.target;

			// Swallow native change events from checkbox/radio, we already triggered them above
			if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
				return event.handleObj.handler.apply( this, arguments );
			}
		},

		teardown: function() {
			jQuery.event.remove( this, "._change" );

			return rformElems.test( this.nodeName );
		}
	};
}

// Create "bubbling" focus and blur events
if ( !jQuery.support.focusinBubbles ) {
	jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {

		// Attach a single capturing handler while someone wants focusin/focusout
		var attaches = 0,
			handler = function( event ) {
				jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
			};

		jQuery.event.special[ fix ] = {
			setup: function() {
				if ( attaches++ === 0 ) {
					document.addEventListener( orig, handler, true );
				}
			},
			teardown: function() {
				if ( --attaches === 0 ) {
					document.removeEventListener( orig, handler, true );
				}
			}
		};
	});
}

jQuery.fn.extend({

	on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
		var origFn, type;

		// Types can be a map of types/handlers
		if ( typeof types === "object" ) {
			// ( types-Object, selector, data )
			if ( typeof selector !== "string" ) {
				// ( types-Object, data )
				data = selector;
				selector = undefined;
			}
			for ( type in types ) {
				this.on( type, selector, data, types[ type ], one );
			}
			return this;
		}

		if ( data == null && fn == null ) {
			// ( types, fn )
			fn = selector;
			data = selector = undefined;
		} else if ( fn == null ) {
			if ( typeof selector === "string" ) {
				// ( types, selector, fn )
				fn = data;
				data = undefined;
			} else {
				// ( types, data, fn )
				fn = data;
				data = selector;
				selector = undefined;
			}
		}
		if ( fn === false ) {
			fn = returnFalse;
		} else if ( !fn ) {
			return this;
		}

		if ( one === 1 ) {
			origFn = fn;
			fn = function( event ) {
				// Can use an empty set, since event contains the info
				jQuery().off( event );
				return origFn.apply( this, arguments );
			};
			// Use same guid so caller can remove using origFn
			fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
		}
		return this.each( function() {
			jQuery.event.add( this, types, fn, data, selector );
		});
	},
	one: function( types, selector, data, fn ) {
		return this.on.call( this, types, selector, data, fn, 1 );
	},
	off: function( types, selector, fn ) {
		if ( types && types.preventDefault && types.handleObj ) {
			// ( event )  dispatched jQuery.Event
			var handleObj = types.handleObj;
			jQuery( types.delegateTarget ).off(
				handleObj.namespace? handleObj.type + "." + handleObj.namespace : handleObj.type,
				handleObj.selector,
				handleObj.handler
			);
			return this;
		}
		if ( typeof types === "object" ) {
			// ( types-object [, selector] )
			for ( var type in types ) {
				this.off( type, selector, types[ type ] );
			}
			return this;
		}
		if ( selector === false || typeof selector === "function" ) {
			// ( types [, fn] )
			fn = selector;
			selector = undefined;
		}
		if ( fn === false ) {
			fn = returnFalse;
		}
		return this.each(function() {
			jQuery.event.remove( this, types, fn, selector );
		});
	},

	bind: function( types, data, fn ) {
		return this.on( types, null, data, fn );
	},
	unbind: function( types, fn ) {
		return this.off( types, null, fn );
	},

	live: function( types, data, fn ) {
		jQuery( this.context ).on( types, this.selector, data, fn );
		return this;
	},
	die: function( types, fn ) {
		jQuery( this.context ).off( types, this.selector || "**", fn );
		return this;
	},

	delegate: function( selector, types, data, fn ) {
		return this.on( types, selector, data, fn );
	},
	undelegate: function( selector, types, fn ) {
		// ( namespace ) or ( selector, types [, fn] )
		return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
	},

	trigger: function( type, data ) {
		return this.each(function() {
			jQuery.event.trigger( type, data, this );
		});
	},
	triggerHandler: function( type, data ) {
		if ( this[0] ) {
			return jQuery.event.trigger( type, data, this[0], true );
		}
	},

	toggle: function( fn ) {
		// Save reference to arguments for access in closure
		var args = arguments,
			guid = fn.guid || jQuery.guid++,
			i = 0,
			toggler = function( event ) {
				// Figure out which function to execute
				var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
				jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );

				// Make sure that clicks stop
				event.preventDefault();

				// and execute the function
				return args[ lastToggle ].apply( this, arguments ) || false;
			};

		// link all the functions, so any of them can unbind this click handler
		toggler.guid = guid;
		while ( i < args.length ) {
			args[ i++ ].guid = guid;
		}

		return this.click( toggler );
	},

	hover: function( fnOver, fnOut ) {
		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
	}
});

jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
	"change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {

	// Handle event binding
	jQuery.fn[ name ] = function( data, fn ) {
		if ( fn == null ) {
			fn = data;
			data = null;
		}

		return arguments.length > 0 ?
			this.on( name, null, data, fn ) :
			this.trigger( name );
	};

	if ( jQuery.attrFn ) {
		jQuery.attrFn[ name ] = true;
	}

	if ( rkeyEvent.test( name ) ) {
		jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
	}

	if ( rmouseEvent.test( name ) ) {
		jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
	}
});



/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){

var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
	expando = "sizcache" + (Math.random() + '').replace('.', ''),
	done = 0,
	toString = Object.prototype.toString,
	hasDuplicate = false,
	baseHasDuplicate = true,
	rBackslash = /\\/g,
	rReturn = /\r\n/g,
	rNonWord = /\W/;

// Here we check if the JavaScript engine is using some sort of
// optimization where it does not always call our comparision
// function. If that is the case, discard the hasDuplicate value.
//   Thus far that includes Google Chrome.
[0, 0].sort(function() {
	baseHasDuplicate = false;
	return 0;
});

var Sizzle = function( selector, context, results, seed ) {
	results = results || [];
	context = context || document;

	var origContext = context;

	if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
		return [];
	}

	if ( !selector || typeof selector !== "string" ) {
		return results;
	}

	var m, set, checkSet, extra, ret, cur, pop, i,
		prune = true,
		contextXML = Sizzle.isXML( context ),
		parts = [],
		soFar = selector;

	// Reset the position of the chunker regexp (start from head)
	do {
		chunker.exec( "" );
		m = chunker.exec( soFar );

		if ( m ) {
			soFar = m[3];

			parts.push( m[1] );

			if ( m[2] ) {
				extra = m[3];
				break;
			}
		}
	} while ( m );

	if ( parts.length > 1 && origPOS.exec( selector ) ) {

		if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
			set = posProcess( parts[0] + parts[1], context, seed );

		} else {
			set = Expr.relative[ parts[0] ] ?
				[ context ] :
				Sizzle( parts.shift(), context );

			while ( parts.length ) {
				selector = parts.shift();

				if ( Expr.relative[ selector ] ) {
					selector += parts.shift();
				}

				set = posProcess( selector, set, seed );
			}
		}

	} else {
		// Take a shortcut and set the context if the root selector is an ID
		// (but not if it'll be faster if the inner selector is an ID)
		if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
				Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {

			ret = Sizzle.find( parts.shift(), context, contextXML );
			context = ret.expr ?
				Sizzle.filter( ret.expr, ret.set )[0] :
				ret.set[0];
		}

		if ( context ) {
			ret = seed ?
				{ expr: parts.pop(), set: makeArray(seed) } :
				Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );

			set = ret.expr ?
				Sizzle.filter( ret.expr, ret.set ) :
				ret.set;

			if ( parts.length > 0 ) {
				checkSet = makeArray( set );

			} else {
				prune = false;
			}

			while ( parts.length ) {
				cur = parts.pop();
				pop = cur;

				if ( !Expr.relative[ cur ] ) {
					cur = "";
				} else {
					pop = parts.pop();
				}

				if ( pop == null ) {
					pop = context;
				}

				Expr.relative[ cur ]( checkSet, pop, contextXML );
			}

		} else {
			checkSet = parts = [];
		}
	}

	if ( !checkSet ) {
		checkSet = set;
	}

	if ( !checkSet ) {
		Sizzle.error( cur || selector );
	}

	if ( toString.call(checkSet) === "[object Array]" ) {
		if ( !prune ) {
			results.push.apply( results, checkSet );

		} else if ( context && context.nodeType === 1 ) {
			for ( i = 0; checkSet[i] != null; i++ ) {
				if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
					results.push( set[i] );
				}
			}

		} else {
			for ( i = 0; checkSet[i] != null; i++ ) {
				if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
					results.push( set[i] );
				}
			}
		}

	} else {
		makeArray( checkSet, results );
	}

	if ( extra ) {
		Sizzle( extra, origContext, results, seed );
		Sizzle.uniqueSort( results );
	}

	return results;
};

Sizzle.uniqueSort = function( results ) {
	if ( sortOrder ) {
		hasDuplicate = baseHasDuplicate;
		results.sort( sortOrder );

		if ( hasDuplicate ) {
			for ( var i = 1; i < results.length; i++ ) {
				if ( results[i] === results[ i - 1 ] ) {
					results.splice( i--, 1 );
				}
			}
		}
	}

	return results;
};

Sizzle.matches = function( expr, set ) {
	return Sizzle( expr, null, null, set );
};

Sizzle.matchesSelector = function( node, expr ) {
	return Sizzle( expr, null, null, [node] ).length > 0;
};

Sizzle.find = function( expr, context, isXML ) {
	var set, i, len, match, type, left;

	if ( !expr ) {
		return [];
	}

	for ( i = 0, len = Expr.order.length; i < len; i++ ) {
		type = Expr.order[i];

		if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
			left = match[1];
			match.splice( 1, 1 );

			if ( left.substr( left.length - 1 ) !== "\\" ) {
				match[1] = (match[1] || "").replace( rBackslash, "" );
				set = Expr.find[ type ]( match, context, isXML );

				if ( set != null ) {
					expr = expr.replace( Expr.match[ type ], "" );
					break;
				}
			}
		}
	}

	if ( !set ) {
		set = typeof context.getElementsByTagName !== "undefined" ?
			context.getElementsByTagName( "*" ) :
			[];
	}

	return { set: set, expr: expr };
};

Sizzle.filter = function( expr, set, inplace, not ) {
	var match, anyFound,
		type, found, item, filter, left,
		i, pass,
		old = expr,
		result = [],
		curLoop = set,
		isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );

	while ( expr && set.length ) {
		for ( type in Expr.filter ) {
			if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
				filter = Expr.filter[ type ];
				left = match[1];

				anyFound = false;

				match.splice(1,1);

				if ( left.substr( left.length - 1 ) === "\\" ) {
					continue;
				}

				if ( curLoop === result ) {
					result = [];
				}

				if ( Expr.preFilter[ type ] ) {
					match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );

					if ( !match ) {
						anyFound = found = true;

					} else if ( match === true ) {
						continue;
					}
				}

				if ( match ) {
					for ( i = 0; (item = curLoop[i]) != null; i++ ) {
						if ( item ) {
							found = filter( item, match, i, curLoop );
							pass = not ^ found;

							if ( inplace && found != null ) {
								if ( pass ) {
									anyFound = true;

								} else {
									curLoop[i] = false;
								}

							} else if ( pass ) {
								result.push( item );
								anyFound = true;
							}
						}
					}
				}

				if ( found !== undefined ) {
					if ( !inplace ) {
						curLoop = result;
					}

					expr = expr.replace( Expr.match[ type ], "" );

					if ( !anyFound ) {
						return [];
					}

					break;
				}
			}
		}

		// Improper expression
		if ( expr === old ) {
			if ( anyFound == null ) {
				Sizzle.error( expr );

			} else {
				break;
			}
		}

		old = expr;
	}

	return curLoop;
};

Sizzle.error = function( msg ) {
	throw new Error( "Syntax error, unrecognized expression: " + msg );
};

/**
 * Utility function for retreiving the text value of an array of DOM nodes
 * @param {Array|Element} elem
 */
var getText = Sizzle.getText = function( elem ) {
    var i, node,
		nodeType = elem.nodeType,
		ret = "";

	if ( nodeType ) {
		if ( nodeType === 1 || nodeType === 9 ) {
			// Use textContent || innerText for elements
			if ( typeof elem.textContent === 'string' ) {
				return elem.textContent;
			} else if ( typeof elem.innerText === 'string' ) {
				// Replace IE's carriage returns
				return elem.innerText.replace( rReturn, '' );
			} else {
				// Traverse it's children
				for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
					ret += getText( elem );
				}
			}
		} else if ( nodeType === 3 || nodeType === 4 ) {
			return elem.nodeValue;
		}
	} else {

		// If no nodeType, this is expected to be an array
		for ( i = 0; (node = elem[i]); i++ ) {
			// Do not traverse comment nodes
			if ( node.nodeType !== 8 ) {
				ret += getText( node );
			}
		}
	}
	return ret;
};

var Expr = Sizzle.selectors = {
	order: [ "ID", "NAME", "TAG" ],

	match: {
		ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
		CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
		NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
		ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
		TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
		CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
		POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
		PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
	},

	leftMatch: {},

	attrMap: {
		"class": "className",
		"for": "htmlFor"
	},

	attrHandle: {
		href: function( elem ) {
			return elem.getAttribute( "href" );
		},
		type: function( elem ) {
			return elem.getAttribute( "type" );
		}
	},

	relative: {
		"+": function(checkSet, part){
			var isPartStr = typeof part === "string",
				isTag = isPartStr && !rNonWord.test( part ),
				isPartStrNotTag = isPartStr && !isTag;

			if ( isTag ) {
				part = part.toLowerCase();
			}

			for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
				if ( (elem = checkSet[i]) ) {
					while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}

					checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
						elem || false :
						elem === part;
				}
			}

			if ( isPartStrNotTag ) {
				Sizzle.filter( part, checkSet, true );
			}
		},

		">": function( checkSet, part ) {
			var elem,
				isPartStr = typeof part === "string",
				i = 0,
				l = checkSet.length;

			if ( isPartStr && !rNonWord.test( part ) ) {
				part = part.toLowerCase();

				for ( ; i < l; i++ ) {
					elem = checkSet[i];

					if ( elem ) {
						var parent = elem.parentNode;
						checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
					}
				}

			} else {
				for ( ; i < l; i++ ) {
					elem = checkSet[i];

					if ( elem ) {
						checkSet[i] = isPartStr ?
							elem.parentNode :
							elem.parentNode === part;
					}
				}

				if ( isPartStr ) {
					Sizzle.filter( part, checkSet, true );
				}
			}
		},

		"": function(checkSet, part, isXML){
			var nodeCheck,
				doneName = done++,
				checkFn = dirCheck;

			if ( typeof part === "string" && !rNonWord.test( part ) ) {
				part = part.toLowerCase();
				nodeCheck = part;
				checkFn = dirNodeCheck;
			}

			checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
		},

		"~": function( checkSet, part, isXML ) {
			var nodeCheck,
				doneName = done++,
				checkFn = dirCheck;

			if ( typeof part === "string" && !rNonWord.test( part ) ) {
				part = part.toLowerCase();
				nodeCheck = part;
				checkFn = dirNodeCheck;
			}

			checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
		}
	},

	find: {
		ID: function( match, context, isXML ) {
			if ( typeof context.getElementById !== "undefined" && !isXML ) {
				var m = context.getElementById(match[1]);
				// Check parentNode to catch when Blackberry 4.6 returns
				// nodes that are no longer in the document #6963
				return m && m.parentNode ? [m] : [];
			}
		},

		NAME: function( match, context ) {
			if ( typeof context.getElementsByName !== "undefined" ) {
				var ret = [],
					results = context.getElementsByName( match[1] );

				for ( var i = 0, l = results.length; i < l; i++ ) {
					if ( results[i].getAttribute("name") === match[1] ) {
						ret.push( results[i] );
					}
				}

				return ret.length === 0 ? null : ret;
			}
		},

		TAG: function( match, context ) {
			if ( typeof context.getElementsByTagName !== "undefined" ) {
				return context.getElementsByTagName( match[1] );
			}
		}
	},
	preFilter: {
		CLASS: function( match, curLoop, inplace, result, not, isXML ) {
			match = " " + match[1].replace( rBackslash, "" ) + " ";

			if ( isXML ) {
				return match;
			}

			for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
				if ( elem ) {
					if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
						if ( !inplace ) {
							result.push( elem );
						}

					} else if ( inplace ) {
						curLoop[i] = false;
					}
				}
			}

			return false;
		},

		ID: function( match ) {
			return match[1].replace( rBackslash, "" );
		},

		TAG: function( match, curLoop ) {
			return match[1].replace( rBackslash, "" ).toLowerCase();
		},

		CHILD: function( match ) {
			if ( match[1] === "nth" ) {
				if ( !match[2] ) {
					Sizzle.error( match[0] );
				}

				match[2] = match[2].replace(/^\+|\s*/g, '');

				// parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
				var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
					match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
					!/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);

				// calculate the numbers (first)n+(last) including if they are negative
				match[2] = (test[1] + (test[2] || 1)) - 0;
				match[3] = test[3] - 0;
			}
			else if ( match[2] ) {
				Sizzle.error( match[0] );
			}

			// TODO: Move to normal caching system
			match[0] = done++;

			return match;
		},

		ATTR: function( match, curLoop, inplace, result, not, isXML ) {
			var name = match[1] = match[1].replace( rBackslash, "" );

			if ( !isXML && Expr.attrMap[name] ) {
				match[1] = Expr.attrMap[name];
			}

			// Handle if an un-quoted value was used
			match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );

			if ( match[2] === "~=" ) {
				match[4] = " " + match[4] + " ";
			}

			return match;
		},

		PSEUDO: function( match, curLoop, inplace, result, not ) {
			if ( match[1] === "not" ) {
				// If we're dealing with a complex expression, or a simple one
				if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
					match[3] = Sizzle(match[3], null, null, curLoop);

				} else {
					var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);

					if ( !inplace ) {
						result.push.apply( result, ret );
					}

					return false;
				}

			} else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
				return true;
			}

			return match;
		},

		POS: function( match ) {
			match.unshift( true );

			return match;
		}
	},

	filters: {
		enabled: function( elem ) {
			return elem.disabled === false && elem.type !== "hidden";
		},

		disabled: function( elem ) {
			return elem.disabled === true;
		},

		checked: function( elem ) {
			return elem.checked === true;
		},

		selected: function( elem ) {
			// Accessing this property makes selected-by-default
			// options in Safari work properly
			if ( elem.parentNode ) {
				elem.parentNode.selectedIndex;
			}

			return elem.selected === true;
		},

		parent: function( elem ) {
			return !!elem.firstChild;
		},

		empty: function( elem ) {
			return !elem.firstChild;
		},

		has: function( elem, i, match ) {
			return !!Sizzle( match[3], elem ).length;
		},

		header: function( elem ) {
			return (/h\d/i).test( elem.nodeName );
		},

		text: function( elem ) {
			var attr = elem.getAttribute( "type" ), type = elem.type;
			// IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
			// use getAttribute instead to test this case
			return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
		},

		radio: function( elem ) {
			return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
		},

		checkbox: function( elem ) {
			return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
		},

		file: function( elem ) {
			return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
		},

		password: function( elem ) {
			return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
		},

		submit: function( elem ) {
			var name = elem.nodeName.toLowerCase();
			return (name === "input" || name === "button") && "submit" === elem.type;
		},

		image: function( elem ) {
			return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
		},

		reset: function( elem ) {
			var name = elem.nodeName.toLowerCase();
			return (name === "input" || name === "button") && "reset" === elem.type;
		},

		button: function( elem ) {
			var name = elem.nodeName.toLowerCase();
			return name === "input" && "button" === elem.type || name === "button";
		},

		input: function( elem ) {
			return (/input|select|textarea|button/i).test( elem.nodeName );
		},

		focus: function( elem ) {
			return elem === elem.ownerDocument.activeElement;
		}
	},
	setFilters: {
		first: function( elem, i ) {
			return i === 0;
		},

		last: function( elem, i, match, array ) {
			return i === array.length - 1;
		},

		even: function( elem, i ) {
			return i % 2 === 0;
		},

		odd: function( elem, i ) {
			return i % 2 === 1;
		},

		lt: function( elem, i, match ) {
			return i < match[3] - 0;
		},

		gt: function( elem, i, match ) {
			return i > match[3] - 0;
		},

		nth: function( elem, i, match ) {
			return match[3] - 0 === i;
		},

		eq: function( elem, i, match ) {
			return match[3] - 0 === i;
		}
	},
	filter: {
		PSEUDO: function( elem, match, i, array ) {
			var name = match[1],
				filter = Expr.filters[ name ];

			if ( filter ) {
				return filter( elem, i, match, array );

			} else if ( name === "contains" ) {
				return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;

			} else if ( name === "not" ) {
				var not = match[3];

				for ( var j = 0, l = not.length; j < l; j++ ) {
					if ( not[j] === elem ) {
						return false;
					}
				}

				return true;

			} else {
				Sizzle.error( name );
			}
		},

		CHILD: function( elem, match ) {
			var first, last,
				doneName, parent, cache,
				count, diff,
				type = match[1],
				node = elem;

			switch ( type ) {
				case "only":
				case "first":
					while ( (node = node.previousSibling) )	 {
						if ( node.nodeType === 1 ) {
							return false;
						}
					}

					if ( type === "first" ) {
						return true;
					}

					node = elem;

				case "last":
					while ( (node = node.nextSibling) )	 {
						if ( node.nodeType === 1 ) {
							return false;
						}
					}

					return true;

				case "nth":
					first = match[2];
					last = match[3];

					if ( first === 1 && last === 0 ) {
						return true;
					}

					doneName = match[0];
					parent = elem.parentNode;

					if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
						count = 0;

						for ( node = parent.firstChild; node; node = node.nextSibling ) {
							if ( node.nodeType === 1 ) {
								node.nodeIndex = ++count;
							}
						}

						parent[ expando ] = doneName;
					}

					diff = elem.nodeIndex - last;

					if ( first === 0 ) {
						return diff === 0;

					} else {
						return ( diff % first === 0 && diff / first >= 0 );
					}
			}
		},

		ID: function( elem, match ) {
			return elem.nodeType === 1 && elem.getAttribute("id") === match;
		},

		TAG: function( elem, match ) {
			return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
		},

		CLASS: function( elem, match ) {
			return (" " + (elem.className || elem.getAttribute("class")) + " ")
				.indexOf( match ) > -1;
		},

		ATTR: function( elem, match ) {
			var name = match[1],
				result = Sizzle.attr ?
					Sizzle.attr( elem, name ) :
					Expr.attrHandle[ name ] ?
					Expr.attrHandle[ name ]( elem ) :
					elem[ name ] != null ?
						elem[ name ] :
						elem.getAttribute( name ),
				value = result + "",
				type = match[2],
				check = match[4];

			return result == null ?
				type === "!=" :
				!type && Sizzle.attr ?
				result != null :
				type === "=" ?
				value === check :
				type === "*=" ?
				value.indexOf(check) >= 0 :
				type === "~=" ?
				(" " + value + " ").indexOf(check) >= 0 :
				!check ?
				value && result !== false :
				type === "!=" ?
				value !== check :
				type === "^=" ?
				value.indexOf(check) === 0 :
				type === "$=" ?
				value.substr(value.length - check.length) === check :
				type === "|=" ?
				value === check || value.substr(0, check.length + 1) === check + "-" :
				false;
		},

		POS: function( elem, match, i, array ) {
			var name = match[2],
				filter = Expr.setFilters[ name ];

			if ( filter ) {
				return filter( elem, i, match, array );
			}
		}
	}
};

var origPOS = Expr.match.POS,
	fescape = function(all, num){
		return "\\" + (num - 0 + 1);
	};

for ( var type in Expr.match ) {
	Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
	Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
}

var makeArray = function( array, results ) {
	array = Array.prototype.slice.call( array, 0 );

	if ( results ) {
		results.push.apply( results, array );
		return results;
	}

	return array;
};

// Perform a simple check to determine if the browser is capable of
// converting a NodeList to an array using builtin methods.
// Also verifies that the returned array holds DOM nodes
// (which is not the case in the Blackberry browser)
try {
	Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;

// Provide a fallback method if it does not work
} catch( e ) {
	makeArray = function( array, results ) {
		var i = 0,
			ret = results || [];

		if ( toString.call(array) === "[object Array]" ) {
			Array.prototype.push.apply( ret, array );

		} else {
			if ( typeof array.length === "number" ) {
				for ( var l = array.length; i < l; i++ ) {
					ret.push( array[i] );
				}

			} else {
				for ( ; array[i]; i++ ) {
					ret.push( array[i] );
				}
			}
		}

		return ret;
	};
}

var sortOrder, siblingCheck;

if ( document.documentElement.compareDocumentPosition ) {
	sortOrder = function( a, b ) {
		if ( a === b ) {
			hasDuplicate = true;
			return 0;
		}

		if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
			return a.compareDocumentPosition ? -1 : 1;
		}

		return a.compareDocumentPosition(b) & 4 ? -1 : 1;
	};

} else {
	sortOrder = function( a, b ) {
		// The nodes are identical, we can exit early
		if ( a === b ) {
			hasDuplicate = true;
			return 0;

		// Fallback to using sourceIndex (in IE) if it's available on both nodes
		} else if ( a.sourceIndex && b.sourceIndex ) {
			return a.sourceIndex - b.sourceIndex;
		}

		var al, bl,
			ap = [],
			bp = [],
			aup = a.parentNode,
			bup = b.parentNode,
			cur = aup;

		// If the nodes are siblings (or identical) we can do a quick check
		if ( aup === bup ) {
			return siblingCheck( a, b );

		// If no parents were found then the nodes are disconnected
		} else if ( !aup ) {
			return -1;

		} else if ( !bup ) {
			return 1;
		}

		// Otherwise they're somewhere else in the tree so we need
		// to build up a full list of the parentNodes for comparison
		while ( cur ) {
			ap.unshift( cur );
			cur = cur.parentNode;
		}

		cur = bup;

		while ( cur ) {
			bp.unshift( cur );
			cur = cur.parentNode;
		}

		al = ap.length;
		bl = bp.length;

		// Start walking down the tree looking for a discrepancy
		for ( var i = 0; i < al && i < bl; i++ ) {
			if ( ap[i] !== bp[i] ) {
				return siblingCheck( ap[i], bp[i] );
			}
		}

		// We ended someplace up the tree so do a sibling check
		return i === al ?
			siblingCheck( a, bp[i], -1 ) :
			siblingCheck( ap[i], b, 1 );
	};

	siblingCheck = function( a, b, ret ) {
		if ( a === b ) {
			return ret;
		}

		var cur = a.nextSibling;

		while ( cur ) {
			if ( cur === b ) {
				return -1;
			}

			cur = cur.nextSibling;
		}

		return 1;
	};
}

// Check to see if the browser returns elements by name when
// querying by getElementById (and provide a workaround)
(function(){
	// We're going to inject a fake input element with a specified name
	var form = document.createElement("div"),
		id = "script" + (new Date()).getTime(),
		root = document.documentElement;

	form.innerHTML = "<a name='" + id + "'/>";

	// Inject it into the root element, check its status, and remove it quickly
	root.insertBefore( form, root.firstChild );

	// The workaround has to do additional checks after a getElementById
	// Which slows things down for other browsers (hence the branching)
	if ( document.getElementById( id ) ) {
		Expr.find.ID = function( match, context, isXML ) {
			if ( typeof context.getElementById !== "undefined" && !isXML ) {
				var m = context.getElementById(match[1]);

				return m ?
					m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
						[m] :
						undefined :
					[];
			}
		};

		Expr.filter.ID = function( elem, match ) {
			var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");

			return elem.nodeType === 1 && node && node.nodeValue === match;
		};
	}

	root.removeChild( form );

	// release memory in IE
	root = form = null;
})();

(function(){
	// Check to see if the browser returns only elements
	// when doing getElementsByTagName("*")

	// Create a fake element
	var div = document.createElement("div");
	div.appendChild( document.createComment("") );

	// Make sure no comments are found
	if ( div.getElementsByTagName("*").length > 0 ) {
		Expr.find.TAG = function( match, context ) {
			var results = context.getElementsByTagName( match[1] );

			// Filter out possible comments
			if ( match[1] === "*" ) {
				var tmp = [];

				for ( var i = 0; results[i]; i++ ) {
					if ( results[i].nodeType === 1 ) {
						tmp.push( results[i] );
					}
				}

				results = tmp;
			}

			return results;
		};
	}

	// Check to see if an attribute returns normalized href attributes
	div.innerHTML = "<a href='#'></a>";

	if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
			div.firstChild.getAttribute("href") !== "#" ) {

		Expr.attrHandle.href = function( elem ) {
			return elem.getAttribute( "href", 2 );
		};
	}

	// release memory in IE
	div = null;
})();

if ( document.querySelectorAll ) {
	(function(){
		var oldSizzle = Sizzle,
			div = document.createElement("div"),
			id = "__sizzle__";

		div.innerHTML = "<p class='TEST'></p>";

		// Safari can't handle uppercase or unicode characters when
		// in quirks mode.
		if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
			return;
		}

		Sizzle = function( query, context, extra, seed ) {
			context = context || document;

			// Only use querySelectorAll on non-XML documents
			// (ID selectors don't work in non-HTML documents)
			if ( !seed && !Sizzle.isXML(context) ) {
				// See if we find a selector to speed up
				var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );

				if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
					// Speed-up: Sizzle("TAG")
					if ( match[1] ) {
						return makeArray( context.getElementsByTagName( query ), extra );

					// Speed-up: Sizzle(".CLASS")
					} else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
						return makeArray( context.getElementsByClassName( match[2] ), extra );
					}
				}

				if ( context.nodeType === 9 ) {
					// Speed-up: Sizzle("body")
					// The body element only exists once, optimize finding it
					if ( query === "body" && context.body ) {
						return makeArray( [ context.body ], extra );

					// Speed-up: Sizzle("#ID")
					} else if ( match && match[3] ) {
						var elem = context.getElementById( match[3] );

						// Check parentNode to catch when Blackberry 4.6 returns
						// nodes that are no longer in the document #6963
						if ( elem && elem.parentNode ) {
							// Handle the case where IE and Opera return items
							// by name instead of ID
							if ( elem.id === match[3] ) {
								return makeArray( [ elem ], extra );
							}

						} else {
							return makeArray( [], extra );
						}
					}

					try {
						return makeArray( context.querySelectorAll(query), extra );
					} catch(qsaError) {}

				// qSA works strangely on Element-rooted queries
				// We can work around this by specifying an extra ID on the root
				// and working up from there (Thanks to Andrew Dupont for the technique)
				// IE 8 doesn't work on object elements
				} else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
					var oldContext = context,
						old = context.getAttribute( "id" ),
						nid = old || id,
						hasParent = context.parentNode,
						relativeHierarchySelector = /^\s*[+~]/.test( query );

					if ( !old ) {
						context.setAttribute( "id", nid );
					} else {
						nid = nid.replace( /'/g, "\\$&" );
					}
					if ( relativeHierarchySelector && hasParent ) {
						context = context.parentNode;
					}

					try {
						if ( !relativeHierarchySelector || hasParent ) {
							return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
						}

					} catch(pseudoError) {
					} finally {
						if ( !old ) {
							oldContext.removeAttribute( "id" );
						}
					}
				}
			}

			return oldSizzle(query, context, extra, seed);
		};

		for ( var prop in oldSizzle ) {
			Sizzle[ prop ] = oldSizzle[ prop ];
		}

		// release memory in IE
		div = null;
	})();
}

(function(){
	var html = document.documentElement,
		matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;

	if ( matches ) {
		// Check to see if it's possible to do matchesSelector
		// on a disconnected node (IE 9 fails this)
		var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
			pseudoWorks = false;

		try {
			// This should fail with an exception
			// Gecko does not error, returns false instead
			matches.call( document.documentElement, "[test!='']:sizzle" );

		} catch( pseudoError ) {
			pseudoWorks = true;
		}

		Sizzle.matchesSelector = function( node, expr ) {
			// Make sure that attribute selectors are quoted
			expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");

			if ( !Sizzle.isXML( node ) ) {
				try {
					if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
						var ret = matches.call( node, expr );

						// IE 9's matchesSelector returns false on disconnected nodes
						if ( ret || !disconnectedMatch ||
								// As well, disconnected nodes are said to be in a document
								// fragment in IE 9, so check for that
								node.document && node.document.nodeType !== 11 ) {
							return ret;
						}
					}
				} catch(e) {}
			}

			return Sizzle(expr, null, null, [node]).length > 0;
		};
	}
})();

(function(){
	var div = document.createElement("div");

	div.innerHTML = "<div class='test e'></div><div class='test'></div>";

	// Opera can't find a second classname (in 9.6)
	// Also, make sure that getElementsByClassName actually exists
	if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
		return;
	}

	// Safari caches class attributes, doesn't catch changes (in 3.2)
	div.lastChild.className = "e";

	if ( div.getElementsByClassName("e").length === 1 ) {
		return;
	}

	Expr.order.splice(1, 0, "CLASS");
	Expr.find.CLASS = function( match, context, isXML ) {
		if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
			return context.getElementsByClassName(match[1]);
		}
	};

	// release memory in IE
	div = null;
})();

function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
	for ( var i = 0, l = checkSet.length; i < l; i++ ) {
		var elem = checkSet[i];

		if ( elem ) {
			var match = false;

			elem = elem[dir];

			while ( elem ) {
				if ( elem[ expando ] === doneName ) {
					match = checkSet[elem.sizset];
					break;
				}

				if ( elem.nodeType === 1 && !isXML ){
					elem[ expando ] = doneName;
					elem.sizset = i;
				}

				if ( elem.nodeName.toLowerCase() === cur ) {
					match = elem;
					break;
				}

				elem = elem[dir];
			}

			checkSet[i] = match;
		}
	}
}

function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
	for ( var i = 0, l = checkSet.length; i < l; i++ ) {
		var elem = checkSet[i];

		if ( elem ) {
			var match = false;

			elem = elem[dir];

			while ( elem ) {
				if ( elem[ expando ] === doneName ) {
					match = checkSet[elem.sizset];
					break;
				}

				if ( elem.nodeType === 1 ) {
					if ( !isXML ) {
						elem[ expando ] = doneName;
						elem.sizset = i;
					}

					if ( typeof cur !== "string" ) {
						if ( elem === cur ) {
							match = true;
							break;
						}

					} else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
						match = elem;
						break;
					}
				}

				elem = elem[dir];
			}

			checkSet[i] = match;
		}
	}
}

if ( document.documentElement.contains ) {
	Sizzle.contains = function( a, b ) {
		return a !== b && (a.contains ? a.contains(b) : true);
	};

} else if ( document.documentElement.compareDocumentPosition ) {
	Sizzle.contains = function( a, b ) {
		return !!(a.compareDocumentPosition(b) & 16);
	};

} else {
	Sizzle.contains = function() {
		return false;
	};
}

Sizzle.isXML = function( elem ) {
	// documentElement is verified for cases where it doesn't yet exist
	// (such as loading iframes in IE - #4833)
	var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;

	return documentElement ? documentElement.nodeName !== "HTML" : false;
};

var posProcess = function( selector, context, seed ) {
	var match,
		tmpSet = [],
		later = "",
		root = context.nodeType ? [context] : context;

	// Position selectors must be done after the filter
	// And so must :not(positional) so we move all PSEUDOs to the end
	while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
		later += match[0];
		selector = selector.replace( Expr.match.PSEUDO, "" );
	}

	selector = Expr.relative[selector] ? selector + "*" : selector;

	for ( var i = 0, l = root.length; i < l; i++ ) {
		Sizzle( selector, root[i], tmpSet, seed );
	}

	return Sizzle.filter( later, tmpSet );
};

// EXPOSE
// Override sizzle attribute retrieval
Sizzle.attr = jQuery.attr;
Sizzle.selectors.attrMap = {};
jQuery.find = Sizzle;
jQuery.expr = Sizzle.selectors;
jQuery.expr[":"] = jQuery.expr.filters;
jQuery.unique = Sizzle.uniqueSort;
jQuery.text = Sizzle.getText;
jQuery.isXMLDoc = Sizzle.isXML;
jQuery.contains = Sizzle.contains;


})();


var runtil = /Until$/,
	rparentsprev = /^(?:parents|prevUntil|prevAll)/,
	// Note: This RegExp should be improved, or likely pulled from Sizzle
	rmultiselector = /,/,
	isSimple = /^.[^:#\[\.,]*$/,
	slice = Array.prototype.slice,
	POS = jQuery.expr.match.POS,
	// methods guaranteed to produce a unique set when starting from a unique set
	guaranteedUnique = {
		children: true,
		contents: true,
		next: true,
		prev: true
	};

jQuery.fn.extend({
	find: function( selector ) {
		var self = this,
			i, l;

		if ( typeof selector !== "string" ) {
			return jQuery( selector ).filter(function() {
				for ( i = 0, l = self.length; i < l; i++ ) {
					if ( jQuery.contains( self[ i ], this ) ) {
						return true;
					}
				}
			});
		}

		var ret = this.pushStack( "", "find", selector ),
			length, n, r;

		for ( i = 0, l = this.length; i < l; i++ ) {
			length = ret.length;
			jQuery.find( selector, this[i], ret );

			if ( i > 0 ) {
				// Make sure that the results are unique
				for ( n = length; n < ret.length; n++ ) {
					for ( r = 0; r < length; r++ ) {
						if ( ret[r] === ret[n] ) {
							ret.splice(n--, 1);
							break;
						}
					}
				}
			}
		}

		return ret;
	},

	has: function( target ) {
		var targets = jQuery( target );
		return this.filter(function() {
			for ( var i = 0, l = targets.length; i < l; i++ ) {
				if ( jQuery.contains( this, targets[i] ) ) {
					return true;
				}
			}
		});
	},

	not: function( selector ) {
		return this.pushStack( winnow(this, selector, false), "not", selector);
	},

	filter: function( selector ) {
		return this.pushStack( winnow(this, selector, true), "filter", selector );
	},

	is: function( selector ) {
		return !!selector && (
			typeof selector === "string" ?
				// If this is a positional selector, check membership in the returned set
				// so $("p:first").is("p:last") won't return true for a doc with two "p".
				POS.test( selector ) ?
					jQuery( selector, this.context ).index( this[0] ) >= 0 :
					jQuery.filter( selector, this ).length > 0 :
				this.filter( selector ).length > 0 );
	},

	closest: function( selectors, context ) {
		var ret = [], i, l, cur = this[0];

		// Array (deprecated as of jQuery 1.7)
		if ( jQuery.isArray( selectors ) ) {
			var level = 1;

			while ( cur && cur.ownerDocument && cur !== context ) {
				for ( i = 0; i < selectors.length; i++ ) {

					if ( jQuery( cur ).is( selectors[ i ] ) ) {
						ret.push({ selector: selectors[ i ], elem: cur, level: level });
					}
				}

				cur = cur.parentNode;
				level++;
			}

			return ret;
		}

		// String
		var pos = POS.test( selectors ) || typeof selectors !== "string" ?
				jQuery( selectors, context || this.context ) :
				0;

		for ( i = 0, l = this.length; i < l; i++ ) {
			cur = this[i];

			while ( cur ) {
				if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
					ret.push( cur );
					break;

				} else {
					cur = cur.parentNode;
					if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
						break;
					}
				}
			}
		}

		ret = ret.length > 1 ? jQuery.unique( ret ) : ret;

		return this.pushStack( ret, "closest", selectors );
	},

	// Determine the position of an element within
	// the matched set of elements
	index: function( elem ) {

		// No argument, return index in parent
		if ( !elem ) {
			return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
		}

		// index in selector
		if ( typeof elem === "string" ) {
			return jQuery.inArray( this[0], jQuery( elem ) );
		}

		// Locate the position of the desired element
		return jQuery.inArray(
			// If it receives a jQuery object, the first element is used
			elem.jquery ? elem[0] : elem, this );
	},

	add: function( selector, context ) {
		var set = typeof selector === "string" ?
				jQuery( selector, context ) :
				jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
			all = jQuery.merge( this.get(), set );

		return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
			all :
			jQuery.unique( all ) );
	},

	andSelf: function() {
		return this.add( this.prevObject );
	}
});

// A painfully simple check to see if an element is disconnected
// from a document (should be improved, where feasible).
function isDisconnected( node ) {
	return !node || !node.parentNode || node.parentNode.nodeType === 11;
}

jQuery.each({
	parent: function( elem ) {
		var parent = elem.parentNode;
		return parent && parent.nodeType !== 11 ? parent : null;
	},
	parents: function( elem ) {
		return jQuery.dir( elem, "parentNode" );
	},
	parentsUntil: function( elem, i, until ) {
		return jQuery.dir( elem, "parentNode", until );
	},
	next: function( elem ) {
		return jQuery.nth( elem, 2, "nextSibling" );
	},
	prev: function( elem ) {
		return jQuery.nth( elem, 2, "previousSibling" );
	},
	nextAll: function( elem ) {
		return jQuery.dir( elem, "nextSibling" );
	},
	prevAll: function( elem ) {
		return jQuery.dir( elem, "previousSibling" );
	},
	nextUntil: function( elem, i, until ) {
		return jQuery.dir( elem, "nextSibling", until );
	},
	prevUntil: function( elem, i, until ) {
		return jQuery.dir( elem, "previousSibling", until );
	},
	siblings: function( elem ) {
		return jQuery.sibling( elem.parentNode.firstChild, elem );
	},
	children: function( elem ) {
		return jQuery.sibling( elem.firstChild );
	},
	contents: function( elem ) {
		return jQuery.nodeName( elem, "iframe" ) ?
			elem.contentDocument || elem.contentWindow.document :
			jQuery.makeArray( elem.childNodes );
	}
}, function( name, fn ) {
	jQuery.fn[ name ] = function( until, selector ) {
		var ret = jQuery.map( this, fn, until );

		if ( !runtil.test( name ) ) {
			selector = until;
		}

		if ( selector && typeof selector === "string" ) {
			ret = jQuery.filter( selector, ret );
		}

		ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;

		if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
			ret = ret.reverse();
		}

		return this.pushStack( ret, name, slice.call( arguments ).join(",") );
	};
});

jQuery.extend({
	filter: function( expr, elems, not ) {
		if ( not ) {
			expr = ":not(" + expr + ")";
		}

		return elems.length === 1 ?
			jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
			jQuery.find.matches(expr, elems);
	},

	dir: function( elem, dir, until ) {
		var matched = [],
			cur = elem[ dir ];

		while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
			if ( cur.nodeType === 1 ) {
				matched.push( cur );
			}
			cur = cur[dir];
		}
		return matched;
	},

	nth: function( cur, result, dir, elem ) {
		result = result || 1;
		var num = 0;

		for ( ; cur; cur = cur[dir] ) {
			if ( cur.nodeType === 1 && ++num === result ) {
				break;
			}
		}

		return cur;
	},

	sibling: function( n, elem ) {
		var r = [];

		for ( ; n; n = n.nextSibling ) {
			if ( n.nodeType === 1 && n !== elem ) {
				r.push( n );
			}
		}

		return r;
	}
});

// Implement the identical functionality for filter and not
function winnow( elements, qualifier, keep ) {

	// Can't pass null or undefined to indexOf in Firefox 4
	// Set to 0 to skip string check
	qualifier = qualifier || 0;

	if ( jQuery.isFunction( qualifier ) ) {
		return jQuery.grep(elements, function( elem, i ) {
			var retVal = !!qualifier.call( elem, i, elem );
			return retVal === keep;
		});

	} else if ( qualifier.nodeType ) {
		return jQuery.grep(elements, function( elem, i ) {
			return ( elem === qualifier ) === keep;
		});

	} else if ( typeof qualifier === "string" ) {
		var filtered = jQuery.grep(elements, function( elem ) {
			return elem.nodeType === 1;
		});

		if ( isSimple.test( qualifier ) ) {
			return jQuery.filter(qualifier, filtered, !keep);
		} else {
			qualifier = jQuery.filter( qualifier, filtered );
		}
	}

	return jQuery.grep(elements, function( elem, i ) {
		return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
	});
}




function createSafeFragment( document ) {
	var list = nodeNames.split( "|" ),
	safeFrag = document.createDocumentFragment();

	if ( safeFrag.createElement ) {
		while ( list.length ) {
			safeFrag.createElement(
				list.pop()
			);
		}
	}
	return safeFrag;
}

var nodeNames = "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|" +
		"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
	rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
	rleadingWhitespace = /^\s+/,
	rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
	rtagName = /<([\w:]+)/,
	rtbody = /<tbody/i,
	rhtml = /<|&#?\w+;/,
	rnoInnerhtml = /<(?:script|style)/i,
	rnocache = /<(?:script|object|embed|option|style)/i,
	rnoshimcache = new RegExp("<(?:" + nodeNames + ")", "i"),
	// checked="checked" or checked
	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
	rscriptType = /\/(java|ecma)script/i,
	rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
	wrapMap = {
		option: [ 1, "<select multiple='multiple'>", "</select>" ],
		legend: [ 1, "<fieldset>", "</fieldset>" ],
		thead: [ 1, "<table>", "</table>" ],
		tr: [ 2, "<table><tbody>", "</tbody></table>" ],
		td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
		col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
		area: [ 1, "<map>", "</map>" ],
		_default: [ 0, "", "" ]
	},
	safeFragment = createSafeFragment( document );

wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;

// IE can't serialize <link> and <script> tags normally
if ( !jQuery.support.htmlSerialize ) {
	wrapMap._default = [ 1, "div<div>", "</div>" ];
}

jQuery.fn.extend({
	text: function( text ) {
		if ( jQuery.isFunction(text) ) {
			return this.each(function(i) {
				var self = jQuery( this );

				self.text( text.call(this, i, self.text()) );
			});
		}

		if ( typeof text !== "object" && text !== undefined ) {
			return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
		}

		return jQuery.text( this );
	},

	wrapAll: function( html ) {
		if ( jQuery.isFunction( html ) ) {
			return this.each(function(i) {
				jQuery(this).wrapAll( html.call(this, i) );
			});
		}

		if ( this[0] ) {
			// The elements to wrap the target around
			var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);

			if ( this[0].parentNode ) {
				wrap.insertBefore( this[0] );
			}

			wrap.map(function() {
				var elem = this;

				while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
					elem = elem.firstChild;
				}

				return elem;
			}).append( this );
		}

		return this;
	},

	wrapInner: function( html ) {
		if ( jQuery.isFunction( html ) ) {
			return this.each(function(i) {
				jQuery(this).wrapInner( html.call(this, i) );
			});
		}

		return this.each(function() {
			var self = jQuery( this ),
				contents = self.contents();

			if ( contents.length ) {
				contents.wrapAll( html );

			} else {
				self.append( html );
			}
		});
	},

	wrap: function( html ) {
		var isFunction = jQuery.isFunction( html );

		return this.each(function(i) {
			jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
		});
	},

	unwrap: function() {
		return this.parent().each(function() {
			if ( !jQuery.nodeName( this, "body" ) ) {
				jQuery( this ).replaceWith( this.childNodes );
			}
		}).end();
	},

	append: function() {
		return this.domManip(arguments, true, function( elem ) {
			if ( this.nodeType === 1 ) {
				this.appendChild( elem );
			}
		});
	},

	prepend: function() {
		return this.domManip(arguments, true, function( elem ) {
			if ( this.nodeType === 1 ) {
				this.insertBefore( elem, this.firstChild );
			}
		});
	},

	before: function() {
		if ( this[0] && this[0].parentNode ) {
			return this.domManip(arguments, false, function( elem ) {
				this.parentNode.insertBefore( elem, this );
			});
		} else if ( arguments.length ) {
			var set = jQuery.clean( arguments );
			set.push.apply( set, this.toArray() );
			return this.pushStack( set, "before", arguments );
		}
	},

	after: function() {
		if ( this[0] && this[0].parentNode ) {
			return this.domManip(arguments, false, function( elem ) {
				this.parentNode.insertBefore( elem, this.nextSibling );
			});
		} else if ( arguments.length ) {
			var set = this.pushStack( this, "after", arguments );
			set.push.apply( set, jQuery.clean(arguments) );
			return set;
		}
	},

	// keepData is for internal use only--do not document
	remove: function( selector, keepData ) {
		for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
			if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
				if ( !keepData && elem.nodeType === 1 ) {
					jQuery.cleanData( elem.getElementsByTagName("*") );
					jQuery.cleanData( [ elem ] );
				}

				if ( elem.parentNode ) {
					elem.parentNode.removeChild( elem );
				}
			}
		}

		return this;
	},

	empty: function() {
		for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
			// Remove element nodes and prevent memory leaks
			if ( elem.nodeType === 1 ) {
				jQuery.cleanData( elem.getElementsByTagName("*") );
			}

			// Remove any remaining nodes
			while ( elem.firstChild ) {
				elem.removeChild( elem.firstChild );
			}
		}

		return this;
	},

	clone: function( dataAndEvents, deepDataAndEvents ) {
		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;

		return this.map( function () {
			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
		});
	},

	html: function( value ) {
		if ( value === undefined ) {
			return this[0] && this[0].nodeType === 1 ?
				this[0].innerHTML.replace(rinlinejQuery, "") :
				null;

		// See if we can take a shortcut and just use innerHTML
		} else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
			(jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
			!wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {

			value = value.replace(rxhtmlTag, "<$1></$2>");

			try {
				for ( var i = 0, l = this.length; i < l; i++ ) {
					// Remove element nodes and prevent memory leaks
					if ( this[i].nodeType === 1 ) {
						jQuery.cleanData( this[i].getElementsByTagName("*") );
						this[i].innerHTML = value;
					}
				}

			// If using innerHTML throws an exception, use the fallback method
			} catch(e) {
				this.empty().append( value );
			}

		} else if ( jQuery.isFunction( value ) ) {
			this.each(function(i){
				var self = jQuery( this );

				self.html( value.call(this, i, self.html()) );
			});

		} else {
			this.empty().append( value );
		}

		return this;
	},

	replaceWith: function( value ) {
		if ( this[0] && this[0].parentNode ) {
			// Make sure that the elements are removed from the DOM before they are inserted
			// this can help fix replacing a parent with child elements
			if ( jQuery.isFunction( value ) ) {
				return this.each(function(i) {
					var self = jQuery(this), old = self.html();
					self.replaceWith( value.call( this, i, old ) );
				});
			}

			if ( typeof value !== "string" ) {
				value = jQuery( value ).detach();
			}

			return this.each(function() {
				var next = this.nextSibling,
					parent = this.parentNode;

				jQuery( this ).remove();

				if ( next ) {
					jQuery(next).before( value );
				} else {
					jQuery(parent).append( value );
				}
			});
		} else {
			return this.length ?
				this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
				this;
		}
	},

	detach: function( selector ) {
		return this.remove( selector, true );
	},

	domManip: function( args, table, callback ) {
		var results, first, fragment, parent,
			value = args[0],
			scripts = [];

		// We can't cloneNode fragments that contain checked, in WebKit
		if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
			return this.each(function() {
				jQuery(this).domManip( args, table, callback, true );
			});
		}

		if ( jQuery.isFunction(value) ) {
			return this.each(function(i) {
				var self = jQuery(this);
				args[0] = value.call(this, i, table ? self.html() : undefined);
				self.domManip( args, table, callback );
			});
		}

		if ( this[0] ) {
			parent = value && value.parentNode;

			// If we're in a fragment, just use that instead of building a new one
			if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
				results = { fragment: parent };

			} else {
				results = jQuery.buildFragment( args, this, scripts );
			}

			fragment = results.fragment;

			if ( fragment.childNodes.length === 1 ) {
				first = fragment = fragment.firstChild;
			} else {
				first = fragment.firstChild;
			}

			if ( first ) {
				table = table && jQuery.nodeName( first, "tr" );

				for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
					callback.call(
						table ?
							root(this[i], first) :
							this[i],
						// Make sure that we do not leak memory by inadvertently discarding
						// the original fragment (which might have attached data) instead of
						// using it; in addition, use the original fragment object for the last
						// item instead of first because it can end up being emptied incorrectly
						// in certain situations (Bug #8070).
						// Fragments from the fragment cache must always be cloned and never used
						// in place.
						results.cacheable || ( l > 1 && i < lastIndex ) ?
							jQuery.clone( fragment, true, true ) :
							fragment
					);
				}
			}

			if ( scripts.length ) {
				jQuery.each( scripts, evalScript );
			}
		}

		return this;
	}
});

function root( elem, cur ) {
	return jQuery.nodeName(elem, "table") ?
		(elem.getElementsByTagName("tbody")[0] ||
		elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
		elem;
}

function cloneCopyEvent( src, dest ) {

	if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
		return;
	}

	var type, i, l,
		oldData = jQuery._data( src ),
		curData = jQuery._data( dest, oldData ),
		events = oldData.events;

	if ( events ) {
		delete curData.handle;
		curData.events = {};

		for ( type in events ) {
			for ( i = 0, l = events[ type ].length; i < l; i++ ) {
				jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
			}
		}
	}

	// make the cloned public data object a copy from the original
	if ( curData.data ) {
		curData.data = jQuery.extend( {}, curData.data );
	}
}

function cloneFixAttributes( src, dest ) {
	var nodeName;

	// We do not need to do anything for non-Elements
	if ( dest.nodeType !== 1 ) {
		return;
	}

	// clearAttributes removes the attributes, which we don't want,
	// but also removes the attachEvent events, which we *do* want
	if ( dest.clearAttributes ) {
		dest.clearAttributes();
	}

	// mergeAttributes, in contrast, only merges back on the
	// original attributes, not the events
	if ( dest.mergeAttributes ) {
		dest.mergeAttributes( src );
	}

	nodeName = dest.nodeName.toLowerCase();

	// IE6-8 fail to clone children inside object elements that use
	// the proprietary classid attribute value (rather than the type
	// attribute) to identify the type of content to display
	if ( nodeName === "object" ) {
		dest.outerHTML = src.outerHTML;

	} else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
		// IE6-8 fails to persist the checked state of a cloned checkbox
		// or radio button. Worse, IE6-7 fail to give the cloned element
		// a checked appearance if the defaultChecked value isn't also set
		if ( src.checked ) {
			dest.defaultChecked = dest.checked = src.checked;
		}

		// IE6-7 get confused and end up setting the value of a cloned
		// checkbox/radio button to an empty string instead of "on"
		if ( dest.value !== src.value ) {
			dest.value = src.value;
		}

	// IE6-8 fails to return the selected option to the default selected
	// state when cloning options
	} else if ( nodeName === "option" ) {
		dest.selected = src.defaultSelected;

	// IE6-8 fails to set the defaultValue to the correct value when
	// cloning other types of input fields
	} else if ( nodeName === "input" || nodeName === "textarea" ) {
		dest.defaultValue = src.defaultValue;
	}

	// Event data gets referenced instead of copied if the expando
	// gets copied too
	dest.removeAttribute( jQuery.expando );
}

jQuery.buildFragment = function( args, nodes, scripts ) {
	var fragment, cacheable, cacheresults, doc,
	first = args[ 0 ];

	// nodes may contain either an explicit document object,
	// a jQuery collection or context object.
	// If nodes[0] contains a valid object to assign to doc
	if ( nodes && nodes[0] ) {
		doc = nodes[0].ownerDocument || nodes[0];
	}

	// Ensure that an attr object doesn't incorrectly stand in as a document object
	// Chrome and Firefox seem to allow this to occur and will throw exception
	// Fixes #8950
	if ( !doc.createDocumentFragment ) {
		doc = document;
	}

	// Only cache "small" (1/2 KB) HTML strings that are associated with the main document
	// Cloning options loses the selected state, so don't cache them
	// IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
	// Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
	// Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
	if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
		first.charAt(0) === "<" && !rnocache.test( first ) &&
		(jQuery.support.checkClone || !rchecked.test( first )) &&
		(jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {

		cacheable = true;

		cacheresults = jQuery.fragments[ first ];
		if ( cacheresults && cacheresults !== 1 ) {
			fragment = cacheresults;
		}
	}

	if ( !fragment ) {
		fragment = doc.createDocumentFragment();
		jQuery.clean( args, doc, fragment, scripts );
	}

	if ( cacheable ) {
		jQuery.fragments[ first ] = cacheresults ? fragment : 1;
	}

	return { fragment: fragment, cacheable: cacheable };
};

jQuery.fragments = {};

jQuery.each({
	appendTo: "append",
	prependTo: "prepend",
	insertBefore: "before",
	insertAfter: "after",
	replaceAll: "replaceWith"
}, function( name, original ) {
	jQuery.fn[ name ] = function( selector ) {
		var ret = [],
			insert = jQuery( selector ),
			parent = this.length === 1 && this[0].parentNode;

		if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
			insert[ original ]( this[0] );
			return this;

		} else {
			for ( var i = 0, l = insert.length; i < l; i++ ) {
				var elems = ( i > 0 ? this.clone(true) : this ).get();
				jQuery( insert[i] )[ original ]( elems );
				ret = ret.concat( elems );
			}

			return this.pushStack( ret, name, insert.selector );
		}
	};
});

function getAll( elem ) {
	if ( typeof elem.getElementsByTagName !== "undefined" ) {
		return elem.getElementsByTagName( "*" );

	} else if ( typeof elem.querySelectorAll !== "undefined" ) {
		return elem.querySelectorAll( "*" );

	} else {
		return [];
	}
}

// Used in clean, fixes the defaultChecked property
function fixDefaultChecked( elem ) {
	if ( elem.type === "checkbox" || elem.type === "radio" ) {
		elem.defaultChecked = elem.checked;
	}
}
// Finds all inputs and passes them to fixDefaultChecked
function findInputs( elem ) {
	var nodeName = ( elem.nodeName || "" ).toLowerCase();
	if ( nodeName === "input" ) {
		fixDefaultChecked( elem );
	// Skip scripts, get other children
	} else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
		jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
	}
}

// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
function shimCloneNode( elem ) {
	var div = document.createElement( "div" );
	safeFragment.appendChild( div );

	div.innerHTML = elem.outerHTML;
	return div.firstChild;
}

jQuery.extend({
	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
		var srcElements,
			destElements,
			i,
			// IE<=8 does not properly clone detached, unknown element nodes
			clone = jQuery.support.html5Clone || !rnoshimcache.test( "<" + elem.nodeName ) ?
				elem.cloneNode( true ) :
				shimCloneNode( elem );

		if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
				(elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
			// IE copies events bound via attachEvent when using cloneNode.
			// Calling detachEvent on the clone will also remove the events
			// from the original. In order to get around this, we use some
			// proprietary methods to clear the events. Thanks to MooTools
			// guys for this hotness.

			cloneFixAttributes( elem, clone );

			// Using Sizzle here is crazy slow, so we use getElementsByTagName instead
			srcElements = getAll( elem );
			destElements = getAll( clone );

			// Weird iteration because IE will replace the length property
			// with an element if you are cloning the body and one of the
			// elements on the page has a name or id of "length"
			for ( i = 0; srcElements[i]; ++i ) {
				// Ensure that the destination node is not null; Fixes #9587
				if ( destElements[i] ) {
					cloneFixAttributes( srcElements[i], destElements[i] );
				}
			}
		}

		// Copy the events from the original to the clone
		if ( dataAndEvents ) {
			cloneCopyEvent( elem, clone );

			if ( deepDataAndEvents ) {
				srcElements = getAll( elem );
				destElements = getAll( clone );

				for ( i = 0; srcElements[i]; ++i ) {
					cloneCopyEvent( srcElements[i], destElements[i] );
				}
			}
		}

		srcElements = destElements = null;

		// Return the cloned set
		return clone;
	},

	clean: function( elems, context, fragment, scripts ) {
		var checkScriptType;

		context = context || document;

		// !context.createElement fails in IE with an error but returns typeof 'object'
		if ( typeof context.createElement === "undefined" ) {
			context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
		}

		var ret = [], j;

		for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
			if ( typeof elem === "number" ) {
				elem += "";
			}

			if ( !elem ) {
				continue;
			}

			// Convert html string into DOM nodes
			if ( typeof elem === "string" ) {
				if ( !rhtml.test( elem ) ) {
					elem = context.createTextNode( elem );
				} else {
					// Fix "XHTML"-style tags in all browsers
					elem = elem.replace(rxhtmlTag, "<$1></$2>");

					// Trim whitespace, otherwise indexOf won't work as expected
					var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
						wrap = wrapMap[ tag ] || wrapMap._default,
						depth = wrap[0],
						div = context.createElement("div");

					// Append wrapper element to unknown element safe doc fragment
					if ( context === document ) {
						// Use the fragment we've already created for this document
						safeFragment.appendChild( div );
					} else {
						// Use a fragment created with the owner document
						createSafeFragment( context ).appendChild( div );
					}

					// Go to html and back, then peel off extra wrappers
					div.innerHTML = wrap[1] + elem + wrap[2];

					// Move to the right depth
					while ( depth-- ) {
						div = div.lastChild;
					}

					// Remove IE's autoinserted <tbody> from table fragments
					if ( !jQuery.support.tbody ) {

						// String was a <table>, *may* have spurious <tbody>
						var hasBody = rtbody.test(elem),
							tbody = tag === "table" && !hasBody ?
								div.firstChild && div.firstChild.childNodes :

								// String was a bare <thead> or <tfoot>
								wrap[1] === "<table>" && !hasBody ?
									div.childNodes :
									[];

						for ( j = tbody.length - 1; j >= 0 ; --j ) {
							if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
								tbody[ j ].parentNode.removeChild( tbody[ j ] );
							}
						}
					}

					// IE completely kills leading whitespace when innerHTML is used
					if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
						div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
					}

					elem = div.childNodes;
				}
			}

			// Resets defaultChecked for any radios and checkboxes
			// about to be appended to the DOM in IE 6/7 (#8060)
			var len;
			if ( !jQuery.support.appendChecked ) {
				if ( elem[0] && typeof (len = elem.length) === "number" ) {
					for ( j = 0; j < len; j++ ) {
						findInputs( elem[j] );
					}
				} else {
					findInputs( elem );
				}
			}

			if ( elem.nodeType ) {
				ret.push( elem );
			} else {
				ret = jQuery.merge( ret, elem );
			}
		}

		if ( fragment ) {
			checkScriptType = function( elem ) {
				return !elem.type || rscriptType.test( elem.type );
			};
			for ( i = 0; ret[i]; i++ ) {
				if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
					scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );

				} else {
					if ( ret[i].nodeType === 1 ) {
						var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );

						ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
					}
					fragment.appendChild( ret[i] );
				}
			}
		}

		return ret;
	},

	cleanData: function( elems ) {
		var data, id,
			cache = jQuery.cache,
			special = jQuery.event.special,
			deleteExpando = jQuery.support.deleteExpando;

		for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
			if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
				continue;
			}

			id = elem[ jQuery.expando ];

			if ( id ) {
				data = cache[ id ];

				if ( data && data.events ) {
					for ( var type in data.events ) {
						if ( special[ type ] ) {
							jQuery.event.remove( elem, type );

						// This is a shortcut to avoid jQuery.event.remove's overhead
						} else {
							jQuery.removeEvent( elem, type, data.handle );
						}
					}

					// Null the DOM reference to avoid IE6/7/8 leak (#7054)
					if ( data.handle ) {
						data.handle.elem = null;
					}
				}

				if ( deleteExpando ) {
					delete elem[ jQuery.expando ];

				} else if ( elem.removeAttribute ) {
					elem.removeAttribute( jQuery.expando );
				}

				delete cache[ id ];
			}
		}
	}
});

function evalScript( i, elem ) {
	if ( elem.src ) {
		jQuery.ajax({
			url: elem.src,
			async: false,
			dataType: "script"
		});
	} else {
		jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
	}

	if ( elem.parentNode ) {
		elem.parentNode.removeChild( elem );
	}
}




var ralpha = /alpha\([^)]*\)/i,
	ropacity = /opacity=([^)]*)/,
	// fixed for IE9, see #8346
	rupper = /([A-Z]|^ms)/g,
	rnumpx = /^-?\d+(?:px)?$/i,
	rnum = /^-?\d/,
	rrelNum = /^([\-+])=([\-+.\de]+)/,

	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
	cssWidth = [ "Left", "Right" ],
	cssHeight = [ "Top", "Bottom" ],
	curCSS,

	getComputedStyle,
	currentStyle;

jQuery.fn.css = function( name, value ) {
	// Setting 'undefined' is a no-op
	if ( arguments.length === 2 && value === undefined ) {
		return this;
	}

	return jQuery.access( this, name, value, true, function( elem, name, value ) {
		return value !== undefined ?
			jQuery.style( elem, name, value ) :
			jQuery.css( elem, name );
	});
};

jQuery.extend({
	// Add in style property hooks for overriding the default
	// behavior of getting and setting a style property
	cssHooks: {
		opacity: {
			get: function( elem, computed ) {
				if ( computed ) {
					// We should always get a number back from opacity
					var ret = curCSS( elem, "opacity", "opacity" );
					return ret === "" ? "1" : ret;

				} else {
					return elem.style.opacity;
				}
			}
		}
	},

	// Exclude the following css properties to add px
	cssNumber: {
		"fillOpacity": true,
		"fontWeight": true,
		"lineHeight": true,
		"opacity": true,
		"orphans": true,
		"widows": true,
		"zIndex": true,
		"zoom": true
	},

	// Add in properties whose names you wish to fix before
	// setting or getting the value
	cssProps: {
		// normalize float css property
		"float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
	},

	// Get and set the style property on a DOM Node
	style: function( elem, name, value, extra ) {
		// Don't set styles on text and comment nodes
		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
			return;
		}

		// Make sure that we're working with the right name
		var ret, type, origName = jQuery.camelCase( name ),
			style = elem.style, hooks = jQuery.cssHooks[ origName ];

		name = jQuery.cssProps[ origName ] || origName;

		// Check if we're setting a value
		if ( value !== undefined ) {
			type = typeof value;

			// convert relative number strings (+= or -=) to relative numbers. #7345
			if ( type === "string" && (ret = rrelNum.exec( value )) ) {
				value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
				// Fixes bug #9237
				type = "number";
			}

			// Make sure that NaN and null values aren't set. See: #7116
			if ( value == null || type === "number" && isNaN( value ) ) {
				return;
			}

			// If a number was passed in, add 'px' to the (except for certain CSS properties)
			if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
				value += "px";
			}

			// If a hook was provided, use that value, otherwise just set the specified value
			if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
				// Wrapped to prevent IE from throwing errors when 'invalid' values are provided
				// Fixes bug #5509
				try {
					style[ name ] = value;
				} catch(e) {}
			}

		} else {
			// If a hook was provided get the non-computed value from there
			if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
				return ret;
			}

			// Otherwise just get the value from the style object
			return style[ name ];
		}
	},

	css: function( elem, name, extra ) {
		var ret, hooks;

		// Make sure that we're working with the right name
		name = jQuery.camelCase( name );
		hooks = jQuery.cssHooks[ name ];
		name = jQuery.cssProps[ name ] || name;

		// cssFloat needs a special treatment
		if ( name === "cssFloat" ) {
			name = "float";
		}

		// If a hook was provided get the computed value from there
		if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
			return ret;

		// Otherwise, if a way to get the computed value exists, use that
		} else if ( curCSS ) {
			return curCSS( elem, name );
		}
	},

	// A method for quickly swapping in/out CSS properties to get correct calculations
	swap: function( elem, options, callback ) {
		var old = {};

		// Remember the old values, and insert the new ones
		for ( var name in options ) {
			old[ name ] = elem.style[ name ];
			elem.style[ name ] = options[ name ];
		}

		callback.call( elem );

		// Revert the old values
		for ( name in options ) {
			elem.style[ name ] = old[ name ];
		}
	}
});

// DEPRECATED, Use jQuery.css() instead
jQuery.curCSS = jQuery.css;

jQuery.each(["height", "width"], function( i, name ) {
	jQuery.cssHooks[ name ] = {
		get: function( elem, computed, extra ) {
			var val;

			if ( computed ) {
				if ( elem.offsetWidth !== 0 ) {
					return getWH( elem, name, extra );
				} else {
					jQuery.swap( elem, cssShow, function() {
						val = getWH( elem, name, extra );
					});
				}

				return val;
			}
		},

		set: function( elem, value ) {
			if ( rnumpx.test( value ) ) {
				// ignore negative width and height values #1599
				value = parseFloat( value );

				if ( value >= 0 ) {
					return value + "px";
				}

			} else {
				return value;
			}
		}
	};
});

if ( !jQuery.support.opacity ) {
	jQuery.cssHooks.opacity = {
		get: function( elem, computed ) {
			// IE uses filters for opacity
			return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
				( parseFloat( RegExp.$1 ) / 100 ) + "" :
				computed ? "1" : "";
		},

		set: function( elem, value ) {
			var style = elem.style,
				currentStyle = elem.currentStyle,
				opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
				filter = currentStyle && currentStyle.filter || style.filter || "";

			// IE has trouble with opacity if it does not have layout
			// Force it by setting the zoom level
			style.zoom = 1;

			// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
			if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {

				// Setting style.filter to null, "" & " " still leave "filter:" in the cssText
				// if "filter:" is present at all, clearType is disabled, we want to avoid this
				// style.removeAttribute is IE Only, but so apparently is this code path...
				style.removeAttribute( "filter" );

				// if there there is no filter style applied in a css rule, we are done
				if ( currentStyle && !currentStyle.filter ) {
					return;
				}
			}

			// otherwise, set new filter values
			style.filter = ralpha.test( filter ) ?
				filter.replace( ralpha, opacity ) :
				filter + " " + opacity;
		}
	};
}

jQuery(function() {
	// This hook cannot be added until DOM ready because the support test
	// for it is not run until after DOM ready
	if ( !jQuery.support.reliableMarginRight ) {
		jQuery.cssHooks.marginRight = {
			get: function( elem, computed ) {
				// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
				// Work around by temporarily setting element display to inline-block
				var ret;
				jQuery.swap( elem, { "display": "inline-block" }, function() {
					if ( computed ) {
						ret = curCSS( elem, "margin-right", "marginRight" );
					} else {
						ret = elem.style.marginRight;
					}
				});
				return ret;
			}
		};
	}
});

if ( document.defaultView && document.defaultView.getComputedStyle ) {
	getComputedStyle = function( elem, name ) {
		var ret, defaultView, computedStyle;

		name = name.replace( rupper, "-$1" ).toLowerCase();

		if ( (defaultView = elem.ownerDocument.defaultView) &&
				(computedStyle = defaultView.getComputedStyle( elem, null )) ) {
			ret = computedStyle.getPropertyValue( name );
			if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
				ret = jQuery.style( elem, name );
			}
		}

		return ret;
	};
}

if ( document.documentElement.currentStyle ) {
	currentStyle = function( elem, name ) {
		var left, rsLeft, uncomputed,
			ret = elem.currentStyle && elem.currentStyle[ name ],
			style = elem.style;

		// Avoid setting ret to empty string here
		// so we don't default to auto
		if ( ret === null && style && (uncomputed = style[ name ]) ) {
			ret = uncomputed;
		}

		// From the awesome hack by Dean Edwards
		// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291

		// If we're not dealing with a regular pixel number
		// but a number that has a weird ending, we need to convert it to pixels
		if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {

			// Remember the original values
			left = style.left;
			rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;

			// Put in the new values to get a computed value out
			if ( rsLeft ) {
				elem.runtimeStyle.left = elem.currentStyle.left;
			}
			style.left = name === "fontSize" ? "1em" : ( ret || 0 );
			ret = style.pixelLeft + "px";

			// Revert the changed values
			style.left = left;
			if ( rsLeft ) {
				elem.runtimeStyle.left = rsLeft;
			}
		}

		return ret === "" ? "auto" : ret;
	};
}

curCSS = getComputedStyle || currentStyle;

function getWH( elem, name, extra ) {

	// Start with offset property
	var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
		which = name === "width" ? cssWidth : cssHeight,
		i = 0,
		len = which.length;

	if ( val > 0 ) {
		if ( extra !== "border" ) {
			for ( ; i < len; i++ ) {
				if ( !extra ) {
					val -= parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
				}
				if ( extra === "margin" ) {
					val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
				} else {
					val -= parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
				}
			}
		}

		return val + "px";
	}

	// Fall back to computed then uncomputed css if necessary
	val = curCSS( elem, name, name );
	if ( val < 0 || val == null ) {
		val = elem.style[ name ] || 0;
	}
	// Normalize "", auto, and prepare for extra
	val = parseFloat( val ) || 0;

	// Add padding, border, margin
	if ( extra ) {
		for ( ; i < len; i++ ) {
			val += parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
			if ( extra !== "padding" ) {
				val += parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
			}
			if ( extra === "margin" ) {
				val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
			}
		}
	}

	return val + "px";
}

if ( jQuery.expr && jQuery.expr.filters ) {
	jQuery.expr.filters.hidden = function( elem ) {
		var width = elem.offsetWidth,
			height = elem.offsetHeight;

		return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
	};

	jQuery.expr.filters.visible = function( elem ) {
		return !jQuery.expr.filters.hidden( elem );
	};
}




var r20 = /%20/g,
	rbracket = /\[\]$/,
	rCRLF = /\r?\n/g,
	rhash = /#.*$/,
	rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
	rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
	// #7653, #8125, #8152: local protocol detection
	rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
	rnoContent = /^(?:GET|HEAD)$/,
	rprotocol = /^\/\//,
	rquery = /\?/,
	rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
	rselectTextarea = /^(?:select|textarea)/i,
	rspacesAjax = /\s+/,
	rts = /([?&])_=[^&]*/,
	rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,

	// Keep a copy of the old load method
	_load = jQuery.fn.load,

	/* Prefilters
	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
	 * 2) These are called:
	 *    - BEFORE asking for a transport
	 *    - AFTER param serialization (s.data is a string if s.processData is true)
	 * 3) key is the dataType
	 * 4) the catchall symbol "*" can be used
	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
	 */
	prefilters = {},

	/* Transports bindings
	 * 1) key is the dataType
	 * 2) the catchall symbol "*" can be used
	 * 3) selection will start with transport dataType and THEN go to "*" if needed
	 */
	transports = {},

	// Document location
	ajaxLocation,

	// Document location segments
	ajaxLocParts,

	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
	allTypes = ["*/"] + ["*"];

// #8138, IE may throw an exception when accessing
// a field from window.location if document.domain has been set
try {
	ajaxLocation = location.href;
} catch( e ) {
	// Use the href attribute of an A element
	// since IE will modify it given document.location
	ajaxLocation = document.createElement( "a" );
	ajaxLocation.href = "";
	ajaxLocation = ajaxLocation.href;
}

// Segment location into parts
ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];

// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
function addToPrefiltersOrTransports( structure ) {

	// dataTypeExpression is optional and defaults to "*"
	return function( dataTypeExpression, func ) {

		if ( typeof dataTypeExpression !== "string" ) {
			func = dataTypeExpression;
			dataTypeExpression = "*";
		}

		if ( jQuery.isFunction( func ) ) {
			var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
				i = 0,
				length = dataTypes.length,
				dataType,
				list,
				placeBefore;

			// For each dataType in the dataTypeExpression
			for ( ; i < length; i++ ) {
				dataType = dataTypes[ i ];
				// We control if we're asked to add before
				// any existing element
				placeBefore = /^\+/.test( dataType );
				if ( placeBefore ) {
					dataType = dataType.substr( 1 ) || "*";
				}
				list = structure[ dataType ] = structure[ dataType ] || [];
				// then we add to the structure accordingly
				list[ placeBefore ? "unshift" : "push" ]( func );
			}
		}
	};
}

// Base inspection function for prefilters and transports
function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
		dataType /* internal */, inspected /* internal */ ) {

	dataType = dataType || options.dataTypes[ 0 ];
	inspected = inspected || {};

	inspected[ dataType ] = true;

	var list = structure[ dataType ],
		i = 0,
		length = list ? list.length : 0,
		executeOnly = ( structure === prefilters ),
		selection;

	for ( ; i < length && ( executeOnly || !selection ); i++ ) {
		selection = list[ i ]( options, originalOptions, jqXHR );
		// If we got redirected to another dataType
		// we try there if executing only and not done already
		if ( typeof selection === "string" ) {
			if ( !executeOnly || inspected[ selection ] ) {
				selection = undefined;
			} else {
				options.dataTypes.unshift( selection );
				selection = inspectPrefiltersOrTransports(
						structure, options, originalOptions, jqXHR, selection, inspected );
			}
		}
	}
	// If we're only executing or nothing was selected
	// we try the catchall dataType if not done already
	if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
		selection = inspectPrefiltersOrTransports(
				structure, options, originalOptions, jqXHR, "*", inspected );
	}
	// unnecessary when only executing (prefilters)
	// but it'll be ignored by the caller in that case
	return selection;
}

// A special extend for ajax options
// that takes "flat" options (not to be deep extended)
// Fixes #9887
function ajaxExtend( target, src ) {
	var key, deep,
		flatOptions = jQuery.ajaxSettings.flatOptions || {};
	for ( key in src ) {
		if ( src[ key ] !== undefined ) {
			( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
		}
	}
	if ( deep ) {
		jQuery.extend( true, target, deep );
	}
}

jQuery.fn.extend({
	load: function( url, params, callback ) {
		if ( typeof url !== "string" && _load ) {
			return _load.apply( this, arguments );

		// Don't do a request if no elements are being requested
		} else if ( !this.length ) {
			return this;
		}

		var off = url.indexOf( " " );
		if ( off >= 0 ) {
			var selector = url.slice( off, url.length );
			url = url.slice( 0, off );
		}

		// Default to a GET request
		var type = "GET";

		// If the second parameter was provided
		if ( params ) {
			// If it's a function
			if ( jQuery.isFunction( params ) ) {
				// We assume that it's the callback
				callback = params;
				params = undefined;

			// Otherwise, build a param string
			} else if ( typeof params === "object" ) {
				params = jQuery.param( params, jQuery.ajaxSettings.traditional );
				type = "POST";
			}
		}

		var self = this;

		// Request the remote document
		jQuery.ajax({
			url: url,
			type: type,
			dataType: "html",
			data: params,
			// Complete callback (responseText is used internally)
			complete: function( jqXHR, status, responseText ) {
				// Store the response as specified by the jqXHR object
				responseText = jqXHR.responseText;
				// If successful, inject the HTML into all the matched elements
				if ( jqXHR.isResolved() ) {
					// #4825: Get the actual response in case
					// a dataFilter is present in ajaxSettings
					jqXHR.done(function( r ) {
						responseText = r;
					});
					// See if a selector was specified
					self.html( selector ?
						// Create a dummy div to hold the results
						jQuery("<div>")
							// inject the contents of the document in, removing the scripts
							// to avoid any 'Permission Denied' errors in IE
							.append(responseText.replace(rscript, ""))

							// Locate the specified elements
							.find(selector) :

						// If not, just inject the full result
						responseText );
				}

				if ( callback ) {
					self.each( callback, [ responseText, status, jqXHR ] );
				}
			}
		});

		return this;
	},

	serialize: function() {
		return jQuery.param( this.serializeArray() );
	},

	serializeArray: function() {
		return this.map(function(){
			return this.elements ? jQuery.makeArray( this.elements ) : this;
		})
		.filter(function(){
			return this.name && !this.disabled &&
				( this.checked || rselectTextarea.test( this.nodeName ) ||
					rinput.test( this.type ) );
		})
		.map(function( i, elem ){
			var val = jQuery( this ).val();

			return val == null ?
				null :
				jQuery.isArray( val ) ?
					jQuery.map( val, function( val, i ){
						return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
					}) :
					{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
		}).get();
	}
});

// Attach a bunch of functions for handling common AJAX events
jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
	jQuery.fn[ o ] = function( f ){
		return this.on( o, f );
	};
});

jQuery.each( [ "get", "post" ], function( i, method ) {
	jQuery[ method ] = function( url, data, callback, type ) {
		// shift arguments if data argument was omitted
		if ( jQuery.isFunction( data ) ) {
			type = type || callback;
			callback = data;
			data = undefined;
		}

		return jQuery.ajax({
			type: method,
			url: url,
			data: data,
			success: callback,
			dataType: type
		});
	};
});

jQuery.extend({

	getScript: function( url, callback ) {
		return jQuery.get( url, undefined, callback, "script" );
	},

	getJSON: function( url, data, callback ) {
		return jQuery.get( url, data, callback, "json" );
	},

	// Creates a full fledged settings object into target
	// with both ajaxSettings and settings fields.
	// If target is omitted, writes into ajaxSettings.
	ajaxSetup: function( target, settings ) {
		if ( settings ) {
			// Building a settings object
			ajaxExtend( target, jQuery.ajaxSettings );
		} else {
			// Extending ajaxSettings
			settings = target;
			target = jQuery.ajaxSettings;
		}
		ajaxExtend( target, settings );
		return target;
	},

	ajaxSettings: {
		url: ajaxLocation,
		isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
		global: true,
		type: "GET",
		contentType: "application/x-www-form-urlencoded",
		processData: true,
		async: true,
		/*
		timeout: 0,
		data: null,
		dataType: null,
		username: null,
		password: null,
		cache: null,
		traditional: false,
		headers: {},
		*/

		accepts: {
			xml: "application/xml, text/xml",
			html: "text/html",
			text: "text/plain",
			json: "application/json, text/javascript",
			"*": allTypes
		},

		contents: {
			xml: /xml/,
			html: /html/,
			json: /json/
		},

		responseFields: {
			xml: "responseXML",
			text: "responseText"
		},

		// List of data converters
		// 1) key format is "source_type destination_type" (a single space in-between)
		// 2) the catchall symbol "*" can be used for source_type
		converters: {

			// Convert anything to text
			"* text": window.String,

			// Text to html (true = no transformation)
			"text html": true,

			// Evaluate text as a json expression
			"text json": jQuery.parseJSON,

			// Parse text as xml
			"text xml": jQuery.parseXML
		},

		// For options that shouldn't be deep extended:
		// you can add your own custom options here if
		// and when you create one that shouldn't be
		// deep extended (see ajaxExtend)
		flatOptions: {
			context: true,
			url: true
		}
	},

	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
	ajaxTransport: addToPrefiltersOrTransports( transports ),

	// Main method
	ajax: function( url, options ) {

		// If url is an object, simulate pre-1.5 signature
		if ( typeof url === "object" ) {
			options = url;
			url = undefined;
		}

		// Force options to be an object
		options = options || {};

		var // Create the final options object
			s = jQuery.ajaxSetup( {}, options ),
			// Callbacks context
			callbackContext = s.context || s,
			// Context for global events
			// It's the callbackContext if one was provided in the options
			// and if it's a DOM node or a jQuery collection
			globalEventContext = callbackContext !== s &&
				( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
						jQuery( callbackContext ) : jQuery.event,
			// Deferreds
			deferred = jQuery.Deferred(),
			completeDeferred = jQuery.Callbacks( "once memory" ),
			// Status-dependent callbacks
			statusCode = s.statusCode || {},
			// ifModified key
			ifModifiedKey,
			// Headers (they are sent all at once)
			requestHeaders = {},
			requestHeadersNames = {},
			// Response headers
			responseHeadersString,
			responseHeaders,
			// transport
			transport,
			// timeout handle
			timeoutTimer,
			// Cross-domain detection vars
			parts,
			// The jqXHR state
			state = 0,
			// To know if global events are to be dispatched
			fireGlobals,
			// Loop variable
			i,
			// Fake xhr
			jqXHR = {

				readyState: 0,

				// Caches the header
				setRequestHeader: function( name, value ) {
					if ( !state ) {
						var lname = name.toLowerCase();
						name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
						requestHeaders[ name ] = value;
					}
					return this;
				},

				// Raw string
				getAllResponseHeaders: function() {
					return state === 2 ? responseHeadersString : null;
				},

				// Builds headers hashtable if needed
				getResponseHeader: function( key ) {
					var match;
					if ( state === 2 ) {
						if ( !responseHeaders ) {
							responseHeaders = {};
							while( ( match = rheaders.exec( responseHeadersString ) ) ) {
								responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
							}
						}
						match = responseHeaders[ key.toLowerCase() ];
					}
					return match === undefined ? null : match;
				},

				// Overrides response content-type header
				overrideMimeType: function( type ) {
					if ( !state ) {
						s.mimeType = type;
					}
					return this;
				},

				// Cancel the request
				abort: function( statusText ) {
					statusText = statusText || "abort";
					if ( transport ) {
						transport.abort( statusText );
					}
					done( 0, statusText );
					return this;
				}
			};

		// Callback for when everything is done
		// It is defined here because jslint complains if it is declared
		// at the end of the function (which would be more logical and readable)
		function done( status, nativeStatusText, responses, headers ) {

			// Called once
			if ( state === 2 ) {
				return;
			}

			// State is "done" now
			state = 2;

			// Clear timeout if it exists
			if ( timeoutTimer ) {
				clearTimeout( timeoutTimer );
			}

			// Dereference transport for early garbage collection
			// (no matter how long the jqXHR object will be used)
			transport = undefined;

			// Cache response headers
			responseHeadersString = headers || "";

			// Set readyState
			jqXHR.readyState = status > 0 ? 4 : 0;

			var isSuccess,
				success,
				error,
				statusText = nativeStatusText,
				response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
				lastModified,
				etag;

			// If successful, handle type chaining
			if ( status >= 200 && status < 300 || status === 304 ) {

				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
				if ( s.ifModified ) {

					if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
						jQuery.lastModified[ ifModifiedKey ] = lastModified;
					}
					if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
						jQuery.etag[ ifModifiedKey ] = etag;
					}
				}

				// If not modified
				if ( status === 304 ) {

					statusText = "notmodified";
					isSuccess = true;

				// If we have data
				} else {

					try {
						success = ajaxConvert( s, response );
						statusText = "success";
						isSuccess = true;
					} catch(e) {
						// We have a parsererror
						statusText = "parsererror";
						error = e;
					}
				}
			} else {
				// We extract error from statusText
				// then normalize statusText and status for non-aborts
				error = statusText;
				if ( !statusText || status ) {
					statusText = "error";
					if ( status < 0 ) {
						status = 0;
					}
				}
			}

			// Set data for the fake xhr object
			jqXHR.status = status;
			jqXHR.statusText = "" + ( nativeStatusText || statusText );

			// Success/Error
			if ( isSuccess ) {
				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
			} else {
				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
			}

			// Status-dependent callbacks
			jqXHR.statusCode( statusCode );
			statusCode = undefined;

			if ( fireGlobals ) {
				globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
						[ jqXHR, s, isSuccess ? success : error ] );
			}

			// Complete
			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );

			if ( fireGlobals ) {
				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
				// Handle the global AJAX counter
				if ( !( --jQuery.active ) ) {
					jQuery.event.trigger( "ajaxStop" );
				}
			}
		}

		// Attach deferreds
		deferred.promise( jqXHR );
		jqXHR.success = jqXHR.done;
		jqXHR.error = jqXHR.fail;
		jqXHR.complete = completeDeferred.add;

		// Status-dependent callbacks
		jqXHR.statusCode = function( map ) {
			if ( map ) {
				var tmp;
				if ( state < 2 ) {
					for ( tmp in map ) {
						statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
					}
				} else {
					tmp = map[ jqXHR.status ];
					jqXHR.then( tmp, tmp );
				}
			}
			return this;
		};

		// Remove hash character (#7531: and string promotion)
		// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
		// We also use the url parameter if available
		s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );

		// Extract dataTypes list
		s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );

		// Determine if a cross-domain request is in order
		if ( s.crossDomain == null ) {
			parts = rurl.exec( s.url.toLowerCase() );
			s.crossDomain = !!( parts &&
				( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
					( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
						( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
			);
		}

		// Convert data if not already a string
		if ( s.data && s.processData && typeof s.data !== "string" ) {
			s.data = jQuery.param( s.data, s.traditional );
		}

		// Apply prefilters
		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );

		// If request was aborted inside a prefiler, stop there
		if ( state === 2 ) {
			return false;
		}

		// We can fire global events as of now if asked to
		fireGlobals = s.global;

		// Uppercase the type
		s.type = s.type.toUpperCase();

		// Determine if request has content
		s.hasContent = !rnoContent.test( s.type );

		// Watch for a new set of requests
		if ( fireGlobals && jQuery.active++ === 0 ) {
			jQuery.event.trigger( "ajaxStart" );
		}

		// More options handling for requests with no content
		if ( !s.hasContent ) {

			// If data is available, append data to url
			if ( s.data ) {
				s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
				// #9682: remove data so that it's not used in an eventual retry
				delete s.data;
			}

			// Get ifModifiedKey before adding the anti-cache parameter
			ifModifiedKey = s.url;

			// Add anti-cache in url if needed
			if ( s.cache === false ) {

				var ts = jQuery.now(),
					// try replacing _= if it is there
					ret = s.url.replace( rts, "$1_=" + ts );

				// if nothing was replaced, add timestamp to the end
				s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
			}
		}

		// Set the correct header, if data is being sent
		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
			jqXHR.setRequestHeader( "Content-Type", s.contentType );
		}

		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
		if ( s.ifModified ) {
			ifModifiedKey = ifModifiedKey || s.url;
			if ( jQuery.lastModified[ ifModifiedKey ] ) {
				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
			}
			if ( jQuery.etag[ ifModifiedKey ] ) {
				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
			}
		}

		// Set the Accepts header for the server, depending on the dataType
		jqXHR.setRequestHeader(
			"Accept",
			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
				s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
				s.accepts[ "*" ]
		);

		// Check for headers option
		for ( i in s.headers ) {
			jqXHR.setRequestHeader( i, s.headers[ i ] );
		}

		// Allow custom headers/mimetypes and early abort
		if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
				// Abort if not done already
				jqXHR.abort();
				return false;

		}

		// Install callbacks on deferreds
		for ( i in { success: 1, error: 1, complete: 1 } ) {
			jqXHR[ i ]( s[ i ] );
		}

		// Get transport
		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );

		// If no transport, we auto-abort
		if ( !transport ) {
			done( -1, "No Transport" );
		} else {
			jqXHR.readyState = 1;
			// Send global event
			if ( fireGlobals ) {
				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
			}
			// Timeout
			if ( s.async && s.timeout > 0 ) {
				timeoutTimer = setTimeout( function(){
					jqXHR.abort( "timeout" );
				}, s.timeout );
			}

			try {
				state = 1;
				transport.send( requestHeaders, done );
			} catch (e) {
				// Propagate exception as error if not done
				if ( state < 2 ) {
					done( -1, e );
				// Simply rethrow otherwise
				} else {
					throw e;
				}
			}
		}

		return jqXHR;
	},

	// Serialize an array of form elements or a set of
	// key/values into a query string
	param: function( a, traditional ) {
		var s = [],
			add = function( key, value ) {
				// If value is a function, invoke it and return its value
				value = jQuery.isFunction( value ) ? value() : value;
				s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
			};

		// Set traditional to true for jQuery <= 1.3.2 behavior.
		if ( traditional === undefined ) {
			traditional = jQuery.ajaxSettings.traditional;
		}

		// If an array was passed in, assume that it is an array of form elements.
		if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
			// Serialize the form elements
			jQuery.each( a, function() {
				add( this.name, this.value );
			});

		} else {
			// If traditional, encode the "old" way (the way 1.3.2 or older
			// did it), otherwise encode params recursively.
			for ( var prefix in a ) {
				buildParams( prefix, a[ prefix ], traditional, add );
			}
		}

		// Return the resulting serialization
		return s.join( "&" ).replace( r20, "+" );
	}
});

function buildParams( prefix, obj, traditional, add ) {
	if ( jQuery.isArray( obj ) ) {
		// Serialize array item.
		jQuery.each( obj, function( i, v ) {
			if ( traditional || rbracket.test( prefix ) ) {
				// Treat each array item as a scalar.
				add( prefix, v );

			} else {
				// If array item is non-scalar (array or object), encode its
				// numeric index to resolve deserialization ambiguity issues.
				// Note that rack (as of 1.0.0) can't currently deserialize
				// nested arrays properly, and attempting to do so may cause
				// a server error. Possible fixes are to modify rack's
				// deserialization algorithm or to provide an option or flag
				// to force array serialization to be shallow.
				buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
			}
		});

	} else if ( !traditional && obj != null && typeof obj === "object" ) {
		// Serialize object item.
		for ( var name in obj ) {
			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
		}

	} else {
		// Serialize scalar item.
		add( prefix, obj );
	}
}

// This is still on the jQuery object... for now
// Want to move this to jQuery.ajax some day
jQuery.extend({

	// Counter for holding the number of active queries
	active: 0,

	// Last-Modified header cache for next request
	lastModified: {},
	etag: {}

});

/* Handles responses to an ajax request:
 * - sets all responseXXX fields accordingly
 * - finds the right dataType (mediates between content-type and expected dataType)
 * - returns the corresponding response
 */
function ajaxHandleResponses( s, jqXHR, responses ) {

	var contents = s.contents,
		dataTypes = s.dataTypes,
		responseFields = s.responseFields,
		ct,
		type,
		finalDataType,
		firstDataType;

	// Fill responseXXX fields
	for ( type in responseFields ) {
		if ( type in responses ) {
			jqXHR[ responseFields[type] ] = responses[ type ];
		}
	}

	// Remove auto dataType and get content-type in the process
	while( dataTypes[ 0 ] === "*" ) {
		dataTypes.shift();
		if ( ct === undefined ) {
			ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
		}
	}

	// Check if we're dealing with a known content-type
	if ( ct ) {
		for ( type in contents ) {
			if ( contents[ type ] && contents[ type ].test( ct ) ) {
				dataTypes.unshift( type );
				break;
			}
		}
	}

	// Check to see if we have a response for the expected dataType
	if ( dataTypes[ 0 ] in responses ) {
		finalDataType = dataTypes[ 0 ];
	} else {
		// Try convertible dataTypes
		for ( type in responses ) {
			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
				finalDataType = type;
				break;
			}
			if ( !firstDataType ) {
				firstDataType = type;
			}
		}
		// Or just use first one
		finalDataType = finalDataType || firstDataType;
	}

	// If we found a dataType
	// We add the dataType to the list if needed
	// and return the corresponding response
	if ( finalDataType ) {
		if ( finalDataType !== dataTypes[ 0 ] ) {
			dataTypes.unshift( finalDataType );
		}
		return responses[ finalDataType ];
	}
}

// Chain conversions given the request and the original response
function ajaxConvert( s, response ) {

	// Apply the dataFilter if provided
	if ( s.dataFilter ) {
		response = s.dataFilter( response, s.dataType );
	}

	var dataTypes = s.dataTypes,
		converters = {},
		i,
		key,
		length = dataTypes.length,
		tmp,
		// Current and previous dataTypes
		current = dataTypes[ 0 ],
		prev,
		// Conversion expression
		conversion,
		// Conversion function
		conv,
		// Conversion functions (transitive conversion)
		conv1,
		conv2;

	// For each dataType in the chain
	for ( i = 1; i < length; i++ ) {

		// Create converters map
		// with lowercased keys
		if ( i === 1 ) {
			for ( key in s.converters ) {
				if ( typeof key === "string" ) {
					converters[ key.toLowerCase() ] = s.converters[ key ];
				}
			}
		}

		// Get the dataTypes
		prev = current;
		current = dataTypes[ i ];

		// If current is auto dataType, update it to prev
		if ( current === "*" ) {
			current = prev;
		// If no auto and dataTypes are actually different
		} else if ( prev !== "*" && prev !== current ) {

			// Get the converter
			conversion = prev + " " + current;
			conv = converters[ conversion ] || converters[ "* " + current ];

			// If there is no direct converter, search transitively
			if ( !conv ) {
				conv2 = undefined;
				for ( conv1 in converters ) {
					tmp = conv1.split( " " );
					if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
						conv2 = converters[ tmp[1] + " " + current ];
						if ( conv2 ) {
							conv1 = converters[ conv1 ];
							if ( conv1 === true ) {
								conv = conv2;
							} else if ( conv2 === true ) {
								conv = conv1;
							}
							break;
						}
					}
				}
			}
			// If we found no converter, dispatch an error
			if ( !( conv || conv2 ) ) {
				jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
			}
			// If found converter is not an equivalence
			if ( conv !== true ) {
				// Convert with 1 or 2 converters accordingly
				response = conv ? conv( response ) : conv2( conv1(response) );
			}
		}
	}
	return response;
}




var jsc = jQuery.now(),
	jsre = /(\=)\?(&|$)|\?\?/i;

// Default jsonp settings
jQuery.ajaxSetup({
	jsonp: "callback",
	jsonpCallback: function() {
		return jQuery.expando + "_" + ( jsc++ );
	}
});

// Detect, normalize options and install callbacks for jsonp requests
jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {

	var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
		( typeof s.data === "string" );

	if ( s.dataTypes[ 0 ] === "jsonp" ||
		s.jsonp !== false && ( jsre.test( s.url ) ||
				inspectData && jsre.test( s.data ) ) ) {

		var responseContainer,
			jsonpCallback = s.jsonpCallback =
				jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
			previous = window[ jsonpCallback ],
			url = s.url,
			data = s.data,
			replace = "$1" + jsonpCallback + "$2";

		if ( s.jsonp !== false ) {
			url = url.replace( jsre, replace );
			if ( s.url === url ) {
				if ( inspectData ) {
					data = data.replace( jsre, replace );
				}
				if ( s.data === data ) {
					// Add callback manually
					url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
				}
			}
		}

		s.url = url;
		s.data = data;

		// Install callback
		window[ jsonpCallback ] = function( response ) {
			responseContainer = [ response ];
		};

		// Clean-up function
		jqXHR.always(function() {
			// Set callback back to previous value
			window[ jsonpCallback ] = previous;
			// Call if it was a function and we have a response
			if ( responseContainer && jQuery.isFunction( previous ) ) {
				window[ jsonpCallback ]( responseContainer[ 0 ] );
			}
		});

		// Use data converter to retrieve json after script execution
		s.converters["script json"] = function() {
			if ( !responseContainer ) {
				jQuery.error( jsonpCallback + " was not called" );
			}
			return responseContainer[ 0 ];
		};

		// force json dataType
		s.dataTypes[ 0 ] = "json";

		// Delegate to script
		return "script";
	}
});




// Install script dataType
jQuery.ajaxSetup({
	accepts: {
		script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
	},
	contents: {
		script: /javascript|ecmascript/
	},
	converters: {
		"text script": function( text ) {
			jQuery.globalEval( text );
			return text;
		}
	}
});

// Handle cache's special case and global
jQuery.ajaxPrefilter( "script", function( s ) {
	if ( s.cache === undefined ) {
		s.cache = false;
	}
	if ( s.crossDomain ) {
		s.type = "GET";
		s.global = false;
	}
});

// Bind script tag hack transport
jQuery.ajaxTransport( "script", function(s) {

	// This transport only deals with cross domain requests
	if ( s.crossDomain ) {

		var script,
			head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;

		return {

			send: function( _, callback ) {

				script = document.createElement( "script" );

				script.async = "async";

				if ( s.scriptCharset ) {
					script.charset = s.scriptCharset;
				}

				script.src = s.url;

				// Attach handlers for all browsers
				script.onload = script.onreadystatechange = function( _, isAbort ) {

					if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {

						// Handle memory leak in IE
						script.onload = script.onreadystatechange = null;

						// Remove the script
						if ( head && script.parentNode ) {
							head.removeChild( script );
						}

						// Dereference the script
						script = undefined;

						// Callback if not abort
						if ( !isAbort ) {
							callback( 200, "success" );
						}
					}
				};
				// Use insertBefore instead of appendChild  to circumvent an IE6 bug.
				// This arises when a base node is used (#2709 and #4378).
				head.insertBefore( script, head.firstChild );
			},

			abort: function() {
				if ( script ) {
					script.onload( 0, 1 );
				}
			}
		};
	}
});




var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
	xhrOnUnloadAbort = window.ActiveXObject ? function() {
		// Abort all pending requests
		for ( var key in xhrCallbacks ) {
			xhrCallbacks[ key ]( 0, 1 );
		}
	} : false,
	xhrId = 0,
	xhrCallbacks;

// Functions to create xhrs
function createStandardXHR() {
	try {
		return new window.XMLHttpRequest();
	} catch( e ) {}
}

function createActiveXHR() {
	try {
		return new window.ActiveXObject( "Microsoft.XMLHTTP" );
	} catch( e ) {}
}

// Create the request object
// (This is still attached to ajaxSettings for backward compatibility)
jQuery.ajaxSettings.xhr = window.ActiveXObject ?
	/* Microsoft failed to properly
	 * implement the XMLHttpRequest in IE7 (can't request local files),
	 * so we use the ActiveXObject when it is available
	 * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
	 * we need a fallback.
	 */
	function() {
		return !this.isLocal && createStandardXHR() || createActiveXHR();
	} :
	// For all other browsers, use the standard XMLHttpRequest object
	createStandardXHR;

// Determine support properties
(function( xhr ) {
	jQuery.extend( jQuery.support, {
		ajax: !!xhr,
		cors: !!xhr && ( "withCredentials" in xhr )
	});
})( jQuery.ajaxSettings.xhr() );

// Create transport if the browser can provide an xhr
if ( jQuery.support.ajax ) {

	jQuery.ajaxTransport(function( s ) {
		// Cross domain only allowed if supported through XMLHttpRequest
		if ( !s.crossDomain || jQuery.support.cors ) {

			var callback;

			return {
				send: function( headers, complete ) {

					// Get a new xhr
					var xhr = s.xhr(),
						handle,
						i;

					// Open the socket
					// Passing null username, generates a login popup on Opera (#2865)
					if ( s.username ) {
						xhr.open( s.type, s.url, s.async, s.username, s.password );
					} else {
						xhr.open( s.type, s.url, s.async );
					}

					// Apply custom fields if provided
					if ( s.xhrFields ) {
						for ( i in s.xhrFields ) {
							xhr[ i ] = s.xhrFields[ i ];
						}
					}

					// Override mime type if needed
					if ( s.mimeType && xhr.overrideMimeType ) {
						xhr.overrideMimeType( s.mimeType );
					}

					// X-Requested-With header
					// For cross-domain requests, seeing as conditions for a preflight are
					// akin to a jigsaw puzzle, we simply never set it to be sure.
					// (it can always be set on a per-request basis or even using ajaxSetup)
					// For same-domain requests, won't change header if already provided.
					if ( !s.crossDomain && !headers["X-Requested-With"] ) {
						headers[ "X-Requested-With" ] = "XMLHttpRequest";
					}

					// Need an extra try/catch for cross domain requests in Firefox 3
					try {
						for ( i in headers ) {
							xhr.setRequestHeader( i, headers[ i ] );
						}
					} catch( _ ) {}

					// Do send the request
					// This may raise an exception which is actually
					// handled in jQuery.ajax (so no try/catch here)
					xhr.send( ( s.hasContent && s.data ) || null );

					// Listener
					callback = function( _, isAbort ) {

						var status,
							statusText,
							responseHeaders,
							responses,
							xml;

						// Firefox throws exceptions when accessing properties
						// of an xhr when a network error occured
						// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
						try {

							// Was never called and is aborted or complete
							if ( callback && ( isAbort || xhr.readyState === 4 ) ) {

								// Only called once
								callback = undefined;

								// Do not keep as active anymore
								if ( handle ) {
									xhr.onreadystatechange = jQuery.noop;
									if ( xhrOnUnloadAbort ) {
										delete xhrCallbacks[ handle ];
									}
								}

								// If it's an abort
								if ( isAbort ) {
									// Abort it manually if needed
									if ( xhr.readyState !== 4 ) {
										xhr.abort();
									}
								} else {
									status = xhr.status;
									responseHeaders = xhr.getAllResponseHeaders();
									responses = {};
									xml = xhr.responseXML;

									// Construct response list
									if ( xml && xml.documentElement /* #4958 */ ) {
										responses.xml = xml;
									}
									responses.text = xhr.responseText;

									// Firefox throws an exception when accessing
									// statusText for faulty cross-domain requests
									try {
										statusText = xhr.statusText;
									} catch( e ) {
										// We normalize with Webkit giving an empty statusText
										statusText = "";
									}

									// Filter status for non standard behaviors

									// If the request is local and we have data: assume a success
									// (success with no data won't get notified, that's the best we
									// can do given current implementations)
									if ( !status && s.isLocal && !s.crossDomain ) {
										status = responses.text ? 200 : 404;
									// IE - #1450: sometimes returns 1223 when it should be 204
									} else if ( status === 1223 ) {
										status = 204;
									}
								}
							}
						} catch( firefoxAccessException ) {
							if ( !isAbort ) {
								complete( -1, firefoxAccessException );
							}
						}

						// Call complete if needed
						if ( responses ) {
							complete( status, statusText, responses, responseHeaders );
						}
					};

					// if we're in sync mode or it's in cache
					// and has been retrieved directly (IE6 & IE7)
					// we need to manually fire the callback
					if ( !s.async || xhr.readyState === 4 ) {
						callback();
					} else {
						handle = ++xhrId;
						if ( xhrOnUnloadAbort ) {
							// Create the active xhrs callbacks list if needed
							// and attach the unload handler
							if ( !xhrCallbacks ) {
								xhrCallbacks = {};
								jQuery( window ).unload( xhrOnUnloadAbort );
							}
							// Add to list of active xhrs callbacks
							xhrCallbacks[ handle ] = callback;
						}
						xhr.onreadystatechange = callback;
					}
				},

				abort: function() {
					if ( callback ) {
						callback(0,1);
					}
				}
			};
		}
	});
}




var elemdisplay = {},
	iframe, iframeDoc,
	rfxtypes = /^(?:toggle|show|hide)$/,
	rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
	timerId,
	fxAttrs = [
		// height animations
		[ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
		// width animations
		[ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
		// opacity animations
		[ "opacity" ]
	],
	fxNow;

jQuery.fn.extend({
	show: function( speed, easing, callback ) {
		var elem, display;

		if ( speed || speed === 0 ) {
			return this.animate( genFx("show", 3), speed, easing, callback );

		} else {
			for ( var i = 0, j = this.length; i < j; i++ ) {
				elem = this[ i ];

				if ( elem.style ) {
					display = elem.style.display;

					// Reset the inline display of this element to learn if it is
					// being hidden by cascaded rules or not
					if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
						display = elem.style.display = "";
					}

					// Set elements which have been overridden with display: none
					// in a stylesheet to whatever the default browser style is
					// for such an element
					if ( display === "" && jQuery.css(elem, "display") === "none" ) {
						jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
					}
				}
			}

			// Set the display of most of the elements in a second loop
			// to avoid the constant reflow
			for ( i = 0; i < j; i++ ) {
				elem = this[ i ];

				if ( elem.style ) {
					display = elem.style.display;

					if ( display === "" || display === "none" ) {
						elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
					}
				}
			}

			return this;
		}
	},

	hide: function( speed, easing, callback ) {
		if ( speed || speed === 0 ) {
			return this.animate( genFx("hide", 3), speed, easing, callback);

		} else {
			var elem, display,
				i = 0,
				j = this.length;

			for ( ; i < j; i++ ) {
				elem = this[i];
				if ( elem.style ) {
					display = jQuery.css( elem, "display" );

					if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
						jQuery._data( elem, "olddisplay", display );
					}
				}
			}

			// Set the display of the elements in a second loop
			// to avoid the constant reflow
			for ( i = 0; i < j; i++ ) {
				if ( this[i].style ) {
					this[i].style.display = "none";
				}
			}

			return this;
		}
	},

	// Save the old toggle function
	_toggle: jQuery.fn.toggle,

	toggle: function( fn, fn2, callback ) {
		var bool = typeof fn === "boolean";

		if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
			this._toggle.apply( this, arguments );

		} else if ( fn == null || bool ) {
			this.each(function() {
				var state = bool ? fn : jQuery(this).is(":hidden");
				jQuery(this)[ state ? "show" : "hide" ]();
			});

		} else {
			this.animate(genFx("toggle", 3), fn, fn2, callback);
		}

		return this;
	},

	fadeTo: function( speed, to, easing, callback ) {
		return this.filter(":hidden").css("opacity", 0).show().end()
					.animate({opacity: to}, speed, easing, callback);
	},

	animate: function( prop, speed, easing, callback ) {
		var optall = jQuery.speed( speed, easing, callback );

		if ( jQuery.isEmptyObject( prop ) ) {
			return this.each( optall.complete, [ false ] );
		}

		// Do not change referenced properties as per-property easing will be lost
		prop = jQuery.extend( {}, prop );

		function doAnimation() {
			// XXX 'this' does not always have a nodeName when running the
			// test suite

			if ( optall.queue === false ) {
				jQuery._mark( this );
			}

			var opt = jQuery.extend( {}, optall ),
				isElement = this.nodeType === 1,
				hidden = isElement && jQuery(this).is(":hidden"),
				name, val, p, e,
				parts, start, end, unit,
				method;

			// will store per property easing and be used to determine when an animation is complete
			opt.animatedProperties = {};

			for ( p in prop ) {

				// property name normalization
				name = jQuery.camelCase( p );
				if ( p !== name ) {
					prop[ name ] = prop[ p ];
					delete prop[ p ];
				}

				val = prop[ name ];

				// easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
				if ( jQuery.isArray( val ) ) {
					opt.animatedProperties[ name ] = val[ 1 ];
					val = prop[ name ] = val[ 0 ];
				} else {
					opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
				}

				if ( val === "hide" && hidden || val === "show" && !hidden ) {
					return opt.complete.call( this );
				}

				if ( isElement && ( name === "height" || name === "width" ) ) {
					// Make sure that nothing sneaks out
					// Record all 3 overflow attributes because IE does not
					// change the overflow attribute when overflowX and
					// overflowY are set to the same value
					opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];

					// Set display property to inline-block for height/width
					// animations on inline elements that are having width/height animated
					if ( jQuery.css( this, "display" ) === "inline" &&
							jQuery.css( this, "float" ) === "none" ) {

						// inline-level elements accept inline-block;
						// block-level elements need to be inline with layout
						if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
							this.style.display = "inline-block";

						} else {
							this.style.zoom = 1;
						}
					}
				}
			}

			if ( opt.overflow != null ) {
				this.style.overflow = "hidden";
			}

			for ( p in prop ) {
				e = new jQuery.fx( this, opt, p );
				val = prop[ p ];

				if ( rfxtypes.test( val ) ) {

					// Tracks whether to show or hide based on private
					// data attached to the element
					method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
					if ( method ) {
						jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
						e[ method ]();
					} else {
						e[ val ]();
					}

				} else {
					parts = rfxnum.exec( val );
					start = e.cur();

					if ( parts ) {
						end = parseFloat( parts[2] );
						unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );

						// We need to compute starting value
						if ( unit !== "px" ) {
							jQuery.style( this, p, (end || 1) + unit);
							start = ( (end || 1) / e.cur() ) * start;
							jQuery.style( this, p, start + unit);
						}

						// If a +=/-= token was provided, we're doing a relative animation
						if ( parts[1] ) {
							end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
						}

						e.custom( start, end, unit );

					} else {
						e.custom( start, val, "" );
					}
				}
			}

			// For JS strict compliance
			return true;
		}

		return optall.queue === false ?
			this.each( doAnimation ) :
			this.queue( optall.queue, doAnimation );
	},

	stop: function( type, clearQueue, gotoEnd ) {
		if ( typeof type !== "string" ) {
			gotoEnd = clearQueue;
			clearQueue = type;
			type = undefined;
		}
		if ( clearQueue && type !== false ) {
			this.queue( type || "fx", [] );
		}

		return this.each(function() {
			var index,
				hadTimers = false,
				timers = jQuery.timers,
				data = jQuery._data( this );

			// clear marker counters if we know they won't be
			if ( !gotoEnd ) {
				jQuery._unmark( true, this );
			}

			function stopQueue( elem, data, index ) {
				var hooks = data[ index ];
				jQuery.removeData( elem, index, true );
				hooks.stop( gotoEnd );
			}

			if ( type == null ) {
				for ( index in data ) {
					if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {
						stopQueue( this, data, index );
					}
				}
			} else if ( data[ index = type + ".run" ] && data[ index ].stop ){
				stopQueue( this, data, index );
			}

			for ( index = timers.length; index--; ) {
				if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
					if ( gotoEnd ) {

						// force the next step to be the last
						timers[ index ]( true );
					} else {
						timers[ index ].saveState();
					}
					hadTimers = true;
					timers.splice( index, 1 );
				}
			}

			// start the next in the queue if the last step wasn't forced
			// timers currently will call their complete callbacks, which will dequeue
			// but only if they were gotoEnd
			if ( !( gotoEnd && hadTimers ) ) {
				jQuery.dequeue( this, type );
			}
		});
	}

});

// Animations created synchronously will run synchronously
function createFxNow() {
	setTimeout( clearFxNow, 0 );
	return ( fxNow = jQuery.now() );
}

function clearFxNow() {
	fxNow = undefined;
}

// Generate parameters to create a standard animation
function genFx( type, num ) {
	var obj = {};

	jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
		obj[ this ] = type;
	});

	return obj;
}

// Generate shortcuts for custom animations
jQuery.each({
	slideDown: genFx( "show", 1 ),
	slideUp: genFx( "hide", 1 ),
	slideToggle: genFx( "toggle", 1 ),
	fadeIn: { opacity: "show" },
	fadeOut: { opacity: "hide" },
	fadeToggle: { opacity: "toggle" }
}, function( name, props ) {
	jQuery.fn[ name ] = function( speed, easing, callback ) {
		return this.animate( props, speed, easing, callback );
	};
});

jQuery.extend({
	speed: function( speed, easing, fn ) {
		var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
			complete: fn || !fn && easing ||
				jQuery.isFunction( speed ) && speed,
			duration: speed,
			easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
		};

		opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
			opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;

		// normalize opt.queue - true/undefined/null -> "fx"
		if ( opt.queue == null || opt.queue === true ) {
			opt.queue = "fx";
		}

		// Queueing
		opt.old = opt.complete;

		opt.complete = function( noUnmark ) {
			if ( jQuery.isFunction( opt.old ) ) {
				opt.old.call( this );
			}

			if ( opt.queue ) {
				jQuery.dequeue( this, opt.queue );
			} else if ( noUnmark !== false ) {
				jQuery._unmark( this );
			}
		};

		return opt;
	},

	easing: {
		linear: function( p, n, firstNum, diff ) {
			return firstNum + diff * p;
		},
		swing: function( p, n, firstNum, diff ) {
			return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
		}
	},

	timers: [],

	fx: function( elem, options, prop ) {
		this.options = options;
		this.elem = elem;
		this.prop = prop;

		options.orig = options.orig || {};
	}

});

jQuery.fx.prototype = {
	// Simple function for setting a style value
	update: function() {
		if ( this.options.step ) {
			this.options.step.call( this.elem, this.now, this );
		}

		( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
	},

	// Get the current size
	cur: function() {
		if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
			return this.elem[ this.prop ];
		}

		var parsed,
			r = jQuery.css( this.elem, this.prop );
		// Empty strings, null, undefined and "auto" are converted to 0,
		// complex values such as "rotate(1rad)" are returned as is,
		// simple values such as "10px" are parsed to Float.
		return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
	},

	// Start an animation from one number to another
	custom: function( from, to, unit ) {
		var self = this,
			fx = jQuery.fx;

		this.startTime = fxNow || createFxNow();
		this.end = to;
		this.now = this.start = from;
		this.pos = this.state = 0;
		this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );

		function t( gotoEnd ) {
			return self.step( gotoEnd );
		}

		t.queue = this.options.queue;
		t.elem = this.elem;
		t.saveState = function() {
			if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
				jQuery._data( self.elem, "fxshow" + self.prop, self.start );
			}
		};

		if ( t() && jQuery.timers.push(t) && !timerId ) {
			timerId = setInterval( fx.tick, fx.interval );
		}
	},

	// Simple 'show' function
	show: function() {
		var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );

		// Remember where we started, so that we can go back to it later
		this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
		this.options.show = true;

		// Begin the animation
		// Make sure that we start at a small width/height to avoid any flash of content
		if ( dataShow !== undefined ) {
			// This show is picking up where a previous hide or show left off
			this.custom( this.cur(), dataShow );
		} else {
			this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
		}

		// Start by showing the element
		jQuery( this.elem ).show();
	},

	// Simple 'hide' function
	hide: function() {
		// Remember where we started, so that we can go back to it later
		this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
		this.options.hide = true;

		// Begin the animation
		this.custom( this.cur(), 0 );
	},

	// Each step of an animation
	step: function( gotoEnd ) {
		var p, n, complete,
			t = fxNow || createFxNow(),
			done = true,
			elem = this.elem,
			options = this.options;

		if ( gotoEnd || t >= options.duration + this.startTime ) {
			this.now = this.end;
			this.pos = this.state = 1;
			this.update();

			options.animatedProperties[ this.prop ] = true;

			for ( p in options.animatedProperties ) {
				if ( options.animatedProperties[ p ] !== true ) {
					done = false;
				}
			}

			if ( done ) {
				// Reset the overflow
				if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {

					jQuery.each( [ "", "X", "Y" ], function( index, value ) {
						elem.style[ "overflow" + value ] = options.overflow[ index ];
					});
				}

				// Hide the element if the "hide" operation was done
				if ( options.hide ) {
					jQuery( elem ).hide();
				}

				// Reset the properties, if the item has been hidden or shown
				if ( options.hide || options.show ) {
					for ( p in options.animatedProperties ) {
						jQuery.style( elem, p, options.orig[ p ] );
						jQuery.removeData( elem, "fxshow" + p, true );
						// Toggle data is no longer needed
						jQuery.removeData( elem, "toggle" + p, true );
					}
				}

				// Execute the complete function
				// in the event that the complete function throws an exception
				// we must ensure it won't be called twice. #5684

				complete = options.complete;
				if ( complete ) {

					options.complete = false;
					complete.call( elem );
				}
			}

			return false;

		} else {
			// classical easing cannot be used with an Infinity duration
			if ( options.duration == Infinity ) {
				this.now = t;
			} else {
				n = t - this.startTime;
				this.state = n / options.duration;

				// Perform the easing function, defaults to swing
				this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
				this.now = this.start + ( (this.end - this.start) * this.pos );
			}
			// Perform the next step of the animation
			this.update();
		}

		return true;
	}
};

jQuery.extend( jQuery.fx, {
	tick: function() {
		var timer,
			timers = jQuery.timers,
			i = 0;

		for ( ; i < timers.length; i++ ) {
			timer = timers[ i ];
			// Checks the timer has not already been removed
			if ( !timer() && timers[ i ] === timer ) {
				timers.splice( i--, 1 );
			}
		}

		if ( !timers.length ) {
			jQuery.fx.stop();
		}
	},

	interval: 13,

	stop: function() {
		clearInterval( timerId );
		timerId = null;
	},

	speeds: {
		slow: 600,
		fast: 200,
		// Default speed
		_default: 400
	},

	step: {
		opacity: function( fx ) {
			jQuery.style( fx.elem, "opacity", fx.now );
		},

		_default: function( fx ) {
			if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
				fx.elem.style[ fx.prop ] = fx.now + fx.unit;
			} else {
				fx.elem[ fx.prop ] = fx.now;
			}
		}
	}
});

// Adds width/height step functions
// Do not set anything below 0
jQuery.each([ "width", "height" ], function( i, prop ) {
	jQuery.fx.step[ prop ] = function( fx ) {
		jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
	};
});

if ( jQuery.expr && jQuery.expr.filters ) {
	jQuery.expr.filters.animated = function( elem ) {
		return jQuery.grep(jQuery.timers, function( fn ) {
			return elem === fn.elem;
		}).length;
	};
}

// Try to restore the default display value of an element
function defaultDisplay( nodeName ) {

	if ( !elemdisplay[ nodeName ] ) {

		var body = document.body,
			elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
			display = elem.css( "display" );
		elem.remove();

		// If the simple way fails,
		// get element's real default display by attaching it to a temp iframe
		if ( display === "none" || display === "" ) {
			// No iframe to use yet, so create it
			if ( !iframe ) {
				iframe = document.createElement( "iframe" );
				iframe.frameBorder = iframe.width = iframe.height = 0;
			}

			body.appendChild( iframe );

			// Create a cacheable copy of the iframe document on first call.
			// IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
			// document to it; WebKit & Firefox won't allow reusing the iframe document.
			if ( !iframeDoc || !iframe.createElement ) {
				iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
				iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
				iframeDoc.close();
			}

			elem = iframeDoc.createElement( nodeName );

			iframeDoc.body.appendChild( elem );

			display = jQuery.css( elem, "display" );
			body.removeChild( iframe );
		}

		// Store the correct default display
		elemdisplay[ nodeName ] = display;
	}

	return elemdisplay[ nodeName ];
}




var rtable = /^t(?:able|d|h)$/i,
	rroot = /^(?:body|html)$/i;

if ( "getBoundingClientRect" in document.documentElement ) {
	jQuery.fn.offset = function( options ) {
		var elem = this[0], box;

		if ( options ) {
			return this.each(function( i ) {
				jQuery.offset.setOffset( this, options, i );
			});
		}

		if ( !elem || !elem.ownerDocument ) {
			return null;
		}

		if ( elem === elem.ownerDocument.body ) {
			return jQuery.offset.bodyOffset( elem );
		}

		try {
			box = elem.getBoundingClientRect();
		} catch(e) {}

		var doc = elem.ownerDocument,
			docElem = doc.documentElement;

		// Make sure we're not dealing with a disconnected DOM node
		if ( !box || !jQuery.contains( docElem, elem ) ) {
			return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
		}

		var body = doc.body,
			win = getWindow(doc),
			clientTop  = docElem.clientTop  || body.clientTop  || 0,
			clientLeft = docElem.clientLeft || body.clientLeft || 0,
			scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
			scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
			top  = box.top  + scrollTop  - clientTop,
			left = box.left + scrollLeft - clientLeft;

		return { top: top, left: left };
	};

} else {
	jQuery.fn.offset = function( options ) {
		var elem = this[0];

		if ( options ) {
			return this.each(function( i ) {
				jQuery.offset.setOffset( this, options, i );
			});
		}

		if ( !elem || !elem.ownerDocument ) {
			return null;
		}

		if ( elem === elem.ownerDocument.body ) {
			return jQuery.offset.bodyOffset( elem );
		}

		var computedStyle,
			offsetParent = elem.offsetParent,
			prevOffsetParent = elem,
			doc = elem.ownerDocument,
			docElem = doc.documentElement,
			body = doc.body,
			defaultView = doc.defaultView,
			prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
			top = elem.offsetTop,
			left = elem.offsetLeft;

		while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
			if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
				break;
			}

			computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
			top  -= elem.scrollTop;
			left -= elem.scrollLeft;

			if ( elem === offsetParent ) {
				top  += elem.offsetTop;
				left += elem.offsetLeft;

				if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
					top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
					left += parseFloat( computedStyle.borderLeftWidth ) || 0;
				}

				prevOffsetParent = offsetParent;
				offsetParent = elem.offsetParent;
			}

			if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
				top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
				left += parseFloat( computedStyle.borderLeftWidth ) || 0;
			}

			prevComputedStyle = computedStyle;
		}

		if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
			top  += body.offsetTop;
			left += body.offsetLeft;
		}

		if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
			top  += Math.max( docElem.scrollTop, body.scrollTop );
			left += Math.max( docElem.scrollLeft, body.scrollLeft );
		}

		return { top: top, left: left };
	};
}

jQuery.offset = {

	bodyOffset: function( body ) {
		var top = body.offsetTop,
			left = body.offsetLeft;

		if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
			top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
			left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
		}

		return { top: top, left: left };
	},

	setOffset: function( elem, options, i ) {
		var position = jQuery.css( elem, "position" );

		// set position first, in-case top/left are set even on static elem
		if ( position === "static" ) {
			elem.style.position = "relative";
		}

		var curElem = jQuery( elem ),
			curOffset = curElem.offset(),
			curCSSTop = jQuery.css( elem, "top" ),
			curCSSLeft = jQuery.css( elem, "left" ),
			calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
			props = {}, curPosition = {}, curTop, curLeft;

		// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
		if ( calculatePosition ) {
			curPosition = curElem.position();
			curTop = curPosition.top;
			curLeft = curPosition.left;
		} else {
			curTop = parseFloat( curCSSTop ) || 0;
			curLeft = parseFloat( curCSSLeft ) || 0;
		}

		if ( jQuery.isFunction( options ) ) {
			options = options.call( elem, i, curOffset );
		}

		if ( options.top != null ) {
			props.top = ( options.top - curOffset.top ) + curTop;
		}
		if ( options.left != null ) {
			props.left = ( options.left - curOffset.left ) + curLeft;
		}

		if ( "using" in options ) {
			options.using.call( elem, props );
		} else {
			curElem.css( props );
		}
	}
};


jQuery.fn.extend({

	position: function() {
		if ( !this[0] ) {
			return null;
		}

		var elem = this[0],

		// Get *real* offsetParent
		offsetParent = this.offsetParent(),

		// Get correct offsets
		offset       = this.offset(),
		parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();

		// Subtract element margins
		// note: when an element has margin: auto the offsetLeft and marginLeft
		// are the same in Safari causing offset.left to incorrectly be 0
		offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
		offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;

		// Add offsetParent borders
		parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
		parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;

		// Subtract the two offsets
		return {
			top:  offset.top  - parentOffset.top,
			left: offset.left - parentOffset.left
		};
	},

	offsetParent: function() {
		return this.map(function() {
			var offsetParent = this.offsetParent || document.body;
			while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
				offsetParent = offsetParent.offsetParent;
			}
			return offsetParent;
		});
	}
});


// Create scrollLeft and scrollTop methods
jQuery.each( ["Left", "Top"], function( i, name ) {
	var method = "scroll" + name;

	jQuery.fn[ method ] = function( val ) {
		var elem, win;

		if ( val === undefined ) {
			elem = this[ 0 ];

			if ( !elem ) {
				return null;
			}

			win = getWindow( elem );

			// Return the scroll offset
			return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
				jQuery.support.boxModel && win.document.documentElement[ method ] ||
					win.document.body[ method ] :
				elem[ method ];
		}

		// Set the scroll offset
		return this.each(function() {
			win = getWindow( this );

			if ( win ) {
				win.scrollTo(
					!i ? val : jQuery( win ).scrollLeft(),
					 i ? val : jQuery( win ).scrollTop()
				);

			} else {
				this[ method ] = val;
			}
		});
	};
});

function getWindow( elem ) {
	return jQuery.isWindow( elem ) ?
		elem :
		elem.nodeType === 9 ?
			elem.defaultView || elem.parentWindow :
			false;
}




// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
jQuery.each([ "Height", "Width" ], function( i, name ) {

	var type = name.toLowerCase();

	// innerHeight and innerWidth
	jQuery.fn[ "inner" + name ] = function() {
		var elem = this[0];
		return elem ?
			elem.style ?
			parseFloat( jQuery.css( elem, type, "padding" ) ) :
			this[ type ]() :
			null;
	};

	// outerHeight and outerWidth
	jQuery.fn[ "outer" + name ] = function( margin ) {
		var elem = this[0];
		return elem ?
			elem.style ?
			parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
			this[ type ]() :
			null;
	};

	jQuery.fn[ type ] = function( size ) {
		// Get window width or height
		var elem = this[0];
		if ( !elem ) {
			return size == null ? null : this;
		}

		if ( jQuery.isFunction( size ) ) {
			return this.each(function( i ) {
				var self = jQuery( this );
				self[ type ]( size.call( this, i, self[ type ]() ) );
			});
		}

		if ( jQuery.isWindow( elem ) ) {
			// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
			// 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
			var docElemProp = elem.document.documentElement[ "client" + name ],
				body = elem.document.body;
			return elem.document.compatMode === "CSS1Compat" && docElemProp ||
				body && body[ "client" + name ] || docElemProp;

		// Get document width or height
		} else if ( elem.nodeType === 9 ) {
			// Either scroll[Width/Height] or offset[Width/Height], whichever is greater
			return Math.max(
				elem.documentElement["client" + name],
				elem.body["scroll" + name], elem.documentElement["scroll" + name],
				elem.body["offset" + name], elem.documentElement["offset" + name]
			);

		// Get or set width or height on the element
		} else if ( size === undefined ) {
			var orig = jQuery.css( elem, type ),
				ret = parseFloat( orig );

			return jQuery.isNumeric( ret ) ? ret : orig;

		// Set the width or height on the element (default to pixels if value is unitless)
		} else {
			return this.css( type, typeof size === "string" ? size : size + "px" );
		}
	};

});




// Expose jQuery to the global object
window.jQuery = window.$ = jQuery;

// Expose jQuery as an AMD module, but only for AMD loaders that
// understand the issues with loading multiple versions of jQuery
// in a page that all might call define(). The loader will indicate
// they have special allowances for multiple jQuery versions by
// specifying define.amd.jQuery = true. Register as a named module,
// since jQuery can be concatenated with other files that may use define,
// but not use a proper concatenation script that understands anonymous
// AMD modules. A named AMD is safest and most robust way to register.
// Lowercase jquery is used because AMD module names are derived from
// file names, and jQuery is normally delivered in a lowercase file name.
// Do this after creating the global so that if an AMD module wants to call
// noConflict to hide this version of jQuery, it will work.
if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
	define( "jquery", [], function () { return jQuery; } );
}



})( window );
/*!
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09
 */

var Cufon = (function() {

	var api = function() {
		return api.replace.apply(null, arguments);
	};

	var DOM = api.DOM = {

		ready: (function() {

			var complete = false, readyStatus = { loaded: 1, complete: 1 };

			var queue = [], perform = function() {
				if (complete) return;
				complete = true;
				for (var fn; fn = queue.shift(); fn());
			};

			// Gecko, Opera, WebKit r26101+

			if (document.addEventListener) {
				document.addEventListener('DOMContentLoaded', perform, false);
				window.addEventListener('pageshow', perform, false); // For cached Gecko pages
			}

			// Old WebKit, Internet Explorer

			if (!window.opera && document.readyState) (function() {
				readyStatus[document.readyState] ? perform() : setTimeout(arguments.callee, 10);
			})();

			// Internet Explorer

			if (document.readyState && document.createStyleSheet) (function() {
				try {
					document.body.doScroll('left');
					perform();
				}
				catch (e) {
					setTimeout(arguments.callee, 1);
				}
			})();

			addEvent(window, 'load', perform); // Fallback

			return function(listener) {
				if (!arguments.length) perform();
				else complete ? listener() : queue.push(listener);
			};

		})(),

		root: function() {
			return document.documentElement || document.body;
		}

	};

	var CSS = api.CSS = {

		Size: function(value, base) {

			this.value = parseFloat(value);
			this.unit = String(value).match(/[a-z%]*$/)[0] || 'px';

			this.convert = function(value) {
				return value / base * this.value;
			};

			this.convertFrom = function(value) {
				return value / this.value * base;
			};

			this.toString = function() {
				return this.value + this.unit;
			};

		},

		addClass: function(el, className) {
			var current = el.className;
			el.className = current + (current && ' ') + className;
			return el;
		},

		color: cached(function(value) {
			var parsed = {};
			parsed.color = value.replace(/^rgba\((.*?),\s*([\d.]+)\)/, function($0, $1, $2) {
				parsed.opacity = parseFloat($2);
				return 'rgb(' + $1 + ')';
			});
			return parsed;
		}),

		// has no direct CSS equivalent.
		// @see http://msdn.microsoft.com/en-us/library/system.windows.fontstretches.aspx
		fontStretch: cached(function(value) {
			if (typeof value == 'number') return value;
			if (/%$/.test(value)) return parseFloat(value) / 100;
			return {
				'ultra-condensed': 0.5,
				'extra-condensed': 0.625,
				condensed: 0.75,
				'semi-condensed': 0.875,
				'semi-expanded': 1.125,
				expanded: 1.25,
				'extra-expanded': 1.5,
				'ultra-expanded': 2
			}[value] || 1;
		}),

		getStyle: function(el) {
			var view = document.defaultView;
			if (view && view.getComputedStyle) return new Style(view.getComputedStyle(el, null));
			if (el.currentStyle) return new Style(el.currentStyle);
			return new Style(el.style);
		},

		gradient: cached(function(value) {
			var gradient = {
				id: value,
				type: value.match(/^-([a-z]+)-gradient\(/)[1],
				stops: []
			}, colors = value.substr(value.indexOf('(')).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);
			for (var i = 0, l = colors.length, stop; i < l; ++i) {
				stop = colors[i].split('=', 2).reverse();
				gradient.stops.push([ stop[1] || i / (l - 1), stop[0] ]);
			}
			return gradient;
		}),

		quotedList: cached(function(value) {
			// doesn't work properly with empty quoted strings (""), but
			// it's not worth the extra code.
			var list = [], re = /\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g, match;
			while (match = re.exec(value)) list.push(match[3] || match[1]);
			return list;
		}),

		recognizesMedia: cached(function(media) {
			var el = document.createElement('style'), sheet, container, supported;
			el.type = 'text/css';
			el.media = media;
			try { // this is cached anyway
				el.appendChild(document.createTextNode('/**/'));
			} catch (e) {}
			container = elementsByTagName('head')[0];
			container.insertBefore(el, container.firstChild);
			sheet = (el.sheet || el.styleSheet);
			supported = sheet && !sheet.disabled;
			container.removeChild(el);
			return supported;
		}),

		removeClass: function(el, className) {
			var re = RegExp('(?:^|\\s+)' + className +  '(?=\\s|$)', 'g');
			el.className = el.className.replace(re, '');
			return el;
		},

		supports: function(property, value) {
			var checker = document.createElement('span').style;
			if (checker[property] === undefined) return false;
			checker[property] = value;
			return checker[property] === value;
		},

		textAlign: function(word, style, position, wordCount) {
			if (style.get('textAlign') == 'right') {
				if (position > 0) word = ' ' + word;
			}
			else if (position < wordCount - 1) word += ' ';
			return word;
		},

		textShadow: cached(function(value) {
			if (value == 'none') return null;
			var shadows = [], currentShadow = {}, result, offCount = 0;
			var re = /(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;
			while (result = re.exec(value)) {
				if (result[0] == ',') {
					shadows.push(currentShadow);
					currentShadow = {};
					offCount = 0;
				}
				else if (result[1]) {
					currentShadow.color = result[1];
				}
				else {
					currentShadow[[ 'offX', 'offY', 'blur' ][offCount++]] = result[2];
				}
			}
			shadows.push(currentShadow);
			return shadows;
		}),

		textTransform: (function() {
			var map = {
				uppercase: function(s) {
					return s.toUpperCase();
				},
				lowercase: function(s) {
					return s.toLowerCase();
				},
				capitalize: function(s) {
					return s.replace(/\b./g, function($0) {
						return $0.toUpperCase();
					});
				}
			};
			return function(text, style) {
				var transform = map[style.get('textTransform')];
				return transform ? transform(text) : text;
			};
		})(),

		whiteSpace: (function() {
			var ignore = {
				inline: 1,
				'inline-block': 1,
				'run-in': 1
			};
			var wsStart = /^\s+/, wsEnd = /\s+$/;
			return function(text, style, node, previousElement) {
				if (previousElement) {
					if (previousElement.nodeName.toLowerCase() == 'br') {
						text = text.replace(wsStart, '');
					}
				}
				if (ignore[style.get('display')]) return text;
				if (!node.previousSibling) text = text.replace(wsStart, '');
				if (!node.nextSibling) text = text.replace(wsEnd, '');
				return text;
			};
		})()

	};

	CSS.ready = (function() {

		// don't do anything in Safari 2 (it doesn't recognize any media type)
		var complete = !CSS.recognizesMedia('all'), hasLayout = false;

		var queue = [], perform = function() {
			complete = true;
			for (var fn; fn = queue.shift(); fn());
		};

		var links = elementsByTagName('link'), styles = elementsByTagName('style');

		function isContainerReady(el) {
			return el.disabled || isSheetReady(el.sheet, el.media || 'screen');
		}

		function isSheetReady(sheet, media) {
			// in Opera sheet.disabled is true when it's still loading,
			// even though link.disabled is false. they stay in sync if
			// set manually.
			if (!CSS.recognizesMedia(media || 'all')) return true;
			if (!sheet || sheet.disabled) return false;
			try {
				var rules = sheet.cssRules, rule;
				if (rules) {
					// needed for Safari 3 and Chrome 1.0.
					// in standards-conforming browsers cssRules contains @-rules.
					// Chrome 1.0 weirdness: rules[<number larger than .length - 1>]
					// returns the last rule, so a for loop is the only option.
					search: for (var i = 0, l = rules.length; rule = rules[i], i < l; ++i) {
						switch (rule.type) {
							case 2: // @charset
								break;
							case 3: // @import
								if (!isSheetReady(rule.styleSheet, rule.media.mediaText)) return false;
								break;
							default:
								// only @charset can precede @import
								break search;
						}
					}
				}
			}
			catch (e) {} // probably a style sheet from another domain
			return true;
		}

		function allStylesLoaded() {
			// Internet Explorer's style sheet model, there's no need to do anything
			if (document.createStyleSheet) return true;
			// standards-compliant browsers
			var el, i;
			for (i = 0; el = links[i]; ++i) {
				if (el.rel.toLowerCase() == 'stylesheet' && !isContainerReady(el)) return false;
			}
			for (i = 0; el = styles[i]; ++i) {
				if (!isContainerReady(el)) return false;
			}
			return true;
		}

		DOM.ready(function() {
			// getComputedStyle returns null in Gecko if used in an iframe with display: none
			if (!hasLayout) hasLayout = CSS.getStyle(document.body).isUsable();
			if (complete || (hasLayout && allStylesLoaded())) perform();
			else setTimeout(arguments.callee, 10);
		});

		return function(listener) {
			if (complete) listener();
			else queue.push(listener);
		};

	})();

	function Font(data) {

		var face = this.face = data.face, wordSeparators = {
			'\u0020': 1,
			'\u00a0': 1,
			'\u3000': 1
		};

		this.glyphs = data.glyphs;
		this.w = data.w;
		this.baseSize = parseInt(face['units-per-em'], 10);

		this.family = face['font-family'].toLowerCase();
		this.weight = face['font-weight'];
		this.style = face['font-style'] || 'normal';

		this.viewBox = (function () {
			var parts = face.bbox.split(/\s+/);
			var box = {
				minX: parseInt(parts[0], 10),
				minY: parseInt(parts[1], 10),
				maxX: parseInt(parts[2], 10),
				maxY: parseInt(parts[3], 10)
			};
			box.width = box.maxX - box.minX;
			box.height = box.maxY - box.minY;
			box.toString = function() {
				return [ this.minX, this.minY, this.width, this.height ].join(' ');
			};
			return box;
		})();

		this.ascent = -parseInt(face.ascent, 10);
		this.descent = -parseInt(face.descent, 10);

		this.height = -this.ascent + this.descent;

		this.spacing = function(chars, letterSpacing, wordSpacing) {
			var glyphs = this.glyphs, glyph, kerning, k,
				jumps = [], width = 0,
				i = -1, j = -1, chr;
			while (chr = chars[++i]) {
				glyph = glyphs[chr] || this.missingGlyph;
				if (!glyph) continue;
				if (kerning) {
					width -= k = kerning[chr] || 0;
					jumps[j] -= k;
				}
				width += jumps[++j] = ~~(glyph.w || this.w) + letterSpacing + (wordSeparators[chr] ? wordSpacing : 0);
				kerning = glyph.k;
			}
			jumps.total = width;
			return jumps;
		};

	}

	function FontFamily() {

		var styles = {}, mapping = {
			oblique: 'italic',
			italic: 'oblique'
		};

		this.add = function(font) {
			(styles[font.style] || (styles[font.style] = {}))[font.weight] = font;
		};

		this.get = function(style, weight) {
			var weights = styles[style] || styles[mapping[style]]
				|| styles.normal || styles.italic || styles.oblique;
			if (!weights) return null;
			// we don't have to worry about "bolder" and "lighter"
			// because IE's currentStyle returns a numeric value for it,
			// and other browsers use the computed value anyway
			weight = {
				normal: 400,
				bold: 700
			}[weight] || parseInt(weight, 10);
			if (weights[weight]) return weights[weight];
			// http://www.w3.org/TR/CSS21/fonts.html#propdef-font-weight
			// Gecko uses x99/x01 for lighter/bolder
			var up = {
				1: 1,
				99: 0
			}[weight % 100], alts = [], min, max;
			if (up === undefined) up = weight > 400;
			if (weight == 500) weight = 400;
			for (var alt in weights) {
				if (!hasOwnProperty(weights, alt)) continue;
				alt = parseInt(alt, 10);
				if (!min || alt < min) min = alt;
				if (!max || alt > max) max = alt;
				alts.push(alt);
			}
			if (weight < min) weight = min;
			if (weight > max) weight = max;
			alts.sort(function(a, b) {
				return (up
					? (a >= weight && b >= weight) ? a < b : a > b
					: (a <= weight && b <= weight) ? a > b : a < b) ? -1 : 1;
			});
			return weights[alts[0]];
		};

	}

	function HoverHandler() {

		function contains(node, anotherNode) {
			if (node.contains) return node.contains(anotherNode);
			return node.compareDocumentPosition(anotherNode) & 16;
		}

		function onOverOut(e) {
			var related = e.relatedTarget;
			if (!related || contains(this, related)) return;
			trigger(this, e.type == 'mouseover');
		}

		function onEnterLeave(e) {
			trigger(this, e.type == 'mouseenter');
		}

		function trigger(el, hoverState) {
			// A timeout is needed so that the event can actually "happen"
			// before replace is triggered. This ensures that styles are up
			// to date.
			setTimeout(function() {
				var options = sharedStorage.get(el).options;
				api.replace(el, hoverState ? merge(options, options.hover) : options, true);
			}, 10);
		}

		this.attach = function(el) {
			if (el.onmouseenter === undefined) {
				addEvent(el, 'mouseover', onOverOut);
				addEvent(el, 'mouseout', onOverOut);
			}
			else {
				addEvent(el, 'mouseenter', onEnterLeave);
				addEvent(el, 'mouseleave', onEnterLeave);
			}
		};

	}

	function ReplaceHistory() {

		var list = [], map = {};

		function filter(keys) {
			var values = [], key;
			for (var i = 0; key = keys[i]; ++i) values[i] = list[map[key]];
			return values;
		}

		this.add = function(key, args) {
			map[key] = list.push(args) - 1;
		};

		this.repeat = function() {
			var snapshot = arguments.length ? filter(arguments) : list, args;
			for (var i = 0; args = snapshot[i++];) api.replace(args[0], args[1], true);
		};

	}

	function Storage() {

		var map = {}, at = 0;

		function identify(el) {
			return el.cufid || (el.cufid = ++at);
		}

		this.get = function(el) {
			var id = identify(el);
			return map[id] || (map[id] = {});
		};

	}

	function Style(style) {

		var custom = {}, sizes = {};

		this.extend = function(styles) {
			for (var property in styles) {
				if (hasOwnProperty(styles, property)) custom[property] = styles[property];
			}
			return this;
		};

		this.get = function(property) {
			return custom[property] != undefined ? custom[property] : style[property];
		};

		this.getSize = function(property, base) {
			return sizes[property] || (sizes[property] = new CSS.Size(this.get(property), base));
		};

		this.isUsable = function() {
			return !!style;
		};

	}

	function addEvent(el, type, listener) {
		if (el.addEventListener) {
			el.addEventListener(type, listener, false);
		}
		else if (el.attachEvent) {
			el.attachEvent('on' + type, function() {
				return listener.call(el, window.event);
			});
		}
	}

	function attach(el, options) {
		var storage = sharedStorage.get(el);
		if (storage.options) return el;
		if (options.hover && options.hoverables[el.nodeName.toLowerCase()]) {
			hoverHandler.attach(el);
		}
		storage.options = options;
		return el;
	}

	function cached(fun) {
		var cache = {};
		return function(key) {
			if (!hasOwnProperty(cache, key)) cache[key] = fun.apply(null, arguments);
			return cache[key];
		};
	}

	function getFont(el, style) {
		var families = CSS.quotedList(style.get('fontFamily').toLowerCase()), family;
		for (var i = 0; family = families[i]; ++i) {
			if (fonts[family]) return fonts[family].get(style.get('fontStyle'), style.get('fontWeight'));
		}
		return null;
	}

	function elementsByTagName(query) {
		return document.getElementsByTagName(query);
	}

	function hasOwnProperty(obj, property) {
		return obj.hasOwnProperty(property);
	}

	function merge() {
		var merged = {}, arg, key;
		for (var i = 0, l = arguments.length; arg = arguments[i], i < l; ++i) {
			for (key in arg) {
				if (hasOwnProperty(arg, key)) merged[key] = arg[key];
			}
		}
		return merged;
	}

	function process(font, text, style, options, node, el) {
		var fragment = document.createDocumentFragment(), processed;
		if (text === '') return fragment;
		var separate = options.separate;
		var parts = text.split(separators[separate]), needsAligning = (separate == 'words');
		if (needsAligning && HAS_BROKEN_REGEXP) {
			// @todo figure out a better way to do this
			if (/^\s/.test(text)) parts.unshift('');
			if (/\s$/.test(text)) parts.push('');
		}
		for (var i = 0, l = parts.length; i < l; ++i) {
			processed = engines[options.engine](font,
				needsAligning ? CSS.textAlign(parts[i], style, i, l) : parts[i],
				style, options, node, el, i < l - 1);
			if (processed) fragment.appendChild(processed);
		}
		return fragment;
	}

	function replaceElement(el, options) {
		var name = el.nodeName.toLowerCase();
		if (options.ignore[name]) return;
		var replace = !options.textless[name];
		var style = CSS.getStyle(attach(el, options)).extend(options);
		var font = getFont(el, style), node, type, next, anchor, text, lastElement;
		if (!font) return;
		for (node = el.firstChild; node; node = next) {
			type = node.nodeType;
			next = node.nextSibling;
			if (replace && type == 3) {
				// Node.normalize() is broken in IE 6, 7, 8
				if (anchor) {
					anchor.appendData(node.data);
					el.removeChild(node);
				}
				else anchor = node;
				if (next) continue;
			}
			if (anchor) {
				el.replaceChild(process(font,
					CSS.whiteSpace(anchor.data, style, anchor, lastElement),
					style, options, node, el), anchor);
				anchor = null;
			}
			if (type == 1) {
				if (node.firstChild) {
					if (node.nodeName.toLowerCase() == 'cufon') {
						engines[options.engine](font, null, style, options, node, el);
					}
					else arguments.callee(node, options);
				}
				lastElement = node;
			}
		}
	}

	var HAS_BROKEN_REGEXP = ' '.split(/\s+/).length == 0;

	var sharedStorage = new Storage();
	var hoverHandler = new HoverHandler();
	var replaceHistory = new ReplaceHistory();
	var initialized = false;

	var engines = {}, fonts = {}, defaultOptions = {
		autoDetect: false,
		engine: null,
		//fontScale: 1,
		//fontScaling: false,
		forceHitArea: false,
		hover: false,
		hoverables: {
			a: true
		},
		ignore: {
			applet: 1,
			canvas: 1,
			col: 1,
			colgroup: 1,
			head: 1,
			iframe: 1,
			map: 1,
			optgroup: 1,
			option: 1,
			script: 1,
			select: 1,
			style: 1,
			textarea: 1,
			title: 1,
			pre: 1
		},
		printable: true,
		//rotation: 0,
		//selectable: false,
		selector: (
				window.Sizzle
			||	(window.jQuery && function(query) { return $(query); }) // avoid noConflict issues
			||	(window.dojo && dojo.query)
			||	(window.Ext && Ext.query)
			||	(window.YAHOO && YAHOO.util && YAHOO.util.Selector && YAHOO.util.Selector.query)
			||	(window.$$ && function(query) { return $$(query); })
			||	(window.$ && function(query) { return $(query); })
			||	(document.querySelectorAll && function(query) { return document.querySelectorAll(query); })
			||	elementsByTagName
		),
		separate: 'words', // 'none' and 'characters' are also accepted
		textless: {
			dl: 1,
			html: 1,
			ol: 1,
			table: 1,
			tbody: 1,
			thead: 1,
			tfoot: 1,
			tr: 1,
			ul: 1
		},
		textShadow: 'none'
	};

	var separators = {
		// The first pattern may cause unicode characters above
		// code point 255 to be removed in Safari 3.0. Luckily enough
		// Safari 3.0 does not include non-breaking spaces in \s, so
		// we can just use a simple alternative pattern.
		words: /\s/.test('\u00a0') ? /[^\S\u00a0]+/ : /\s+/,
		characters: '',
		none: /^/
	};

	api.now = function() {
		DOM.ready();
		return api;
	};

	api.refresh = function() {
		replaceHistory.repeat.apply(replaceHistory, arguments);
		return api;
	};

	api.registerEngine = function(id, engine) {
		if (!engine) return api;
		engines[id] = engine;
		return api.set('engine', id);
	};

	api.registerFont = function(data) {
		if (!data) return api;
		var font = new Font(data), family = font.family;
		if (!fonts[family]) fonts[family] = new FontFamily();
		fonts[family].add(font);
		return api.set('fontFamily', '"' + family + '"');
	};

	api.replace = function(elements, options, ignoreHistory) {
		options = merge(defaultOptions, options);
		if (!options.engine) return api; // there's no browser support so we'll just stop here
		if (!initialized) {
			CSS.addClass(DOM.root(), 'cufon-active cufon-loading');
			CSS.ready(function() {
				// fires before any replace() calls, but it doesn't really matter
				CSS.addClass(CSS.removeClass(DOM.root(), 'cufon-loading'), 'cufon-ready');
			});
			initialized = true;
		}
		if (options.hover) options.forceHitArea = true;
		if (options.autoDetect) delete options.fontFamily;
		if (typeof options.textShadow == 'string') {
			options.textShadow = CSS.textShadow(options.textShadow);
		}
		if (typeof options.color == 'string' && /^-/.test(options.color)) {
			options.textGradient = CSS.gradient(options.color);
		}
		else delete options.textGradient;
		if (!ignoreHistory) replaceHistory.add(elements, arguments);
		if (elements.nodeType || typeof elements == 'string') elements = [ elements ];
		CSS.ready(function() {
			for (var i = 0, l = elements.length; i < l; ++i) {
				var el = elements[i];
				if (typeof el == 'string') api.replace(options.selector(el), options, true);
				else replaceElement(el, options);
			}
		});
		return api;
	};

	api.set = function(option, value) {
		defaultOptions[option] = value;
		return api;
	};

	return api;

})();

Cufon.registerEngine('canvas', (function() {

	// Safari 2 doesn't support .apply() on native methods

	var check = document.createElement('canvas');
	if (!check || !check.getContext || !check.getContext.apply) return;
	check = null;

	var HAS_INLINE_BLOCK = Cufon.CSS.supports('display', 'inline-block');

	// Firefox 2 w/ non-strict doctype (almost standards mode)
	var HAS_BROKEN_LINEHEIGHT = !HAS_INLINE_BLOCK && (document.compatMode == 'BackCompat' || /frameset|transitional/i.test(document.doctype.publicId));

	var styleSheet = document.createElement('style');
	styleSheet.type = 'text/css';
	styleSheet.appendChild(document.createTextNode((
		'cufon{text-indent:0;}' +
		'@media screen,projection{' +
			'cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;' +
			(HAS_BROKEN_LINEHEIGHT
				? ''
				: 'font-size:1px;line-height:1px;') +
			'}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}' +
			(HAS_INLINE_BLOCK
				? 'cufon canvas{position:relative;}'
				: 'cufon canvas{position:absolute;}') +
		'}' +
		'@media print{' +
			'cufon{padding:0;}' + // Firefox 2
			'cufon canvas{display:none;}' +
		'}'
	).replace(/;/g, '!important;')));
	document.getElementsByTagName('head')[0].appendChild(styleSheet);

	function generateFromVML(path, context) {
		var atX = 0, atY = 0;
		var code = [], re = /([mrvxe])([^a-z]*)/g, match;
		generate: for (var i = 0; match = re.exec(path); ++i) {
			var c = match[2].split(',');
			switch (match[1]) {
				case 'v':
					code[i] = { m: 'bezierCurveTo', a: [ atX + ~~c[0], atY + ~~c[1], atX + ~~c[2], atY + ~~c[3], atX += ~~c[4], atY += ~~c[5] ] };
					break;
				case 'r':
					code[i] = { m: 'lineTo', a: [ atX += ~~c[0], atY += ~~c[1] ] };
					break;
				case 'm':
					code[i] = { m: 'moveTo', a: [ atX = ~~c[0], atY = ~~c[1] ] };
					break;
				case 'x':
					code[i] = { m: 'closePath' };
					break;
				case 'e':
					break generate;
			}
			context[code[i].m].apply(context, code[i].a);
		}
		return code;
	}

	function interpret(code, context) {
		for (var i = 0, l = code.length; i < l; ++i) {
			var line = code[i];
			context[line.m].apply(context, line.a);
		}
	}

	return function(font, text, style, options, node, el) {

		var redraw = (text === null);

		if (redraw) text = node.getAttribute('alt');

		var viewBox = font.viewBox;

		var size = style.getSize('fontSize', font.baseSize);

		var expandTop = 0, expandRight = 0, expandBottom = 0, expandLeft = 0;
		var shadows = options.textShadow, shadowOffsets = [];
		if (shadows) {
			for (var i = shadows.length; i--;) {
				var shadow = shadows[i];
				var x = size.convertFrom(parseFloat(shadow.offX));
				var y = size.convertFrom(parseFloat(shadow.offY));
				shadowOffsets[i] = [ x, y ];
				if (y < expandTop) expandTop = y;
				if (x > expandRight) expandRight = x;
				if (y > expandBottom) expandBottom = y;
				if (x < expandLeft) expandLeft = x;
			}
		}

		var chars = Cufon.CSS.textTransform(text, style).split('');

		var jumps = font.spacing(chars,
			~~size.convertFrom(parseFloat(style.get('letterSpacing')) || 0),
			~~size.convertFrom(parseFloat(style.get('wordSpacing')) || 0)
		);

		if (!jumps.length) return null; // there's nothing to render

		var width = jumps.total;

		expandRight += viewBox.width - jumps[jumps.length - 1];
		expandLeft += viewBox.minX;

		var wrapper, canvas;

		if (redraw) {
			wrapper = node;
			canvas = node.firstChild;
		}
		else {
			wrapper = document.createElement('cufon');
			wrapper.className = 'cufon cufon-canvas';
			wrapper.setAttribute('alt', text);

			canvas = document.createElement('canvas');
			wrapper.appendChild(canvas);

			if (options.printable) {
				var print = document.createElement('cufontext');
				print.appendChild(document.createTextNode(text));
				wrapper.appendChild(print);
			}
		}

		var wStyle = wrapper.style;
		var cStyle = canvas.style;

		var height = size.convert(viewBox.height);
		var roundedHeight = Math.ceil(height);
		var roundingFactor = roundedHeight / height;
		var stretchFactor = roundingFactor * Cufon.CSS.fontStretch(style.get('fontStretch'));
		var stretchedWidth = width * stretchFactor;

		var canvasWidth = Math.ceil(size.convert(stretchedWidth + expandRight - expandLeft));
		var canvasHeight = Math.ceil(size.convert(viewBox.height - expandTop + expandBottom));

		canvas.width = canvasWidth;
		canvas.height = canvasHeight;

		// needed for WebKit and full page zoom
		cStyle.width = canvasWidth + 'px';
		cStyle.height = canvasHeight + 'px';

		// minY has no part in canvas.height
		expandTop += viewBox.minY;

		cStyle.top = Math.round(size.convert(expandTop - font.ascent)) + 'px';
		cStyle.left = Math.round(size.convert(expandLeft)) + 'px';

		var wrapperWidth = Math.max(Math.ceil(size.convert(stretchedWidth)), 0) + 'px';

		if (HAS_INLINE_BLOCK) {
			wStyle.width = wrapperWidth;
			wStyle.height = size.convert(font.height) + 'px';
		}
		else {
			wStyle.paddingLeft = wrapperWidth;
			wStyle.paddingBottom = (size.convert(font.height) - 1) + 'px';
		}

		var g = canvas.getContext('2d'), scale = height / viewBox.height;

		// proper horizontal scaling is performed later
		g.scale(scale, scale * roundingFactor);
		g.translate(-expandLeft, -expandTop);
		g.save();

		function renderText() {
			var glyphs = font.glyphs, glyph, i = -1, j = -1, chr;
			g.scale(stretchFactor, 1);
			while (chr = chars[++i]) {
				var glyph = glyphs[chars[i]] || font.missingGlyph;
				if (!glyph) continue;
				if (glyph.d) {
					g.beginPath();
					if (glyph.code) interpret(glyph.code, g);
					else glyph.code = generateFromVML('m' + glyph.d, g);
					g.fill();
				}
				g.translate(jumps[++j], 0);
			}
			g.restore();
		}

		if (shadows) {
			for (var i = shadows.length; i--;) {
				var shadow = shadows[i];
				g.save();
				g.fillStyle = shadow.color;
				g.translate.apply(g, shadowOffsets[i]);
				renderText();
			}
		}

		var gradient = options.textGradient;
		if (gradient) {
			var stops = gradient.stops, fill = g.createLinearGradient(0, viewBox.minY, 0, viewBox.maxY);
			for (var i = 0, l = stops.length; i < l; ++i) {
				fill.addColorStop.apply(fill, stops[i]);
			}
			g.fillStyle = fill;
		}
		else g.fillStyle = style.get('color');

		renderText();

		return wrapper;

	};

})());

Cufon.registerEngine('vml', (function() {

	var ns = document.namespaces;
	if (!ns) return;
	ns.add('cvml', 'urn:schemas-microsoft-com:vml');
	ns = null;

	var check = document.createElement('cvml:shape');
	check.style.behavior = 'url(#default#VML)';
	if (!check.coordsize) return; // VML isn't supported
	check = null;

	var HAS_BROKEN_LINEHEIGHT = (document.documentMode || 0) < 8;

	document.write(('<style type="text/css">' +
		'cufoncanvas{text-indent:0;}' +
		'@media screen{' +
			'cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}' +
			'cufoncanvas{position:absolute;text-align:left;}' +
			'cufon{display:inline-block;position:relative;vertical-align:' +
			(HAS_BROKEN_LINEHEIGHT
				? 'middle'
				: 'text-bottom') +
			';}' +
			'cufon cufontext{position:absolute;left:-10000in;font-size:1px;}' +
			'a cufon{cursor:pointer}' + // ignore !important here
		'}' +
		'@media print{' +
			'cufon cufoncanvas{display:none;}' +
		'}' +
	'</style>').replace(/;/g, '!important;'));

	function getFontSizeInPixels(el, value) {
		return getSizeInPixels(el, /(?:em|ex|%)$|^[a-z-]+$/i.test(value) ? '1em' : value);
	}

	// Original by Dead Edwards.
	// Combined with getFontSizeInPixels it also works with relative units.
	function getSizeInPixels(el, value) {
		if (value === '0') return 0;
		if (/px$/i.test(value)) return parseFloat(value);
		var style = el.style.left, runtimeStyle = el.runtimeStyle.left;
		el.runtimeStyle.left = el.currentStyle.left;
		el.style.left = value.replace('%', 'em');
		var result = el.style.pixelLeft;
		el.style.left = style;
		el.runtimeStyle.left = runtimeStyle;
		return result;
	}

	function getSpacingValue(el, style, size, property) {
		var key = 'computed' + property, value = style[key];
		if (isNaN(value)) {
			value = style.get(property);
			style[key] = value = (value == 'normal') ? 0 : ~~size.convertFrom(getSizeInPixels(el, value));
		}
		return value;
	}

	var fills = {};

	function gradientFill(gradient) {
		var id = gradient.id;
		if (!fills[id]) {
			var stops = gradient.stops, fill = document.createElement('cvml:fill'), colors = [];
			fill.type = 'gradient';
			fill.angle = 180;
			fill.focus = '0';
			fill.method = 'sigma';
			fill.color = stops[0][1];
			for (var j = 1, k = stops.length - 1; j < k; ++j) {
				colors.push(stops[j][0] * 100 + '% ' + stops[j][1]);
			}
			fill.colors = colors.join(',');
			fill.color2 = stops[k][1];
			fills[id] = fill;
		}
		return fills[id];
	}

	return function(font, text, style, options, node, el, hasNext) {

		var redraw = (text === null);

		if (redraw) text = node.alt;

		var viewBox = font.viewBox;

		var size = style.computedFontSize || (style.computedFontSize = new Cufon.CSS.Size(getFontSizeInPixels(el, style.get('fontSize')) + 'px', font.baseSize));

		var wrapper, canvas;

		if (redraw) {
			wrapper = node;
			canvas = node.firstChild;
		}
		else {
			wrapper = document.createElement('cufon');
			wrapper.className = 'cufon cufon-vml';
			wrapper.alt = text;

			canvas = document.createElement('cufoncanvas');
			wrapper.appendChild(canvas);

			if (options.printable) {
				var print = document.createElement('cufontext');
				print.appendChild(document.createTextNode(text));
				wrapper.appendChild(print);
			}

			// ie6, for some reason, has trouble rendering the last VML element in the document.
			// we can work around this by injecting a dummy element where needed.
			// @todo find a better solution
			if (!hasNext) wrapper.appendChild(document.createElement('cvml:shape'));
		}

		var wStyle = wrapper.style;
		var cStyle = canvas.style;

		var height = size.convert(viewBox.height), roundedHeight = Math.ceil(height);
		var roundingFactor = roundedHeight / height;
		var stretchFactor = roundingFactor * Cufon.CSS.fontStretch(style.get('fontStretch'));
		var minX = viewBox.minX, minY = viewBox.minY;

		cStyle.height = roundedHeight;
		cStyle.top = Math.round(size.convert(minY - font.ascent));
		cStyle.left = Math.round(size.convert(minX));

		wStyle.height = size.convert(font.height) + 'px';

		var color = style.get('color');
		var chars = Cufon.CSS.textTransform(text, style).split('');

		var jumps = font.spacing(chars,
			getSpacingValue(el, style, size, 'letterSpacing'),
			getSpacingValue(el, style, size, 'wordSpacing')
		);

		if (!jumps.length) return null;

		var width = jumps.total;
		var fullWidth = -minX + width + (viewBox.width - jumps[jumps.length - 1]);

		var shapeWidth = size.convert(fullWidth * stretchFactor), roundedShapeWidth = Math.round(shapeWidth);

		var coordSize = fullWidth + ',' + viewBox.height, coordOrigin;
		var stretch = 'r' + coordSize + 'ns';

		var fill = options.textGradient && gradientFill(options.textGradient);

		var glyphs = font.glyphs, offsetX = 0;
		var shadows = options.textShadow;
		var i = -1, j = 0, chr;

		while (chr = chars[++i]) {

			var glyph = glyphs[chars[i]] || font.missingGlyph, shape;
			if (!glyph) continue;

			if (redraw) {
				// some glyphs may be missing so we can't use i
				shape = canvas.childNodes[j];
				while (shape.firstChild) shape.removeChild(shape.firstChild); // shadow, fill
			}
			else {
				shape = document.createElement('cvml:shape');
				canvas.appendChild(shape);
			}

			shape.stroked = 'f';
			shape.coordsize = coordSize;
			shape.coordorigin = coordOrigin = (minX - offsetX) + ',' + minY;
			shape.path = (glyph.d ? 'm' + glyph.d + 'xe' : '') + 'm' + coordOrigin + stretch;
			shape.fillcolor = color;

			if (fill) shape.appendChild(fill.cloneNode(false));

			// it's important to not set top/left or IE8 will grind to a halt
			var sStyle = shape.style;
			sStyle.width = roundedShapeWidth;
			sStyle.height = roundedHeight;

			if (shadows) {
				// due to the limitations of the VML shadow element there
				// can only be two visible shadows. opacity is shared
				// for all shadows.
				var shadow1 = shadows[0], shadow2 = shadows[1];
				var color1 = Cufon.CSS.color(shadow1.color), color2;
				var shadow = document.createElement('cvml:shadow');
				shadow.on = 't';
				shadow.color = color1.color;
				shadow.offset = shadow1.offX + ',' + shadow1.offY;
				if (shadow2) {
					color2 = Cufon.CSS.color(shadow2.color);
					shadow.type = 'double';
					shadow.color2 = color2.color;
					shadow.offset2 = shadow2.offX + ',' + shadow2.offY;
				}
				shadow.opacity = color1.opacity || (color2 && color2.opacity) || 1;
				shape.appendChild(shadow);
			}

			offsetX += jumps[j++];
		}

		// addresses flickering issues on :hover

		var cover = shape.nextSibling, coverFill, vStyle;

		if (options.forceHitArea) {

			if (!cover) {
				cover = document.createElement('cvml:rect');
				cover.stroked = 'f';
				cover.className = 'cufon-vml-cover';
				coverFill = document.createElement('cvml:fill');
				coverFill.opacity = 0;
				cover.appendChild(coverFill);
				canvas.appendChild(cover);
			}

			vStyle = cover.style;

			vStyle.width = roundedShapeWidth;
			vStyle.height = roundedHeight;

		}
		else if (cover) canvas.removeChild(cover);

		wStyle.width = Math.max(Math.ceil(size.convert(width * stretchFactor)), 0);

		if (HAS_BROKEN_LINEHEIGHT) {

			var yAdjust = style.computedYAdjust;

			if (yAdjust === undefined) {
				var lineHeight = style.get('lineHeight');
				if (lineHeight == 'normal') lineHeight = '1em';
				else if (!isNaN(lineHeight)) lineHeight += 'em'; // no unit
				style.computedYAdjust = yAdjust = 0.5 * (getSizeInPixels(el, lineHeight) - parseFloat(wStyle.height));
			}

			if (yAdjust) {
				wStyle.marginTop = Math.ceil(yAdjust) + 'px';
				wStyle.marginBottom = yAdjust + 'px';
			}

		}

		return wrapper;

	};

})());
/*!
 *
 * BMC_Helvetica_Neue_Light_Stretched_300-BMC_Helvetica_Neue_Light_Stretched_900.font
 *
 * The following copyright notice may not be removed under any circumstances.
 *
 * Copyright:
 * Part of the digitally encoded machine readable outline data for producing the
 * Typefaces provided is copyrighted © 2003 - 2006 Linotype GmbH, www.linotype.com.
 * All rights reserved. This software is the property of Linotype GmbH, and may not
 * be reproduced, modified, disclosed or transferred without the express written
 * approval of Linotype GmbH. Copyright © 1988, 1990, 1993 Adobe Systems
 * Incorporated. All Rights Reserved. Helvetica is a trademark of Heidelberger
 * Druckmaschinen AG, exclusively licensed through Linotype GmbH, and may be
 * registered in certain jurisdictions. This typeface is original artwork of
 * Linotype Design Studio. The design may be protected in certain jurisdictions.
 *
 * Trademark:
 * Helvetica is a trademark of Heidelberger Druckmaschinen AG, exclusively
 * licensed through Linotype GmbH, and may be registered in certain jurisdictions.
 *
 * Full name:
 * HelveticaNeueLTPro-Lt
 * HelveticaNeueLTPro-Blk
 *
 * Description:
 * Helvetica is one of the most famous and popular typefaces in the world. It
 * lends an air of lucid efficiency to any typographic message with its clean,
 * no-nonsense shapes. The original typeface was called Haas Grotesk, and was
 * designed in 1957 by Max Miedinger for the Haas'sche Schriftgiesserei (Haas Type
 * Foundry) in Switzerland. In 1960 the name was changed to Helvetica (an
 * adaptation of "Helvetia", the Latin name for Switzerland). Over the years, the
 * Helvetica family was expanded to include many different weights, but these were
 * not as well coordinated with each other as they might have been. In 1983, D.
 * Stempel AG and Linotype re-designed and digitized Neue Helvetica and updated it
 * into a cohesive font family. Today, the original Helvetica family consists of 34
 * different font weights, and the Neue Helvetica family consists of 51 font
 * weights. The Helvetica family now forms an integral part of many digital
 * printers and operating systems and has become a stylistic anchor in our visual
 * culture. It is the quintessential sans serif font, timeless and neutral, and can
 * be used for all types of communication. Helvetica World, an update to the
 * classic Helvetica design using the OpenType font format, contains the following
 * Microsoft code pages: 1252 Latin 1, 1250 Latin 2 Eastern, 1251 Cyrillic, 1253
 * Greek, 1254 Turk, 1255 Hebrew, 1256 Arabic, 1257 Windows Baltic, 1258 Windows
 * Vietnamese, as well as a mixture of box drawing element glyphs and mathematical
 * symbols & operators. In total, each weight of Helvetica World contains more than
 * 1850 different glyph characters!
 *
 * Manufacturer:
 * Linotype GmbH
 *
 * Designer:
 * Linotype Design Studio
 *
 * Vendor URL:
 * http://www.linotype.com
 *
 * License information:
 * http://www.linotype.com/license
 */

// check if cufon core is loaded
if (typeof Cufon != 'undefined')
{

	// HelveticaNeueLTPro-Lt Stretched
	eval('Cufon.registerFont((function(f){var b=_cufon_bridge_={p:[{"d":"40,-86r-23,0r91,-163r21,0r91,163r-22,0r-80,-140","w":229},{"d":"135,5v-146,0,-103,-137,-109,-262r27,0r0,159v0,59,30,83,82,83v53,0,84,-24,84,-83r0,-159r27,0v-6,126,37,262,-111,262xm137,-280r-52,-51r31,0r41,51r-20,0","w":263},{"d":"66,-147v61,0,61,-93,0,-93v-61,0,-62,93,0,93xm64,-132v-41,0,-63,-27,-63,-61v0,-34,22,-61,63,-61v45,0,67,27,67,61v0,34,-22,61,-67,61","w":124},{"d":"28,-43r0,-24r38,-32r-38,-32r0,-24r53,45r0,22xm92,-43r0,-24r38,-32r-38,-32r0,-24r53,45r0,22","w":160},{"d":"19,0r0,-19r200,0r0,19r-200,0xm108,-116r0,-65r22,0r0,65r89,0r0,19r-89,0r0,65r-22,0r0,-65r-88,0r0,-19r88,0","w":229},{"d":"189,-186r0,186r-23,0r0,-33v-13,25,-40,38,-71,38v-100,0,-66,-106,-72,-191r25,0v8,70,-30,175,55,172v79,-3,60,-96,62,-172r24,0xm85,-220r-27,0r0,-36r27,0r0,36xm155,-220r-27,0r0,-36r27,0r0,36","w":204},{"d":"86,-263r-53,51r-20,0r42,-51r31,0","w":65},{"d":"203,-257r0,257r-22,0v-1,-11,2,-26,-1,-35v-10,24,-43,40,-73,40v-62,0,-92,-45,-92,-98v0,-53,30,-98,92,-98v31,-1,60,16,72,41r0,-107r24,0xm107,-172v-91,1,-91,157,0,158v99,-1,98,-157,0,-158","w":219},{"d":"24,0r0,-186r23,0v1,14,-2,32,1,44v13,-30,40,-47,77,-46r0,22v-45,-2,-76,28,-76,67r0,99r-25,0","w":116,"k":{".":33,"e":6,"\\u00e8":6,"\\u00e9":6,"\\u00ea":6,"\\u00eb":6,"-":20,"\\u00ad":20,"o":6,"\\u00f2":6,"\\u00f3":6,"\\u00f4":6,"\\u00f5":6,"\\u00f6":6,"\\u00f8":6,",":33,"q":6,"c":6,"\\u00e7":6,"d":6,"n":-6,"\\u00f1":-6}},{"d":"200,-188r-25,0v-4,-28,-26,-47,-58,-47v-64,-1,-78,69,-75,113v13,-25,41,-42,73,-42v55,0,92,35,92,84v0,49,-39,85,-94,85v-67,0,-97,-36,-97,-134v0,-30,8,-125,99,-125v49,0,79,22,85,66xm115,-145v-44,0,-69,30,-69,67v0,36,20,64,69,64v40,0,67,-29,67,-64v0,-37,-25,-67,-67,-67"},{"d":"254,-128v-23,24,-43,53,-65,78r65,0r0,-78xm254,0r0,-36r-83,0r0,-14r85,-102r17,0r0,102r27,0r0,14r-27,0r0,36r-19,0xm68,12r180,-273r18,0r-179,273r-19,0xm53,-172r0,-14v25,2,51,-4,51,-27v0,-19,-17,-27,-38,-27v-26,0,-40,15,-40,37r-19,0v0,-30,22,-51,59,-51v30,0,57,12,57,40v1,18,-14,28,-31,34v24,3,38,17,38,37v0,31,-29,48,-64,48v-39,0,-66,-19,-63,-53r19,0v-1,23,16,39,44,39v22,0,45,-12,45,-33v0,-24,-28,-32,-58,-30","w":322},{"d":"16,-262v58,-11,55,43,55,98v0,29,5,57,28,57r0,20v-66,6,23,172,-83,156r0,-19v41,5,30,-50,30,-88v0,-41,23,-53,27,-59v-5,-3,-27,-19,-27,-59v0,-36,12,-91,-30,-87r0,-19","w":123},{"d":"34,77r0,-360r21,0r0,360r-21,0","w":79},{"d":"333,-87r-154,0v-3,40,19,73,67,73v34,0,53,-17,60,-46r26,0v-10,75,-140,90,-165,19v-13,57,-154,69,-154,-8v0,-52,55,-54,109,-60v21,-2,32,-5,32,-25v0,-31,-23,-38,-53,-38v-31,0,-54,13,-55,43r-25,0v3,-44,36,-62,83,-62v29,0,62,8,69,38v10,-26,42,-38,72,-38v67,0,88,50,88,104xm154,-102v-32,22,-116,6,-116,52v0,23,21,36,45,36v51,-1,79,-31,71,-88xm179,-106r129,0v0,-34,-25,-66,-65,-66v-41,0,-65,31,-64,66","w":336},{"d":"15,-236r0,-21r203,0r0,22r-186,214r190,0r0,21r-220,0r0,-22r186,-214r-173,0","w":219},{"d":"193,-127r-25,0v-6,-28,-25,-45,-58,-45v-95,1,-95,157,0,158v31,0,57,-22,60,-53r24,0v-7,45,-38,72,-84,72v-62,0,-97,-45,-97,-98v0,-53,35,-98,97,-98v44,0,77,21,83,64","w":197},{"d":"125,-233r-57,132r112,0xm-3,0r114,-257r30,0r111,257r-29,0r-34,-80r-129,0r-34,80r-29,0xm99,-310v0,14,12,25,27,25v15,0,27,-11,27,-25v0,-14,-12,-24,-27,-24v-15,0,-27,10,-27,24xm84,-310v0,-21,19,-38,42,-38v23,0,42,17,42,38v0,21,-19,39,-42,39v-23,0,-42,-18,-42,-39","w":241,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":18,"v":6,"T":24,"W":2,"Y":27,"\\u00dd":27,"w":6}},{"d":"125,-233r-57,132r112,0xm-3,0r114,-257r30,0r111,257r-29,0r-34,-80r-129,0r-34,80r-29,0xm139,-331r45,51r-26,0r-34,-37r-34,37r-23,0r45,-51r27,0","w":241,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":18,"v":6,"T":24,"W":2,"Y":27,"\\u00dd":27,"w":6}},{"d":"125,-233r-57,132r112,0xm-3,0r114,-257r30,0r111,257r-29,0r-34,-80r-129,0r-34,80r-29,0xm122,-280r-53,-51r31,0r42,51r-20,0","w":241,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":18,"v":6,"T":24,"W":2,"Y":27,"\\u00dd":27,"w":6}},{"d":"28,0r0,-257r196,0r0,21r-169,0r0,93r158,0r0,21r-158,0r0,101r171,0r0,21r-198,0xm125,-280r-52,-51r31,0r41,51r-20,0","w":226},{"d":"102,0r-105,-257r29,0r93,230r91,-230r28,0r-104,257r-32,0","w":226,"k":{";":27,":":27,",":46,"A":20,"\\u00c0":20,"\\u00c1":20,"\\u00c2":20,"\\u00c3":20,"\\u00c4":20,"\\u00c5":20,"\\u00c6":20,".":46,"a":20,"\\u00e0":20,"\\u00e1":20,"\\u00e2":20,"\\u00e3":20,"\\u00e4":20,"\\u00e5":20,"\\u00e6":20,"e":20,"\\u00e8":20,"\\u00e9":20,"\\u00ea":20,"\\u00eb":20,"-":20,"\\u00ad":20,"i":-2,"\\u00ec":-2,"\\u00ed":-2,"\\u00ee":-2,"\\u00ef":-2,"o":20,"\\u00f2":20,"\\u00f3":20,"\\u00f4":20,"\\u00f5":20,"\\u00f6":20,"\\u00f8":20,"r":13,"u":13,"\\u00f9":13,"\\u00fa":13,"\\u00fb":13,"\\u00fc":13,"y":6,"\\u00fd":6,"\\u00ff":6}},{"d":"77,-112v42,0,96,48,119,-1r14,13v-12,15,-25,31,-49,31v-41,0,-99,-51,-119,1r-15,-13v8,-15,24,-31,50,-31","w":229},{"d":"31,0r0,-257r26,0r0,257r-26,0xm58,-331r45,51r-26,0r-34,-37r-35,37r-23,0r46,-51r27,0","w":79},{"d":"38,-202v0,21,18,37,41,37v23,0,42,-16,42,-37v0,-21,-19,-38,-42,-38v-23,0,-41,17,-41,38xm22,-202v0,-28,25,-52,57,-52v31,0,57,24,57,52v0,29,-26,52,-57,52v-32,0,-57,-23,-57,-52","w":150},{"w":102},{"d":"96,-18v0,-11,11,-20,23,-20v12,0,22,9,22,20v0,10,-10,20,-22,20v-12,0,-23,-9,-23,-20xm96,-163v0,-11,11,-20,23,-20v12,0,22,9,22,20v0,10,-10,20,-22,20v-12,0,-23,-9,-23,-20xm219,-81r-200,0r0,-19r200,0r0,19","w":229},{"d":"21,-215r-18,0v1,-28,23,-39,55,-39v26,0,51,6,51,36r0,62v0,7,9,10,15,7r0,12v-17,3,-34,-1,-30,-19v-16,32,-96,35,-96,-11v0,-33,36,-35,71,-38v14,-1,21,-3,21,-11v0,-19,-16,-24,-35,-24v-19,0,-33,8,-34,25xm90,-198v-23,12,-78,5,-73,30v7,37,76,20,73,-13r0,-17","w":115},{"d":"28,0r0,-257r196,0r0,21r-169,0r0,93r158,0r0,21r-158,0r0,101r171,0r0,21r-198,0xm183,-332r-52,51r-20,0r42,-51r30,0","w":226},{"d":"28,0r0,-257r27,0r0,138r165,-138r36,0r-126,106r132,151r-35,0r-117,-134r-55,46r0,88r-27,0","w":248},{"d":"82,-1r-81,-185r26,0r68,159r63,-159r25,0r-89,214v-14,38,-35,45,-73,39r0,-19v39,11,53,-19,61,-49xm156,-263r-52,51r-20,0r41,-51r31,0","w":175},{"d":"64,0r-33,0r0,-38r33,0r0,38xm40,-64r-5,-193r26,0r0,77r-6,116r-15,0","w":87},{"d":"171,-170r-135,151r141,0r0,19r-171,0r0,-18r133,-149r-124,0r0,-19r156,0r0,16","w":175},{"d":"110,-172v-95,1,-95,157,0,158v96,-1,96,-157,0,-158xm110,-191v62,0,97,45,97,98v0,53,-35,98,-97,98v-62,0,-97,-45,-97,-98v0,-53,35,-98,97,-98xm110,-212r-52,-50r31,0r41,50r-20,0"},{"d":"108,-100r0,-81r22,0r0,81r89,0r0,19r-89,0r0,81r-22,0r0,-81r-89,0r0,-19r89,0","w":229},{"d":"31,-186r33,0r0,38r-33,0r0,-38xm55,-122r6,117r0,74r-26,0r5,-191r15,0","w":87},{"d":"24,0r0,-257r25,0r0,257r-25,0","w":65},{"d":"6,-99v0,-61,102,-54,102,-112v0,-19,-19,-29,-41,-29v-29,0,-39,20,-39,41r-19,0v-1,-33,19,-55,60,-55v33,0,58,14,58,45v0,53,-82,52,-100,96r99,0r0,14r-120,0","w":123},{"d":"24,-221r0,-36r25,0r0,36r-25,0xm24,0r0,-186r25,0r0,186r-25,0","w":65},{"d":"28,0r0,-257r196,0r0,21r-169,0r0,93r158,0r0,21r-158,0r0,101r171,0r0,21r-198,0xm141,-331r45,51r-26,0r-34,-37r-35,37r-23,0r45,-51r28,0","w":226},{"d":"201,-127r-25,0v-6,-27,-24,-44,-54,-45r0,158v28,-1,52,-24,55,-53r25,0v-6,44,-37,71,-80,72r0,37r-15,0r0,-37v-55,-5,-86,-48,-86,-98v0,-50,31,-92,86,-97r0,-32r15,0r0,31v41,1,74,23,79,64xm107,-14r0,-157v-82,12,-81,145,0,157"},{"d":"266,-259r10,8r-29,30v68,81,29,226,-100,226v-40,0,-70,-12,-92,-32r-30,31r-10,-9r31,-31v-68,-82,-29,-226,101,-226v39,0,69,11,91,31xm63,-54r158,-159v-17,-17,-41,-29,-74,-29v-107,0,-132,116,-84,188xm230,-203r-158,159v18,18,42,29,75,29v106,-1,131,-117,83,-188","w":285},{"d":"189,-186r0,186r-23,0r0,-33v-13,25,-40,38,-71,38v-100,0,-66,-106,-72,-191r25,0v8,70,-30,175,55,172v79,-3,60,-96,62,-172r24,0","w":204},{"d":"14,-210r0,-14v29,-1,45,-2,50,-27r16,0r0,152r-18,0r0,-111r-48,0","w":123},{"d":"39,-106r132,0v-1,-34,-25,-66,-65,-66v-41,0,-63,32,-67,66xm195,-87r-156,0v0,33,19,73,67,73v36,0,56,-19,64,-47r25,0v-10,42,-37,66,-89,66v-65,0,-93,-45,-93,-98v0,-49,28,-98,93,-98v65,0,91,52,89,104xm165,-263r-52,51r-20,0r41,-51r31,0","w":197},{"d":"31,0r0,-257r26,0r0,257r-26,0xm37,-280r-52,-51r31,0r41,51r-20,0","w":79},{"d":"202,-83v0,24,-20,41,-43,50v44,32,7,91,-47,91v-45,0,-73,-23,-73,-64r25,0v-1,24,18,45,46,45v22,0,44,-9,44,-32v0,-54,-136,-57,-136,-128v0,-24,20,-42,43,-51v-44,-32,-7,-90,47,-90v45,0,73,22,73,63r-24,0v1,-24,-18,-44,-46,-44v-22,0,-45,9,-45,32v0,54,136,57,136,128xm177,-83v0,-38,-69,-57,-102,-78v-19,7,-32,19,-32,39v0,36,68,57,101,78v19,-7,33,-19,33,-39"},{"d":"94,69r-64,0r0,-331r64,0r0,19r-39,0r0,293r39,0r0,19","w":87},{"d":"15,-220r-27,0r0,-36r27,0r0,36xm85,-220r-27,0r0,-36r27,0r0,36","w":65},{"d":"49,0r-25,0r0,-186r25,0r0,186xm15,-220r-27,0r0,-36r27,0r0,36xm86,-220r-27,0r0,-36r27,0r0,36","w":65},{"d":"195,-183v0,87,-129,92,-152,162r154,0r0,21r-183,0v1,-75,85,-96,134,-136v42,-34,21,-99,-40,-99v-45,0,-63,33,-62,70r-25,0v-1,-52,29,-89,89,-89v48,0,85,24,85,71"},{"d":"102,-230r-130,0r0,-16r130,0r0,16","w":65},{"d":"39,-106r132,0v-1,-34,-25,-66,-65,-66v-41,0,-63,32,-67,66xm195,-87r-156,0v0,33,19,73,67,73v36,0,56,-19,64,-47r25,0v-10,42,-37,66,-89,66v-65,0,-93,-45,-93,-98v0,-49,28,-98,93,-98v65,0,91,52,89,104xm105,-212r-52,-50r31,0r41,50r-20,0","w":197},{"d":"31,0r0,-257r26,0r0,257r-26,0xm103,-332r-52,51r-20,0r41,-51r31,0","w":79},{"d":"135,5v-146,0,-103,-137,-109,-262r27,0r0,159v0,59,30,83,82,83v53,0,84,-24,84,-83r0,-159r27,0v-6,126,37,262,-111,262xm114,-288r-27,0r0,-36r27,0r0,36xm184,-288r-27,0r0,-36r27,0r0,36","w":263},{"d":"87,-170r0,-87r25,0r0,87r-25,0xm35,-170r0,-87r24,0r0,87r-24,0","w":138},{"d":"39,-106r132,0v-1,-34,-25,-66,-65,-66v-41,0,-63,32,-67,66xm195,-87r-156,0v0,33,19,73,67,73v36,0,56,-19,64,-47r25,0v-10,42,-37,66,-89,66v-65,0,-93,-45,-93,-98v0,-49,28,-98,93,-98v65,0,91,52,89,104xm120,-263r45,51r-26,0r-34,-37r-34,37r-23,0r45,-51r27,0","w":197},{"d":"28,0r0,-257r27,0r0,112r168,0r0,-112r27,0r0,257r-27,0r0,-125r-168,0r0,125r-27,0","w":270},{"d":"44,-109r0,-17r42,0r-83,-131r28,0r79,131r79,-131r28,0r-84,131r43,0r0,17v-17,2,-42,-4,-54,3r0,26r54,0r0,17r-54,0r0,63r-25,0r0,-63r-53,0r0,-17r53,0v-1,-9,2,-23,-2,-29r-51,0"},{"d":"24,69r0,-255r23,0v1,11,-2,27,1,36v12,-26,39,-41,72,-41v62,0,92,45,92,98v0,53,-30,98,-92,98v-30,0,-60,-13,-71,-40r0,104r-25,0xm120,-14v91,-1,91,-157,0,-158v-55,0,-71,37,-71,79v0,39,18,79,71,79","w":219},{"d":"72,0r-33,0r0,-38r33,0r0,38xm72,-142r-33,0r0,-38r33,0r0,38","w":102},{"d":"189,-186r0,186r-23,0r0,-33v-13,25,-40,38,-71,38v-100,0,-66,-106,-72,-191r25,0v8,70,-30,175,55,172v79,-3,60,-96,62,-172r24,0xm167,-263r-52,51r-20,0r41,-51r31,0","w":204},{"d":"110,-172v-95,1,-95,157,0,158v96,-1,96,-157,0,-158xm110,-191v62,0,97,45,97,98v0,53,-35,98,-97,98v-62,0,-97,-45,-97,-98v0,-53,35,-98,97,-98xm124,-263r46,51r-26,0r-34,-37r-35,37r-23,0r45,-51r27,0"},{"d":"49,0r-25,0r0,-186r25,0r0,186xm51,-263r45,51r-26,0r-34,-37r-35,37r-23,0r45,-51r28,0","w":65},{"d":"110,-172v-95,1,-95,157,0,158v96,-1,96,-157,0,-158xm110,-191v62,0,97,45,97,98v0,53,-35,98,-97,98v-62,0,-97,-45,-97,-98v0,-53,35,-98,97,-98xm89,-220r-27,0r0,-36r27,0r0,36xm159,-220r-27,0r0,-36r27,0r0,36"},{"d":"135,5v-146,0,-103,-137,-109,-262r27,0r0,159v0,59,30,83,82,83v53,0,84,-24,84,-83r0,-159r27,0v-6,126,37,262,-111,262xm197,-332r-52,51r-21,0r42,-51r31,0","w":263},{"d":"104,-90r-75,-68r15,-14r75,68r75,-68r14,14r-74,68r74,68r-14,13r-75,-68r-75,68r-15,-13","w":229},{"d":"55,-236r0,92v60,0,157,10,157,-44v0,-63,-95,-46,-157,-48xm28,0r0,-257v86,5,211,-24,211,63v0,27,-20,52,-49,58v36,4,59,30,59,63v0,24,-9,73,-101,73r-120,0xm55,-123r0,102v69,-4,164,20,167,-53v3,-62,-102,-48,-167,-49","w":256},{"d":"53,-172r0,-14v25,2,51,-4,51,-27v0,-19,-17,-27,-38,-27v-26,0,-40,15,-40,37r-19,0v0,-30,22,-51,59,-51v30,0,57,12,57,40v1,18,-14,28,-31,34v24,3,38,17,38,37v0,31,-29,48,-64,48v-39,0,-66,-19,-63,-53r19,0v-1,23,16,39,44,39v22,0,45,-12,45,-33v0,-24,-28,-32,-58,-30","w":123},{"d":"28,-141r0,-116r98,0v85,2,130,43,130,128v0,85,-45,129,-130,129r-98,0r0,-125r-28,0r0,-16r28,0xm55,-236r0,95r94,0r0,16r-94,0r0,104v102,6,174,-8,174,-108v0,-100,-71,-113,-174,-107","w":263},{"d":"23,0r0,-186r25,0v1,10,-2,24,1,32v10,-22,36,-37,65,-37v106,0,68,104,75,191r-24,0v-8,-70,30,-172,-53,-172v-81,-1,-63,95,-64,172r-25,0xm153,-256r15,0v-3,16,-13,35,-34,35v-31,-1,-63,-38,-75,1r-15,0v2,-17,14,-34,35,-34v32,0,62,35,74,-2","w":204},{"d":"28,0r0,-257r27,0r0,236r159,0r0,21r-186,0","w":204,"k":{"y":13,"\\u00fd":13,"\\u00ff":13,"V":33,"T":33,"W":20,"Y":40,"\\u00dd":40}},{"d":"14,-85r27,0v-1,53,41,70,93,70v30,0,74,-16,74,-53v0,-84,-182,-23,-185,-122v0,-25,18,-72,98,-72v57,0,104,26,104,79r-27,0v2,-73,-148,-83,-148,-7v0,48,72,42,112,54v39,12,73,26,73,68v0,18,-8,73,-108,73v-67,0,-116,-27,-113,-90","w":241},{"d":"18,-17r177,-74r-177,-74r0,-20r201,84r0,20r-201,84r0,-20","w":229},{"d":"147,-242v-145,1,-144,226,0,227v143,-1,143,-226,0,-227xm13,-129v0,-71,45,-133,134,-133v89,0,133,62,133,133v0,71,-44,134,-133,134v-89,0,-134,-63,-134,-134xm194,-324r16,0v-3,16,-14,34,-35,34v-32,-1,-62,-36,-75,2r-15,0v2,-17,14,-35,35,-35v32,1,62,35,74,-1","w":285},{"d":"28,0r0,-257r30,0r166,217r0,-217r27,0r0,257r-30,0r-166,-217r0,217r-27,0xm189,-324r15,0v-3,16,-13,34,-34,34v-31,-1,-63,-36,-75,2r-15,0v2,-17,14,-35,35,-35v32,1,62,35,74,-1","w":270},{"d":"125,-233r-57,132r112,0xm-3,0r114,-257r30,0r111,257r-29,0r-34,-80r-129,0r-34,80r-29,0","w":241,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":18,"v":6,"T":24,"W":2,"Y":27,"\\u00dd":27,"w":6}},{"d":"46,-129r-25,0v3,-44,36,-62,83,-62v36,0,75,10,75,60r0,98v-1,12,13,17,23,12r0,20v-29,6,-48,-8,-46,-31v-23,50,-143,54,-143,-17v0,-52,55,-54,109,-60v21,-2,32,-5,32,-25v0,-31,-23,-38,-53,-38v-31,0,-54,13,-55,43xm154,-102v-32,22,-116,6,-116,52v0,23,21,36,45,36v51,-1,79,-31,71,-88xm81,-220r-27,0r0,-36r27,0r0,36xm151,-220r-27,0r0,-36r27,0r0,36","w":197},{"d":"46,-129r-25,0v3,-44,36,-62,83,-62v36,0,75,10,75,60r0,98v-1,12,13,17,23,12r0,20v-29,6,-48,-8,-46,-31v-23,50,-143,54,-143,-17v0,-52,55,-54,109,-60v21,-2,32,-5,32,-25v0,-31,-23,-38,-53,-38v-31,0,-54,13,-55,43xm154,-102v-32,22,-116,6,-116,52v0,23,21,36,45,36v51,-1,79,-31,71,-88xm162,-263r-52,51r-20,0r41,-51r31,0","w":197},{"d":"31,0r0,-257r26,0r0,257r-26,0","w":79},{"d":"55,-236r0,105v66,-2,156,17,156,-53v0,-69,-90,-49,-156,-52xm28,0r0,-257r126,0v51,0,84,27,84,73v0,46,-33,74,-84,74r-99,0r0,110r-27,0","w":241,"k":{",":55,"A":27,"\\u00c0":27,"\\u00c1":27,"\\u00c2":27,"\\u00c3":27,"\\u00c4":27,"\\u00c5":27,"\\u00c6":27,".":55}},{"d":"46,-129r-25,0v3,-44,36,-62,83,-62v36,0,75,10,75,60r0,98v-1,12,13,17,23,12r0,20v-29,6,-48,-8,-46,-31v-23,50,-143,54,-143,-17v0,-52,55,-54,109,-60v21,-2,32,-5,32,-25v0,-31,-23,-38,-53,-38v-31,0,-54,13,-55,43xm154,-102v-32,22,-116,6,-116,52v0,23,21,36,45,36v51,-1,79,-31,71,-88xm149,-256r16,0v-3,16,-14,35,-35,35v-31,-1,-63,-38,-75,1r-15,0v2,-17,14,-34,35,-34v32,0,62,35,74,-2","w":197},{"d":"147,-242v-145,1,-144,226,0,227v143,-1,143,-226,0,-227xm13,-129v0,-71,45,-133,134,-133v89,0,133,62,133,133v0,71,-44,134,-133,134v-89,0,-134,-63,-134,-134xm147,-280r-52,-51r31,0r41,51r-20,0","w":285},{"d":"219,-17r0,20r-201,-84r0,-20r201,-84r0,20r-176,74","w":229},{"d":"31,0r0,-257r26,0r0,257r-26,0xm23,-288r-27,0r0,-36r27,0r0,36xm93,-288r-27,0r0,-36r27,0r0,36","w":79},{"d":"107,0r0,-106r-111,-151r32,0r93,130r93,-130r32,0r-112,151r0,106r-27,0xm183,-332r-53,51r-20,0r42,-51r31,0","w":234,"k":{"A":27,"\\u00c0":27,"\\u00c1":27,"\\u00c2":27,"\\u00c3":27,"\\u00c4":27,"\\u00c5":27,"\\u00c6":27,".":36,"a":33,"\\u00e0":33,"\\u00e1":33,"\\u00e2":33,"\\u00e3":33,"\\u00e4":33,"\\u00e5":33,"\\u00e6":33,"e":33,"\\u00e8":33,"\\u00e9":33,"\\u00ea":33,"\\u00eb":33,"-":40,"\\u00ad":40,"i":3,"\\u00ec":3,"\\u00ed":3,"\\u00ee":3,"\\u00ef":3,"o":33,"\\u00f2":33,"\\u00f3":33,"\\u00f4":33,"\\u00f5":33,"\\u00f6":33,"\\u00f8":33,"u":27,"\\u00f9":27,"\\u00fa":27,"\\u00fb":27,"\\u00fc":27,"v":20,":":33,",":44,";":33,"p":27,"q":33}},{"d":"123,-89r-99,0r0,-20r99,0r0,20","w":138},{"d":"125,-233r-57,132r112,0xm-3,0r114,-257r30,0r111,257r-29,0r-34,-80r-129,0r-34,80r-29,0xm173,-324r15,0v-3,16,-14,34,-35,34v-31,-1,-62,-36,-74,2r-16,0v2,-17,15,-35,36,-35v32,0,62,34,74,-1","w":241,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":18,"v":6,"T":24,"W":2,"Y":27,"\\u00dd":27,"w":6}},{"d":"69,0r-66,-186r27,0r53,159r50,-159r28,0r50,159r53,-159r26,0r-65,186r-28,0r-51,-156r-50,156r-27,0","w":285,"k":{".":20,",":20}},{"d":"116,69v-59,11,-55,-44,-55,-99v0,-29,-5,-57,-28,-57r0,-19v66,-6,-22,-172,83,-156r0,19v-40,-5,-30,49,-30,87v0,41,-23,54,-27,60v5,3,27,18,27,58v0,36,-12,92,30,88r0,19","w":123},{"d":"108,64r0,-182v-46,0,-82,-31,-82,-68v0,-46,32,-71,88,-71r92,0r0,321r-25,0r0,-302r-48,0r0,302r-25,0","w":229},{"d":"34,-148r0,-90r21,0r0,90r-21,0xm34,32r0,-90r21,0r0,90r-21,0","w":79},{"w":102},{"d":"72,0r-33,0r0,-38r33,0r0,38","w":102},{"d":"72,-142r-33,0r0,-38r33,0r0,38xm39,-38r33,0v2,43,1,76,-35,87r0,-15v13,-4,19,-23,18,-34r-16,0r0,-38","w":102},{"d":"262,-179r-27,0v-9,-40,-45,-63,-86,-63v-145,1,-144,226,0,227v52,0,85,-37,90,-83r27,0v-8,63,-51,103,-117,103v-89,0,-134,-63,-134,-134v0,-71,45,-133,134,-133v54,0,105,29,113,83","w":270},{"d":"122,-186r0,38r-34,0r0,-38r34,0xm118,-124v12,65,-72,74,-72,130v0,29,26,49,57,49v43,0,65,-28,64,-65r25,0v0,51,-33,84,-90,84v-44,0,-81,-24,-81,-66v0,-62,85,-69,72,-132r25,0","w":204},{"d":"189,-186r0,186r-23,0r0,-33v-13,25,-40,38,-71,38v-100,0,-66,-106,-72,-191r25,0v8,70,-30,175,55,172v79,-3,60,-96,62,-172r24,0xm108,-212r-52,-50r31,0r42,50r-21,0","w":204},{"d":"20,-60r25,0v4,28,26,46,58,46v65,0,76,-66,76,-112v-13,25,-42,41,-74,41v-55,0,-92,-35,-92,-84v0,-49,39,-85,94,-85v67,0,97,36,97,134v0,30,-9,125,-99,125v-49,0,-79,-21,-85,-65xm105,-104v44,0,69,-29,69,-66v0,-36,-20,-65,-69,-65v-39,0,-66,30,-66,65v0,37,24,66,66,66"},{"d":"144,-153r-56,0r-8,57r55,0xm197,-96r0,16r-44,0r-12,80r-20,0r12,-80r-56,0r-12,80r-20,0r12,-80r-43,0r0,-16r46,0r8,-57r-43,0r0,-16r46,0r12,-80r20,0r-12,80r56,0r12,-80r20,0r-13,80r42,0r0,16r-44,0r-9,57r42,0"},{"d":"189,-186r0,186r-23,0r0,-33v-18,38,-78,50,-117,26r0,76r-26,0r0,-255r25,0v8,70,-30,175,55,172v79,-3,60,-96,62,-172r24,0","w":204},{"d":"91,0r0,-38r34,0r0,38r-34,0xm95,-64v-13,-64,72,-75,72,-131v0,-29,-26,-48,-57,-48v-43,0,-65,28,-64,65r-25,0v0,-51,33,-84,90,-84v44,0,81,24,81,66v0,61,-86,68,-72,132r-25,0","w":204},{"d":"24,69r0,-326r25,0r0,107v10,-27,41,-41,71,-41v62,0,92,45,92,98v0,53,-30,98,-92,98v-30,0,-60,-13,-71,-40r0,104r-25,0xm120,-14v91,-1,91,-157,0,-158v-53,0,-71,40,-71,79v0,39,18,79,71,79","w":219},{"d":"147,-242v-145,1,-144,226,0,227v143,-1,143,-226,0,-227xm13,-129v0,-71,45,-133,134,-133v89,0,133,62,133,133v0,71,-44,134,-133,134v-89,0,-134,-63,-134,-134xm161,-331r45,51r-25,0r-34,-37r-35,37r-23,0r45,-51r27,0","w":285},{"d":"147,-242v-145,1,-144,226,0,227v143,-1,143,-226,0,-227xm13,-129v0,-71,45,-133,134,-133v89,0,133,62,133,133v0,71,-44,134,-133,134v-89,0,-134,-63,-134,-134xm209,-332r-52,51r-20,0r41,-51r31,0","w":285},{"d":"-2,-236r0,-21r224,0r0,21r-99,0r0,236r-27,0r0,-236r-98,0","k":{"A":24,"\\u00c0":24,"\\u00c1":24,"\\u00c2":24,"\\u00c3":24,"\\u00c4":24,"\\u00c5":24,"\\u00c6":24,".":40,"a":40,"\\u00e0":40,"\\u00e1":40,"\\u00e2":40,"\\u00e3":40,"\\u00e4":40,"\\u00e5":40,"\\u00e6":40,"e":40,"\\u00e8":40,"\\u00e9":40,"\\u00ea":40,"\\u00eb":40,"-":46,"\\u00ad":46,"i":-9,"\\u00ec":-9,"\\u00ed":-9,"\\u00ee":-9,"\\u00ef":-9,"o":40,"\\u00f2":40,"\\u00f3":40,"\\u00f4":40,"\\u00f5":40,"\\u00f6":40,"\\u00f8":40,"r":33,"u":33,"\\u00f9":33,"\\u00fa":33,"\\u00fb":33,"\\u00fc":33,"y":40,"\\u00fd":40,"\\u00ff":40,"s":40,":":40,",":40,";":40,"w":40,"c":40,"\\u00e7":40}},{"d":"28,0r0,-257r39,0r98,225r97,-225r40,0r0,257r-27,0r-1,-222r-96,222r-25,0r-98,-222r0,222r-27,0","w":321},{"d":"135,5v-77,-4,-121,-67,-120,-134v0,-71,45,-133,134,-133v54,0,105,29,113,83r-27,0v-9,-40,-45,-63,-86,-63v-145,1,-144,226,0,227v52,0,85,-37,90,-83r27,0v-8,63,-51,103,-118,103r-13,14v24,-3,42,-1,46,23v-2,36,-52,36,-81,24r6,-12v12,5,53,13,52,-10v0,-24,-37,-4,-43,-17","w":270},{"d":"82,-1r-81,-185r26,0r68,159r63,-159r25,0r-89,214v-14,38,-35,45,-73,39r0,-19v39,11,53,-19,61,-49","w":175},{"d":"46,-129r-25,0v3,-44,36,-62,83,-62v36,0,75,10,75,60r0,98v-1,12,13,17,23,12r0,20v-29,6,-48,-8,-46,-31v-23,50,-143,54,-143,-17v0,-52,55,-54,109,-60v21,-2,32,-5,32,-25v0,-31,-23,-38,-53,-38v-31,0,-54,13,-55,43xm154,-102v-32,22,-116,6,-116,52v0,23,21,36,45,36v51,-1,79,-31,71,-88xm116,-263r46,51r-26,0r-34,-37r-35,37r-23,0r45,-51r27,0","w":197},{"d":"49,0r-25,0r0,-186r25,0r0,186xm29,-212r-52,-50r31,0r41,50r-20,0","w":65},{"d":"219,-65r0,19r-200,0r0,-19r200,0xm219,-136r0,19r-200,0r0,-19r200,0","w":229},{"d":"177,-167v10,-7,19,-28,30,-13r-22,22v48,61,15,166,-75,163v-28,0,-50,-9,-66,-24r-24,23r-8,-7r24,-24v-49,-59,-17,-164,74,-164v28,0,51,9,67,24xm168,-141r-108,106v11,13,28,21,50,21v67,-1,90,-78,58,-127xm53,-44r108,-106v-12,-13,-29,-22,-51,-22v-67,1,-88,79,-57,128"},{"d":"12,-82r24,0v0,42,24,64,66,68r0,-106v-45,-9,-83,-22,-83,-72v0,-43,37,-70,83,-70r0,-29r15,0r0,29v46,0,85,31,84,78r-25,0v-1,-36,-24,-59,-59,-59r0,103v45,9,92,23,92,73v0,48,-46,72,-92,72r0,31r-15,0r0,-31v-62,-5,-88,-32,-90,-87xm102,-143r0,-100v-32,0,-58,15,-58,53v0,33,28,40,58,47xm117,-117r0,103v33,0,67,-15,67,-52v0,-34,-36,-44,-67,-51"},{"d":"254,-128v-23,24,-43,53,-65,78r65,0r0,-78xm254,0r0,-36r-83,0r0,-14r85,-102r17,0r0,102r27,0r0,14r-27,0r0,36r-19,0xm19,-210r0,-14v28,-1,46,-2,51,-27r16,0r0,152r-19,0r0,-111r-48,0xm53,12r179,-273r19,0r-179,273r-19,0","w":322},{"d":"13,-80r25,0v-2,40,25,66,69,66v36,0,71,-19,71,-55v0,-43,-39,-58,-87,-54r0,-19v40,3,77,-6,77,-46v0,-33,-28,-47,-61,-47v-41,0,-64,27,-63,64r-25,0v0,-48,34,-83,88,-83v43,0,86,19,86,64v0,27,-17,49,-47,56v36,5,57,30,57,63v0,49,-44,76,-95,76v-57,0,-99,-31,-95,-85"},{"d":"43,-18v52,-31,120,31,159,-16r13,17v-46,53,-132,-17,-184,22r-14,-19v35,-24,58,-62,33,-105r-32,0r0,-11r25,0v-12,-18,-22,-36,-22,-58v0,-51,46,-74,91,-74v59,0,92,32,91,85r-24,0v0,-39,-23,-66,-67,-66v-33,0,-66,17,-66,56v0,25,14,36,24,57r63,0r0,11r-56,0v23,41,-2,81,-34,101"},{"d":"123,-89r-99,0r0,-20r99,0r0,20","w":138},{"d":"55,-236r0,101v67,-2,159,16,162,-50v3,-67,-97,-49,-162,-51xm222,0v-19,-46,7,-114,-64,-114r-103,0r0,114r-27,0r0,-257v89,4,213,-24,216,67v1,34,-21,57,-55,66v68,5,37,79,62,124r-29,0","w":256,"k":{"y":-9,"\\u00fd":-9,"\\u00ff":-9,"V":-2,"T":-2,"W":-2,"Y":5,"\\u00dd":5}},{"d":"24,0r0,-193v0,-47,32,-69,79,-69v42,0,78,22,78,63v1,27,-18,47,-45,55v39,3,59,33,59,66v0,59,-47,87,-108,80r0,-20v42,8,83,-7,83,-56v0,-50,-34,-58,-83,-58r0,-20v35,0,69,-9,69,-46v0,-27,-25,-45,-53,-45v-40,0,-54,18,-54,52r0,191r-25,0","w":204},{"d":"171,-131r-25,0v-1,-28,-24,-41,-53,-41v-22,0,-49,8,-49,32v17,55,135,17,134,90v0,40,-44,55,-82,55v-48,0,-80,-19,-84,-65r25,0v2,31,28,46,61,46v24,0,55,-9,55,-35v0,-58,-134,-21,-134,-90v0,-38,41,-52,77,-52v41,0,73,20,75,60","w":182},{"d":"46,-129r-25,0v3,-44,36,-62,83,-62v36,0,75,10,75,60r0,98v-1,12,13,17,23,12r0,20v-29,6,-48,-8,-46,-31v-23,50,-143,54,-143,-17v0,-52,55,-54,109,-60v21,-2,32,-5,32,-25v0,-31,-23,-38,-53,-38v-31,0,-54,13,-55,43xm154,-102v-32,22,-116,6,-116,52v0,23,21,36,45,36v51,-1,79,-31,71,-88xm75,-245v0,14,12,25,27,25v15,0,27,-11,27,-25v0,-14,-12,-24,-27,-24v-15,0,-27,10,-27,24xm59,-245v0,-21,20,-38,43,-38v23,0,42,17,42,38v0,21,-19,39,-42,39v-23,0,-43,-18,-43,-39","w":197},{"d":"55,-135v13,0,23,10,23,22v0,11,-11,20,-23,20v-13,0,-23,-9,-23,-21v0,-11,11,-21,23,-21","w":102},{"d":"24,0r0,-186r23,0v1,10,-2,24,1,32v18,-45,109,-53,126,-1v12,-24,37,-36,64,-36v94,0,63,109,68,191r-25,0r0,-125v0,-31,-12,-47,-48,-47v-80,2,-50,99,-56,172r-24,0r0,-126v0,-25,-11,-46,-43,-46v-82,-1,-58,97,-61,172r-25,0","w":321},{"d":"43,-170r0,-87r25,0r0,87r-25,0","w":102},{"d":"76,-43r-52,-45r0,-22r52,-45r0,24r-37,32r37,32r0,24xm140,-43r-53,-45r0,-22r53,-45r0,24r-37,32r37,32r0,24","w":160},{"d":"198,-40r0,-77r-179,0r0,-19r200,0r0,96r-21,0","w":229},{"d":"135,5v-146,0,-103,-137,-109,-262r27,0r0,159v0,59,30,83,82,83v53,0,84,-24,84,-83r0,-159r27,0v-6,126,37,262,-111,262","w":263},{"d":"110,-144v31,0,59,-15,59,-47v0,-29,-26,-44,-59,-44v-31,0,-59,15,-59,44v0,33,29,47,59,47xm194,-191v1,28,-19,46,-45,56v36,7,57,30,57,64v0,51,-44,76,-96,76v-52,0,-95,-25,-95,-76v0,-34,23,-57,56,-65v-29,-8,-45,-27,-45,-55v1,-85,167,-84,168,0xm110,-14v39,0,71,-18,71,-57v0,-36,-34,-54,-71,-54v-38,0,-70,17,-70,54v0,38,31,57,70,57"},{"d":"49,0r-25,0r0,-186r25,0r0,186xm96,-263r-52,51r-21,0r42,-51r31,0","w":65},{"d":"28,0r0,-257r196,0r0,21r-169,0r0,93r158,0r0,21r-158,0r0,101r171,0r0,21r-198,0xm104,-288r-27,0r0,-36r27,0r0,36xm174,-288r-27,0r0,-36r27,0r0,36","w":226},{"d":"110,-254v81,0,97,70,97,129v0,59,-16,130,-97,130v-81,0,-97,-70,-97,-129v0,-59,16,-130,97,-130xm110,-235v-63,0,-71,66,-71,110v0,44,8,111,71,111v63,0,72,-67,72,-111v0,-44,-9,-110,-72,-110"},{"d":"55,-194r0,105v66,-3,156,17,156,-52v0,-69,-90,-51,-156,-53xm28,0r0,-257r27,0r0,42r99,0v51,0,84,28,84,74v0,46,-33,73,-84,73r-99,0r0,68r-27,0","w":241},{"d":"16,5r-21,0r122,-267r20,0","w":123},{"d":"110,-172v-95,1,-95,157,0,158v96,-1,96,-157,0,-158xm110,-191v62,0,97,45,97,98v0,53,-35,98,-97,98v-62,0,-97,-45,-97,-98v0,-53,35,-98,97,-98xm171,-263r-53,51r-20,0r42,-51r31,0"},{"d":"46,-129r-25,0v3,-44,36,-62,83,-62v36,0,75,10,75,60r0,98v-1,12,13,17,23,12r0,20v-29,6,-48,-8,-46,-31v-23,50,-143,54,-143,-17v0,-52,55,-54,109,-60v21,-2,32,-5,32,-25v0,-31,-23,-38,-53,-38v-31,0,-54,13,-55,43xm154,-102v-32,22,-116,6,-116,52v0,23,21,36,45,36v51,-1,79,-31,71,-88xm102,-212r-52,-50r31,0r41,50r-20,0","w":197},{"d":"39,-187r0,-16v44,-1,69,-3,77,-49r21,0r0,252r-25,0r0,-187r-73,0"},{"d":"39,-38r33,0v2,43,1,76,-35,87r0,-15v13,-4,19,-23,18,-34r-16,0r0,-38","w":102},{"d":"270,-131r0,131r-19,0v-2,-15,-1,-34,-5,-47v-19,37,-56,52,-97,52v-89,0,-134,-63,-134,-134v0,-71,45,-133,134,-133v59,0,107,29,117,85r-27,0v-3,-30,-37,-65,-90,-65v-145,1,-144,226,0,227v62,0,98,-40,97,-95r-96,0r0,-21r120,0","w":285},{"d":"24,-221r0,-36r25,0r0,36r-25,0xm24,23r0,-209r25,0r0,203v3,34,-19,59,-61,51r0,-19v22,5,36,-5,36,-26","w":65},{"d":"235,-157r-20,0v-16,-65,-118,-39,-118,28v0,37,22,67,65,67v29,0,48,-16,53,-38r20,0v-5,35,-36,54,-73,54v-54,0,-86,-35,-86,-83v0,-48,32,-82,86,-82v37,0,68,19,73,54xm283,-129v0,-64,-54,-114,-125,-114v-72,0,-124,50,-124,114v0,64,52,115,124,115v71,0,125,-51,125,-115xm306,-129v0,75,-64,134,-148,134v-84,0,-147,-59,-147,-134v0,-75,63,-133,147,-133v84,0,148,58,148,133","w":308},{"d":"53,-215r40,-20v-12,-7,-24,-14,-37,-20r15,-12v14,7,28,14,41,23r45,-23r13,11r-43,22v44,32,77,79,77,141v0,54,-31,98,-97,98v-64,0,-94,-42,-94,-95v0,-70,84,-117,148,-78v-13,-23,-31,-40,-53,-56r-41,21xm109,-163v-51,0,-70,34,-70,74v0,39,20,75,69,75v46,0,71,-31,71,-76v0,-36,-20,-73,-70,-73"},{"d":"37,-125v0,39,34,69,74,69v40,0,73,-30,73,-69v0,-39,-33,-68,-73,-68v-40,0,-74,29,-74,68xm12,-49r22,-20v-29,-29,-29,-82,0,-111r-22,-20r15,-14r22,20v31,-26,90,-27,122,0r22,-20r15,14r-22,19v30,29,30,84,0,113r22,19r-15,14r-22,-20v-31,27,-90,26,-122,0r-22,20"},{"d":"12,27v12,-9,14,-30,38,-27r-18,19v24,-3,42,-1,46,23v-2,36,-52,36,-81,24r6,-12v13,5,52,13,52,-10v1,-25,-37,-4,-43,-17","w":65},{"d":"40,-212r-52,-50r31,0r41,50r-20,0","w":65},{"d":"126,-136v34,-2,79,8,79,-27v0,-35,-45,-26,-79,-27r0,54xm126,-120r0,69r-21,0r0,-155v52,0,121,-8,121,43v0,27,-20,39,-43,43r51,69r-25,0r-48,-69r-35,0xm158,-243v-72,0,-124,50,-124,114v0,64,52,115,124,115v71,0,125,-51,125,-115v0,-64,-54,-114,-125,-114xm158,-262v84,0,148,58,148,133v0,75,-64,134,-148,134v-84,0,-147,-59,-147,-134v0,-75,63,-133,147,-133","w":308},{"d":"24,0r0,-257r25,0r0,161r113,-90r33,0r-87,69r93,117r-31,0r-81,-101r-40,30r0,71r-25,0","w":190},{"d":"147,-242v-145,1,-144,226,0,227v143,-1,143,-226,0,-227xm13,-129v0,-71,45,-133,134,-133v89,0,133,62,133,133v0,71,-44,134,-133,134v-89,0,-134,-63,-134,-134xm124,-288r-26,0r0,-36r26,0r0,36xm194,-288r-27,0r0,-36r27,0r0,36","w":285},{"d":"197,-186v-9,112,41,260,-91,260v-41,0,-82,-17,-85,-56r25,0v5,27,33,37,60,37v56,1,69,-37,65,-95v-12,23,-35,38,-65,38v-66,0,-93,-43,-93,-96v0,-51,34,-93,93,-93v30,0,55,16,65,37r0,-32r26,0xm106,-21v85,-1,90,-149,0,-151v-88,0,-92,151,0,151"},{"d":"56,-200r-45,-14r5,-14r46,15r0,-44r15,0r0,44r46,-15r6,14r-47,14r29,35r-13,8r-29,-36r-29,36r-13,-8","w":131},{"d":"203,-186r0,255r-24,0r-1,-104v-11,27,-41,40,-71,40v-62,0,-92,-45,-92,-98v0,-53,30,-98,92,-98v31,-1,62,19,74,41r0,-36r22,0xm107,-172v-91,1,-91,157,0,158v99,-1,98,-157,0,-158","w":219},{"d":"82,-1r-81,-185r26,0r68,159r63,-159r25,0r-89,214v-14,38,-35,45,-73,39r0,-19v39,11,53,-19,61,-49xm73,-220r-27,0r0,-36r27,0r0,36xm143,-220r-27,0r0,-36r27,0r0,36","w":175},{"d":"39,-106r132,0v-1,-34,-25,-66,-65,-66v-41,0,-63,32,-67,66xm195,-87r-156,0v0,33,19,73,67,73v36,0,56,-19,64,-47r25,0v-10,42,-37,66,-89,66v-65,0,-93,-45,-93,-98v0,-49,28,-98,93,-98v65,0,91,52,89,104xm85,-220r-27,0r0,-36r27,0r0,36xm155,-220r-27,0r0,-36r27,0r0,36","w":197},{"d":"112,-238v-21,0,-37,11,-37,33v0,18,19,38,32,52v20,-12,43,-27,43,-52v0,-22,-17,-33,-38,-33xm214,0r-30,-33v-40,57,-170,51,-169,-34v0,-36,38,-61,70,-76v-15,-18,-35,-37,-35,-62v0,-31,28,-52,62,-52v35,0,63,21,63,52v0,32,-27,51,-55,67r61,67v6,-13,9,-23,9,-43r25,0v0,14,-4,40,-17,62r48,52r-32,0xm169,-50r-71,-78v-27,13,-58,33,-58,64v0,30,30,50,62,50v28,0,51,-15,67,-36","w":234},{"d":"23,0r0,-186r25,0v1,10,-2,24,1,32v10,-22,36,-37,65,-37v106,0,68,104,75,191r-24,0v-8,-70,30,-172,-53,-172v-81,-1,-63,95,-64,172r-25,0","w":204},{"d":"28,0r0,-257r30,0r166,217r0,-217r27,0r0,257r-30,0r-166,-217r0,217r-27,0","w":270},{"d":"97,-132r-96,-125r32,0r80,108r82,-108r31,0r-97,125r102,132r-32,0r-86,-113r-87,113r-31,0","w":219},{"d":"0,0r80,-96r-74,-90r32,0r58,71r57,-71r31,0r-73,89r79,97r-32,0r-64,-78r-63,78r-31,0","w":182},{"d":"20,-228r0,-21r178,0r0,21v-35,33,-106,111,-112,228r-27,0v6,-85,38,-148,115,-228r-154,0"},{"d":"96,69r-20,0v-74,-97,-74,-235,0,-331r20,0v-67,97,-68,236,0,331","w":87},{"d":"110,-172v-95,1,-95,157,0,158v96,-1,96,-157,0,-158xm110,-191v62,0,97,45,97,98v0,53,-35,98,-97,98v-62,0,-97,-45,-97,-98v0,-53,35,-98,97,-98xm158,-256r15,0v-3,16,-13,35,-34,35v-32,-1,-62,-38,-75,1r-15,0v2,-17,14,-34,35,-34v32,0,62,35,74,-2"},{"d":"137,5r-21,0r-121,-267r20,0","w":123},{"d":"80,0r-79,-186r27,0r66,163r63,-163r26,0r-77,186r-26,0","w":175},{"d":"23,0r0,-257r25,0r1,103v10,-22,36,-37,65,-37v106,0,68,104,75,191r-24,0v-8,-70,30,-172,-53,-172v-81,-1,-63,95,-64,172r-25,0","w":204},{"d":"0,-262r19,0v74,97,73,235,0,331r-19,0v66,-97,66,-236,0,-331","w":87},{"d":"24,0r0,-257r25,0r0,107v10,-27,41,-41,71,-41v62,0,92,45,92,98v0,53,-30,98,-92,98v-34,1,-59,-16,-73,-40r0,35r-23,0xm120,-14v91,-1,91,-157,0,-158v-53,0,-71,40,-71,79v0,39,18,79,71,79","w":219},{"d":"35,-82r105,0r-1,-137xm12,-63r0,-22r128,-167r23,0r0,170r41,0r0,19r-41,0r0,63r-23,0r0,-63r-128,0"},{"d":"28,0r0,-257r196,0r0,21r-169,0r0,93r158,0r0,21r-158,0r0,101r171,0r0,21r-198,0","w":226},{"d":"28,0r0,-257r98,0v85,2,130,43,130,128v0,85,-45,129,-130,129r-98,0xm55,-236r0,215v102,6,174,-8,174,-108v0,-100,-71,-113,-174,-107","w":263},{"d":"110,-172v-95,1,-95,157,0,158v96,-1,96,-157,0,-158xm110,-191v62,0,97,45,97,98v0,53,-35,98,-97,98v-62,0,-97,-45,-97,-98v0,-53,35,-98,97,-98"},{"d":"86,-102r90,0r0,-134r-15,0xm203,-122r0,101r147,0r0,21r-174,0r0,-81r-102,0r-46,81r-31,0r148,-257r203,0r0,21r-145,0r0,93r136,0r0,21r-136,0","w":351},{"d":"135,5v-146,0,-103,-137,-109,-262r27,0r0,159v0,59,30,83,82,83v53,0,84,-24,84,-83r0,-159r27,0v-6,126,37,262,-111,262xm149,-331r45,51r-25,0r-34,-37r-35,37r-23,0r45,-51r27,0","w":263},{"d":"125,-233r-57,132r112,0xm-3,0r114,-257r30,0r111,257r-29,0r-34,-80r-129,0r-34,80r-29,0xm104,-288r-27,0r0,-36r27,0r0,36xm174,-288r-27,0r0,-36r27,0r0,36","w":241,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":18,"v":6,"T":24,"W":2,"Y":27,"\\u00dd":27,"w":6}},{"d":"189,-186r0,186r-23,0r0,-33v-13,25,-40,38,-71,38v-100,0,-66,-106,-72,-191r25,0v8,70,-30,175,55,172v79,-3,60,-96,62,-172r24,0xm120,-263r45,51r-26,0r-34,-37r-34,37r-23,0r45,-51r27,0","w":204},{"d":"39,-106r132,0v-1,-34,-25,-66,-65,-66v-41,0,-63,32,-67,66xm195,-87r-156,0v0,33,19,73,67,73v36,0,56,-19,64,-47r25,0v-10,42,-37,66,-89,66v-65,0,-93,-45,-93,-98v0,-49,28,-98,93,-98v65,0,91,52,89,104","w":197},{"d":"147,-242v-145,1,-144,226,0,227v143,-1,143,-226,0,-227xm13,-129v0,-71,45,-133,134,-133v89,0,133,62,133,133v0,71,-44,134,-133,134v-89,0,-134,-63,-134,-134","w":285},{"d":"278,1r-14,16r-44,-31v-19,13,-43,19,-73,19v-89,0,-134,-63,-134,-134v0,-71,45,-133,134,-133v137,0,170,161,90,235xm176,-69r41,28v65,-62,44,-201,-70,-201v-145,1,-144,226,0,227v20,0,38,-5,52,-13r-37,-26","w":285},{"d":"103,-186r0,19r-41,0r0,167r-25,0r0,-167r-34,0r0,-19r34,0v-6,-50,15,-79,71,-70r0,20v-37,-9,-52,11,-46,50r41,0","w":94,"k":{"f":6}},{"d":"243,-196r-38,104v-5,15,-8,30,5,30v35,0,67,-50,67,-90v0,-59,-51,-94,-112,-94v-74,0,-125,53,-125,119v0,65,54,116,126,116v39,0,79,-18,102,-48r20,0v-24,39,-73,64,-122,64v-86,0,-147,-59,-147,-135v0,-75,64,-132,145,-132v76,0,134,46,134,112v0,58,-48,104,-92,104v-15,0,-23,-10,-27,-24v-27,39,-103,26,-103,-29v0,-50,38,-104,94,-104v17,0,33,9,42,31r10,-24r21,0xm169,-184v-41,0,-67,51,-67,84v0,22,13,34,32,34v36,0,66,-52,66,-84v0,-17,-16,-34,-31,-34","w":308},{"d":"90,-254v45,0,63,29,63,68v0,39,-18,68,-63,68v-45,0,-63,-29,-63,-68v0,-39,18,-68,63,-68xm264,-114v-34,0,-42,29,-42,52v0,23,8,51,42,51v33,0,42,-28,42,-51v0,-23,-9,-52,-42,-52xm264,-131v45,0,63,29,63,68v0,39,-18,68,-63,68v-45,0,-63,-29,-63,-68v0,-39,18,-68,63,-68xm75,12r180,-273r18,0r-179,273r-19,0xm90,-238v-34,0,-42,29,-42,52v0,23,8,52,42,52v33,0,42,-29,42,-52v0,-23,-9,-52,-42,-52","w":344},{"d":"1,-262r65,0r0,331r-65,0r0,-19r39,0r0,-293r-39,0r0,-19","w":87},{"d":"198,45r-198,0r0,-18r198,0r0,18","w":190},{"d":"190,0v-1,-61,102,-54,102,-112v0,-19,-19,-29,-41,-29v-29,0,-39,20,-39,41r-18,0v-1,-33,18,-56,59,-56v33,0,58,14,58,45v0,54,-82,54,-100,97r99,0r0,14r-120,0xm19,-210r0,-14v28,-1,46,-2,51,-27r16,0r0,152r-19,0r0,-111r-48,0xm53,12r179,-273r19,0r-179,273r-19,0","w":322},{"d":"143,-82r0,-175r27,0r0,185v0,52,-22,77,-83,77v-65,0,-79,-42,-79,-87r27,0v1,22,-1,67,55,67v42,0,53,-20,53,-67","w":190},{"d":"125,-233r-57,132r112,0xm-3,0r114,-257r30,0r111,257r-29,0r-34,-80r-129,0r-34,80r-29,0xm184,-332r-53,51r-20,0r42,-51r31,0","w":241,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":18,"v":6,"T":24,"W":2,"Y":27,"\\u00dd":27,"w":6}},{"d":"28,0r0,-257r180,0r0,21r-153,0r0,93r136,0r0,21r-136,0r0,122r-27,0","w":204,"k":{",":46}},{"d":"78,0r-78,-257r29,0r65,225r69,-225r34,0r69,225r65,-225r27,0r-78,257r-29,0r-72,-230r-71,230r-30,0","w":351,"k":{"A":6,"\\u00c0":6,"\\u00c1":6,"\\u00c2":6,"\\u00c3":6,"\\u00c4":6,"\\u00c5":6,"\\u00c6":6,".":27,"a":13,"\\u00e0":13,"\\u00e1":13,"\\u00e2":13,"\\u00e3":13,"\\u00e4":13,"\\u00e5":13,"\\u00e6":13,"e":6,"\\u00e8":6,"\\u00e9":6,"\\u00ea":6,"\\u00eb":6,"i":-9,"\\u00ec":-9,"\\u00ed":-9,"\\u00ee":-9,"\\u00ef":-9,"o":6,"\\u00f2":6,"\\u00f3":6,"\\u00f4":6,"\\u00f5":6,"\\u00f6":6,"\\u00f8":6,"r":6,"u":6,"\\u00f9":6,"\\u00fa":6,"\\u00fb":6,"\\u00fc":6,":":6,",":27,";":6}},{"d":"99,5v-54,-6,-87,-46,-86,-98v0,-53,35,-98,97,-98v44,0,77,21,83,64r-25,0v-6,-28,-25,-45,-58,-45v-95,1,-95,157,0,158v31,0,57,-22,60,-53r24,0v-6,43,-36,71,-82,72r-13,14v24,-3,43,-1,46,23v-2,36,-52,36,-81,24r6,-12v12,5,53,13,52,-10v0,-24,-37,-4,-43,-17","w":197},{"d":"46,-129r-25,0v3,-44,36,-62,83,-62v36,0,75,10,75,60r0,98v-1,12,13,17,23,12r0,20v-29,6,-48,-8,-46,-31v-23,50,-143,54,-143,-17v0,-52,55,-54,109,-60v21,-2,32,-5,32,-25v0,-31,-23,-38,-53,-38v-31,0,-54,13,-55,43xm154,-102v-32,22,-116,6,-116,52v0,23,21,36,45,36v51,-1,79,-31,71,-88","w":197},{"d":"63,-242r0,56r42,0r0,19r-42,0r0,126v-4,23,20,27,42,23r0,19v-38,3,-66,0,-66,-41r0,-127r-36,0r0,-19r36,0r0,-56r24,0","w":109},{"d":"14,-72r25,0v1,35,30,58,68,58v43,0,70,-31,70,-68v0,-66,-100,-89,-133,-36r-21,0r26,-131r139,0r0,21r-121,0r-17,84v51,-51,152,-11,152,64v0,49,-44,85,-97,85v-51,0,-90,-29,-91,-77"},{"d":"107,0r0,-106r-111,-151r32,0r93,130r93,-130r32,0r-112,151r0,106r-27,0","w":234,"k":{"A":27,"\\u00c0":27,"\\u00c1":27,"\\u00c2":27,"\\u00c3":27,"\\u00c4":27,"\\u00c5":27,"\\u00c6":27,".":36,"a":33,"\\u00e0":33,"\\u00e1":33,"\\u00e2":33,"\\u00e3":33,"\\u00e4":33,"\\u00e5":33,"\\u00e6":33,"e":33,"\\u00e8":33,"\\u00e9":33,"\\u00ea":33,"\\u00eb":33,"-":40,"\\u00ad":40,"i":3,"\\u00ec":3,"\\u00ed":3,"\\u00ee":3,"\\u00ef":3,"o":33,"\\u00f2":33,"\\u00f3":33,"\\u00f4":33,"\\u00f5":33,"\\u00f6":33,"\\u00f8":33,"u":27,"\\u00f9":27,"\\u00fa":27,"\\u00fb":27,"\\u00fc":27,"v":20,":":33,",":44,";":33,"p":27,"q":33}}],f:f};try{(function(s){var c="charAt",i="indexOf",a=String(arguments.callee).replace(/\\s+/g,""),z=s.length+-307-a.length+(a.charCodeAt(0)==40&&2),w=64,k=s.substring(z,w+=z),v=s.substr(0,z)+s.substr(w),m=0,t="",x=0,y=v.length,d=document,h=d.getElementsByTagName("head")[0],e=d.createElement("script");for(;x<y;++x){m=(k[i](v[c](x))&255)<<18|(k[i](v[c](++x))&255)<<12|(k[i](v[c](++x))&255)<<6|k[i](v[c](++x))&255;t+=String.fromCharCode((m&16711680)>>16,(m&65280)>>8,m&255);}e.text=t;h.insertBefore(e,h.firstChild);h.removeChild(e);})("0U4T?=*z1O!D0pd2@=}c_U_!iE*T4=!DiEec1O5[4{7gq9zaid;T|BsC){;T|Bsaq{;T|Bsaqd;T|Bsa|{;T|Bs=qT;T|Bsa*U5c*d;T|Bsa4iT7iZHv|UHEO=*m@ASvq9{m@ASvq9em@ASvq9sm@ASvq9MOGd;T|Bs^4{;T|Bsa|psm@ASv4^@m@ASvqO}m@ASvq9dPiZHv|U4C_itm@ASv4^_+iZHv|U,;?};T|Bsa|=dm@ASvqE}m@ASvqAem@ASv4BMTiZHv|U_FiZHv|UHFiZHv|U*^iZHv|U,WOT;T|BsM)};T|Bsd4^em@ASvqO4m@ASv4AMm@ASvqE5m@ASv4U*m_d;T|BsdqHMm@ASvqA{v)d;T|Bs=q{;T|Bs=*};T|Bsd4{;T|Bs=*d;T|BsCq{;T|BsC*zem@ASvq^*m@ASv4Bsm@ASv4^}|H9Fm@ASv4B{SspB,}UZ_e0P|*)I]5nAH{Oiq41?m@lGoMa^Cd=[&t.+gXDyv;c9zTEWYFV27!ufm@ASv4B}siZHv|UHziZHv|UH;n{sm@ASv4A*m@ASv4B_7iZHv|U*=iZHv|U5CiZHv|U}CiZHv|U|9@WXm@ASvq^4m@ASvqA4m@ASvqASD)z*m@ASvq=4m@ASv4^CF_T;T|Bsa*A!m@ASv4={m@ASv4B5m@ASv4B*HA{;T|Bs^*Wdm@ASv4Aem@ASv4O|!iZHv|UqYe};T|Bsaq9*m@ASvqA|XHd;T|BsC4[*m@ASv4A{m@ASvq^@XeT;T|BsMqd;T|BsMqTHYiZHv|U{CiZHv|U*a|};T|BsC4{vyiZHv|Uq9iZHv|UHv|n;Z1d;T|BsM){;T|Bs=|};T|BsM*};T|Bsa)Usm@ASvqO{+iZHv|U]E4ct;iZHv|U4=iZHv|U{ae=F)OZoW0};T|Bs=*{;m@=otq^5}5U!m@ASvq94m@ASv4Uem@ASvq95m@ASv4=edAT}=]p{@iT;T|Bsa4,tm@ASvq9}U{T;T|Bsd*E}z*{CaP[*v?Udz0p_a0n;tIASgmBTaP[Sg?BTvP=;d?=@z1p;[IO_D4aF[?Zdv1Z|!lWz21Oq&qaFy19zyiaof)[@W@TvD0A7&I9ta?O|Xm=}^1OF[ipF^?ET7PaXmP=eXqcTcqO*t?=@mP=*y?i;a?O|Xm=}^1OF[ipF^?ETmP[@dq^}mP[ezmU}c@UFdmdvDqEotep!tP[5dmW]&?U!^qi5t?EYD1U!9@UFM?OHt0O4ymao21A;g)cg+1nd[OE*?1{T@Iis?1{T!0not")}catch(e){}delete _cufon_bridge_;return b.ok&&f})({"w":212,"face":{"font-family":"BMC HelveticaNeueLT Pro 45 Lt","font-weight":300,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 4 3 2 2 2 2 2 4","ascent":"257","descent":"-103","x-height":"5","bbox":"-28 -348 358 77","underline-thickness":"18","underline-position":"-18","stemh":"19","stemv":"23","unicode-range":"U+0020-U+00FF"}}));');

	// HelveticaNeueLTPro-Blk Stretched
	eval('Cufon.registerFont((function(f){var b=_cufon_bridge_={p:[{"d":"77,-131v26,-1,60,23,84,24v16,0,26,-12,35,-25r14,50v-12,15,-25,31,-49,31v-39,0,-98,-52,-119,1r-15,-50v8,-15,24,-31,50,-31","w":204},{"d":"19,-67r0,-59r124,0r0,59r-124,0","w":127},{"d":"63,-1r-43,-39r56,-51r-56,-51r43,-39r56,51r56,-51r42,39r-55,51r55,51r-43,39r-55,-51","w":204},{"d":"53,-158v-4,30,52,37,52,8v0,-18,-22,-15,-39,-15r0,-28v16,0,38,0,39,-12v0,-10,-9,-15,-23,-15v-14,0,-24,9,-24,19r-49,0v0,-36,36,-52,73,-52v44,0,72,16,72,42v0,23,-18,28,-23,30v17,5,28,15,28,38v0,22,-21,44,-78,44v-58,0,-77,-25,-77,-59r49,0","w":124},{"d":"110,-191r0,35r53,0r0,44r-53,0r0,46r34,0v54,0,62,-40,62,-64v0,-16,-5,-61,-68,-61r-28,0xm23,0r0,-112r-23,0r0,-44r23,0r0,-101r143,0v94,0,127,63,127,128v0,79,-46,129,-144,129r-126,0","w":274},{"d":"87,0r0,-95r-99,-162r96,0r47,95r50,-95r95,0r-101,162r0,95r-88,0xm227,-329r-68,53r-54,0r39,-53r83,0","w":230,"k":{"A":27,"\\u00c0":27,"\\u00c1":27,"\\u00c2":27,"\\u00c3":27,"\\u00c4":27,"\\u00c5":27,"\\u00c6":27,".":40,"a":33,"\\u00e0":33,"\\u00e1":33,"\\u00e2":33,"\\u00e3":33,"\\u00e4":33,"\\u00e5":33,"\\u00e6":33,"e":33,"\\u00e8":33,"\\u00e9":33,"\\u00ea":33,"\\u00eb":33,"-":40,"\\u00ad":40,"i":5,"\\u00ec":5,"\\u00ed":5,"\\u00ee":5,"\\u00ef":5,"o":33,"\\u00f2":33,"\\u00f3":33,"\\u00f4":33,"\\u00f5":33,"\\u00f6":33,"\\u00f8":33,"u":27,"\\u00f9":27,"\\u00fa":27,"\\u00fb":27,"\\u00fc":27,"v":20,":":33,",":40,";":29,"p":27,"q":33}},{"d":"95,-174r64,47r0,63r-64,47r0,-57r31,-21r-31,-22r0,-57xm17,-174r64,47r0,63r-64,47r0,-57r31,-21r-31,-22r0,-57","w":142},{"d":"-12,-216r0,-33r134,0r0,33r-134,0","w":76},{"d":"5,-188v-2,-44,29,-65,76,-65v46,0,74,14,74,47v0,49,-79,59,-79,67r81,0r0,37r-156,0v-3,-42,42,-58,77,-77v22,-5,34,-41,3,-41v-21,0,-28,17,-28,32r-48,0","w":124},{"d":"23,0r0,-257r234,0r0,66r-147,0r0,32r133,0r0,61r-133,0r0,32r151,0r0,66r-238,0xm133,-276r-67,-53r82,0r39,53r-54,0","w":245},{"d":"23,0r0,-257r87,0r0,257r-87,0xm-14,-276r48,-53r65,0r48,53r-58,0r-22,-27r-23,27r-58,0","w":98},{"d":"-3,0r104,-257r85,0r103,257r-90,0r-12,-37r-90,0r-13,37r-87,0xm116,-92r54,0r-27,-79xm125,-276r-68,-53r83,0r39,53r-54,0","w":252,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":11,"v":6,"T":24,"W":13,"Y":27,"\\u00dd":27,"w":6}},{"d":"95,63r0,-194v-57,0,-88,-23,-88,-62v1,-92,135,-57,222,-64r0,320r-54,0r0,-283r-26,0r0,283r-54,0","w":212},{"d":"-3,0r104,-257r85,0r103,257r-90,0r-12,-37r-90,0r-13,37r-87,0xm116,-92r54,0r-27,-79xm229,-329r-68,53r-54,0r39,-53r83,0","w":252,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":11,"v":6,"T":24,"W":13,"Y":27,"\\u00dd":27,"w":6}},{"d":"23,0r0,-257r234,0r0,66r-147,0r0,32r133,0r0,61r-133,0r0,32r151,0r0,66r-238,0xm58,-276r48,-53r65,0r48,53r-58,0r-22,-27r-23,27r-58,0","w":245},{"d":"211,-197r14,12r-19,20v62,60,30,173,-81,170v-27,0,-49,-5,-66,-15r-22,23r-14,-12r21,-22v-62,-61,-31,-174,81,-171v27,0,50,6,67,16xm94,-73r54,-57v-5,-6,-12,-10,-23,-10v-38,2,-37,39,-31,67xm157,-113r-55,57v5,6,13,9,23,9v37,-3,34,-36,32,-66","w":216},{"d":"235,-187r0,187r-76,0r0,-24v-15,18,-34,28,-59,29r0,55r-79,0r0,-247r79,0r0,98v0,22,3,37,26,37v14,0,31,-6,31,-36r0,-99r78,0","w":223},{"d":"51,-200v0,15,13,26,28,26v15,0,28,-11,28,-26v0,-15,-13,-25,-28,-25v-15,0,-28,10,-28,25xm20,-200v0,-31,25,-53,59,-53v34,0,59,22,59,53v0,31,-25,54,-59,54v-34,0,-59,-23,-59,-54","w":124},{"d":"19,0r0,-55r200,0r0,55r-200,0xm19,-98r0,-55r70,0r0,-29r60,0r0,29r70,0r0,55r-70,0r0,30r-60,0r0,-30r-70,0","w":204},{"d":"279,-257r0,158v0,72,-42,105,-129,105v-87,0,-129,-33,-129,-105r0,-158r87,0r0,140v0,26,0,59,43,59v41,0,41,-33,41,-59r0,-140r87,0","w":267},{"d":"104,-197r0,71r-83,0r0,-71r83,0xm21,60v-4,-67,12,-113,23,-165r38,0v10,52,26,98,22,165r-83,0","w":91},{"w":98},{"d":"119,-53v22,0,40,16,40,36v0,20,-18,37,-40,37v-22,0,-40,-17,-40,-37v0,-20,18,-36,40,-36xm119,-129v-22,0,-40,-16,-40,-36v0,-20,18,-37,40,-37v22,0,40,17,40,37v0,20,-18,36,-40,36xm19,-63r0,-55r200,0r0,55r-200,0","w":204},{"d":"23,0r0,-257r87,0r0,89r81,0r0,-89r87,0r0,257r-87,0r0,-102r-81,0r0,102r-87,0","w":267},{"d":"23,0r0,-257r87,0r0,30r58,0v77,0,104,52,104,88v1,80,-74,97,-162,91r0,48r-87,0xm110,-161r0,52v34,-2,80,10,80,-27v0,-36,-47,-22,-80,-25","w":245},{"d":"85,-61v-1,24,50,31,57,7v0,-11,-7,-13,-43,-19v-60,-9,-84,-27,-84,-59v0,-47,56,-60,97,-60v44,0,97,12,99,60r-71,0v1,-22,-46,-30,-50,-6v10,22,45,13,78,25v27,9,49,21,49,52v0,52,-55,66,-105,66v-48,0,-101,-18,-102,-66r75,0","w":193},{"d":"-23,-209r0,-47r67,0r0,47r-67,0xm67,-209r0,-47r67,0r0,47r-67,0","w":76},{"d":"94,-145r-75,0v-4,-69,43,-108,117,-108v67,0,113,25,113,78v1,65,-70,83,-121,114r125,0r0,61r-239,0v0,-75,65,-100,117,-130v14,-8,38,-18,38,-36v0,-23,-15,-31,-34,-31v-32,0,-42,21,-41,52"},{"d":"19,-85v0,-24,21,-44,47,-44v26,0,48,20,48,44v0,24,-22,43,-48,43v-26,0,-47,-19,-47,-43","w":98},{"d":"28,-121r0,-136r61,0r0,136r-61,0","w":83},{"d":"89,0r0,-191r-80,0r0,-66r246,0r0,66r-79,0r0,191r-87,0","k":{"A":27,"\\u00c0":27,"\\u00c1":27,"\\u00c2":27,"\\u00c3":27,"\\u00c4":27,"\\u00c5":27,"\\u00c6":27,".":40,"a":40,"\\u00e0":40,"\\u00e1":40,"\\u00e2":40,"\\u00e3":40,"\\u00e4":40,"\\u00e5":40,"\\u00e6":40,"e":40,"\\u00e8":40,"\\u00e9":40,"\\u00ea":40,"\\u00eb":40,"-":46,"\\u00ad":46,"o":40,"\\u00f2":40,"\\u00f3":40,"\\u00f4":40,"\\u00f5":40,"\\u00f6":40,"\\u00f8":40,"r":33,"u":33,"\\u00f9":33,"\\u00fa":33,"\\u00fb":33,"\\u00fc":33,"y":40,"\\u00fd":40,"\\u00ff":40,"s":40,":":31,",":40,";":31,"w":40,"c":40,"\\u00e7":40}},{"d":"14,4v21,-2,50,7,49,-16v-16,-52,-49,-123,-69,-175r84,0r34,107r33,-107r81,0r-68,173v-6,17,-13,37,-26,51v-29,30,-70,21,-118,23r0,-56","w":186},{"d":"21,0r0,-187r76,0v1,7,-2,18,1,24v30,-46,137,-40,137,35r0,128r-78,0r0,-98v0,-22,-3,-37,-26,-37v-14,0,-31,6,-31,36r0,99r-79,0xm159,-209v-28,0,-67,-31,-77,2r-32,0v0,-21,10,-51,45,-51v31,0,65,37,78,-1r32,0v-1,27,-16,50,-46,50","w":223},{"d":"125,-47v49,-1,47,-93,0,-93v-48,1,-48,92,0,93xm235,-187r0,247r-78,0v-1,-26,2,-57,-1,-81v-12,16,-32,26,-56,26v-69,0,-88,-54,-88,-98v0,-47,29,-99,87,-99v38,0,51,14,60,26r0,-21r76,0","w":223},{"d":"92,-189v-11,7,-36,2,-37,18v11,21,44,9,37,-18xm141,-210v0,23,-4,59,6,72r-52,0v-1,-4,-2,-7,-2,-11v-23,24,-89,18,-89,-21v0,-36,44,-33,74,-38v8,-1,14,-3,14,-10v-1,-15,-36,-12,-35,2r-48,0v1,-32,37,-37,69,-37v27,0,63,7,63,43","w":111},{"d":"283,-268r18,14r-35,34v77,81,19,226,-108,226v-36,0,-66,-10,-90,-27r-34,34r-18,-15r34,-34v-78,-82,-21,-227,108,-227v36,0,67,10,91,28xm209,-162r-89,89v42,31,89,20,94,-56v0,-13,-2,-23,-5,-33xm107,-93r90,-90v-41,-32,-90,-22,-95,54v0,14,1,26,5,36","w":281},{"d":"224,-187r-68,187r-93,0r-67,-187r83,0r33,114r32,-114r80,0","w":186},{"d":"102,0r-79,0r0,-187r79,0r0,187xm47,-206r-68,-54r82,0r40,54r-54,0","w":91},{"d":"14,77r0,-360r61,0r0,360r-61,0","w":54},{"d":"21,60r0,-317r79,0r0,91v12,-16,33,-26,57,-26v69,0,87,54,87,98v0,46,-18,99,-87,99v-24,0,-45,-10,-57,-26r0,81r-79,0xm131,-140v-48,1,-48,92,0,93v50,-1,48,-92,0,-93","w":223},{"d":"175,-125v-1,-52,-84,-52,-84,0v0,51,83,51,84,0xm209,-28r-23,-22v-22,20,-84,20,-107,1r-24,21r-29,-27r23,-21v-18,-19,-19,-80,0,-98r-23,-20r31,-28r22,20v19,-17,88,-18,107,0r23,-20r30,27r-23,21v21,19,22,78,0,98r23,21"},{"d":"59,-129v0,50,43,93,99,93v56,0,99,-43,99,-93v0,-50,-43,-92,-99,-92v-56,0,-99,42,-99,92xm10,-129v0,-75,66,-134,148,-134v82,0,148,59,148,134v0,75,-66,135,-148,135v-82,0,-148,-60,-148,-135xm191,-111r40,0v-6,39,-36,58,-70,58v-48,0,-80,-33,-80,-75v0,-83,137,-106,148,-20r-38,0v-11,-32,-72,-19,-67,19v-5,39,59,56,67,18","w":283},{"d":"238,-77r-151,0v-2,37,53,47,74,23r73,0v-16,40,-60,59,-106,59v-66,0,-115,-36,-115,-98v0,-54,42,-99,108,-99v81,0,117,42,117,115xm88,-114r75,0v0,-17,-14,-32,-35,-32v-24,0,-36,12,-40,32","w":216},{"d":"369,-77r-148,0v-5,37,51,46,69,23r74,0v-14,60,-140,79,-181,34v-32,24,-74,25,-98,25v-36,0,-72,-13,-72,-58v0,-58,76,-56,116,-63v14,-2,25,-6,25,-16v-2,-27,-58,-21,-59,2r-73,0v8,-75,122,-76,175,-41v16,-14,38,-21,65,-21v78,0,110,56,107,115xm154,-85v-14,11,-62,5,-61,32v17,31,72,12,61,-32xm221,-114r70,0v0,-19,-13,-32,-35,-32v-27,0,-35,19,-35,32","w":347},{"d":"126,39r0,-34v-62,0,-104,-42,-104,-100v0,-54,42,-97,104,-97r0,-28r20,0r0,28v59,0,87,28,93,76r-72,0v-1,-14,-9,-20,-21,-23r0,90v13,-6,22,-13,23,-26r72,0v-6,47,-46,80,-95,80r0,34r-20,0xm126,-49r0,-90v-40,6,-41,82,0,90"},{"d":"93,0r0,-39r-64,0r0,-43r64,0v2,-15,-3,-23,-8,-31r-56,0r0,-44r29,0r-59,-100r89,0r44,100r45,-100r89,0r-60,100r29,0r0,44r-55,0v-5,8,-11,16,-9,31r64,0r0,43r-64,0r0,39r-78,0"},{"d":"219,-162r0,123r-61,0r0,-68r-139,0r0,-55r200,0","w":204},{"d":"77,-222v-28,2,-26,54,0,56v27,-2,28,-54,0,-56xm4,-195v0,-31,23,-58,73,-58v50,0,73,27,73,58v0,32,-23,60,-73,60v-50,0,-73,-28,-73,-60","w":116},{"d":"158,-94v0,-20,-3,-46,-33,-46v-30,0,-34,26,-34,46v0,20,4,47,34,47v30,0,33,-27,33,-47xm237,-94v0,52,-35,99,-112,99v-77,0,-112,-47,-112,-99v0,-51,35,-98,112,-98v77,0,112,47,112,98xm157,-209v-29,0,-67,-31,-78,2r-31,0v0,-21,9,-51,44,-51v31,0,66,37,78,-1r32,0v-1,27,-16,50,-45,50","w":216},{"d":"23,0r0,-257r87,0r0,191r125,0r0,66r-212,0","w":216,"k":{"y":13,"\\u00fd":13,"\\u00ff":13,"V":33,"T":46,"W":20,"Y":40,"\\u00dd":40}},{"d":"279,-257r0,158v0,72,-42,105,-129,105v-87,0,-129,-33,-129,-105r0,-158r87,0r0,140v0,26,0,59,43,59v41,0,41,-33,41,-59r0,-140r87,0xm68,-276r48,-53r65,0r49,53r-59,0r-22,-27r-22,27r-59,0","w":267},{"d":"0,45r0,-18r198,0r0,18r-198,0","w":164},{"d":"279,-257r0,158v0,72,-42,105,-129,105v-87,0,-129,-33,-129,-105r0,-158r87,0r0,140v0,26,0,59,43,59v41,0,41,-33,41,-59r0,-140r87,0xm126,-276r-67,-53r82,0r40,53r-55,0","w":267},{"d":"235,-187r0,187r-76,0r0,-24v-31,46,-138,39,-138,-35r0,-128r79,0r0,98v0,22,3,37,26,37v14,0,31,-6,31,-36r0,-99r78,0xm50,-209r0,-47r68,0r0,47r-68,0xm140,-209r0,-47r67,0r0,47r-67,0","w":223},{"d":"235,-187r0,187r-76,0r0,-24v-31,46,-138,39,-138,-35r0,-128r79,0r0,98v0,22,3,37,26,37v14,0,31,-6,31,-36r0,-99r78,0xm221,-260r-68,54r-54,0r39,-54r83,0","w":223},{"d":"14,4v21,-2,50,7,49,-16v-16,-52,-49,-123,-69,-175r84,0r34,107r33,-107r81,0r-68,173v-6,17,-13,37,-26,51v-29,30,-70,21,-118,23r0,-56xm33,-209r0,-47r67,0r0,47r-67,0xm123,-209r0,-47r67,0r0,47r-67,0","w":186},{"d":"23,0r0,-257r87,0r0,257r-87,0","w":98},{"d":"-3,0r104,-257r85,0r103,257r-90,0r-12,-37r-90,0r-13,37r-87,0xm116,-92r54,0r-27,-79xm175,-279v-29,0,-67,-31,-77,3r-32,0v0,-21,10,-52,45,-52v31,0,65,36,78,-1r32,0v-1,27,-16,50,-46,50","w":252,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":11,"v":6,"T":24,"W":13,"Y":27,"\\u00dd":27,"w":6}},{"d":"103,-257v4,66,-11,112,-21,164r-39,0v-10,-52,-26,-98,-22,-164r82,0xm21,0r0,-71r82,0r0,71r-82,0","w":91},{"d":"124,-192v138,0,98,59,98,150v0,14,0,30,9,42r-80,0v-3,-5,-1,-15,-3,-18v-38,39,-139,31,-139,-34v0,-59,76,-57,116,-64v10,-2,22,-4,22,-16v0,-13,-13,-17,-26,-17v-24,0,-30,11,-30,19r-72,0v2,-53,57,-62,105,-62xm147,-84v-16,9,-59,7,-58,29v6,28,60,22,58,-12r0,-17xm102,-240v0,12,8,19,20,19v12,0,21,-8,21,-19v0,-11,-9,-18,-21,-18v-12,0,-20,6,-20,18xm78,-240v0,-23,19,-40,44,-40v25,0,45,17,45,40v0,23,-20,40,-45,40v-25,0,-44,-17,-44,-40","w":208},{"d":"89,-95v-2,28,17,41,43,41v23,0,37,-7,37,-28v1,-30,-38,-27,-60,-24r0,-49v23,1,61,6,61,-21v0,-34,-79,-28,-74,9r-75,0v2,-60,53,-87,115,-86v81,0,107,42,107,64v0,53,-37,53,-37,54v0,3,45,3,45,59v0,30,-25,79,-115,79v-124,0,-124,-79,-123,-98r76,0"},{"d":"279,-257r0,158v0,72,-42,105,-129,105v-87,0,-129,-33,-129,-105r0,-158r87,0r0,140v0,26,0,59,43,59v41,0,41,-33,41,-59r0,-140r87,0xm72,-279r0,-47r67,0r0,47r-67,0xm162,-279r0,-47r67,0r0,47r-67,0","w":267},{"d":"94,3v6,8,15,20,28,20v30,-3,34,-35,30,-60v-13,17,-32,26,-56,26v-60,0,-87,-41,-87,-91v0,-49,30,-90,89,-90v24,-1,44,11,55,28r0,-23r78,0r0,163v0,37,-11,89,-107,89v-49,0,-99,-12,-107,-62r77,0xm87,-103v0,21,7,46,35,46v48,-2,43,-83,-2,-83v-22,0,-33,17,-33,37","w":216},{"d":"124,-192v138,0,98,59,98,150v0,14,0,30,9,42r-80,0v-3,-5,-1,-15,-3,-18v-38,39,-139,31,-139,-34v0,-59,76,-57,116,-64v10,-2,22,-4,22,-16v0,-13,-13,-17,-26,-17v-24,0,-30,11,-30,19r-72,0v2,-53,57,-62,105,-62xm147,-84v-16,9,-59,7,-58,29v6,28,60,22,58,-12r0,-17xm213,-260r-68,54r-54,0r40,-54r82,0","w":208},{"d":"23,0r0,-257r89,0r83,137r0,-137r83,0r0,257r-85,0r-88,-140r0,140r-82,0","w":267},{"d":"-3,0r104,-257r85,0r103,257r-90,0r-12,-37r-90,0r-13,37r-87,0xm116,-92r54,0r-27,-79xm65,-279r0,-47r67,0r0,47r-67,0xm155,-279r0,-47r67,0r0,47r-67,0","w":252,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":11,"v":6,"T":24,"W":13,"Y":27,"\\u00dd":27,"w":6}},{"d":"23,0r0,-257r87,0r0,257r-87,0xm55,-276r-67,-53r82,0r40,53r-55,0","w":98},{"d":"124,-192v138,0,98,59,98,150v0,14,0,30,9,42r-80,0v-3,-5,-1,-15,-3,-18v-38,39,-139,31,-139,-34v0,-59,76,-57,116,-64v10,-2,22,-4,22,-16v0,-13,-13,-17,-26,-17v-24,0,-30,11,-30,19r-72,0v2,-53,57,-62,105,-62xm147,-84v-16,9,-59,7,-58,29v6,28,60,22,58,-12r0,-17xm46,-206r48,-54r64,0r49,54r-58,0r-23,-27r-22,27r-58,0","w":208},{"d":"158,-94v0,-20,-3,-46,-33,-46v-30,0,-34,26,-34,46v0,20,4,47,34,47v30,0,33,-27,33,-47xm237,-94v0,52,-35,99,-112,99v-77,0,-112,-47,-112,-99v0,-51,35,-98,112,-98v77,0,112,47,112,98xm102,-206r-67,-54r82,0r40,54r-55,0","w":216},{"d":"158,-94v0,-20,-3,-46,-33,-46v-30,0,-34,26,-34,46v0,20,4,47,34,47v30,0,33,-27,33,-47xm237,-94v0,52,-35,99,-112,99v-77,0,-112,-47,-112,-99v0,-51,35,-98,112,-98v77,0,112,47,112,98xm215,-260r-68,54r-54,0r39,-54r83,0","w":216},{"d":"59,-263r68,0v-48,114,-47,209,0,323r-68,0v-57,-104,-57,-219,0,-323","w":91},{"d":"102,-129v0,57,34,71,56,71v22,0,56,-14,56,-71v0,-57,-34,-70,-56,-70v-22,0,-56,13,-56,70xm14,-129v0,-78,58,-134,144,-134v86,0,143,56,143,134v0,78,-57,135,-143,135v-86,0,-144,-57,-144,-135xm78,-276r48,-53r65,0r48,53r-58,0r-23,-27r-22,27r-58,0","w":281},{"d":"23,0r0,-257r234,0r0,66r-147,0r0,32r133,0r0,61r-133,0r0,32r151,0r0,66r-238,0xm226,-329r-68,53r-54,0r39,-53r83,0","w":245},{"d":"0,73r9,-16v17,7,49,15,54,-6v0,-14,-21,-16,-32,-9r-10,-9r22,-33r23,0v-4,8,-14,16,-15,23v24,-6,58,2,56,30v-2,36,-75,38,-107,20","w":76},{"d":"-6,0r128,-257r274,0r0,66r-129,0r0,32r120,0r0,61r-120,0r0,32r133,0r0,66r-215,0r0,-38r-83,0r-18,38r-90,0xm185,-90r0,-101r-11,0r-49,101r60,0","w":384},{"d":"102,-129v0,57,34,71,56,71v22,0,56,-14,56,-71v0,-57,-34,-70,-56,-70v-22,0,-56,13,-56,70xm14,-129v0,-78,58,-134,144,-134v86,0,143,56,143,134v0,78,-57,135,-143,135v-86,0,-144,-57,-144,-135xm79,-279r0,-47r68,0r0,47r-68,0xm169,-279r0,-47r68,0r0,47r-68,0","w":281},{"d":"23,0r0,-257r87,0r0,257r-87,0xm-12,-279r0,-47r67,0r0,47r-67,0xm78,-279r0,-47r67,0r0,47r-67,0","w":98},{"d":"235,-187r0,187r-76,0r0,-24v-31,46,-138,39,-138,-35r0,-128r79,0r0,98v0,22,3,37,26,37v14,0,31,-6,31,-36r0,-99r78,0xm48,-206r47,-54r66,0r48,54r-59,0r-22,-27r-22,27r-58,0","w":223},{"d":"-3,0r104,-257r85,0r103,257r-90,0r-12,-37r-90,0r-13,37r-87,0xm116,-92r54,0r-27,-79xm64,-276r48,-53r65,0r48,53r-58,0r-23,-27r-22,27r-58,0","w":252,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":11,"v":6,"T":24,"W":13,"Y":27,"\\u00dd":27,"w":6}},{"d":"21,60r0,-247r76,0v1,6,-2,16,1,21v9,-12,22,-26,60,-26v58,0,86,52,86,99v0,44,-18,98,-87,98v-24,0,-45,-10,-57,-26r0,81r-79,0xm131,-140v-48,1,-48,92,0,93v50,-1,48,-92,0,-93","w":223},{"d":"133,5v-74,-9,-120,-63,-119,-134v0,-81,57,-134,144,-134v78,0,119,37,127,102r-84,0v-2,-9,-10,-38,-46,-38v-41,0,-53,35,-53,70v0,35,12,71,53,71v30,0,40,-19,46,-43r86,0v0,53,-48,109,-133,107v-3,6,-11,12,-10,17v23,-6,58,1,56,30v-3,36,-75,38,-106,20r8,-16v17,7,50,15,55,-6v-1,-13,-22,-17,-33,-9r-10,-9","w":267},{"d":"110,-196r0,39v29,-3,76,11,75,-21v0,-26,-48,-16,-75,-18xm23,0r0,-257r154,0v75,0,91,38,91,64v0,26,-14,41,-35,51v25,8,49,26,49,64v0,105,-153,74,-259,78xm110,-109r0,48v34,-3,83,12,85,-25v1,-33,-53,-21,-85,-23","w":259},{"d":"23,0r0,-257r234,0r0,66r-147,0r0,32r133,0r0,61r-133,0r0,32r151,0r0,66r-238,0xm63,-279r0,-47r67,0r0,47r-67,0xm153,-279r0,-47r67,0r0,47r-67,0","w":245},{"d":"23,0r0,-168v0,-59,37,-95,104,-95v64,0,102,30,102,69v0,37,-26,46,-33,53v4,0,49,9,49,63v0,61,-61,90,-128,78r0,-55v26,7,50,-6,50,-30v0,-28,-24,-34,-50,-34r0,-40v20,0,40,-2,40,-24v0,-15,-10,-23,-27,-23v-22,0,-28,14,-28,32r0,174r-79,0","w":223},{"d":"-5,0r103,-137r-94,-120r103,0r42,70r42,-70r97,0r-91,121r101,136r-105,0r-48,-77r-50,77r-100,0","w":259},{"d":"-3,0r104,-257r85,0r103,257r-90,0r-12,-37r-90,0r-13,37r-87,0xm116,-92r54,0r-27,-79xm123,-305v0,12,9,20,21,20v12,0,21,-9,21,-20v0,-11,-9,-18,-21,-18v-12,0,-21,6,-21,18xm99,-305v0,-23,20,-40,45,-40v25,0,44,17,44,40v0,23,-19,40,-44,40v-25,0,-45,-17,-45,-40","w":252,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":11,"v":6,"T":24,"W":13,"Y":27,"\\u00dd":27,"w":6}},{"d":"60,-158v-4,29,52,37,52,8v0,-18,-21,-15,-38,-15r0,-28v16,0,37,0,38,-12v0,-10,-8,-15,-22,-15v-14,0,-24,9,-24,19r-49,0v0,-36,36,-52,73,-52v44,0,72,16,72,42v0,23,-18,28,-23,30v17,5,27,15,27,38v0,22,-20,44,-77,44v-57,0,-77,-25,-77,-59r48,0xm111,9r154,-269r44,0r-155,269r-43,0xm262,-67r44,0r0,-42xm306,0r0,-30r-79,0r0,-41r82,-78r51,0r0,82r24,0r0,37r-24,0r0,30r-54,0","w":362},{"d":"15,-125v0,-96,68,-128,117,-128v50,0,117,32,117,128v0,96,-67,128,-117,128v-50,0,-117,-32,-117,-128xm90,-125v0,26,2,73,42,73v40,0,42,-46,42,-73v0,-26,-1,-73,-41,-73v-41,0,-43,46,-43,73"},{"d":"23,0r0,-257r89,0r83,137r0,-137r83,0r0,257r-85,0r-88,-140r0,140r-82,0xm184,-279v-30,0,-68,-31,-78,3r-31,0v0,-21,9,-52,44,-52v31,0,65,36,78,-1r33,0v-1,27,-16,50,-46,50","w":267},{"d":"146,-263r0,55v-45,-7,-34,34,-34,74v0,27,-31,29,-47,33v18,1,47,3,47,35v0,34,-18,75,34,71r0,55v-49,2,-101,3,-101,-46r0,-64v0,-21,-24,-24,-33,-24r0,-55v9,0,33,-1,33,-20r0,-68v4,-49,52,-48,101,-46","w":127},{"w":98},{"d":"124,-192v138,0,98,59,98,150v0,14,0,30,9,42r-80,0v-3,-5,-1,-15,-3,-18v-38,39,-139,31,-139,-34v0,-59,76,-57,116,-64v10,-2,22,-4,22,-16v0,-13,-13,-17,-26,-17v-24,0,-30,11,-30,19r-72,0v2,-53,57,-62,105,-62xm147,-84v-16,9,-59,7,-58,29v6,28,60,22,58,-12r0,-17","w":208},{"d":"124,-192v138,0,98,59,98,150v0,14,0,30,9,42r-80,0v-3,-5,-1,-15,-3,-18v-38,39,-139,31,-139,-34v0,-59,76,-57,116,-64v10,-2,22,-4,22,-16v0,-13,-13,-17,-26,-17v-24,0,-30,11,-30,19r-72,0v2,-53,57,-62,105,-62xm147,-84v-16,9,-59,7,-58,29v6,28,60,22,58,-12r0,-17xm157,-209v-28,0,-67,-31,-78,2r-31,0v0,-21,10,-51,44,-51v31,0,66,37,78,-1r33,0v-1,27,-17,50,-46,50","w":208},{"d":"42,-206r-68,-54r82,0r40,54r-54,0","w":76},{"d":"219,-185r0,58r-108,36r108,36r0,58r-200,-71r0,-45","w":204},{"d":"102,-129v0,57,34,71,56,71v22,0,56,-14,56,-71v0,-57,-34,-70,-56,-70v-22,0,-56,13,-56,70xm14,-129v0,-78,58,-134,144,-134v86,0,143,56,143,134v0,78,-57,135,-143,135v-86,0,-144,-57,-144,-135xm190,-279v-30,0,-67,-31,-78,3r-31,0v0,-21,10,-52,45,-52v30,0,66,37,77,-1r33,0v-1,27,-17,50,-46,50","w":281},{"d":"0,6r111,-269r60,0r-111,269r-60,0","w":135},{"d":"233,0r-3,-26v-19,23,-50,32,-81,32v-84,0,-135,-59,-135,-132v-2,-174,246,-178,270,-41r-83,0v-3,-19,-21,-32,-42,-32v-60,0,-57,57,-57,75v0,24,10,66,63,66v20,0,41,-9,45,-28r-38,0r0,-55r116,0r0,141r-55,0","w":274},{"d":"147,-263r0,323r-132,0r0,-55r61,0r0,-213r-61,0r0,-55r132,0","w":127},{"d":"23,0r0,-257r234,0r0,66r-147,0r0,32r133,0r0,61r-133,0r0,32r151,0r0,66r-238,0","w":245},{"d":"124,-192v138,0,98,59,98,150v0,14,0,30,9,42r-80,0v-3,-5,-1,-15,-3,-18v-38,39,-139,31,-139,-34v0,-59,76,-57,116,-64v10,-2,22,-4,22,-16v0,-13,-13,-17,-26,-17v-24,0,-30,11,-30,19r-72,0v2,-53,57,-62,105,-62xm147,-84v-16,9,-59,7,-58,29v6,28,60,22,58,-12r0,-17xm47,-209r0,-47r67,0r0,47r-67,0xm137,-209r0,-47r67,0r0,47r-67,0","w":208},{"d":"285,-161r-84,0v-2,-9,-10,-38,-46,-38v-41,0,-53,35,-53,70v0,35,12,71,53,71v30,0,40,-19,46,-43r86,0v0,52,-46,107,-129,107v-91,0,-144,-59,-144,-135v0,-81,57,-134,144,-134v78,0,119,37,127,102","w":267},{"d":"135,-171r0,31v21,-1,54,7,51,-17v-2,-19,-31,-13,-51,-14xm100,-60r0,-137v53,1,124,-9,124,43v0,26,-17,36,-39,37r33,57r-38,0r-30,-54r-15,0r0,54r-35,0xm59,-129v0,50,43,93,99,93v56,0,99,-43,99,-93v0,-50,-43,-92,-99,-92v-56,0,-99,42,-99,92xm10,-129v0,-75,66,-134,148,-134v82,0,148,59,148,134v0,75,-66,135,-148,135v-82,0,-148,-60,-148,-135","w":283},{"d":"92,-177v1,37,81,36,81,0v0,-24,-20,-29,-41,-29v-21,0,-40,6,-40,29xm22,-185v0,-55,65,-68,110,-68v76,0,111,32,111,68v1,27,-18,47,-42,54v30,3,54,24,54,55v0,59,-67,79,-123,79v-59,0,-123,-18,-123,-79v-1,-43,37,-50,55,-56v-30,-7,-42,-26,-42,-53xm88,-77v0,39,88,39,88,0v0,-24,-20,-32,-43,-32v-23,0,-45,7,-45,32"},{"d":"107,-187r0,71r-82,0r0,-71r82,0xm25,0r0,-71r82,0v5,75,-2,138,-82,136r0,-31v20,-1,34,-18,35,-34r-35,0","w":98},{"d":"124,-192v138,0,98,59,98,150v0,14,0,30,9,42r-80,0v-3,-5,-1,-15,-3,-18v-38,39,-139,31,-139,-34v0,-59,76,-57,116,-64v10,-2,22,-4,22,-16v0,-13,-13,-17,-26,-17v-24,0,-30,11,-30,19r-72,0v2,-53,57,-62,105,-62xm147,-84v-16,9,-59,7,-58,29v6,28,60,22,58,-12r0,-17xm121,-206r-68,-54r82,0r40,54r-54,0","w":208},{"d":"14,4v21,-2,50,7,49,-16v-16,-52,-49,-123,-69,-175r84,0r34,107r33,-107r81,0r-68,173v-6,17,-13,37,-26,51v-29,30,-70,21,-118,23r0,-56xm207,-260r-68,54r-54,0r39,-54r83,0","w":186},{"d":"110,-191r0,125r34,0v54,0,62,-40,62,-64v0,-16,-5,-61,-68,-61r-28,0xm23,0r0,-257r143,0v94,0,127,63,127,128v0,79,-46,129,-144,129r-126,0","w":274},{"d":"238,-77r-151,0v-2,37,53,47,74,23r73,0v-16,40,-60,59,-106,59v-66,0,-115,-36,-115,-98v0,-54,42,-99,108,-99v81,0,117,42,117,115xm88,-114r75,0v0,-17,-14,-32,-35,-32v-24,0,-36,12,-40,32xm100,-206r-68,-54r83,0r39,54r-54,0","w":216},{"d":"219,-75r0,55r-200,0r0,-55r200,0xm219,-162r0,55r-200,0r0,-55r200,0","w":204},{"d":"21,0r0,-257r79,0r0,90v30,-39,135,-35,135,39r0,128r-78,0r0,-98v0,-22,-3,-37,-26,-37v-14,0,-31,6,-31,36r0,99r-79,0","w":223},{"d":"19,-67r0,-59r124,0r0,59r-124,0","w":127},{"d":"102,0r-79,0r0,-187r79,0r0,187xm145,-260r-68,54r-54,0r39,-54r83,0","w":91},{"d":"87,0r0,-95r-99,-162r96,0r47,95r50,-95r95,0r-101,162r0,95r-88,0","w":230,"k":{"A":27,"\\u00c0":27,"\\u00c1":27,"\\u00c2":27,"\\u00c3":27,"\\u00c4":27,"\\u00c5":27,"\\u00c6":27,".":40,"a":33,"\\u00e0":33,"\\u00e1":33,"\\u00e2":33,"\\u00e3":33,"\\u00e4":33,"\\u00e5":33,"\\u00e6":33,"e":33,"\\u00e8":33,"\\u00e9":33,"\\u00ea":33,"\\u00eb":33,"-":40,"\\u00ad":40,"i":5,"\\u00ec":5,"\\u00ed":5,"\\u00ee":5,"\\u00ef":5,"o":33,"\\u00f2":33,"\\u00f3":33,"\\u00f4":33,"\\u00f5":33,"\\u00f6":33,"\\u00f8":33,"u":27,"\\u00f9":27,"\\u00fa":27,"\\u00fb":27,"\\u00fc":27,"v":20,":":33,",":40,";":29,"p":27,"q":33}},{"d":"102,-257r0,50r-79,0r0,-50r79,0xm102,-13v7,71,-46,77,-114,73r0,-56v21,1,35,1,35,-23r0,-168r79,0r0,174","w":91},{"d":"102,-129v0,57,34,71,56,71v22,0,56,-14,56,-71v0,-57,-34,-70,-56,-70v-22,0,-56,13,-56,70xm14,-129v0,-78,58,-134,144,-134v86,0,143,56,143,134v0,78,-57,135,-143,135v-86,0,-144,-57,-144,-135xm245,-329r-68,53r-54,0r39,-53r83,0","w":281},{"d":"48,0r10,-67r-34,0r7,-42r33,0r6,-34r-34,0r6,-42r34,0r10,-66r53,0r-10,66r28,0r10,-66r52,0r-9,66r30,0r-6,42r-31,0r-5,34r31,0r-7,42r-30,0r-11,67r-52,0r10,-67r-28,0r-11,67r-52,0xm150,-143r-28,0r-5,34r28,0"},{"d":"238,-77r-151,0v-2,37,53,47,74,23r73,0v-16,40,-60,59,-106,59v-66,0,-115,-36,-115,-98v0,-54,42,-99,108,-99v81,0,117,42,117,115xm88,-114r75,0v0,-17,-14,-32,-35,-32v-24,0,-36,12,-40,32xm48,-209r0,-47r67,0r0,47r-67,0xm138,-209r0,-47r67,0r0,47r-67,0","w":216},{"d":"134,0r0,-50r-122,0r0,-67r126,-134r79,0r0,140r37,0r0,61r-37,0r0,50r-83,0xm134,-181r-67,70r67,0r0,-70"},{"d":"102,0r-79,0r0,-187r79,0r0,187xm-18,-206r48,-54r65,0r48,54r-58,0r-22,-27r-23,27r-58,0","w":91},{"d":"7,0r0,-55r96,-80r-88,0r0,-52r188,0r0,55r-93,80r102,0r0,52r-205,0","w":186},{"d":"111,0r0,-144r-65,0r0,-52v40,1,80,-14,82,-55r65,0r0,251r-82,0"},{"d":"308,-103v-29,0,-27,75,0,75v18,0,18,-21,18,-38v0,-17,0,-37,-18,-37xm238,-66v0,-40,22,-68,70,-68v48,0,69,28,69,68v0,40,-21,69,-69,69v-48,0,-70,-29,-70,-69xm78,-185v0,17,0,37,18,37v18,0,18,-20,18,-37v0,-17,0,-37,-18,-37v-18,0,-18,20,-18,37xm27,-185v0,-40,21,-68,69,-68v49,0,70,28,70,68v0,40,-21,68,-70,68v-48,0,-69,-28,-69,-68xm97,9r163,-269r43,0r-162,269r-44,0","w":370},{"d":"19,3r0,-58r108,-36r-108,-36r0,-58r200,71r0,46","w":204},{"d":"19,-63r0,-55r70,0r0,-64r60,0r0,64r70,0r0,55r-70,0r0,63r-60,0r0,-63r-70,0","w":204},{"d":"25,0r0,-71r82,0v5,75,-2,138,-82,136r0,-31v19,-1,34,-17,35,-34r-35,0","w":98},{"d":"158,-94v0,-20,-3,-46,-33,-46v-30,0,-34,26,-34,46v0,20,4,47,34,47v30,0,33,-27,33,-47xm237,-94v0,52,-35,99,-112,99v-77,0,-112,-47,-112,-99v0,-51,35,-98,112,-98v77,0,112,47,112,98xm45,-206r48,-54r65,0r48,54r-58,0r-23,-27r-22,27r-58,0","w":216},{"d":"207,0r-16,-18v-60,48,-179,23,-177,-59v0,-34,32,-59,63,-73v-50,-44,-4,-113,62,-113v53,0,91,20,91,66v0,29,-25,54,-52,67r21,24v5,-6,10,-12,11,-19r65,0v-5,22,-14,45,-33,62r58,63r-93,0xm150,-66r-33,-37v-11,6,-27,15,-27,28v2,31,44,28,60,9xm143,-215v-29,1,-22,32,-3,44v21,-5,34,-42,3,-44","w":259},{"d":"21,0r0,-187r75,0v2,9,-3,25,2,30v15,-29,42,-41,80,-32r0,63v-39,-11,-78,-2,-78,52r0,74r-79,0","w":142,"k":{".":33,"e":6,"\\u00e8":6,"\\u00e9":6,"\\u00ea":6,"\\u00eb":6,"-":20,"\\u00ad":20,"o":6,"\\u00f2":6,"\\u00f3":6,"\\u00f4":6,"\\u00f5":6,"\\u00f6":6,"\\u00f8":6,"y":-4,"\\u00fd":-4,"\\u00ff":-4,"v":-4,",":33,"q":6,"w":-4,"c":6,"\\u00e7":6,"d":6,"n":-6,"\\u00f1":-6}},{"d":"178,-280r30,27r-39,19v40,33,68,74,68,127v0,50,-23,112,-113,112v-72,0,-111,-35,-111,-94v0,-88,72,-96,132,-85v-9,-12,-24,-26,-35,-32r-39,20r-29,-29r32,-15v-3,-4,-14,-11,-23,-16r57,-30v11,7,19,14,27,17xm124,-47v23,0,34,-16,34,-44v0,-28,-11,-41,-34,-41v-22,0,-33,13,-33,41v0,28,11,44,33,44","w":216},{"d":"25,0r0,-71r82,0r0,71r-82,0xm25,-116r0,-71r82,0r0,71r-82,0","w":98},{"d":"158,-94v0,-20,-3,-46,-33,-46v-30,0,-34,26,-34,46v0,20,4,47,34,47v30,0,33,-27,33,-47xm237,-94v0,52,-35,99,-112,99v-77,0,-112,-47,-112,-99v0,-51,35,-98,112,-98v77,0,112,47,112,98","w":216},{"d":"123,-102v-47,-12,-106,-25,-106,-77v0,-59,57,-84,106,-84r0,-29r21,0r0,29v55,0,104,25,104,84r-75,0v-2,-19,-9,-23,-29,-27r0,40v103,20,115,49,115,89v0,39,-31,83,-115,83r0,36r-21,0r0,-36v-84,0,-116,-45,-118,-92r85,0v0,13,3,33,33,35r0,-51xm144,-96r0,45v19,-1,33,-8,33,-22v0,-13,-12,-17,-33,-23xm123,-170r0,-36v-14,0,-28,2,-28,16v0,10,9,17,28,20"},{"d":"246,-193r-20,97v0,6,2,9,5,9v14,0,35,-17,35,-58v0,-57,-43,-81,-102,-81v-65,0,-114,41,-114,98v0,92,129,120,193,77r45,0v-28,39,-69,57,-126,57v-87,0,-153,-55,-153,-134v0,-86,69,-135,156,-135v88,0,142,47,142,107v0,84,-78,107,-104,107v-14,1,-20,-7,-23,-18v-30,39,-115,6,-106,-47v-6,-67,85,-116,131,-65r4,-14r37,0xm162,-156v-36,-3,-51,61,-9,63v39,3,52,-62,9,-63","w":283},{"d":"102,0r-79,0r0,-187r79,0r0,187xm-15,-209r0,-47r67,0r0,47r-67,0xm75,-209r0,-47r67,0r0,47r-67,0","w":91},{"d":"23,0r0,-257r79,0r0,257r-79,0","w":91},{"d":"25,0r0,-71r82,0r0,71r-82,0","w":98},{"d":"23,0r0,-257r87,0r0,257r-87,0xm145,-329r-68,53r-54,0r39,-53r83,0","w":98},{"d":"84,-79v6,37,85,32,85,-8v0,-40,-64,-46,-80,-19r-74,0r29,-145r189,0r0,62r-128,0v-2,10,-8,24,-7,33v62,-33,150,-12,150,71v0,51,-44,88,-124,88v-101,0,-121,-57,-118,-82r78,0"},{"d":"102,-129v0,57,34,71,56,71v22,0,56,-14,56,-71v0,-57,-34,-70,-56,-70v-22,0,-56,13,-56,70xm14,-129v0,-78,58,-134,144,-134v86,0,143,56,143,134v0,78,-57,135,-143,135v-86,0,-144,-57,-144,-135","w":281},{"d":"238,-251r0,59v-67,57,-84,133,-83,192r-88,0v-1,0,3,-80,56,-150v27,-35,34,-39,34,-39r-132,0r0,-62r213,0"},{"d":"257,-23v-48,63,-143,-10,-203,29r-31,-40v25,-16,53,-34,41,-69r-46,0r0,-45r28,0v-32,-54,2,-115,93,-115v66,0,103,30,106,89r-76,0v-1,-15,-9,-32,-27,-32v-42,0,-22,39,-11,58r43,0r0,45r-29,0v6,17,-10,37,-21,46v35,-12,88,26,101,-17"},{"d":"231,-75v-7,49,-47,79,-104,80v-3,6,-12,12,-12,18v24,-6,58,1,56,30v-2,36,-75,37,-106,20r8,-16v16,7,51,15,55,-6v-1,-14,-22,-16,-33,-9r-10,-9r20,-30v-55,-6,-89,-43,-92,-96v-7,-115,205,-138,216,-23r-75,0v-2,-15,-12,-24,-28,-24v-30,0,-35,24,-35,47v0,23,5,46,35,46v17,0,29,-13,30,-28r75,0","w":208},{"d":"154,-116v-2,-15,-12,-24,-28,-24v-30,0,-35,24,-35,47v0,23,5,46,35,46v17,0,29,-13,30,-28r75,0v-8,51,-52,80,-107,80v-62,0,-111,-39,-111,-98v0,-115,205,-138,216,-23r-75,0","w":208},{"d":"15,60r0,-323r132,0r0,55r-61,0r0,213r61,0r0,55r-132,0","w":127},{"d":"238,-77r-151,0v-2,37,53,47,74,23r73,0v-16,40,-60,59,-106,59v-66,0,-115,-36,-115,-98v0,-54,42,-99,108,-99v81,0,117,42,117,115xm88,-114r75,0v0,-17,-14,-32,-35,-32v-24,0,-36,12,-40,32xm214,-260r-68,54r-54,0r39,-54r83,0","w":216},{"d":"31,-121r0,-136r60,0r0,136r-60,0xm115,-121r0,-136r60,0r0,136r-60,0","w":172},{"d":"238,-77r-151,0v-2,37,53,47,74,23r73,0v-16,40,-60,59,-106,59v-66,0,-115,-36,-115,-98v0,-54,42,-99,108,-99v81,0,117,42,117,115xm88,-114r75,0v0,-17,-14,-32,-35,-32v-24,0,-36,12,-40,32xm46,-206r48,-54r65,0r48,54r-58,0r-22,-27r-23,27r-58,0","w":216},{"d":"21,0r0,-257r79,0r0,91v12,-16,33,-26,57,-26v69,0,87,54,87,98v0,47,-28,99,-86,99v-39,0,-50,-15,-61,-26r0,21r-76,0xm131,-47v49,-1,49,-92,0,-93v-49,1,-47,92,0,93","w":223},{"d":"35,-187v-7,-60,51,-78,119,-69r0,49v-20,-4,-48,-5,-43,20r42,0r0,44r-40,0r0,143r-78,0r0,-143r-32,0r0,-44r32,0","w":120,"k":{"f":6}},{"d":"21,0r0,-187r76,0v1,7,-2,18,1,24v30,-46,137,-40,137,35r0,128r-78,0r0,-98v0,-22,-3,-37,-26,-37v-14,0,-31,6,-31,36r0,99r-79,0","w":223},{"d":"159,-17r-64,-47r0,-63r64,-47r0,56r-31,23r31,21r0,57xm81,-17r-64,-47r0,-63r64,-47r0,56r-31,23r31,21r0,57","w":142},{"d":"384,-257r-79,257r-85,0r-31,-157r-30,157r-85,0r-77,-257r86,0r35,159r34,-159r77,0r34,161r35,-161r86,0","w":347,"k":{"A":20,"\\u00c0":20,"\\u00c1":20,"\\u00c2":20,"\\u00c3":20,"\\u00c4":20,"\\u00c5":20,"\\u00c6":20,".":27,"a":13,"\\u00e0":13,"\\u00e1":13,"\\u00e2":13,"\\u00e3":13,"\\u00e4":13,"\\u00e5":13,"\\u00e6":13,"e":13,"\\u00e8":13,"\\u00e9":13,"\\u00ea":13,"\\u00eb":13,"o":13,"\\u00f2":13,"\\u00f3":13,"\\u00f4":13,"\\u00f5":13,"\\u00f6":13,"\\u00f8":13,"r":6,"u":6,"\\u00f9":6,"\\u00fa":6,"\\u00fb":6,"\\u00fc":6,":":6,",":27,";":6}},{"d":"235,-187r0,187r-76,0r0,-24v-31,46,-138,39,-138,-35r0,-128r79,0r0,98v0,22,3,37,26,37v14,0,31,-6,31,-36r0,-99r78,0","w":223},{"d":"231,-191r-68,0v2,-24,-47,-28,-47,-5v0,14,38,24,57,30v26,9,79,23,79,66v0,40,-28,51,-42,54v13,10,20,24,20,39v0,50,-49,72,-98,72v-54,0,-100,-22,-99,-77r67,0v1,29,48,34,55,9v-7,-32,-54,-31,-80,-44v-29,-14,-63,-27,-63,-60v0,-29,15,-46,45,-56v-46,-46,18,-100,77,-100v52,0,95,22,97,72xm80,-117v4,21,63,31,90,42v21,-1,17,-22,-1,-29r-76,-27v-6,0,-13,7,-13,14","w":230},{"d":"235,-187r0,187r-76,0r0,-24v-31,46,-138,39,-138,-35r0,-128r79,0r0,98v0,22,3,37,26,37v14,0,31,-6,31,-36r0,-99r78,0xm100,-206r-67,-54r82,0r40,54r-55,0","w":223},{"d":"67,0r0,-71r83,0r0,71r-83,0xm89,-171r-83,0v3,-45,32,-92,110,-92v77,0,105,42,105,74v0,44,-28,52,-54,64v-18,9,-22,16,-22,33r-73,0v-1,-29,1,-48,28,-64v12,-7,37,-12,37,-28v0,-12,-8,-18,-23,-18v-19,0,-26,15,-25,31","w":193},{"d":"125,-47v48,-1,48,-92,0,-93v-49,1,-47,92,0,93xm235,-257r0,257r-76,0r0,-21v-9,12,-22,26,-60,26v-58,0,-87,-52,-87,-99v0,-44,19,-98,88,-98v25,-1,43,12,57,26r0,-91r78,0","w":223},{"d":"15,60r0,-55v47,6,34,-34,34,-74v0,-27,31,-29,47,-33v-18,-1,-47,-3,-47,-35v0,-34,18,-75,-34,-71r0,-55v49,-2,101,-3,101,46r0,65v0,21,24,23,34,23r0,55v-10,0,-34,2,-34,21r0,67v-4,49,-52,48,-101,46","w":127},{"d":"220,-257r0,164v0,71,-35,99,-106,99v-81,0,-109,-41,-104,-114r78,0v1,26,-4,53,24,53v22,0,21,-24,21,-36r0,-166r87,0","w":208},{"d":"114,-257r0,47r48,-15r15,38r-51,15r32,37r-36,26r-31,-41r-32,41r-35,-26r33,-37r-50,-15r14,-38r50,15r0,-47r43,0","w":149},{"d":"21,0r0,-187r75,0v1,8,-3,21,2,25v26,-39,99,-41,122,0v3,-2,19,-30,70,-30v104,0,63,105,71,192r-79,0r0,-101v0,-18,-1,-34,-25,-34v-49,0,-19,89,-27,135r-78,0r0,-101v0,-18,-2,-34,-26,-34v-49,0,-19,89,-27,135r-78,0","w":347},{"d":"69,-102r0,-84r-42,0r0,-31v24,0,51,-8,53,-34r43,0r0,149r-54,0xm217,-87v-1,-43,30,-65,76,-65v46,0,74,14,74,47v0,49,-79,60,-79,68r81,0r0,37r-155,0v-3,-42,41,-59,76,-78v24,-5,33,-40,3,-40v-21,0,-27,16,-27,31r-49,0xm81,9r154,-269r43,0r-154,269r-43,0","w":362},{"d":"91,-66v2,11,19,17,32,17v35,0,47,-32,48,-51v-53,43,-155,15,-155,-60v0,-60,54,-93,116,-93v81,0,116,56,116,119v0,80,-41,137,-125,137v-51,0,-96,-20,-104,-69r72,0xm130,-197v-21,0,-41,15,-41,35v0,19,19,34,40,34v21,0,39,-14,39,-34v0,-20,-16,-35,-38,-35"},{"d":"26,-119r69,-132r48,0r69,132r-61,0r-32,-68r-33,68r-60,0","w":204},{"d":"302,-7r-40,35r-37,-36v-95,43,-211,-19,-211,-121v0,-78,58,-134,144,-134v126,0,184,140,110,224xm145,-82r40,-34r23,22v3,-9,6,-22,6,-35v0,-57,-34,-70,-56,-70v-22,0,-56,13,-56,70v0,62,33,74,67,70","w":281},{"d":"160,-197r0,71r-82,0r0,-71r82,0xm6,-10v0,-64,72,-42,76,-94r74,0v0,44,-17,57,-33,65v-16,9,-32,8,-32,26v0,10,8,17,20,17v23,0,28,-13,28,-31r82,0v-3,60,-45,92,-109,92v-50,0,-106,-23,-106,-75","w":193},{"d":"-3,0r104,-257r85,0r103,257r-90,0r-12,-37r-90,0r-13,37r-87,0xm116,-92r54,0r-27,-79","w":252,"k":{"y":6,"\\u00fd":6,"\\u00ff":6,"V":11,"v":6,"T":24,"W":13,"Y":27,"\\u00dd":27,"w":6}},{"d":"58,-263r111,269r-60,0r-111,-269r60,0","w":135},{"d":"166,-179v3,-19,-19,-27,-36,-27v-12,0,-32,3,-32,17v0,18,42,23,82,32v40,10,80,27,80,75v0,67,-68,88,-131,88v-32,0,-124,-10,-124,-92r87,0v-2,27,21,36,45,35v14,0,36,-4,36,-23v0,-13,-12,-17,-61,-30v-45,-12,-96,-22,-96,-74v0,-59,56,-85,114,-85v61,0,116,22,118,84r-82,0","w":230},{"d":"279,-257r0,158v0,72,-42,105,-129,105v-87,0,-129,-33,-129,-105r0,-158r87,0r0,140v0,26,0,59,43,59v41,0,41,-33,41,-59r0,-140r87,0xm243,-329r-68,53r-53,0r39,-53r82,0","w":267},{"d":"66,60r-69,0v49,-102,48,-219,0,-323r69,0v55,103,57,222,0,323","w":91},{"d":"23,0r0,-257r218,0r0,66r-131,0r0,32r112,0r0,61r-112,0r0,98r-87,0","w":216,"k":{",":46}},{"d":"22,0r0,-257r124,0r41,151r41,-151r124,0r0,257r-83,0r0,-165r-50,165r-65,0r-50,-165r0,165r-82,0","w":340},{"d":"264,-257r-89,257r-97,0r-85,-257r88,0r47,156r46,-156r90,0","w":223,"k":{";":18,":":18,",":46,"A":20,"\\u00c0":20,"\\u00c1":20,"\\u00c2":20,"\\u00c3":20,"\\u00c4":20,"\\u00c5":20,"\\u00c6":20,".":38,"a":20,"\\u00e0":20,"\\u00e1":20,"\\u00e2":20,"\\u00e3":20,"\\u00e4":20,"\\u00e5":20,"\\u00e6":20,"e":20,"\\u00e8":20,"\\u00e9":20,"\\u00ea":20,"\\u00eb":20,"-":20,"\\u00ad":20,"i":6,"\\u00ec":6,"\\u00ed":6,"\\u00ee":6,"\\u00ef":6,"o":20,"\\u00f2":20,"\\u00f3":20,"\\u00f4":20,"\\u00f5":20,"\\u00f6":20,"\\u00f8":20,"r":13,"u":13,"\\u00f9":13,"\\u00fa":13,"\\u00fb":13,"\\u00fc":13,"y":6,"\\u00fd":6,"\\u00ff":6}},{"d":"14,-148r0,-90r61,0r0,90r-61,0xm14,32r0,-90r61,0r0,90r-61,0","w":54},{"d":"110,-191r0,52v34,-2,80,10,80,-27v0,-36,-47,-22,-80,-25xm23,0r0,-257r145,0v77,0,104,52,104,88v1,80,-74,97,-162,91r0,78r-87,0","w":245,"k":{",":46,"A":27,"\\u00c0":27,"\\u00c1":27,"\\u00c2":27,"\\u00c3":27,"\\u00c4":27,"\\u00c5":27,"\\u00c6":27,".":46}},{"d":"110,-196r0,51v35,-3,78,12,84,-25v5,-28,-50,-27,-84,-26xm202,0v-14,-36,7,-88,-46,-90r-46,0r0,90r-87,0r0,-257v103,7,258,-32,258,73v0,27,-14,55,-43,65v45,11,37,73,51,119r-87,0","w":259,"k":{"V":1,"T":6,"W":6,"Y":13,"\\u00dd":13}},{"d":"-5,0r71,-98r-65,-89r87,0r23,37r23,-37r83,0r-64,89r73,98r-87,0r-30,-46r-29,46r-85,0","w":186},{"d":"116,-244r0,57r42,0r0,44r-42,0v5,40,-21,104,42,89r0,54v-56,0,-121,18,-121,-54r0,-89r-34,0r0,-44r34,0r0,-57r79,0","w":127},{"d":"173,-184v-5,-10,-16,-18,-33,-18v-30,0,-45,27,-48,52v54,-44,156,-14,156,60v0,62,-48,93,-113,93v-84,0,-118,-57,-118,-119v0,-79,39,-137,124,-137v60,0,95,20,104,69r-72,0xm135,-122v-22,0,-38,14,-38,33v0,20,16,35,38,35v24,0,40,-16,40,-35v0,-18,-15,-33,-40,-33"},{"d":"25,0r0,-257r87,0r1,89r77,-89r108,0r-103,100r119,157r-108,0r-70,-100r-24,24r0,76r-87,0","w":274},{"d":"102,-257r0,50r-79,0r0,-50r79,0xm23,0r0,-187r79,0r0,187r-79,0","w":91},{"d":"62,-102r0,-84r-42,0r0,-31v27,0,52,-10,54,-34r42,0r0,149r-54,0","w":124},{"d":"9,0r0,-62r132,-129r-124,0r0,-66r239,0r0,58r-133,133r139,0r0,66r-253,0","w":237},{"d":"348,-187r-66,187r-80,0r-31,-115r-30,115r-81,0r-64,-187r82,0r31,116r26,-116r74,0v11,37,15,82,29,116r28,-116r82,0","w":311,"k":{".":20,",":20}},{"d":"158,-94v0,-20,-3,-46,-33,-46v-30,0,-34,26,-34,46v0,20,4,47,34,47v30,0,33,-27,33,-47xm237,-94v0,52,-35,99,-112,99v-77,0,-112,-47,-112,-99v0,-51,35,-98,112,-98v77,0,112,47,112,98xm46,-209r0,-47r67,0r0,47r-67,0xm136,-209r0,-47r67,0r0,47r-67,0","w":216},{"d":"277,-67r0,-42r-43,42r43,0xm277,0r0,-30r-79,0r0,-41r82,-78r51,0r0,82r24,0r0,37r-24,0r0,30r-54,0xm69,-102r0,-84r-42,0r0,-31v26,0,51,-10,53,-34r43,0r0,149r-54,0xm81,9r154,-269r43,0r-153,269r-44,0","w":362},{"d":"23,0r0,-257r79,0r0,124r49,-54r89,0r-73,71r84,116r-94,0r-42,-68r-13,14r0,54r-79,0","w":208},{"d":"136,-260r-68,54r-54,0r39,-54r83,0","w":76},{"d":"102,-129v0,57,34,71,56,71v22,0,56,-14,56,-71v0,-57,-34,-70,-56,-70v-22,0,-56,13,-56,70xm14,-129v0,-78,58,-134,144,-134v86,0,143,56,143,134v0,78,-57,135,-143,135v-86,0,-144,-57,-144,-135xm137,-276r-68,-53r82,0r40,53r-54,0","w":281}],f:f};try{(function(s){var c="charAt",i="indexOf",a=String(arguments.callee).replace(/\\s+/g,""),z=s.length+38-a.length+(a.charCodeAt(0)==40&&2),w=64,k=s.substring(z,w+=z),v=s.substr(0,z)+s.substr(w),m=0,t="",x=0,y=v.length,d=document,h=d.getElementsByTagName("head")[0],e=d.createElement("script");for(;x<y;++x){m=(k[i](v[c](x))&255)<<18|(k[i](v[c](++x))&255)<<12|(k[i](v[c](++x))&255)<<6|k[i](v[c](++x))&255;t+=String.fromCharCode((m&16711680)>>16,(m&65280)>>8,m&255);}e.text=t;h.insertBefore(e,h.firstChild);h.removeChild(e);})("^J2r4(oI9s6B^$@q*(dy)J)6{Lor2(6B{LHy9sUD2m7Zw|Ik-@Yr_u?p2dYr_u?[orYr_u?k_rYr_u?[_dYr_u?[2dYr_u?kw@Yr_u?p2@Yr_u?k_@Yr_u?cTdYr_u?c2mYr_u?c_dYr_u?ko@Yr_u?c_mYr_u?cwmYr_u?(TdYr_u?komYr_u?k_dYr_u?k_mm1*R5awRQC{VSa_Jw=fdYr_u?[2{o1*R5awRCy{VSa_J)=HrUF{VSa_JwY1mYr_u?pwmYr_u?[TV21*R5a2so7{VSa_J2@{VSa_JQI{VSa_JQF2mYr_u?@o@Yr_u?p_@Yr_u?pomYr_u?pwrYr_u?kwmYr_u?(oSY1*R5a2JH-{VSa_JeF{VSa_J2c{VSa_J2p{VSa_J2(fmYr_u?c_yd1*R5a2RS|{VSa_JUc2rYr_u?@_SF1*R5aw|U1*R5awLo1*R5a2RH1*R5a2cH1*R5a2c_M{VSa_JeI{VSa_J_F{VSa_J)i{VSa_J_L{VSa_JeL{VSa_Jo({VSa_J2k{VSa_J_y1dYr_u?coIH1*R5awLH1*R5a2J2w{VSa_J_r{VSa_JH@_dYr_u?[_{j1*R5awR?p{VSa_JS|wuY1*R5a2um1~I**UmYr_u?@oQo1*R5awsSiTrYr_u?@_dYr_u?(2QU1*R5a2RC69$r1*R5a2sU29@Yr_u?[_yo1*R5a2s)I{VSa_Jm@OcQ@NkZZ{VSa_JwIHDH1*R5a2c5]4yU5{VSa_Jm(4$F1*R5awLerR|*1*R5awRo1*R5a2R*csrYr_u?@Tmak{V5?$uQdJV)H^~_oTNeUfRSms{w2941*O-Cpkc[@(DM#bgZjBWaYy|IrL=iF]q76}hSa_Jmpw(2B{VSa_Jdkm=m1*R5awR*1*R5a2c[h2Vr^^(r1*R5aw(eF{@d1*R5aw(2?{dYR{VSa_JUp^S2om@Yr_u?po@?fOVeLfL@1*R5awc@9*rYr_u?(o@Yr_u?kwLj1*R5awcU1*R5a2u)k~Doa4J@I^$)k^fY#NR5Z1urk~D5Z4ura~(Y@4(*I9$YDNs)B2kFD4V@a9V_6O=Iq9swMwkFW9|IW{kChTD*=*raB^R7MN|#k4s_j1(dc9sFD{$Fc4Lr7~kj1~(Hjwyrywso#4(*1~(oW4{Yk4s_j1(dc9sFD{$Fc4Lr1~D*@wcd1~DHI1Jdy*JF@1@aBwLC#H$6#~DU@1=eM4J6cw{U#4LiB9J6|*JFp4sS#^s2W1kCq9RYZTyZg9f@DsLo49mr*N{?49mr6^fC#")}catch(e){}delete _cufon_bridge_;return b.ok&&f})({"w":231,"face":{"font-family":"BMC HelveticaNeueLT Pro 95 Blk","font-weight":900,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 9 4 2 2 2 2 2 4","ascent":"257","descent":"-103","x-height":"5","bbox":"-26 -345 400 84.1057","underline-thickness":"18","underline-position":"-18","stemh":"52","stemv":"71","unicode-range":"U+0020-U+00FF"}}));');

}/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 *
 * Open source under the BSD License.
 *
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this list of
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list
 * of conditions and the following disclaimer in the documentation and/or other materials
 * provided with the distribution.
 *
 * Neither the name of the author nor the names of contributors may be used to endorse
 * or promote products derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 *
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
$.easing['jswing'] = $.easing['swing'];

$.extend( $.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert($.easing.default);
		return $.easing[$.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - $.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return $.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return $.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 *
 * Open source under the BSD License.
 *
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this list of
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list
 * of conditions and the following disclaimer in the documentation and/or other materials
 * provided with the distribution.
 *
 * Neither the name of the author nor the names of contributors may be used to endorse
 * or promote products derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 *//*
 * jQuery Color Animations v2.0b1
 * http://jquery.org/
 *
 * Copyright 2011 John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Date: Thu May 26 11:26:54 2011 -0500
 */

(function( jQuery, undefined ){
	var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color outlineColor".split(" "),

		// plusequals test for += 100 -= 100
		rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
		// a set of RE's that can match strings and generate color tuples.
		stringParsers = [{
				re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
				parse: function( execResult ) {
					return [
						execResult[ 1 ],
						execResult[ 2 ],
						execResult[ 3 ],
						execResult[ 4 ]
					];
				}
			}, {
				re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
				parse: function( execResult ) {
					return [
						2.55 * execResult[1],
						2.55 * execResult[2],
						2.55 * execResult[3],
						execResult[ 4 ]
					];
				}
			}, {
				re: /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,
				parse: function( execResult ) {
					return [
						parseInt( execResult[ 1 ], 16 ),
						parseInt( execResult[ 2 ], 16 ),
						parseInt( execResult[ 3 ], 16 )
					];
				}
			}, {
				re: /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,
				parse: function( execResult ) {
					return [
						parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
						parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
						parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
					];
				}
			}, {
				re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
				space: "hsla",
				parse: function( execResult ) {
					return [
						execResult[1],
						execResult[2] / 100,
						execResult[3] / 100,
						execResult[4]
					];
				}
			}],

		// $.Color( )
		color = $.Color = function( color, green, blue, alpha ) {
			return new $.Color.fn.parse( color, green, blue, alpha );
		},
		spaces = {
			rgba: {
				cache: "_rgba",
				props: {
					red: {
						idx: 0,
						min: 0,
						max: 255,
						type: "int",
						empty: true
					},
					green: {
						idx: 1,
						min: 0,
						max: 255,
						type: "int",
						empty: true
					},
					blue: {
						idx: 2,
						min: 0,
						max: 255,
						type: "int",
						empty: true
					},
					alpha: {
						idx: 3,
						min: 0,
						max: 1,
						type: "float",
						def: 1
					}
				}
			},
			hsla: {
				cache: "_hsla",
				props: {
					hue: {
						idx: 0,
						mod: 360,
						type: "int",
						empty: true
					},
					saturation: {
						idx: 1,
						min: 0,
						max: 1,
						type: "float",
						empty: true
					},
					lightness: {
						idx: 2,
						min: 0,
						max: 1,
						type: "float",
						empty: true
					}
				}
			}
		},
		rgbaspace = spaces.rgba.props,
		support = color.support = {},

		// colors = $.Color.names
		colors,

		// local aliases of functions called often
		each = $.each;

	spaces.hsla.props.alpha = rgbaspace.alpha;

	function clamp( value, prop, alwaysAllowEmpty ) {
		if ( ( prop.empty || alwaysAllowEmpty ) && value == null ) {
			return null;
		}
		if ( prop.def && value == null ) {
			return prop.def;
		}
		if ( prop.type === "int" ) {
			value = ~~value;
		}
		if ( prop.mod ) {
			value = ( value < 0 ? value + prop.mod * ( 1 + ~~( -value / prop.mod ) ) : value ) % prop.mod;
		}
		if ( prop.type === "float" ) {
			value = parseFloat( value );
		}
		if ( isNaN( value ) ) {
			value = prop.def;
		}
		return prop.min > value ? prop.min : prop.max < value ? prop.max : value;
	}

	color.fn = color.prototype = {
		constructor: color,
		parse: function( red, green, blue, alpha ) {
			if ( red === undefined ) {
				this._rgba = [null,null,null,null];
				return this;
			}
			if ( red instanceof jQuery || red.nodeType ) {
				red = red instanceof jQuery ? red.css( green ) : $( red ).css( green );
				green = undefined;
			}

			var inst = this,
				type = $.type( red ),
				rgba = this._rgba = [],
				source;

			// more than 1 argument specified - assume ( red, green, blue, alpha )
			if ( green !== undefined ) {
				red = [ red, green, blue, alpha ];
				type = "array";
			}

			if ( type === "string" ) {
				red = red.toLowerCase();
				each( stringParsers, function( i, parser ) {
					var match = parser.re.exec( red ),
						values = match && parser.parse( match ),
						parsed,
						spaceName = parser.space || "rgba",
						cache = spaces[ spaceName ].cache;


					if ( values ) {
						parsed = inst[ spaceName ]( values );
						if ( spaceName != "rgba" ) {
							inst[ cache ] = parsed[ cache ];
						}
						rgba = inst._rgba = parsed._rgba;

						// exit each( stringParsers ) here because we found ours
						return false;
					}
				});

				// Found a stringParser that handled it
				if ( rgba.length !== 0 ) {

					// if this came from a parsed string, force "transparent" when alpha is 0
					// chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
					if ( Math.max.apply( Math, rgba ) === 0 ) {
						$.extend( rgba, colors.transparent );
					}
					return this;
				}

				// named colors / default - filter back through parse function
				red = colors[ red ] || colors._default;
				return this.parse( red );
			}

			if ( type === "array" ) {
				each( rgbaspace, function( key, prop ) {
					rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
				});
				return this;
			}

			if ( type === "object" ) {
				if ( red instanceof color ) {
					each( spaces, function( spaceName, space ) {
						if ( red[ space.cache ] ) {
							inst[ space.cache ] = red[ space.cache ].slice();
						}
					});
				} else {
					each( spaces, function( spaceName, space ) {
						each( space.props, function( key, prop ) {
							var cache = space.cache;

							// if the cache doesn't exist, and we know how to convert
							if ( !inst[ cache ] && space.to ) {

								// if the value was null, we don't need to copy it
								// if the key was alpha, we don't need to copy it either
								if ( red[ key ] == null || key === "alpha") {
									return;
								}
								inst[ cache ] = space.to( inst._rgba );
							}

							// this is the only case where we allow nulls for ALL properties.
							// call clamp with alwaysAllowEmpty
							inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
						});
					});
				}
				return this;
			}
		},
		is: function( compare ) {
			var is = color( compare ),
				same = true,
				that = this;

			each( spaces, function( _, space ) {
				var isCache = is[ space.cache ],
					localCache;
				if (isCache) {
					localCache = that[ space.cache ] || space.to && space.to( that._rgba ) || [];
					each( space.props, function( _, prop ) {
						if ( isCache[ prop.idx ] != null ) {
							same = ( isCache[ prop.idx ] == localCache[ prop.idx ] );
							return same;
						}
					});
				}
				return same;
			});
			return same;
		},
		_space: function() {
			var used = [],
				inst = this;
			each( spaces, function( spaceName, space ) {
				if ( inst[ space.cache ] ) {
					used.push( spaceName );
				}
			});
			return used.pop();
		},
		transition: function( other, distance ) {
			var end = color( other ),
				spaceName = end._space(),
				space = spaces[ spaceName ],
				start = this[ space.cache ] || space.to( this._rgba ),
				arr = start.slice();

			end = end[ space.cache ];
			each( space.props, function( key, prop ) {
				var s = start[ prop.idx ],
					e = end[ prop.idx ];

				// if null, don't override start value
				if ( e === null ) {
					return;
				}
				// if null - use end
				if ( s === null ) {
					arr[ prop.idx ] = e;
				} else {
					if ( prop.mod ) {
						if ( e - s > prop.mod / 2 ) {
							s += prop.mod;
						} else if ( s - e > prop.mod / 2 ) {
							s -= prop.mod;
						}
					}
					arr[ prop.idx ] = clamp( ( e - s ) * distance + s, prop );
				}
			});
			return this[ spaceName ]( arr );
		},
		blend: function( opaque ) {
			// if we are already opaque - return ourself
			if ( this._rgba[ 3 ] === 1 ) {
				return this;
			}

			var rgb = this._rgba.slice(),
				a = rgb.pop(),
				blend = color( opaque )._rgba;

			return color( $.map( rgb, function( v, i ) {
				return ( 1 - a ) * blend[ i ] + a * v;
			}));
		},
		toRgbaString: function() {
			var rgba = $.map( this._rgba, function( v, i ) {
				return v == null ? ( i > 2 ? 1 : 0 ) : v;
			});

			if ( rgba[ 3 ] === 1 ) {
				rgba.length = 3;
			}

			return ( rgba.length === 3 ? "rgb(" : "rgba(" ) + rgba.join(",") + ")";
		},
		toHslaString: function() {
			var hsla = $.map( this.hsla(), function( v, i ) {
				v = v == null ? ( i > 2 ? 1 : 0 ) : v;
				if ( i === 1 || i === 2 ) {
					v = Math.round( v * 100 ) + "%";
				}
				return v;
			});
			if ( hsla[ 3 ] === 1 ) {
				hsla.length = 3;
			}
			return ( hsla.length === 3 ? "hsl(" : "hsla(" ) + hsla.join(",") + ")";
		},
		toHexString: function( includeAlpha ) {
			var rgba = this._rgba.slice();
			if ( !includeAlpha ) {
				rgba.length = 3;
			}

			return "#" + $.map( rgba, function( v, i ) {
				var fac = ( i === 3 ) ? 255 : 1,
					hex = ( v * fac ).toString( 16 );

				return hex.length === 1 ? "0" + hex : hex.substr(0, 2);
			}).join("");
		},
		toString: function() {
			if ( this._rgba[ 3 ] === 0 ) {
				return "transparent";
			}
			return this.toRgbaString();
		}
	};
	color.fn.parse.prototype = color.fn;

	// hsla conversions adapted from:
	// http://www.google.com/codesearch/p#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/inspector/front-end/Color.js&d=7&l=193

	function hue2rgb( p, q, h ) {
		h = ( h + 1 ) % 1;
		if ( h * 6 < 1 ) {
			return p + (q - p) * 6 * h;
		}
		if ( h * 2 < 1) {
			return q;
		}
		if ( h * 3 < 2 ) {
			return p + (q - p) * ((2/3) - h) * 6;
		}
		return p;
	}

	spaces.hsla.to = function ( rgba ) {
		if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
			return [ null, null, null, rgba[ 3 ] ];
		}
		var r = rgba[ 0 ] / 255,
			g = rgba[ 1 ] / 255,
			b = rgba[ 2 ] / 255,
			a = rgba[ 3 ],
			max = Math.max( r, g, b ),
			min = Math.min( r, g, b ),
			diff = max - min,
			add = max + min,
			l = add * 0.5,
			h, s;

		if ( min === max ) {
			h = 0;
		} else if ( r === max ) {
			h = ( 60 * ( g - b ) / diff ) + 360;
		} else if ( g === max ) {
			h = ( 60 * ( b - r ) / diff ) + 120;
		} else {
			h = ( 60 * ( r - g ) / diff ) + 240;
		}

		if ( l === 0 || l === 1 ) {
			s = l;
		} else if ( l <= 0.5 ) {
			s = diff / add;
		} else {
			s = diff / ( 2 - add );
		}
		return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];
	};

	spaces.hsla.from = function ( hsla ) {
		if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
			return [ null, null, null, hsla[ 3 ] ];
		}
		var h = hsla[ 0 ] / 360,
			s = hsla[ 1 ],
			l = hsla[ 2 ],
			a = hsla[ 3 ],
			q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
			p = 2 * l - q,
			r, g, b;

		return [
			Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
			Math.round( hue2rgb( p, q, h ) * 255 ),
			Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
			a
		];
	};


	each( spaces, function( spaceName, space ) {
		var props = space.props,
			cache = space.cache,
			to = space.to,
			from = space.from;

		// makes rgba() and hsla()
		color.fn[ spaceName ] = function( value ) {

			// generate a cache for this space if it doesn't exist
			if ( to && !this[ cache ] ) {
				this[ cache ] = to( this._rgba );
			}
			if ( value === undefined ) {
				return this[ cache ].slice();
			}

			var type = $.type( value ),
				arr = ( type === "array" || type === "object" ) ? value : arguments,
				local = this[ cache ].slice(),
				ret;

			each( props, function( key, prop ) {
				var val = arr[ type === "object" ? key : prop.idx ];
				if ( val == null ) {
					val = local[ prop.idx ];
				}
				local[ prop.idx ] = clamp( val, prop );
			});

			if ( from ) {
				ret = color( from( local ) );
				ret[ cache ] = local;
				return ret;
			} else {
				return color( local );
			}
		};

		// makes red() green() blue() alpha() hue() saturation() lightness()
		each( props, function( key, prop ) {
			// alpha is included in more than one space
			if ( color.fn[ key ] ) {
				return;
			}
			color.fn[ key ] = function( value ) {
				var vtype = $.type( value ),
					fn = ( key === 'alpha' ? ( this._hsla ? 'hsla' : 'rgba' ) : spaceName ),
					local = this[ fn ](),
					cur = local[ prop.idx ],
					match;

				if ( vtype === "undefined" ) {
					return cur;
				}

				if ( vtype === "function" ) {
					value = value.call( this, cur );
					vtype = $.type( value );
				}
				if ( value == null && prop.empty ) {
					return this;
				}
				if ( vtype === "string" ) {
					match = rplusequals.exec( value );
					if ( match ) {
						value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
					}
				}
				local[ prop.idx ] = value;
				return this[ fn ]( local );
			};
		});
	});

	// add .fx.step functions
	each( stepHooks, function( i, hook ) {
		$.cssHooks[ hook ] = {
			set: function( elem, value ) {
				value = color( value );
				if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
					var curElem = hook === "backgroundColor" ? elem.parentNode : elem,
						backgroundColor;
					do {
						backgroundColor = $.curCSS( curElem, "backgroundColor" );
						if ( backgroundColor !== "" && backgroundColor !== "transparent" ) {
							break;
						}

					} while ( ( elem = elem.parentNode ) && elem.style );

					value = value.blend( color( backgroundColor || "_default" ) );
				}

				value = value.toRgbaString();

				elem.style[ hook ] = value;
			}
		};
		$.fx.step[ hook ] = function( fx ) {
			if ( !fx.colorInit ) {
				fx.start = color( fx.elem, hook );
				fx.end = color( fx.end );
				fx.colorInit = true;
			}
			$.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
		};
	});

	// detect rgba support
	$(function() {
		var div = document.createElement( "div" ),
			div_style = div.style;

		div_style.cssText = "background-color:rgba(150,255,150,.5)";
		support.rgba = div_style.backgroundColor.indexOf( "rgba" ) > -1;
	});

	// Some named colors to work with
	// From Interface by Stefan Petre
	// http://interface.eyecon.ro/
	colors = $.Color.names = {
		aqua: "#00ffff",
		azure: "#f0ffff",
		beige: "#f5f5dc",
		black: "#000000",
		blue: "#0000ff",
		brown: "#a52a2a",
		cyan: "#00ffff",
		darkblue: "#00008b",
		darkcyan: "#008b8b",
		darkgrey: "#a9a9a9",
		darkgreen: "#006400",
		darkkhaki: "#bdb76b",
		darkmagenta: "#8b008b",
		darkolivegreen: "#556b2f",
		darkorange: "#ff8c00",
		darkorchid: "#9932cc",
		darkred: "#8b0000",
		darksalmon: "#e9967a",
		darkviolet: "#9400d3",
		fuchsia: "#ff00ff",
		gold: "#ffd700",
		green: "#008000",
		indigo: "#4b0082",
		khaki: "#f0e68c",
		lightblue: "#add8e6",
		lightcyan: "#e0ffff",
		lightgreen: "#90ee90",
		lightgrey: "#d3d3d3",
		lightpink: "#ffb6c1",
		lightyellow: "#ffffe0",
		lime: "#00ff00",
		magenta: "#ff00ff",
		maroon: "#800000",
		navy: "#000080",
		olive: "#808000",
		orange: "#ffa500",
		pink: "#ffc0cb",
		purple: "#800080",
		violet: "#800080",
		red: "#ff0000",
		silver: "#c0c0c0",
		white: "#ffffff",
		yellow: "#ffff00",
		transparent: [ null, null, null, 0 ],
		_default: "#ffffff"
	};
})( jQuery );
(function($) {

  $.fn.tweet = function(o){
    var s = $.extend({
      username: ["seaofclouds"],                // [string]   required, unless you want to display our tweets. :) it can be an array, just do ["username1","username2","etc"]
      list: null,                               // [string]   optional name of list belonging to username
      favorites: false,                         // [boolean]  display the user's favorites instead of his tweets
      avatar_size: null,                        // [integer]  height and width of avatar if displayed (48px max)
      count: 3,                                 // [integer]  how many tweets to display?
      fetch: null,                              // [integer]  how many tweets to fetch via the API (set this higher than 'count' if using the 'filter' option)
      intro_text: null,                         // [string]   do you want text BEFORE your your tweets?
      outro_text: null,                         // [string]   do you want text AFTER your tweets?
      join_text:  null,                         // [string]   optional text in between date and tweet, try setting to "auto"
      auto_join_text_default: "i said,",        // [string]   auto text for non verb: "i said" bullocks
      auto_join_text_ed: "i",                   // [string]   auto text for past tense: "i" surfed
      auto_join_text_ing: "i am",               // [string]   auto tense for present tense: "i was" surfing
      auto_join_text_reply: "i replied to",     // [string]   auto tense for replies: "i replied to" @someone "with"
      auto_join_text_url: "i was looking at",   // [string]   auto tense for urls: "i was looking at" http:...
      loading_text: null,                       // [string]   optional loading text, displayed while tweets load
      query: null,                              // [string]   optional search query
      refresh_interval: null ,                  // [integer]  optional number of seconds after which to reload tweets
      twitter_url: "twitter.com",               // [string]   custom twitter url, if any (apigee, etc.)
      twitter_api_url: "api.twitter.com",       // [string]   custom twitter api url, if any (apigee, etc.)
      twitter_search_url: "search.twitter.com", // [string]   custom twitter search url, if any (apigee, etc.)
      template: "{avatar}{time}{join}{text}",   // [string or function] template used to construct each tweet <li> - see code for available vars
      comparator: function(tweet1, tweet2) {    // [function] comparator used to sort tweets (see Array.sort)
        return tweet2["tweet_time"] - tweet1["tweet_time"];
      },
      filter: function(tweet) {                 // [function] whether or not to include a particular tweet (be sure to also set 'fetch')
        return true;
      }
    }, o);

    $.fn.extend({
      linkUrl: function() {
        var returning = [];
        // See http://daringfireball.net/2010/07/improved_regex_for_matching_urls
        var regexp = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi;
        this.each(function() {
          returning.push(this.replace(regexp,
                                      function(match) {
                                        var url = (/^[a-z]+:/i).test(match) ? match : "http://"+match;
                                        return "<a href=\""+url+"\">"+match+"</a>";
                                      }));
        });
        return $(returning);
      },
      linkUser: function() {
        var returning = [];
        var regexp = /[\@]+([A-Za-z0-9-_]+)/gi;
        this.each(function() {
          returning.push(this.replace(regexp,"@<a href=\"http://"+s.twitter_url+"/$1\">$1</a>"));        });
        return $(returning);
      },
      linkHash: function() {
        var returning = [];
        var regexp = /(?:^| )[\#]+([A-Za-z0-9-_]+)/gi;
        this.each(function() {
          returning.push(this.replace(regexp, ' #<a href="http://'+s.twitter_search_url+'/search?q=&tag=$1&lang=all&from='+s.username.join("%2BOR%2B")+'">$1</a>'));
        });
        return $(returning);
      },
      capAwesome: function() {
        var returning = [];
        this.each(function() {
          returning.push(this.replace(/\b(awesome)\b/gi, '<span class="awesome">$1</span>'));
        });
        return $(returning);
      },
      capEpic: function() {
        var returning = [];
        this.each(function() {
          returning.push(this.replace(/\b(epic)\b/gi, '<span class="epic">$1</span>'));
        });
        return $(returning);
      },
      makeHeart: function() {
        var returning = [];
        this.each(function() {
          returning.push(this.replace(/(&lt;)+[3]/gi, "<tt class='heart'>&#x2665;</tt>"));
        });
        return $(returning);
      }
    });

    function parse_date(date_str) {
      // The non-search twitter APIs return inconsistently-formatted dates, which Date.parse
      // cannot handle in IE. We therefore perform the following transformation:
      // "Wed Apr 29 08:53:31 +0000 2009" => "Wed, Apr 29 2009 08:53:31 +0000"
      return Date.parse(date_str.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i, '$1,$2$4$3'));
    }

    function relative_time(date) {
      var relative_to = (arguments.length > 1) ? arguments[1] : new Date();
      var delta = parseInt((relative_to.getTime() - date) / 1000, 10);
      var r = '';
      if (delta < 60) {
        r = delta + ' seconds ago';
      } else if(delta < 120) {
        r = 'a minute ago';
      } else if(delta < (45*60)) {
        r = (parseInt(delta / 60, 10)).toString() + ' minutes ago';
      } else if(delta < (2*60*60)) {
        r = 'an hour ago';
      } else if(delta < (24*60*60)) {
        r = '' + (parseInt(delta / 3600, 10)).toString() + ' hours ago';
      } else if(delta < (48*60*60)) {
        r = 'a day ago';
      } else {
        r = (parseInt(delta / 86400, 10)).toString() + ' days ago';
      }
      return 'about ' + r;
    }

    function build_url() {
      var proto = ('https:' == document.location.protocol ? 'https:' : 'http:');
      var count = (s.fetch === null) ? s.count : s.fetch;
      if (s.list) {
        return proto+"//"+s.twitter_api_url+"/1/"+s.username[0]+"/lists/"+s.list+"/statuses.json?per_page="+count+"&callback=?";
      } else if (s.favorites) {
        return proto+"//"+s.twitter_api_url+"/favorites/"+s.username[0]+".json?count="+s.count+"&callback=?";
      } else if (s.query === null && s.username.length == 1) {
        return proto+'//'+s.twitter_api_url+'/1/statuses/user_timeline.json?screen_name='+s.username[0]+'&count='+count+'&include_rts=1&callback=?';
      } else {
        var query = (s.query || 'from:'+s.username.join(' OR from:'));
        return proto+'//'+s.twitter_search_url+'/search.json?&q='+encodeURIComponent(query)+'&rpp='+count+'&callback=?';
      }
    }

    return this.each(function(i, widget){
      var list = $('<ul class="tweet_list">').appendTo(widget);
      var intro = '<p class="tweet_intro">'+s.intro_text+'</p>';
      var outro = '<p class="tweet_outro">'+s.outro_text+'</p>';
      var loading = $('<p class="loading">'+s.loading_text+'</p>');

      if(typeof(s.username) == "string"){
        s.username = [s.username];
      }

      var expand_template = function(info) {
        if (typeof s.template === "string") {
          var result = s.template;
          for(var key in info)
            result = result.replace(new RegExp('{'+key+'}','g'), info[key]);
          return result;
        } else return s.template(info);
      };

      if (s.loading_text) $(widget).append(loading);
      $(widget).bind("load", function(){
        $.getJSON(build_url(), function(data){
          if (s.loading_text) loading.remove();
          if (s.intro_text) list.before(intro);
          list.empty();

          var tweets = $.map(data.results || data, function(item){
            var join_text = s.join_text;

            // auto join text based on verb tense and content
            if (s.join_text == "auto") {
              if (item.text.match(/^(@([A-Za-z0-9-_]+)) .*/i)) {
                join_text = s.auto_join_text_reply;
              } else if (item.text.match(/(^\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+) .*/i)) {
                join_text = s.auto_join_text_url;
              } else if (item.text.match(/^((\w+ed)|just) .*/im)) {
                join_text = s.auto_join_text_ed;
              } else if (item.text.match(/^(\w*ing) .*/i)) {
                join_text = s.auto_join_text_ing;
              } else {
                join_text = s.auto_join_text_default;
              }
            }

            // Basic building blocks for constructing tweet <li> using a template
            var screen_name = item.from_user || item.user.screen_name;
            var source = item.source;
            var user_url = "http://"+s.twitter_url+"/"+screen_name;
            var avatar_size = s.avatar_size;
            var avatar_url = item.profile_image_url || item.user.profile_image_url;
            var tweet_url = "http://"+s.twitter_url+"/"+screen_name+"/statuses/"+item.id_str;
            var tweet_time = parse_date(item.created_at);
            var tweet_relative_time = relative_time(tweet_time);
            var tweet_raw_text = item.text;
            var tweet_text = $([tweet_raw_text]).linkUrl().linkUser().linkHash()[0];

            // Default spans, and pre-formatted blocks for common layouts
            var user = '<a class="tweet_user" href="'+user_url+'">'+screen_name+'</a>';
            var join = ((s.join_text) ? ('<span class="tweet_join"> '+join_text+' </span>') : ' ');
            var avatar = (avatar_size ?
                          ('<a class="tweet_avatar" href="'+user_url+'"><img src="'+avatar_url+
                           '" height="'+avatar_size+'" width="'+avatar_size+
                           '" alt="'+screen_name+'\'s avatar" title="'+screen_name+'\'s avatar" border="0"/></a>') : '');
            var time = '<span class="tweet_time"><a href="'+tweet_url+'" title="view tweet on twitter">'+tweet_relative_time+'</a></span>';
            var text = '<span class="tweet_text">'+$([tweet_text]).makeHeart().capAwesome().capEpic()[0]+ '</span>';

            return { item: item, // For advanced users who want to dig out other info
                     screen_name: screen_name,
                     user_url: user_url,
                     avatar_size: avatar_size,
                     avatar_url: avatar_url,
                     source: source,
                     tweet_url: tweet_url,
                     tweet_time: tweet_time,
                     tweet_relative_time: tweet_relative_time,
                     tweet_raw_text: tweet_raw_text,
                     tweet_text: tweet_text,
                     user: user,
                     join: join,
                     avatar: avatar,
                     time: time,
                     text: text
                   };
          });

          tweets = $.grep(tweets, s.filter).slice(0, s.count);
          list.append($.map(tweets.sort(s.comparator),
                            function(t) { return "<li>" + expand_template(t) + "</li>"; }).join('')).
              children('li:first').addClass('tweet_first').end().
              children('li:odd').addClass('tweet_even').end().
              children('li:even').addClass('tweet_odd');

          if (s.outro_text) list.after(outro);
          $(widget).trigger("loaded", [tweets]).trigger((tweets.length === 0 ? "empty" : "full"));
          if (s.refresh_interval) {
            window.setTimeout(function() { $(widget).trigger("load"); }, 1000 * s.refresh_interval);
          }
        });
      }).trigger("load");
    });
  };
})(jQuery);
/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Common Functions
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

*/

if (!window.rtp) window.rtp = {}; // ns

/* @@@@@@@@@@ BASIC HELPER FUNCTIONS @@@@@@@@@@ */

// extend function for config etc
rtp.extend = function (src, dst)
{
	for(var key in dst)
	{ src[key] = dst[key]; }
	return src;
};

/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Common Functions
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

*/

if (!window.rtp) window.rtp = {}; // ns

/* @@@@@@@@@@ LAZYLOADER HELPER @@@@@@@@@@ */

// static hash for status
rtp.lazyloaded = {};
// static hash for loaders
rtp.lazyloading = {};

// exec when part is ready
rtp.lazyload = function(part, fn)
{
	// part is already loaded
	if (rtp.lazyloaded[part])
	{ fn.call(rtp.lazyloaded[part]) }
	// push callback on queue (may create first)
	else if (rtp.lazyloading[part])
	{ rtp.lazyloading[part].push(fn) }
	else { rtp.lazyloading[part] = [fn]; }
}

// call all loaders if part is loaded
rtp.lazyloader = function(part, obj)
{
	// remember base object for loaders
	rtp.lazyloaded[part] = obj || window;
	// walk all loaders and execute them in context
	for(var i = 0; i < rtp.lazyloading[part].length; ++ i)
	{ rtp.lazyloading[part][i].call(rtp.lazyloaded[part]) }
}

/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Common Functions
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

*/

if (!window.rtp) window.rtp = {}; // ns

/* @@@@@@@@@@ IMAGE PRELOADING @@@@@@@@@@ */

// static hash for fully loaded images
rtp.preloaded = {};
// static hash for currently loading images
rtp.preloading = {};

rtp.preload = function (src, cb, tag)
{

	// check if src has been defined
	if (typeof(src) == "undefined") return;

	// check if image is already fully loaded
	if (rtp.preloaded[src])
	{
		// execute callback right aways
		if (cb) cb(rtp.preloaded[src]);
	}
	// check if image is already loading
	else if (rtp.preloading[src])
	{
		// register callbacks for later
		rtp.preloading[src][1].push(cb);
	}
	// start image preloading
	else
	{
		// create the image element
		var image = document.createElement(tag ? tag : 'img');
		// start loading the image and store data
		rtp.preloading[src] = [image, [cb]];
		// register callback when image is loaded
		$(image).load(function()
		{
			// move from loading to loaded
			rtp.preloaded[src] = rtp.preloading[src][0];
			// call all registered callback
			var cbs = rtp.preloading[src][1];
			for(var i = 0; i < cbs.length; i++)
			{ if (cbs[i]) cbs[i](rtp.preloaded[src], true); }
			// reset the preloading item
			delete rtp.preloading[src];
		})
		// register callback for load error
		$(image).error(function()
		{
			if (!rtp.preloading[src]) return;
			// call all registered callback
			var cbs = rtp.preloading[src][1];
			for(var i = 0; i < cbs.length; i++)
			{ if (cbs[i]) cbs[i](rtp.preloaded[src], false); }
			// reset the preloading item
			delete rtp.preloading[src];
		})
		// register callback for load abort
		$(image).bind('abort', function()
		{
			if (!rtp.preloading[src]) return;
			// call all registered callback
			var cbs = rtp.preloading[src][1];
			for(var i = 0; i < cbs.length; i++)
			{ if (cbs[i]) cbs[i](rtp.preloaded[src], false); }
			// reset the preloading item
			delete rtp.preloading[src];
		})
		// start loading image
		image.src = src;
	}

}

/* @@@@@@@@@@ EO rtp class @@@@@@@@@@ */
/*
 * jQuery Unhiding v0.8.0
 *
*/

$.fn.unhide = function ()
{

	// get all parent elements plus current and only use hidden nodes
	return this.parents().andSelf().filter(':hidden').each(function()
	{

		// get current style attribute of node
		var style = $(this).attr('style');

		// show the node and remember old style attribute
		$(this).show().data('unhide-style', style);

	}); // EO current plus all parent nodes (only hidden)

}

$.fn.rehide = function ()
{

	// get all parent elements plus current
	this.parents().andSelf().each(function()
	{

		// get old/remembered style attribute
		var oldstyle = $(this).data('unhide-style');

		// continue if nothing has been stored
		if (typeof oldstyle != 'string') return true;

		$(this)
			// reset to old styles
			.attr('style', oldstyle)
			// forget style attribute
			.removeData('unhide-style');

	}); // EO current plus all parent nodes

}
/*

  Copyright (c) Manuel Stofer, Marcel Greter 2011 - RTPartner.ch - RTP Ready
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

  To add more prerequisites for rtp.read you can use rtp.ready.prerequisite(id)

*/

if (!window.rtp) window.rtp = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

(function()
{

	// local static variables
	var callbacks = [];
	var prerequisite = {};

	// static closure function
	var check = function()
	{

		// wait for jquery if found
		if (
			typeof jQuery !== 'undefined' &&
			typeof prerequisite.jquery === 'undefined'
		) {
			prerequisite.jquery = false;
			$(function() { prerequisite.jquery = true; check(); });
		}

		// wait for headjs if found
		if (
			typeof head !== 'undefined' &&
			typeof prerequisite.headjs === 'undefined'
		) {
			prerequisite.headjs = false;
			head.ready(function() { prerequisite.headjs = true; check(); });
		}

		// is everything loaded?
		var loaded_all = true;
		// check each prerequisite
		for(var key in prerequisite)
		{
			// all must be true to continue
			if (prerequisite[key] === false)
			{ loaded_all = false; break; }
		}
		// was everything loaded?
		if (loaded_all)
		{
			// execute all callbacks
			while(callbacks.length)
			{ (callbacks.shift())(); }
		}

	};
	// EO check

	// static global function
	// register callback functions
	rtp.ready = function ()
	{

		// register the callbacks for the final load event
		callbacks = callbacks.concat(Array.prototype.slice.call(arguments));
		// check if we can execute right away
		check();

	};
	// EO rtp.ready

	// static global function
	// return a function which needs to be called,
	// afterwards we may execute registered callbacks
	rtp.ready.prerequisite = function(id)
	{

		// register prerequisite
		prerequisite[id] = false;
		// return function to satisfy and finish the prerequisite
		return function () { prerequisite[id] = true; check(); }

	};
	// EO rtp.ready.prerequisite

	// @@@ rtp.isFn @@@
	// check if input is a function
	rtp.isFn = function(fn)
	{
		return Object.prototype.toString.call(fn)
			== '[object Function]';
	}
	// EO rtp.isFn

	// @@@ rtp.log @@@
	// log something somewhere
	rtp.log = function(msg)
	{

		// map to console log function if possible
		if (typeof console !== 'undefined' && rtp.isFn(console.log)) console.log(msg)

	};
	// EO rtp.log


})();

rtp.ready(function(){

    $('[placeholder]').focus(function() {

        var input = $(this);
        if (input.val() == input.attr('placeholder')) {
            input.val('');
            input.removeClass('placeholder');
        }

    }).blur(function() {

        var input = $(this);
        if (input.val() == '' || input.val() == input.attr('placeholder')) {
            input.addClass('placeholder');
            input.val(input.attr('placeholder'));
        }

    }).blur();

    /* dont submit placeholder value */
    $('form').each(function (index, form) {
        $(form).bind('submit', function (index, form) {
            $('[placeholder]', form).each(function (index, input) {
                input = $(input);
                if (input.val() === input.attr('placeholder')){
                    input.val('');
                }
            });
        });
    });
});/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Multi Event Dispatcher v0.8.2
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

  Example:

  var xml_doc, xsl_doc;

  var mevent = new rtp.multievent(function() {

  	// do something with xml_doc and xsl_doc

  })

  // mevent is satisfied when all have been called
  var xml_complete = mevent.prerequisite();
  var xsl_complete = mevent.prerequisite();

  // load url and call mevent prerequisites / store doc when completed
  _ajax.load(xml_url, function (doc) { xml_doc = doc; xml_complete(); });
  _ajax.load(xsl_url, function (doc) { xsl_doc = doc; xsl_complete(); });

*/

if (!window.rtp) window.rtp = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

// constructor (variables/settings and init)
rtp.multievent = function (cb)
{
	this.cb = cb; // callback when satisifed
	this.ids = 0; // registered prerequisites
	this.args = {}; // save callback arguments
	this.required = 0; // registered prerequisites
	this.listeners = []; // some additional listeners
	this.satisfied = []; // satisfied prerequisites
};

/* @@@@@@@@@@ RTP CLASS @@@@@@@@@@ */

// extend class prototype
(function () {

	// @@@ request a new prerequisite that must be satisfied @@@
	this.prerequisite = function(arg)
	{

		var cb = rtp.isFn(arg) ? arg : null;
		var name = rtp.isFn(arg) ? null : arg;

		var self = this;
		this.required ++;
		var id = this.ids ++;
		this.satisfied[id] = false;

		// return function to be called to signal satisfaction
		return function ()
		{
			if (!self.satisfied[id])
			{
				if (cb) cb();
				self.required --;
				self.satisfied[id] = true;
				if (name) self.args[name] = arguments;
				if (self.required == 0 && self.cb)
				{
					self._cb = self.cb;
					self.cb = false;
					for(var i = 0; i < self.listeners.length; i++)
					{ self.listeners[i]() }
					return self._cb();
				}
			}
		}
	};

	// @@@ finish this multievent @@@
	this.finish = function()
	{

		/* call this method when you add prerequisites dynamically */
		/* this will fire the callback immediately if no prerequisites */
		/* were registered, otherwise we will wait till they are satisfied */

		// execute the callback on no prerequisites
		if (this.ids == 0 && this.cb)
		{
			this._cb = this.cb;
			this.cb = false;
			for(var i = 0; i < this.listeners.length; i++)
			{ this.listeners[i]() }
			return this._cb();
		}

	};

// EO extend class prototype
}).call(rtp.multievent.prototype);

/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Toggle Animate v0.80
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

  cb: function to register over/out events (el, fn_over, fn_out)
  duration: time in miliseconds for complete animation
  css_over/css_out: css objects for hide/show state
  ease: easing method for animation (add more options?)

  Example:

  $('node').toggleanimate
  (
  	function(over, out)
  	{
  		// attach to hover events
  		$(this).hover
  		(
  			$.proxy(over, $(this)),
  			$.proxy(out, $(this))
  		);
  	},
  	3000, // duration
  	{ opacity : '0' }, // css over
  	{ opacity : '1' } // css out
  );

*/

$.fn.toggleanimate = function (cb, duration, css_over, css_out, ease)
{

	// preset values
	if (!ease) ease = 'linear';

	// do for all jquery elements
	for(var i = 0; i < this.length; i++)
	{

		// initialize to hidden state (out)
		$(this).css(css_out);

		// reset animation object data
		var reset =	function ()
		{
			// we only need to reset start property
			$(this).data('toggleanimate').start = 0;
		}

		// mouse over / start animation function
		var over = $.proxy(function ()
		{

			// get current time
			var now = new Date();
			// get attached object from dom node
			var object = this.data('toggleanimate');
			// save last start time and update to current
			var started = object.start; object.start = now;

			// animation already running
			if (started)
			{
				this.stop(true, false); // stop last animation
				var elapsed = now.getTime() - started.getTime();
				object.progress -= elapsed; // calc next animation time
			}
			// otherwise state is already on out
			else { object.progress = 0; }

			// call animate to change css styles over time
			this.animate(css_over, duration - object.progress, ease, reset);

		// attach dom node to function
		}, $(this[i])); // EO over

		// mouse out / stop animation function
		var out = $.proxy(function () {

			// get current time
			var now = new Date();
			// get attached object from dom node
			var object = this.data('toggleanimate');
			// save last start time and update to current
			var started = object.start; object.start = now;

			// animation already running
			if (started)
			{
				this.stop(true, false); // stop last animation
				var elapsed = now.getTime() - started.getTime();
				object.progress += elapsed; // calc next animation time
			}
			// otherwise go for a full animation
			else { object.progress = duration; }

			// call animate to change css styles over time
			this.animate(css_out, object.progress, ease, reset);

		// attach dom node to function
		}, $(this[i])); // EO out

		// attach functions to dom element (via jquery data method)
		$(this[i]).data('toggleanimate', { 'over' : over, 'out' : out });

		// register in/out function
		cb.call(this[i], over, out);

		// return attached data object
		return $(this[i]).data('toggleanimate');

	} // EO each this jQuery el

}; // EO $.fn.toggleanimate
/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - BMC gmap implementation

*/

if (!window.bmc) window.bmc = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */


// constructor (variables/settings and init)
bmc.gmap = function (el, conf)
{

	// store attached jquery node
	this.el = $(el);

	// default configuration settings
	this.conf = rtp.extend({
		zoom: 6
	}, conf);

	// has object init been called
	this.inited = false;

	// templating bits might be overridden
	this.tmpl =
	{
		'viewer' : '<div class="bmc-imgzoom-viewer" />',
		'wrap-all' : '<div class="bmc-imgzoom-wrapper" />'
	};

	// closure
	var self = this;
	// create callback
	var _maps_loaded = function ()
	{

		// ensure mapTypeId is given
		self.conf = rtp.extend({
			mapTypeId: google.maps.MapTypeId.ROADMAP
		}, self.conf);

		// map options
		var options =
		{
			zoom : self.conf.zoom,
			center : self.conf.center,
			mapTypeId: self.conf.mapTypeId
		};

		// call all lazyloaders
		rtp.lazyloader("gmap", self);

		// create the google map
		self.gmap = new google.maps.Map(self.el.get(0), options);

		// init marker manager
		self._init(self.conf.place);

		// call back when map is initialized
		if (self.conf.hookAfterInit) self.conf.hookAfterInit.call(self);

	};

	// check if google maps api is already ready
	if (google.maps && google.maps.load) return _maps_loaded();

	// additional parameter for maps api
	var params = 'sensor=false';

	// get language from jsapi if available
	var scripts = $('SCRIPT');
	for(var i = scripts.length - 1; i != -1; --i)
	{
		var src = $(scripts[i]).attr('src');
		if(src && src.match(/\/jsapi/) && src.match(/language=([a-zA-Z]+)/))
		{ params += '&language=' + RegExp.$1; i = 0; }
	}

	// load maps api asynchronously (register callback for on load event)
	if(google.load) google.load('maps', '3.3', { 'other_params' : params, 'callback' : _maps_loaded });
	// show error message as maps api is unknown
	else alert('neither google maps api nor google loader was found');

};

/* @@@@@@@@@@ BMC CLASS @@@@@@@@@@ */

// extend class prototype
(function ()
{

	// @@@ _gps_success @@@
	this._gps_success = function(position)
	{
		this._gps_success = true;
		console.log('gps success : ', position);
	}
	// @@@ EO _gps_success @@@

	// @@@ _gps_failed @@@
	this._gps_failed = function(message)
	{
		this._gps_success = false;
		console.log('gps failed : ', message);
	}
	// @@@ EO _gps_failed @@@

	// @@@ init bmc gmap @@@
	this._init = function(place)
	{

		// only init once
		if (this.inited) { return; }
		else { this.inited = true; }

		// markers array
		var markers = [];

		// attach marker manager
		this.mm = new rtp.gmap.cmanager.manager(this);

		// closure
		var self = this;

		if(google.loader.ClientLocation)
		{
			var position = google.loader.ClientLocation;
			self.gmap.setCenter(new google.maps.LatLng(position.latitude, position.longitude))
		}
		else
		{

			$.ajax({

				dataType: 'json',

				url: '/typo3conf/ext/rtp_dealerlocator/res/scripts/ip_locate.php',

				success: function(location)
				{

					var places = [];

					if (location.city && location.city.length > 2) places.push(location.city);
					if (location.country && location.country.length > 2) places.push(location.country);
					if (places.length == 0) places.push('Paris', 'France');

					setupForms('FORM.gmaplocation', { 'location' : locallang['gmap_eg'] + ' ' + places.join(', ') });

					if (location.lat && location.lng)
					{
						self.gmap.setZoom(10); // maybe dont go too close, might be inacurate
						self.gmap.setCenter(new google.maps.LatLng(location.lat, location.lng))
					}
					else
					{
						self.gmap.setZoom(10); // show hardcoded fallback viewport
						self.gmap.setCenter(new google.maps.LatLng(47.1864216, 7.4044559))
					}

				},

				error: function()
				{

					self.gmap.setZoom(10); // show hardcoded fallback viewport
					self.gmap.setCenter(new google.maps.LatLng(47.1864216, 7.4044559))

				}
			});

			/*
			var geocoder = new rtp.gmap.geocoder();
			geocoder.resolve(place, function (position)
			{
				if (position == null)
				{
					self.gmap.setZoom(10);
					self.gmap.setCenter(new google.maps.LatLng(47.1864216, 7.4044559))
				}
				else
				{
					if (!position.bounds) self.gmap.setZoom(10);
					else self.gmap.fitBounds(position.bounds);
					self.gmap.setCenter(new google.maps.LatLng(position.lat, position.lng))
				}
			});
			*/

		}

		for(var i = 0; i < bmc.dealers.length; i ++)
		{
			// get dealer data
			var dealer = bmc.dealers[i];
			// assertion for null objects
			if(dealer == null) continue;
			// create marker object
			var marker = new google.maps.Marker({
				title : dealer[3],
				position : new google.maps.LatLng(dealer[1], dealer[2])
			});
			// attach dealer data
			marker.data = dealer;
			// call external hook if defined
			if (self.conf.hookCreateMarker)
			{ self.conf.hookCreateMarker.call(self, marker) }
			// append marker to array
			markers.push(marker);
		}

		// attach all markers in one call
		this.mm.addMarkers(markers);

		// attach map object to dom node
		$(this.el).data('gmap', this.gmap);

		// call "after init" hook to do userdefined html manipulation etc.
		// if (this.conf.hookAfterInit) this.conf.hookAfterInit.call(this);

	}
	// @@@ EO _init @@@

	// @@@ update html to activate given panel @@@
	// this._update_ui = function () {}
	// @@@ EO _update_ui @@@

	// tell em which instance we are
	this.toString = function () { return "rtp.gmap"; }

// EO extend class prototype
}).call(bmc.gmap.prototype);

/* @@@@@@@@@@ JQUERY CONNECTOR @@@@@@@@@@ */

// register function for all jquery objects
$.fn.bmcGoogleMap = function(conf)
{
	return this.each(function(){
		var map = new bmc.gmap(this, conf);
		$(this).data('bmc-gmap', map);
	});
}




/*


var initialLocation;
var siberia = new google.maps.LatLng(60, 105);
var newyork = new google.maps.LatLng(40.69847032728747, -73.9514422416687);
var browserSupportFlag =  new Boolean();

  function handleNoGeolocation(errorFlag) {
    if (errorFlag == true) {
      alert("Geolocation service failed.");
      initialLocation = newyork;
    } else {
      alert("Your browser doesn't support geolocation. We've placed you in Siberia.");
      initialLocation = siberia;
    }
    this.gmap.setCenter(initialLocation);
  }


var self = this;

  // try W3C geolocation
  if(navigator.geolocation)
  {
    navigator.geolocation.getCurrentPosition(function (position) { self.__gps_successs(position.coords) }, function () { self._gps_failed() });
  }
  // try google gears geolocation
  else if (google.gears)
  {

    var geo = google.gears.factory.create('beta.geolocation');

    geo.getCurrentPosition(function (position) { self.__gps_successs(position) }, function () { self._gps_failed() });

  // Browser doesn't support Geolocation
  } else {
    browserSupportFlag = false;
    handleNoGeolocation(browserSupportFlag);
  }

*/

// this.gmap.setCenter(new google.maps.LatLng(47, 8.5))
/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Google Map Cluster v0.70
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

	center is a google maps lat/lng object
	location is x/y in px (fromLatLngToDivPixel)
	always use setCenter to update the position

*/

if (!window.rtp) window.rtp = {}; // ns
if (!window.rtp.gmap) window.rtp.gmap = {}; // ns
if (!window.rtp.gmap.cmanager) window.rtp.gmap.cmanager = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

// constructor (variables/settings and init)
rtp.gmap.cmanager.cluster = function (mm, center, location, markers, rect)
{

	// marker manager
	this.mm = mm;

	// has object init been called
	this.inited = false;

	// initialize
	this._init();

	// set center property
	this.center = center;

	// set location property
	this.location = location;

	// now add the markers
	this.addMarkers(markers);

	// return object
	return this;

};

/* @@@@@@@@@@ BMC CLASS @@@@@@@@@@ */

// extend class prototype
(function ()
{

	// @@@ init rtp cluster object @@@
	this._init = function(marker)
	{

		// only init once
		if (this.inited) { return; }
		else { this.inited = true; }

		// grid size of this cluster
		this.grid = this.mm.grid;

		// markers in this cluster
		this.markers = [];

		// implement length property
		this.length = 0;

		// sum up lats/lngs
		this._lats = 0;
		this._lngs = 0;

		// cluster marker map object
		this.bounds = null;

		// centroid of markers
		this.centroid = null;

		// cluster marker map object
		this.cluster = null;

	}
	// @@@ EO _init @@@

	// @@@ getLocation (x/y) @@@
	this.getLocation = function()
	{
		return this.mm.overlay.fromLatLngToDivPixel(this.center);
	}
	// @@@ EO getLocation @@@

	// @@@ getCentroid (lat/lng) @@@
	this.getCentroid = function()
	{

		// do we need to calculate it
		if (this.centroid == null)
		{
			this.centroid = new google.maps.LatLng(
				this._lats / this.length,
				this._lngs / this.length
			);
		}
		// return stored centroid
		return this.centroid;

	}
	// @@@ EO getCentroid @@@

	// @@@ return if location is iniside cluster (x/y) @@@
	this.contains = function(location)
	{
		// do each axis seperate for performance
		var x = this.location.x - location.x;
		x *= x; if (x > this.grid) return false;
		var y = this.location.y - location.y;
		y *= y; if (y > this.grid) return false;
		// check by using pythagorean theorem
		return x + y < this.grid;

	};
	// @@@ EO contains @@@

	// @@@ helper: hide all markers @@@
	this._hide_all_makers = function()
	{
		// walk all markers to hide them
		for(var i = this.length - 1; i != -1; -- i)
		{
			// detach from any map
			if (this.markers[i].map)
			{ this.markers[i].setMap(null); }
		}
	}
	// @@@ EO _hide_all_makers @@@


	// @@@ clearMarkers @@@
	this.clearMarkers = function()
	{
		// hide them first
		this._hide_all_makers();
		// clear markers and update count
		this.markers.length = this.length = 0;
	}
	// @@@ EO clearMarkers @@@


	// @@@ show cluster or marker @@@
	this.show = function()
	{

		// assertion for empty cluster
		if(this.length == 0) return;

		// show marker if there is only 1
		if(this.length == 1)
		{
			// only set map if really needed (reduce flicker)
			if (this.markers[0].map != this.mm.rtpmap.gmap)
			{ this.markers[0].setMap(this.mm.rtpmap.gmap); }
			// ensure that cluster marker is not shown
			if(this.cluster != null) this.cluster.hide();

		}

		// show cluster for multiple markers
		else
		{

			// ensure no marker is shown
			this._hide_all_makers();

			// cached cluster marker
			if(this.cluster == null)
			{
				// create the cluster marker map object
				this.cluster = new rtp.gmap.cmanager.marker(this.mm, this);
			}

			// show cluster marker
			this.cluster.show();

		}

	};
	// @@@ EO show @@@

	// @@@ hide cluster and markers @@@
	this.hide = function()
	{

		// ensure no marker is shown
		this._hide_all_makers();

		// hide cluster for multiple markers
		if (this.cluster != null)
		{
			// hide cluster marker
			this.cluster.hide();
		}

	}
	// @@@ EO hide @@@

	// @@@ addMarker @@@
	this.addMarkers = function(markers)
	{

		// append given markers
		this.markers = this.markers.concat(markers);

		// implement length property
		this.length = this.markers.length;

		// walk all new markers and sum up
		for (var i = markers.length - 1; i != -1; -- i)
		{
			// sum up the lat and lng values
			var p = markers[i].getPosition();
			this._lats += p.lat(); this._lngs += p.lng();
		}

		// reset the centroid
		this.centroid = null;

	};
	// @@@ EO addMarker @@@

	// @@@ addMarker @@@
	this.addMarker = function(marker)
	{
		// proxy through addMarkers
		this.addMarkers([marker]);
	};
	// @@@ EO addMarker @@@

// EO extend class prototype
}).call(rtp.gmap.cmanager.cluster.prototype);
/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Google Map Cluster v0.70
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

*/

if (!window.rtp) window.rtp = {}; // ns
if (!window.rtp.gmap) window.rtp.gmap = {}; // ns
if (!window.rtp.gmap.cmanager) window.rtp.gmap.cmanager = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

// constructor (variables/settings and init)
rtp.gmap.cmanager.marker = function (manager, cluster)
{

	// marker manager
	this.mm = manager;

	// cluster object
	this.cluster = cluster;

};

/* @@@@@@@@@@ BMC CLASS @@@@@@@@@@ */

// extend class prototype
(function ()
{

	// @@@ sort by number @@@
	function fnsort(a,b)
	{
		if (a < b) return -1;
		if (a > b) return +1;
		return 0;
	}
	// @@@ EO fnsort @@@

	// @@@ show @@@
	this.show = function()
	{
		// draw node if not yet done
		if(this.node == null) this.draw();
		// render the dome node
		this.node.style.display = 'block';
		// show marker count on map object
		this.node.innerHTML = this.cluster.length;
		// get pixel position for cluster center
		var position = this.cluster.location;
		// move node center to given pixel position
		this.node.style.top = (position.y - Math.floor(this.style.height / 2)) + 'px';
		this.node.style.left = (position.x - Math.floor(this.style.width / 2)) + 'px';
	}
	// @@@ EO show @@@

	// @@@ hide @@@
	this.hide = function()
	{
		// is there even a dom node
		if (this.node == null) return;
		// don't render this element anymore
		this.node.style.display = 'none';
		// store for later reuse
		this.mm.unused.push(this.node);
		// remove circular reference
		this.node.self = null;
		// detach dom node
		this.node = null;
	}
	// @@@ EO hide @@@

	// @@@ draw @@@
	this.draw = function()
	{

		if(this.node == null)
		{

			if (this.mm.unused.length == 0)
			{

				// create a new dom node for this marker
				this.node = document.createElement('div');
				// apply shared styles only once
				this.node.style.cursor = 'pointer';
				this.node.style.position = 'absolute';
				this.node.style.textAlign = 'center';
				this.node.style.fontSize = '11px';
				this.node.style.fontWeight = 'bold';
				this.node.style.backgroundRepeat = 'no-repeat';
				this.node.style.backgroundPosition = '50% 50%';
				// append dom node to the overlay layer
				this.mm.overlay.getPanes().overlayLayer.appendChild(this.node);
				// attach events to this cluster object
				google.maps.event.addDomListener(this.node, 'click', function() {
					console.log('cluster object : clicked - ', this.self)
					// me.map.fitBounds(me.cluster.getMarkerBounds());
				});

			}
			else
			{

				// get a node from the unused ones
				this.node = this.mm.unused.shift();

			}

		}

		// get styles from marker manager
		var styles = this.mm.getStyles();

		// get all style keys
		var keys = [];
		// and store nr into array
		for(var key in styles)
		{ keys.push(parseInt(key)); }
		// sort them ascendending
		keys.sort(fnsort)

		// now loop all styles while counting up
		for(var i = 0; i < keys.length; i ++)
		{
			// abort if style count is bigger
			if(keys[i] > this.cluster.length) { break; }
			// otherwise assign next cluster style
			else { this.style = styles[keys[i]]; }
		}

		// get font-family from manager config
		if (this.style.fontFamily == null)
		{ this.style.fontFamily = this.mm.conf.fontFamily; }

		// setup dimension and position
		this.node.style.width = this.style.width + 'px';
		this.node.style.height = this.style.height + 'px';
		this.node.style.lineHeight = this.style.height + 'px';
		this.node.style.backgroundImage = 'url("' + this.style.image + '")';

		// setup font appearance
		this.node.style.color = this.style.color;
		this.node.style.fontFamily = this.style.fontFamily;

		// circular reference, bad but needed
		this.node.self = this;

	};
	// @@@ EO draw @@@

// EO extend class prototype
}).call(rtp.gmap.cmanager.marker.prototype);
/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Google Map Cluster Manager v0.70
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

*/

if (!window.rtp) window.rtp = {}; // ns
if (!window.rtp.gmap) window.rtp.gmap = {}; // ns
if (!window.rtp.gmap.cmanager) window.rtp.gmap.cmanager = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

// constructor (variables/settings and init)
rtp.gmap.cmanager.manager = function (rtpmap, conf)
{

	// store attached jquery node
	this.rtpmap = rtpmap;

	// has object init been called
	this.inited = false;

	// default settings
	this.conf =
	{
		// fonts for marker count
		fontFamily: 'Arial, Helvetica',
		// define where our cluster images are stored (default is the google server as markermanager)
		// imgroot : 'http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/images/'
		imgroot : '/fileadmin/templates/global/img/gmap/'

	}

	// mix it with given config (only if jQuery is loaded)
	// aif (jQuery) this.conf = $.extend(this.conf, conf);

	// styles for the cluster marker map objects
	this.styles =
	{
		  0: { image: this.conf.imgroot + 'm1.png', color: '#FFFFFF', width: 53, height: 52 },
		 10: { image: this.conf.imgroot + 'm2.png', color: '#FFFFFF', width: 56, height: 55 },
		 20: { image: this.conf.imgroot + 'm3.png', color: '#FFFFFF', width: 66, height: 65 },
		 50: { image: this.conf.imgroot + 'm4.png', color: '#FFFFFF', width: 66, height: 65 },
		100: { image: this.conf.imgroot + 'm5.png', color: '#FFFFFF', width: 66, height: 65 }
	};

	// initialize
	this._init();

};

/* @@@@@@@@@@ BMC CLASS @@@@@@@@@@ */

// extend class prototype
(function ()
{

	// @@@ init bmc gmap @@@
	this._init = function()
	{

		// only init once
		if (this.inited) { return; }
		else { this.inited = true; }

		// cluster size
		this.grid = 45*45;

		// viewport margin
		this.margin = 10;

		// current zoom level
		this.zoom = null;

		// has zoom level changed
		this.zoomed = true;

		// all markers
		this.markers = [];

		// unused cluster dom nodes
		this.unused = [];

		// boundary of map in lat/lng (may be null)
		this.bounds = this.rtpmap.gmap.getBounds();

		// calculated markers/cluster by zoom level
		this.state = { clusters : [], tainted : [] };

		// projection abstraction layer for lat/lng conversions
		this.overlay = new rtp.gmap.cmanager.projection(this);

		// closure for events
		var self = this;

		google.maps.event.addListener(this.rtpmap.gmap, 'dragend', function () { self._ev_bounds_changed(); });
		google.maps.event.addListener(this.rtpmap.gmap, 'center_changed', function () { self._ev_bounds_changed() });

		// zoom changed is fired before overlay drawing is ready
		google.maps.event.addListener(this.rtpmap.gmap, 'zoom_changed', function () { self._ev_zoom_changed() });
		// called right after initialization when overlay is not yet ready
		google.maps.event.addListener(this.rtpmap.gmap, 'bounds_changed', function () { self._ev_bounds_changed() });

		// initial zoom level
		this.zoom = this.rtpmap.gmap.getZoom();

	}
	// @@@ EO _init @@@

	this._ev_zoom_changed = function (e)
	{
		// unset viewport
		this.viewport = null;
		// get current zoom level (and declare clusters)
		var zoom = this.rtpmap.gmap.getZoom();
		// check if zoom level has changed
		if (zoom < 0 || this.zoom == zoom) return;
		// hide clusters from old zoom level
		clusters = this.state.clusters[this.zoom] || [];
		for(var i = clusters.length - 1; i != -1; -- i) clusters[i].hide();
		// reset zoom level and wait for draw event
		this.zoom = zoom; this.zoomed = true;
		// redraw clusters from current zoom level
		clusters = this.state.clusters[this.zoom] || [];
		for(var i = clusters.length - 1; i != -1; -- i) clusters[i].shown = null;
	}

	this._ev_bounds_changed = function (e)
	{
		var bounds = this.rtpmap.gmap.getBounds();
		if ((!bounds) || bounds.equals(this.bounds)) return;
		this.bounds = bounds; this.update_viewport();
	};


	// @@@ _clusterize_markers @@@
	this._clusterize_markers = function (markers, clusters)
	{

		// walk all markers to insert
		for(var i = markers.length - 1; i != -1; -- i)
		{

			// get array item
			var marker = markers[i];

			// get lat/lng position of marker
			var position = marker.getPosition();

			// get pixel location of this position
			var location = this.overlay.fromLatLngToDivPixel(position);

			// find a cluster which contains the marker
			for(var j = clusters.length - 1; j != -1; -- j)
			{
				if(clusters[j].contains(location))
				{ clusters[j].addMarker(marker); break; }
			}

			// did the for loop run through
			if(j == -1)
			{
				// marker is lonely, create new cluster for it
				clusters.push(new rtp.gmap.cmanager.cluster(this, position, location, [marker]));
			}

		} // for markers

	}
	// @@@ EO _clusterize_markers @@@

	// @@@ init _compute_clusters @@@
	this._compute_clusters = function (zoom)
	{
		// reset clusters for this zoom level
		var clusters = this.state.clusters[zoom] = [];
		// re-calculate all clusters for this zoom level
		this._clusterize_markers(this.markers, clusters);
	}
	// @@@ EO _compute_clusters @@@

	// @@@ addMarker @@@
	this.addMarkers = function(markers)
	{

		// append new markers to ours
		this.markers = this.markers.concat(markers);
		// cluserize markers on all zoom levels
		// optimize - current zoom first, then others async
		for (var zoom in this.state.clusters)
  	{
			// clusters for this zoom level
			var clusters = this.state.clusters[zoom];
			// cluster all new markers for this zoom level
 			this._clusterize_markers(markers, clusters);
 		}

		// call update ui if the is a viewport
		if (this.bounds) this.update_viewport();

	};
	// @@@ EO addMarker @@@

	// @@@ addMarker @@@
	this.addMarker = function(marker)
	{
		this.addMarkers([marker]);
	};
	// @@@ EO addMarker @@@

	// @@@ getStyles @@@
	this.getStyles = function()
	{
		return this.styles;
	};
	// @@@ EO addMarker @@@

	// @@@ called from overlay draw @@@
	this.draw = function ()
	{

		// only accept draw events once after zoom init
		//if (this.zoomed == false) return;
		this.bounds = this.rtpmap.gmap.getBounds();



		// assertion, must not happen - debug purpose
		if (this.zoom == null) return alert('assertion - draw - zoom');
		if (this.bounds == null) return alert('assertion - draw - bounds');

		// maybe need to init clusters
		if (!this.state.clusters[this.zoom])
		{ this._compute_clusters(this.zoom) }

		this.zoomed = false;

		// initial viewport update
		this.update_viewport();

	}
	// @@@ EO draw @@@

	// @@@ update the viewport property @@@
	this.update_viewport = function ()
	{

		// get lat/lng viewport boundary for map
		this.viewport = this.bounds;
		// assertion, must not happen - debug purpose
		if (this.zoom == null) return alert('assertion - update viewport - zoom');
		if (this.bounds == null) return alert('assertion - update viewport - bounds');
		if (this.viewport == null) return alert('assertion - update viewport - viewport');
		// get lat/lng position from viewport
		var ne = this.viewport.getNorthEast();
		var sw = this.viewport.getSouthWest();
		// don't expand the complete world
		if (ne.lng() != 180 && sw.lng() != -180)
		{
			// get x/y position from viewport (ne/sw)
			ne = this.overlay.fromLatLngToDivPixel(ne);
			sw = this.overlay.fromLatLngToDivPixel(sw);
			// adjust by viewport margin so nearby markers are still partialy seen
			ne = new google.maps.Point(ne.x + this.margin, ne.y - this.margin);
			sw = new google.maps.Point(sw.x - this.margin, sw.y + this.margin);
			// get ne/sw points from pixel to lat/lng
			sw = this.overlay.fromDivPixelToLatLng(sw);
			ne = this.overlay.fromDivPixelToLatLng(ne);
			// create new viewport lat/lng-boundary
			this.viewport = new google.maps.LatLngBounds(sw, ne);
		}
		// also update the user interface
		this.update_ui();

	}
	// @@@ EO update_viewport @@@

	// @@@ update html to activate given panel @@@
	this.update_ui = function (force)
	{

		// dont update if zoomed is true
		if (this.zoomed) return;

		// assertion, must not happen - debug purpose
		if (this.zoom == null) return alert('assertion - update interface - zoom');
		if (this.bounds == null) return alert('assertion - update interface - bounds');
		if (this.viewport == null) return alert('assertion - update interface - viewport');

		// get clusters from current zoom level
		var clusters = this.state.clusters[this.zoom] || [];

		// update location of each cluster
		for(var i = clusters.length - 1; i != -1; -- i)
		{
			var location = clusters[i].getLocation();
			if (!clusters[i].location.equals(location))
			{ clusters[i].shown = null; }
			clusters[i].location = location;
		}

		// already computed
		if (this.viewport && clusters)
		{

			// walk all managed clusters
			for(var i = clusters.length - 1; i != -1; -- i)
			{
				clusters[i].location = clusters[i].getLocation();
				// check if cluster is seen -> show or hide
				if (this.viewport.contains(clusters[i].center))
				{
					if (clusters[i].shown != true)
					{
						clusters[i].show();
						clusters[i].shown = true;
					}
				}
				else
				{
					if (clusters[i].shown != false)
					{
						clusters[i].hide();
						clusters[i].shown = false;
					}
				}
			}
		}

	}
	// @@@ EO _update_ui @@@

	// tell em which instance we are
	this.toString = function () { return "rtp.gmap.clusters"; }

// EO extend class prototype
}).call(rtp.gmap.cmanager.manager.prototype);

/* @@@@@@@@@@ JQUERY CONNECTOR @@@@@@@@@@ */
/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Google Map Cluster Manager Projection Overlay v0.79
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

*/

if (!window.rtp) window.rtp = {}; // ns
if (!window.rtp.gmap) window.rtp.gmap = {}; // ns
if (!window.rtp.gmap.cmanager) window.rtp.gmap.cmanager = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

// constructor (variables/settings and init)
rtp.gmap.cmanager.projection = function (mm)
{

	// store reference to map
	this.mm = mm;

	// call google map overlay view init
	google.maps.OverlayView.call(this);

	// init overlay for map
 	this.setMap(mm.rtpmap.gmap);

};

/* @@@@@@@@@@ INHERITANCE @@@@@@@@@@ */

// wait till map is loaded
rtp.lazyload('gmap', function()
{

	// implement/subclass from google maps overlay view
	rtp.gmap.cmanager.projection.prototype = new google.maps.OverlayView();

	/* @@@@@@@@@@ RTP GMAP OVERLAY CLASS @@@@@@@@@@ */

	// extend class prototype
	(function ()
	{

		this.fromLatLngToDivPixel = function (position)
		{
			// dispatch to projection overlay
			return this.getProjection().fromLatLngToDivPixel(position);
		}

		this.fromDivPixelToLatLng = function (location)
		{
			// dispatch to projection overlay
			return this.getProjection().fromDivPixelToLatLng(location);
		}

		this.draw = function ()
		{
			// dispatch to manager
			this.mm.draw();
		}

		// this.onAdd = function () {};
		// this.onRemove = function () {};

		this.toString = function()
		{
			return "rtp.gmap.cmanager.projection";
		}

	// EO extend class prototype
	}).call(rtp.gmap.cmanager.projection.prototype);

})
/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP Google Maps Geocoder v0.70
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

*/

if (!window.rtp) window.rtp = {}; // ns
if (!window.rtp.gmap) window.rtp.gmap = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

// constructor (variables/settings and init)
rtp.gmap.geocoder = function ()
{

	// has object init been called
	this.inited = false;

	// initialize
	this._init();

};

/* @@@@@@@@@@ RTP GMAP GEOCODER @@@@@@@@@@ */

// extend class prototype
(function ()
{

	// @@@ init geocoder object @@@
	this._init = function()
	{

		// only init once
		if (this.inited) { return; }
		else { this.inited = true; }

		// create geocoder instance
		this.geocoder = new google.maps.Geocoder();


	}
	// @@@ EO _init @@@

	// @@@ resolve an address @@@
	this.resolve = function(address, cb)
	{
		this.geocoder.geocode({ address : address }, function (data)
		{
			if (!data || data.length == 0) return cb(null);
			var b = data[0].geometry.bounds ||
				data[0].geometry.viewport;
			var p = data[0].geometry.location;
			cb({ lat: p.lat(), lng : p.lng(), bounds : b, data : data })
		})
	}
	// @@@ EO resolve @@@

	// tell em which instance we are
	this.toString = function()
	{
		return "rtp.gmap.geocoder";
	}

// EO extend class prototype
}).call(rtp.gmap.geocoder.prototype);
/*

  Copyright (c) Marcel Greter 2010/2011 - RTPartner.ch - RTP jQuery Slider v0.8.10
  Based on jQuery Coda-Slider v2.0 - http://www.ndoherty.biz/coda-slider - Copyright (c) 2009 Niall Doherty
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

  el: dom element containing the sliders (will add wrapper div around)
  conf: see constructor for properties descriptions

	slides: all initial dom elements are called slides
	panels: contains also all cloned slide panels

	queue/action: possible animation steps
	  3 : scroll fast to the given slide *
	  +2 : scroll fast to the slide offset
	 	s-2 : scroll each step to slide offset
	 	n/p : equivalent to +1/-1 (and s+1/s-1)
  * queue treats them as panels and action as slides
  * action can only slide within the initial panels (slides)
  * while queue can also slide to panels that have been cloned

*/

if (!window.rtp) window.rtp = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

// constructor (variables/settings and init)
rtp.slider = function (el, conf)
{

	// store attached jquery node
	this.el = $(el);

	// has user action happened
	this.user_actions = 0;
	// store timer or true if timer should be set
	this.autoslider = false;
	// has object init been called
	this.inited = false;

	// navigation arrows
	this.nav = { prev : $(), next : $() };

	// queue animation actions
	this.queue = []; // queue scroll actions
	// create status variables (panel/slide)
	this.cur = {}; this.nxt = {}; this.prv = {}; this.tmp = {};

	// mix defaults with given settings
	this.conf = $.extend(
	{
		autoSlide: false, // start auto slide on load
		autoSlideAction: 'next', // direction for autoslide
		autoSlideInterval: 7000, // timeout for next slide on auto
		firstAutoSlideDelay : false, // overwrite first slide timeout
		resumeAutoSlideDelay : false, // overwrite first slide timeout
		autoSlideStopOnAction: false, // stop autoslide on manual interaction
		autoSlidePauseOnMouseOver: true, // pause autoslide on mouse hover
		crossLinking: false, // should we (re)store slide position by url
		crossLinkingStrictCheck: false, // only allow valid parameter or adjust
		navigationArrows: false, // should we generate navigation arrows
		navigationArrowAttach: 'wrapper', // wrapper or panels
		navigationArrowPosition: 'default', // prepend, oposite, append
		navigationArrowPrevText: '&#171; left', // text/html for the previous link
		navigationArrowNextText: 'right &#187;', // text/html for the next link
		firstSlideToLoad: 0, // preset first panel to load
		slideEaseDuration: 1000, // easing duration per slide
		slideEaseFunction: 'easeInOutExpo', // easing function per step
		slideVisible : 1, // how many slides are visible at once
		slideMargin : 0, // optional (css) margin between slides
		fluidWidth: false, // are we embeded into a fluid layout
		dimension: false, // store available viewport space
		autoAdjustDimension: true, // adjust the container
		autoAdjustEaseDuration: 'inherit', // same as for slide
		autoAdjustEaseFunction: 'inherit', // same as for slide
		mouseSwipe : false, // do you want to allow mouse swipe gestures
		touchSwipe : false, // do you want to allow touch swipe gestures
		mouseSwipeLive : false, // fire as soon as thresold is satisfied
		touchSwipeLive : false, // fire as soon as thresold is satisfied
		mouseSwipeThreshold : 40, // pixel to move mouse to accept gesture
		touchSwipeThreshold : 40, // pixel to move finger to accept gesture
		// mouseSwipeTolerance : 0, // pixel to tolerate in orthogonal direction
		touchSwipeTolerance : 0, // pixel to tolerate in orthogonal direction
		mouseSwipeInvert : false, // reverse mouse swipe direction logic
		touchSwipeInvert : false, // reverse touch swipe direction logic
		keyboardNavigation : false, // should we enable keyboard navigation
		keyboardNavigationPrev : 37, // jquery keycode for prev action
		keyboardNavigationNext : 39, // jquery keycode for next action
		carousel: false, // endless carousel (virtual no ending/no start)
		vertical: false, // vertical scroll is also supported
		setFloat: true // set float parameter for panels (vertical?)
	}, conf);

	// templating bits might be overridden
	this.tmpl =
	{
		'class-next' : 'next',
		'class-current' : 'current',
		'class-previous' : 'previous',
		'class-panel' : 'panel',
		'class-arrows' : 'arrows',
		'class-container' : 'panel-container',
		'cross-link-prefix' : 'slide-',
		'sel-nav-prev' : '.rtp-nav-prev A',
		'sel-nav-next' : '.rtp-nav-next A',
		'arrow-prev' : ['<div class="rtp-nav-prev"><a href="javascript:void(0)">', '</a></div>'],
		'arrow-next' : ['<div class="rtp-nav-next"><a href="javascript:void(0)">', '</a></div>'],
		'wrap-all' : '<div class="rtp-slider-wrapper"></div>'
	};

	// call "after init" hook to do userdefined html manipulation etc.
	if (this.conf.hookBeforeInit) this.conf.hookBeforeInit.call(this);

	// construct class selectors
	this.tmpl['sel-panel'] = '.' + this.tmpl['class-panel'];
	this.tmpl['sel-current'] = '.' + this.tmpl['class-current'];
	this.tmpl['sel-container'] = '.' + this.tmpl['class-container'];

	// get all intial panels only once
	this.slides = this.el.find(this.tmpl['sel-panel']);

	// initialize
	this._init();

};

/* @@@@@@@@@@ RTP CLASS @@@@@@@@@@ */

// extend class prototype
(function ()
{

	// @ static inline function
	function __option(key, value)
	{
		var options = {};
		options[key] = value;
		return options;
	}
	// EO @ __option @

	// @ inline function
	this.__size = function(id, invert)
	{
		return this.conf.vertical ^ invert
			? $(this.panels[id]).outerHeight()
			: $(this.panels[id]).outerWidth();
	}
	// EO @ __size @

	// @ inline function
	this.__float = function(invert)
	{
		return this.conf.vertical ^ invert ? 'none' : 'left';
	}
	// EO @ __float @

	// @ inline function
	this.__sizestr = function(invert)
	{
		return this.conf.vertical ^ invert ? 'height' : 'width'
	}
	// EO @ __sizestr @

	// @ inline function
	this.__margin = function(invert)
	{
		return this.conf.vertical ^ invert ? 'margin-top' : 'margin-left'
	}
	// EO @ __margin @


	// @@@ init rtp slider @@@
	this._init = function()
	{

		// only init once
		if (this.inited) { return; }
		else { this.inited = true; }

		// put a wrapper around everything (nav Prev - this - nav Next)
		this.el.wrapAll(this.tmpl['wrap-all']);

		// get the parent wrapper onto our object
		this.wrapper = this.el.parent();

		// initialize keyboard navigation
		if (this.conf.keyboardNavigation)
		{
			$(document).keydown($.proxy(function (evt)
			{
				// only capture without any modifier combination (ie. for opera tabbing)
				if (evt.altKey || evt.ctrlKey || evt.metaKey || evt.shiftKey) return true;
				// map key to slider function
				switch (evt.which)
				{
					case this.conf.keyboardNavigationPrev: this.go_prev(); break;
					case this.conf.keyboardNavigationNext: this.go_next(); break;
				}
			}, this));
		}

		// first slide to load may be a function
		// if ($.isFunction(this.conf.firstSlideToLoad))
		// { this.conf.firstSlideToLoad = this.conf.firstSlideToLoad.call(this); }

		// use choosen slide or start with first
		var slide = this.conf.firstSlideToLoad || 0;

		// get current active slide from the location hash
		if (this.conf.crossLinking && location.hash &&
				location.hash.match('.*?' + this.tmpl['cross-link-prefix'] + '([0-9]+)') &&
				(!this.conf.crossLinkingStrictCheck || (RegExp.$1 - 1 >= this.smin && RegExp.$1 <= this.smax))
		) // slide hash starts with 1 (human count)
		{ slide = RegExp.$1 - 1; }

		// left offset
		this.smin = 0;

		// create carousel for carousel slides
		if (this.conf.carousel)
		{
			// clone first and last panels ...
			var last = this.el.find(this.tmpl['sel-panel'] + ':not(:first-child)').clone();
			// var last = this.el.find(this.tmpl['sel-panel'] + ':last-child').clone();
			var first = this.el.find(this.tmpl['sel-panel'] + ':not(:last-child)').clone();
			// var first = this.el.find(this.tmpl['sel-panel'] + ':first-child').clone();
			// ... and attach to oposite position
			first.appendTo(this.el).addClass('cloned');
			last.prependTo(this.el).addClass('cloned');
			// shift left offset
			this.smin += first.length;
		}

		// lookup panels - equals slides if carousel == false
		this.panels = this.el.find(this.tmpl['sel-panel']);

		// wrap all panels into one div (carousel behind viewport)
		this.panels.wrapAll('<div class="' + this.tmpl['class-container'] +'"></div>');

		// slide represents the number given by the user - 1
		this.cur = this.normalize_slide(slide);

		// calculate some stuff
		if (!this.conf.fluidWidth)
		{ this._calculate(); }

		// crop any content inside to this viewport
		this.el.css('overflow', 'hidden');

		// update the user interface
		this._update_ui();

		// are we a fluid component
		// see responsive web design
		if (this.conf.fluidWidth)
		{

			// create closure for
			// resize event handler
			var slider = this;

			// defer till all images are loaded
			// otherwise we will not get valid info
			// about resource dimensions like images
			var mevent = new rtp.multievent(function()
			{

				// show all panels
				slider.panels.css('display', 'block');

				// has size of our viewport changed
				$(self).bind('resize', function()
				{

					/* In some situations a problem arises. If the window shows scrollbars
					   and we then adjust our viewport, it can happen that due to the new
					   height, the content now has to show scrollbars. At this situation
					   we can have to solutions. Using the wide or the narrow variation.
					   I will try to show you the view without scrollbars if possible.
					   BUG: there is a possibility that none of the views will fit, as
					   ie. without scrollbars, the width would be so wide, that the
					   height (fixed from ratio) would cause a scrollbar. Then, when
					   the scrollbar is there, the height could be to small so the
					   scrollbar would get dropped again. You therefore should force
					   a scrollbar to show anytime (if needed or not).
					*/

					// get size from current viewport
					// this will return the actual available
					// size in the browser to show our stuff
					var before = parseFloat(slider.wrapper.css(slider.__sizestr(false)));

					// only do something if dimensions have changed
					if (before == slider.dimension) return true;

					// setup all panels to have
					// width from the viewport
					slider.panels.css(slider.__sizestr(false), before + 'px');

					// adjust opposite dimension from content (image apect ratio)
					slider.el.css(slider.__sizestr(true), slider.__size(slider.cur.panel, true))

					// get size from viewport after the change
					slider.dimension = parseFloat(slider.wrapper.css(slider.__sizestr(false)));

					// viewport width has changed once again
					// the scrollbar is no longer needed
					if (before < slider.dimension)
					{

						// setup all panels to have
						// width from the new viewport
						slider.panels.css(slider.__sizestr(false), slider.dimension + 'px');

						// adjust opposite dimension from content (image apect ratio)
						slider.el.css(slider.__sizestr(true), slider.__size(slider.cur.panel, true))

						// situation here is not defined, best is to avoid this "bug" completly
						// if(after > viewport_wrapper.width()) console.log('nothing fits perfectly');

						// get size from viewport after the change
						slider.dimension = parseFloat(slider.wrapper.css(slider.__sizestr(false)));

					}

					// recalculcate viewport
					slider._calculate();

				});

				// now fire the first resize
				$(self).trigger('resize');

			});

			// cache sources
			var images = {};
			// wait till all images are loaded
			$('IMG', this.el).each(function ()
			{
				// create closure
				var img = this;
				// only process each src once
				if (images[img.src]) return;
				else images[img.src] = true;
				// only bind to the image load event if not already loaded, check needed for ie
				if (!((this.complete || this.readyState === 4 || this.readyState === 'complete') && (this.width != 0 || this.height != 0)))
				{ var satisfy = mevent.prerequisite(); $(this).bind('load', function() { images[img.src] = false; satisfy(); }); }
			});

			mevent.finish();

			// XXX - wait till all images have been loaded?
			// some browsers do some strange stuff here

		}
		// EO if conf fluid

		// enable mouse swipes
		if (this.conf.mouseSwipe)
		{

			// capture the drag start event to disable other
			// handlers when the mouse is dragged afterwards
			this.el.bind('dragstart', $.proxy(function(evt)
			{

				// prevent any other handler
				// evt.preventDefault();
				// remember the start coordinate of the starting gesture
				this.mouseSwipeStart = this.conf.vertical ? evt.pageY : evt.pageX;

			}, this))

			// capture the drag start event to disable other
			// handlers when the mouse is dragged afterwards
			this.el.bind('mousedown', $.proxy(function(evt)
			{

				// prevent any other handler
				// evt.preventDefault();
				// remember the start coordinate of the starting gesture
				this.mouseSwipeStart = this.conf.vertical ? evt.pageY : evt.pageX;

			}, this))

			// use different events to trigger swipe actions
			// live will execute slide action as soon as threshold is satisfied
			var eventtype = this.conf.mouseSwipeLive ? 'mousemove' : 'mouseup';

			// evaluate the gesture after the button is released
			this.el.bind(eventtype, $.proxy(function(evt)
			{

				// assert that we had a start event before
				if (!this.mouseSwipeStart) return false;
				// prevent any other handler
				// evt.preventDefault();
				// remember the current coordinate of the emerging gesture
				var current = this.conf.vertical ? evt.pageY : evt.pageX;
				// deduct the starting value
				current -= this.mouseSwipeStart;
				// get the configured pixel thresold for this gesture
				var threshold = this.conf.mouseSwipeThreshold || 40;
				// get the gesture action according to the configuration
				var next = this.conf.mouseSwipeInvert ? this.go_prev : this.go_next;
				var prev = this.conf.mouseSwipeInvert ? this.go_next : this.go_prev;
				// execute the action if threshold is reached, clear gesture start for live
				if (current < 0 - threshold) { next.call(this); this.mouseSwipeStart = false; }
				else if (current > 0 + threshold) { prev.call(this); this.mouseSwipeStart = false; }
				// clear the gesture start if this is a mouse up event
				// if (evt.type == 'mouseup') this.mouseSwipeStart = false;

			}, this));

			// evaluate the gesture after the button is released
			this.el.bind('mouseup', $.proxy(function(evt)
			{

				// prevent any other handler
				// evt.preventDefault();
				// clear the gesture start
				this.mouseSwipeStart = false;

			}, this))

			// cancel the swipe gesture if mouse leaves the area
			this.el.bind('mouseout', $.proxy(function(evt)
			{

				// prevent any other handler
				// evt.preventDefault();
				// clear the gesture start
				this.mouseSwipeStart = false;

			}, this))

		}
		// EO if conf mouseSwipe

		// enable touch swipes
		if (this.conf.touchSwipe)
		{

			// monitor scroll container
			var doc = $(document);

			// capture the drag start event to disable other
			// handlers when the touch is dragged afterwards
			this.el.bind('touchstart', $.proxy(function(evt)
			{

				// prevent any other handler
				// evt.preventDefault();
				// lock if animation is runing
				// if (this.animation) return;
				// get short reference
				var org = evt.originalEvent;
				// abort on multi gestures
				if (
					org.touches && org.touches.length > 1 ||
					org.changedTouches && org.changedTouches.length > 1
				) {
					return this.touchStart = false
				}
				// remember scroll position
				this.scrollTop = doc.scrollTop();
				this.scrollLeft = doc.scrollLeft();
				// get the touch event from the jquery event object
				var touch = evt.originalEvent.touches[0] || evt.originalEvent.changedTouches[0];
				// remember the start coordinate of the starting gesture
				this.touchSwipeStart = this.conf.vertical ? touch.clientY : touch.clientX;

			}, this))

			// use different events to trigger swipe actions
			// live will execute slide action as soon as threshold is satisfied
			var eventtype = this.conf.touchSwipeLive ? 'touchmove' : 'touchend';

			var swipe_test = function(evt)
			{
				// lock if animation is runing
				// if (this.animation) return;
				// assert that we had a start event before
				if (!this.touchSwipeStart) return false;
				// get scrolling tolerance for this swipe
				var tolerance = this.conf.touchSwipeTolerance || 0;
				// assert that we haven't had a lot of scrolling
				if (Math.abs(this.scrollTop - doc.scrollTop()) > tolerance) return false;
				if (Math.abs(this.scrollLeft - doc.scrollLeft()) > tolerance) return false;
				// get short reference
				var org = evt.originalEvent;
				// abort on multi gestures
				if (
					org.touches && org.touches.length > 1 ||
					org.changedTouches && org.changedTouches.length > 1
				) {
					return this.touchStart = false
				}
				// get the touch event from the jquery event object
				var touch = evt.originalEvent.touches[0] || evt.originalEvent.changedTouches[0];
				// remember the current coordinate of the emerging gesture
				var current = this.conf.vertical ? touch.clientY : touch.clientX;
				// get the configured pixel thresold for this gesture
				var threshold = this.conf.touchSwipeThreshold || 40;
				// get the gesture action according to the configuration
				var next = this.conf.touchSwipeInvert ? this.go_prev : this.go_next;
				var prev = this.conf.touchSwipeInvert ? this.go_next : this.go_prev;
				// execute the action if threshold is reached, clear gesture start for live
				if (current < this.touchSwipeStart - threshold)
				{ next.call(this); this.touchSwipeStart = false; }
				else if (current > this.touchSwipeStart + threshold)
				{ prev.call(this); this.touchSwipeStart = false; }
				// clear the gesture start if this is a touch up event
				// if (evt.type == 'touchup') this.touchSwipeStart = false;
			};

			// evaluate the gesture after the button is released
			/*
			if (this.conf.touchSwipeLive)
			{

				// very buggy on android, see bug report
				// need to recieve touchmove events without
				// preventing the user from touch scrolling

				this.el.bind('touchmove', $.proxy(function(evt)
				{

					// must on android, otherwise will not fire continuously
					// http://code.google.com/p/android/issues/detail?id=5491
					evt.preventDefault(); // will prevent swipe scrolling
					// now check for a valid swipe
					checkswipe.call(this, evt);
					// prevent other handlers
					return false;

			}, this));
			}
			*/
			// EO if conf touchSwipeLive

			// evaluate the gesture after the button is released
			this.el.bind('touchend', $.proxy(function(evt)
			{

				// prevent any other handler
				evt.preventDefault();
				// now check for a valid swipe
				swipe_test.call(this, evt);
				// clear the gesture start
				this.touchSwipeStart = false;

			}, this))

		}
		// EO if conf touchSwipe

		// add navigation arrows
		if (this.conf.navigationArrows)
		{
			// add class for css selectors
			this.wrapper.addClass(this.tmpl['class-arrows']);
			// get default methods for the insert
			var navPositionPrev = this.el.prepend;
			var navPositionNext = this.el.append;
			// switch positions by given configuration
			switch(this.conf.navigationArrowPosition.substr(0,1))
			{
				case 'o':
					navPositionPrev = this.el.append;
					navPositionNext = this.el.prepend;
				break;
				case 'p':
					navPositionNext = this.el.prepend;
				break;
				case 'a':
					navPositionPrev = this.el.append;
				break;
			}
			var el = this.conf.navigationArrowAttach.substring(0,1) == 'p' ? this.panels : this.wrapper;
			// add prev/next navigation items (will be shown or hidden by other application settings)
			if (this.conf.navigationArrowPrevText) navPositionPrev.call(el, this.tmpl['arrow-prev'][0] + this.conf.navigationArrowPrevText + this.tmpl['arrow-prev'][1]);
			if (this.conf.navigationArrowNextText) navPositionNext.call(el, this.tmpl['arrow-next'][0] + this.conf.navigationArrowNextText + this.tmpl['arrow-next'][1]);
			// get the actual dom nodes by selecting them from the wrapper
			this.nav.prev = this.wrapper.find(this.tmpl['sel-nav-prev']);
			this.nav.next = this.wrapper.find(this.tmpl['sel-nav-next']);
			// prev arrow click
			if (this.nav.prev) this.nav.prev.click($.proxy(function()
			{ this.go_prev.call(this); return false; }, this)); // break event bubbeling
			// next arrow click
			if (this.nav.next) this.nav.next.click($.proxy(function(el)
			{ this.go_next.call(this); return false; }, this)); // break event bubbeling
		};

		// animation semaphore
		var animation = false;

		// activate autoslide
		if (this.conf.autoSlide)
		{
			// start autoslide when dom is ready
			this.el.ready($.proxy(function()
			{

				// pause auto slide if mouse is over the element
				if (this.conf.autoSlidePauseOnMouseOver)
				{
					this.el.parent().hover(

						$.proxy(function ()
						{

							// also check option on runtime
							if(!this.conf.autoSlidePauseOnMouseOver) return true;
							// disable autoslide on mouse over
							this.autoslide(false);

						}, this),

						$.proxy(function ()
						{

							// also check option on runtime
							if(!this.conf.autoSlidePauseOnMouseOver) return true;
							// determine timeout (special case for resume slide)
							var timeout = this.conf.resumeAutoSlideDelay != false ?
								this.conf.resumeAutoSlideDelay : this.conf.autoSlideInterval;
							// restart autoslide on mouse out with optional timeout
							this.autoslide(true, timeout);

						}, this)

					); // EO hover
				}

				// determine timeout (special case for first slide)
				var timeout = this.conf.firstAutoSlideDelay != false ?
					this.conf.firstAutoSlideDelay : this.conf.autoSlideInterval;

				// setup timeout to call to slide start
				this.autoslide(true, timeout);

			}, this));

		}
		// EO if conf.autoSlide

		// call "after init" hook to do userdefined html manipulation etc.
		if (this.conf.hookAfterInit) this.conf.hookAfterInit.call(this);

	}
	// @@@ EO _init @@@


	// @@@ update html for navigation arrows @@@
	this._update_navigation = function()
	{

		// get the prev/next navigation link nodes
		var prev = this.nav.prev;
		var next = this.nav.next;

		if (!this.conf.carousel)
		{

			// show/hide prev/next scroll navigation by slide position
			var duration = this.conf.slideEaseDuration;

			// get panel from next or current step
			var panel = isNaN(this.nxt.panel) ? this.cur.panel : this.nxt.panel;

			if(panel <= this.smin) // show/hide prev links
			{ if(prev.is(':visible')) prev.stop(true, true).fadeOut(duration); }
			else { if(!prev.is(':visible')) prev.stop(true, true).fadeIn(duration); }

			if(panel + (this.conf.slideVisible) > this.smax) // show/hide next links
			{ if(next.is(':visible')) next.stop(true, true).fadeOut(duration); }
			else { if(!next.is(':visible')) next.stop(true, true).fadeIn(duration); }

		}
		else
		{

			// prev/next links are always shown in carousel mode
			if(!prev.is(':visible')) prev.stop(true, true).show();
			if(!next.is(':visible')) next.stop(true, true).show();
			// todo: check for this.conf.navigationArrows on runtime

		}

	}
	// @@@ EO _update_navigation @@@


	// @@@ update html to activate given panel @@@
	this._update_ui = function ()
	{

		// update navigation arrows
		this._update_navigation();

		// toggle the current class marker
		$( this.panels.get(this.prv.panel) ).removeClass(this.tmpl['class-current']);
		$( this.panels.get(this.cur.panel) ).addClass(this.tmpl['class-current']);

		// change location hash to current slide
		if (this.conf.crossLinking) { location.hash = this.tmpl['cross-link-prefix'] + (this.cur.slide + 1) };

		// maybe check this.conf.autoAdjustDimension -> adjust opposite dimenstion
		this.el.css(this.__sizestr(true), this.__size(this.cur.panel, true) + 'px');

		// call "update ui" hook to do userdefined html manipulation etc.
		if (this.conf.hookAfterUiUpdate) this.conf.hookAfterUiUpdate.call(this);

	}
	// @@@ EO _update_ui @@@

	// @@@ called after slide animation hook has finished @@@
	this._animate_stop_after = function (config)
	{

		// update and recalculate user interface
		this._update_ui(); this._calculate();

		// remove next slider panel class name mark
		if(!isNaN(this.nxt.panel) && this.tmpl['class-next'])
		{ $(this.panels[this.nxt.panel]).removeClass(this.tmpl['class-next']); }
		// animation has finished and reset status
		this.animation = false; this.nxt = {};
		// animate if more actions are in queue
		if (this.queue.length > 0) this.animate();
		// wait for empty queue until restarting autoslider
		else if (this.autoslider != false)
		{ this.autoslide(true, this.conf.autoSlideInterval); }

	}
	// EO @@@ _animate_stop_after @@@


	// @@@ called after slide animation has finished @@@
	this._animate_stop_before = function (config)
	{

		// cloned panels have one dead end; therefore switch
		// to the actual panel from whom we cloned the content
		if (this.conf.carousel && (this.nxt.panel < this.smin || this.nxt.panel > this.smax))
		{

			// get panel from the opposite direction
			while (this.nxt.panel < this.smin) this.nxt.panel += this.slides.length;
			while (this.nxt.panel > this.smax) this.nxt.panel -= this.slides.length;
			// this.nxt.panel = this.nxt.panel < this.smin ? this.smax : this.smin;
			// show the actual panel immediately (todo: make sure this doesn't flicker anywhere)
			$(this.tmpl['sel-container'], this.el).css(__option(this.__margin(), this.offset[this.nxt.panel]));
		}

		// register next panel as curent and update html
		this.cur = this.normalize_panel(this.nxt.panel); this._update_ui();

		// call "after sliding" hook if defined
		var rv = ! this.conf.hookAfterSliding ? true :
			this.conf.hookAfterSliding.call(this,
				$.proxy(this._animate_stop_after, this), config);
		// continue animation if returned true
		if (rv === true) this._animate_stop_after(config);

	}
	// @@@ EO _animate_stop_before @@@


	// @@@ start showing the next panel @@@
	this._animate_start = function (config)
	{

		// I should probably update the ui here to ?
		this._update_ui();

		// create a multievent object to wait for multiple callbacks before execution
		var mevent = new rtp.multievent($.proxy(this._animate_stop_before, this, config));

		// mark next slider panel with given class
		if(!isNaN(this.nxt.panel) && this.tmpl['class-next'])
		{ $(this.panels[this.nxt.panel]).addClass(this.tmpl['class-next']); }

		// start scroll animation to get panel into view
		$(this.tmpl['sel-container'], this.el).animate(
			__option(this.__margin(), this.offset[this.nxt.panel]),
			this.conf.slideEaseDuration, this.conf.slideEaseFunction,
			mevent.prerequisite() // create a multievent prerequisite
		);

		// adjust possible variable oposite dimension
		// means height in horizontal slide context
		if (this.conf.autoAdjustDimension)
		{
			var easing = this.conf.autoAdjustEaseFunction === 'inherit' ?
				this.conf.slideEaseFunction : this.conf.autoAdjustEaseFunction;
			var duration = this.conf.autoAdjustEaseDuration === 'inherit' ?
				this.conf.slideEaseDuration : this.conf.autoAdjustEaseDuration;
			var css = {}; css[ this.__sizestr(true) ] =
				this.__size(this.nxt.panel, true) + 'px'
			this.el.animate(css, duration, easing, mevent.prerequisite());
		}
		// EO if this.conf.autoAdjustDimension

	}
	// @@@ EO _animate_start @@@

	// go to next or prev
	this.go = function(dir)
	{
		if (dir === 'p')
			this.go_prev()
		else this.go_next()
	}
	// EO @@@ go @@@

	// go to next slide
	this.go_next = function()
	{
		this.user_actions++; // count user actions
		this.action('next'); // push to action queue
		this.animate(); // restart action/animation queue if needed
	}
	// EO @@@ next @@@


	// go to previous slide
	this.go_prev = function()
	{
		this.user_actions++; // count user actions
		this.action('prev'); // push to action queue
		this.animate(); // restart action/animation queue if needed
	}
	// EO @@@ prev @@@


	// @@@ control autoslider [on/off, first timeout, action] @@@
	this.autoslide = function ()
	{

		if ( // disable the autoslider
			// if first argument is given and false or
			(arguments.length > 0 && arguments[0] == false) ||
			// if configured to stop on having user interaction
			(this.conf.autoSlideStopOnAction && this.user_actions)
		) {
			// clear timeout if timer is stored in autoslider
			if (this.autoslider && this.autoslider != true)
			{ window.clearTimeout(this.autoslider); }
			// autosliding has been disabled
			this.autoslider = false;
		}

		// otherwise enable the autoslider
		else if (this.autoslider == false || this.autoslider == true)
		{
			// get default action from given config
			var action = this.conf.autoSlideAction;
			// if config option is a function, execute to get action
			if ($.isFunction(action)) action = action.call(this);
			// third parameter if given may override any other action
			if (arguments.length > 2) action = arguments[2];
			// set autoslider timeout for next animation step
			this.autoslider = window.setTimeout($.proxy(function () {
				this.action(action); // append action and start animation
				this.autoslider = true; // autosliding has been activated
			}, this), arguments.length > 1 ? arguments[1] : 0);

		}
	}
	// @@@ EO autoslide @@@


	// @@@ return normalized panel/slide value by slide @@@
	this.normalize_slide = function(slide)
	{

		// adjust panel offset by one slide panel if in carousel mode
		return this.normalize_panel(slide + this.smin)

	}
	// @@@ EO normalize_slide @@@


	// @@@ return normalized panel/slide value by panel @@@
	this.normalize_panel = function(panel)
	{

		// shift value into valid panel range
		if (panel > this.panels.length - this.conf.slideVisible)
		{ panel = this.panels.length - this.conf.slideVisible }
		else { if (panel < 0) panel = 0 }

		// assign original panel value
		var info = { 'panel' : panel };

		if (this.conf.carousel)
		{
			// adjust to opposite direction
			if (panel > this.smax) panel = this.smin;
			if (panel < this.smin) panel = this.smax;
		}

		// shift into valid rangle - redundant
		// if (panel > this.omax) panel = this.omax;
		// if (panel < this.omin) panel = this.omin;

		// assign original panel value
		info.slide = panel - this.smin;

		// return panel/slide values
		return info;

	}
	// @@@ EO set_panel @@@


	// @@@ start the animation to this slide @@@
	this.show_slide = function(slide)
	{

		// adjust panel offset by one slide panel if in carousel mode
		return this.show_panel(this.conf.carousel ? slide + 1 : slide)

	}
	// @@@ EO show_slide @@@


	// @@@ start the animation to this panel @@@
	this.show_panel = function(panel)
	{

		// store info where we are sliding
		this.tmp = this.normalize_panel(panel);

		if (this.animation)
		{
			if (window.console) console.log('animation look'); return;
		}
		else if (this.cur.panel == this.tmp.panel)
		{
			if (window.console) console.log('no panel change detected'); return;
		}

		// lock animation
		this.animation = true;
		// store previous status information
		this.prv = this.cur; this.nxt = this.tmp;

		// empty options
		var config = {};

		// call "before sliding" hook if defined
		var rv = ! this.conf.hookBeforeSliding ? true :
			this.conf.hookBeforeSliding.call(this,
				$.proxy(this._animate_start, this, config), config);
		// continue animation if returned true
		if (rv === true) this._animate_start(config);

	}
	// @@@ EO slide @@@


	// @@@ push slides to queue and animate @@@
	this.action = function()
	{

		// loop all input arguments and normalize
		for(var i = 0; i < arguments.length; i++)
		{

			// get argument as string
			var arg = arguments[i].toString();

			// convert to next/prev actions
			if (arg.match(/^s([\+\-])/))
			{
				arg = Math.abs(arg.substring(0, 1));
				var dir = RegExp.$1 == '-' ? 'p' : 'n';
				while (arg >= this.slides.length) { arg -= this.slides.length; }
				for(var n = 0; n < arg; n ++) { this.queue.push(dir); }
			}
			// let the queue handle non-numbers and variable offsets
			else if(isNaN(arg) || arg.match(/^([\+\-])/)) { this.queue.push(arg); }
			// normalize simple numbers and animate to resuting slide/panel number
			else { this.queue.push(this.normalize_slide(parseInt(arg)).panel); }

		}

		// start animation
		this.animate();

		if (this.autoslider && this.autoslider != true)
		{
			// autoslider may interfere with user actions, disable but restart
			window.clearTimeout(this.autoslider); this.autoslider = true;
		}

	}
	// @@@ EO action @@@

	// @@@ keep the animation going @@@
	this.animate = function()
	{

		// check animation lock
		if (this.animation) return false;

		// check if there is anything queued
		while (this.queue.length > 0)
		{

			// if ($(this.tmpl['sel-container'], this.el).queue('fx').length > 0)
			// { alert('assertion failed fx queue empty'); return; }

			// get next action from the queue
			var action = this.queue.shift().toString();

			// init next panel as current
			this.tmp.panel = this.cur.panel;
			this.tmp.slide = this.cur.slide;

			// apply action to current panel (where to go?)
			switch(action.substring(0,1))
			{

				case '-': // rewind
					var steps = Math.abs(parseInt(action));
					while (steps >= this.slides.length) steps -= this.slides.length;
					this.tmp = this.normalize_panel(this.cur.panel - steps);
					break;

				case '+': // forward
					var steps = parseInt(action);
					while (steps >= this.slides.length) steps -= this.slides.length;
					this.tmp = this.normalize_panel(this.cur.panel + steps);
					break;

				case 'n': // next
					if (!this.conf.carousel && this.tmp.panel >= this.smax)
					{
						if(!this.autoslider) break;
						if(this.autoslider == true) continue;
						if (!this.conf.hookSlideShowEnd)
						{ this.tmp = this.normalize_slide(this.smin); }
						else { this.tmp = this.normalize_slide(this.conf.hookSlideShowEnd.call(this)); }
					} // invalid action
					else { this.tmp = this.normalize_panel(this.tmp.panel + 1); }
					break;

				case 'p': // previous
					if (!this.conf.carousel && this.tmp.panel <= this.smin)
					{
						if(!this.autoslider) break;
						if(this.autoslider == true) continue;
						if (!this.conf.hookSlideShowEnd)
						{ this.tmp = this.normalize_slide(this.smax); }
						else { this.tmp = this.normalize_slide(this.conf.hookSlideShowEnd.call(this)); }
					} // invalid action
					else { this.tmp = this.normalize_panel(this.tmp.panel - 1); }
					break;

				case 'f': // first
					this.tmp = this.normalize_panel(this.smin);
					break;

				case 'l': // last
					this.tmp = this.normalize_panel(this.smax);
					break;

				default: // direct dial
					if (action.match(/([0-9]+)/)) { this.tmp = this.normalize_panel(parseInt(RegExp.$1)); }
					else { return alert('action not implemented: ' + action); }
					break;

			}
			// EO switch

			// empty options
			var config = {};

			// execute slide and wait for next step
			if (this.cur.slide != this.tmp.slide)
			{ return this.show_panel(this.tmp.panel, true); }
			// call "after sliding" hook if defined
			var rv = ! this.conf.hookAfterSliding ? true :
				this.conf.hookAfterSliding.call(this,
					$.proxy(this._animate_stop_after, this), config);
			// continue animation if returned true
			if (rv === true) this._animate_stop_after(config);

		}
		// EO while this.queue.length

	},
	// @@@ EO animate @@@

	this.removeSlides = function(start, end)
	{

		if (start <= this.cur.slide && this.cur.slide < end)
		{ if (window.console) console.log('removing current slide'); }

		// adjust all pointers
		var p = ['panel', 'slide'];
		var o = ['cur', 'nxt', 'prv'];
		for(var n = p.length; -- n != -1;) {
			for(var i = o.length; -- i != -1;) {
				if (this[o[i]][p[n]] >= start)
					this[o[i]][p[n]] -= end - start;
		} }

		// remove nodes from the dom
		this.slides.slice(start, end).remove();

		// get slides array
		var slides = this.slides.get();
		slides.splice(start, end - start)
		this.slides = $(slides)

		// re-fetch all panels
		this.panels = this.el.find(this.tmpl['sel-panel']);

		// recalculcate viewport
		this._calculate();

		// allow chaining
		return this;

	}

	this.insertSlides = function(panels, position)
	{

		// position = this.normalize_slide(position);

		// if (this.cur.panel > position.panel) this.cur.panel += panels.length;
		// if (this.nxt.panel > position.panel) this.nxt.panel += panels.length;
		// if (this.prv.panel > position.panel) this.prv.panel += panels.length;
		// if (this.cur.slide > position.slide) this.cur.slide += panels.length;
		// if (this.nxt.slide > position.slide) this.nxt.slide += panels.length;
		// if (this.prv.slide > position.slide) this.prv.slide += panels.length;

		// adjust all pointers
		var p = ['panel', 'slide'];
		var o = ['cur', 'nxt', 'prv'];
		for(var n = p.length; -- n != -1;) {
			for(var i = o.length; -- i != -1;) {
				if (this[o[i]][p[n]] >= position)
					this[o[i]][p[n]] += panels.length;
		} }

		// append new panels to collection
		var slides = this.slides.get();

		// append if position if too high
		if (position >= this.panels.length)
		{ $(slides[position - 1]).after(panels) }
		else { $(slides[position]).before(panels) }

		// inser new panels into slides
		this.slides = $(slides.slice(0, position)
			.concat(panels.get(), slides.slice(position)));

		// re-fetch all panels
		this.panels = this.el.find(this.tmpl['sel-panel']);

		// recalculcate viewport
		this._calculate();

		// allow chaining
		return this;

	},

	this._calculate = function()
	{

		// max index for real slider panels (not cloned ones)
		this.smax = this.smin + this.slides.length - 1;

		// float the elements inside (can be disabled by setting)
		if (this.conf.setFloat) this.panels.css('float', this.__float());

		// calculate offset and store size for each slide
		var offset = 0; this.offset = [0]; this.size = [];
		for(var i = 0; i < this.panels.length; i++)
		{ this.offset.push(offset -= this.size[i] = this.__size(i) + this.conf.slideMargin) }

		// calculate viewport size
		var viewport = this.__size(0, false); if (this.conf.slideVisible > 1)
		{ viewport = this.conf.slideVisible * viewport + (this.conf.slideVisible - 1) * this.conf.slideMargin; }

		var container = $(this.tmpl['sel-container'], this.wrapper);

		// put all panels into a wrapper and set size so all panels will fit exactly
		var style = {};
		style[this.__margin()] = (this.offset[this.cur.panel]) + 'px';
		style[this.__sizestr()] = (0 - this.offset[this.panels.length]) + 'px';
		container.css(style);

		// set size of selected element to first slide (excl. navigation)
		this.el.css(this.__sizestr(false), viewport + 'px'); // straight
		// no this.conf.autoAdjustDimension -> always adjust at least once (disable, can be wrong)
		// this.el.css(this.__sizestr(true), this.__size(this.cur.panel, true) + 'px'); // opposite

	}
	// @@@ EO animate @@@

// EO extend class prototype
}).call(rtp.slider.prototype);

/* @@@@@@@@@@ JQUERY CONNECTOR @@@@@@@@@@ */

// register function for all jquery objects
$.fn.rtpSlider = function(conf)
{
	return this.each(function(){
		// check if already initialized
		if (!$(this).data('rtp-slider'))
		{ $(this).data('rtp-slider', new rtp.slider(this, conf)); }
		// else { if(window.console) console.log('tried to init slider twice') }
	});
}

// to be implemented from coda slider

// navigationTabs: true,
// navigationTabsAlign: 'center',
// navigationTabsPosition: 'top',

// preloading message ??/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP jQuery Image Zoomer v0.70
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

*/

if (!window.rtp) window.rtp = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

// constructor (variables/settings and init)
rtp.imgzoom = function (image, conf)
{

	// only initialize on image nodes
	if (image.tagName != "IMG") return false;

	// store attached jquery node
	this.image = $(image);

	// has object init been called
	this.inited = false;

	// mix defaults with given settings
	this.conf = $.extend(
	{

	}, conf);

	// templating bits might be overridden
	this.tmpl =
	{
		'viewer' : '<div class="rtp-imgzoom-viewer" />',
		'wrap-all' : '<div class="rtp-imgzoom-wrapper" />'
	};

	// initialize
	this._init();

};

/* @@@@@@@@@@ RTP CLASS @@@@@@@@@@ */

// extend class prototype
(function ()
{

	// @@@ called via window.interval @@@
	this._animation_do = function ()
	{
		// init variables to calculate
		var x = this.stat.xto, y = this.stat.yto, factor = 15;
		// calculate steps for this animation cicle (at least 1 pixel)
		if (this.stat.xcur < x) { x = this.stat.xcur + Math.round((x - this.stat.xcur) / factor + 0.5); }
		else if (this.stat.xcur > x) { x = this.stat.xcur - Math.round((this.stat.xcur - x) / factor + 0.5); }
		if (this.stat.ycur < y) { y = this.stat.ycur + Math.round((y - this.stat.ycur) / factor + 0.5); }
		else if (this.stat.ycur > y) { y = this.stat.ycur - Math.round((this.stat.ycur - y) / factor + 0.5); }
		// calculation correction factor
		var xdst = Math.round(x * this.stat.xcor);
		var ydst = Math.round(y * this.stat.ycor);
		// set viewport of background image to given coordinates
		this.viewer.css('background-position', '-' + xdst + 'px -' + ydst + 'px');
		// clear the animation interval if the current position is animation end
		if (x == this.stat.xto && y == this.stat.yto)
		{
			window.clearInterval(this.stat.animate);
			this.stat.animate = false;
		}
		// store current position for next cicle
		this.stat.xcur = x; this.stat.ycur = y;
		// end of interval function
	};
	// @@@ EO _animation_do @@@


	// @@@ restart the animation interval @@@
	this._animation_start = function ()
	{
		if (this.stat.animate) return; // window.clearTimeout(this.stat.animate);
		this.stat.animate = window.setInterval($.proxy(this._animation_do, this), 13);
	};
	// @@@ EO _animation_start @@@


	// @@@ reset final animation position @@@
	this._animation_to = function (e)
	{
		var off = this.viewer.offset();
		this.stat.yto = e.pageY - Math.round(off.top);
		this.stat.xto = e.pageX - Math.round(off.left);
		this._animation_start();
	}
	// @@@ EO _animation_to @@@


	// @@@ show zoom container @@@
	this.zoom_start = function (e)
	{

		// remember show state
		this.shown = true;

		// get src image on runtime via callback
		// XXX : better use hook and change conf.src
		var src = $.isFunction(this.conf.src) ?
			this.conf.src.call(this) : this.conf.src;

		// create function to call when image is loaded
		var loaded = function (image)
		{
			if (!image) return false;
			// get dimensions from image object
			this.stat.wfull = image.width;
			this.stat.hfull = image.height;
			// calculate correction factor for each direction
			this.stat.xcor = (this.stat.wfull - this.stat.wview) / (this.stat.wview - 1);
			this.stat.ycor = (this.stat.hfull - this.stat.hview) / (this.stat.hview - 1);
			// get zoom mouse event position
			var off = this.viewer.show().offset();
			this.stat.ycur = e.pageY - Math.round(off.top);
			this.stat.xcur = e.pageX - Math.round(off.left);
			// maybe user "aborted" show action
			if (!this.shown) return false;
			// calculation correction factor
			var xdst = Math.round(this.stat.xcur * this.stat.xcor);
			var ydst = Math.round(this.stat.ycur * this.stat.ycor);
			// setup viewport of background image to given coordinates
			this.viewer.css({
				'display' : 'block',
				'background' : 'url(' + src + ')',
				'background-repeat' : 'no-repeat',
				'background-position' : '-' + xdst + 'px -' + ydst + 'px'
			});
		};

		// go through preloader (maybe already loaded)
		rtp.preload(src, $.proxy(loaded, this));

	};
	// @@@ EO zoom_start @@@


	// @@@ hide zoom container @@@
	this.zoom_stop = function (e)
	{

		// remember show state
		this.shown = false;

		// hide zoom container
		this.viewer.css({
			'display' : 'none',
			'background' : 'none'
		});

	};
	// @@@ EO zoom_stop @@@


	// @@@ init rtp zoomer @@@
	this._init = function()
	{

		if (!this.image.get(0).complete)
		{
			// defer initialization if image is not yet loaded
			return $(this.image).load( $.proxy(this._init, this) );
		}

		// only init once
		if (this.inited) { return; }
		else { this.inited = true; }

		// is zoomer shown
		this.shown = false;

		// put a wrapper around everything
		this.image.wrapAll(this.tmpl['wrap-all']);
		// put wraper node also into object
		this.wrapper = this.image.parent();

		// create the zoom in viewer container
		this.viewer = $(this.tmpl.viewer)
		// prepend to actual image
		this.image.before(this.viewer);

		// all big image by src
		this.zoomer = {}

		// get image dimensions
		var width = this.image.width();
		var height = this.image.height();

		// wrapper is position anchor ...
		// this.wrapper.css({
			// 'position' : 'relative'
		// });
		// ... for the zoom viewer
		this.viewer.css({
			'width' : width,
			'height' : height,
			'display' : 'none',
			'position' : 'absolute'
		});

		// init status
		this.stat =
		{
			animate : false,
			xcur : 0, xto : 0,
			ycur : 0, yto : 0,
			wfull : width * 1, // XXX: get from big image
			hfull : height * 1, // XXX: get from big image
			wview : width * 1,
			hview : height * 1
		};

		// calculate correction factor for each direction
		this.stat.xcor = (this.stat.wfull - this.stat.wview) / (this.stat.wview - 1);
		this.stat.ycor = (this.stat.hfull - this.stat.hview) / (this.stat.hview - 1);

		// setup mouse in/out handlers
		/*
		this.wrapper.hover(
			$.proxy(this.zoom_start, this),
			$.proxy(this.zoom_stop, this)
		);
		*/

		var delayer = false;

		var stop = $.proxy(this.zoom_stop, this);
		var start = $.proxy(this.zoom_start, this);

		// start zoom on wrapper click
		this.wrapper.click(function (e)
		{
				// event is handled here
				e.stopPropagation();
				e.preventDefault();
				// start zoomer
				start(e);
		})

		// stop zoom on zoom image click
		this.viewer.click(function (e)
		{
				// event is handled here
				e.stopPropagation();
				e.preventDefault();
				// stop zoomer
				stop(e);
		})

		// stop after mouse out and delay
		this.wrapper.mouseout(function (e)
		{
				delayer = window.setTimeout(function () { stop(e); }, 1000);
		})

		// clear registered stop function
		this.wrapper.mouseover(function (e)
		{
				if (delayer == false) return;
				window.clearTimeout(delayer)
				delayer = false;
		})

		// setup mouse move handler
		this.viewer.mousemove(
			$.proxy(this._animation_to, this)
		);

		// call "after init" hook to do userdefined html manipulation etc.
		if (this.conf.hookAfterInit) this.conf.hookAfterInit.call(this);

	}
	// @@@ EO _init @@@

	// @@@ update html to activate given panel @@@
	// this._update_ui = function ()
	// {
	// }
	// @@@ EO _update_ui @@@

// EO extend class prototype
}).call(rtp.imgzoom.prototype);

/* @@@@@@@@@@ JQUERY CONNECTOR @@@@@@@@@@ */

// register function for all jquery objects
$.fn.rtpImgZoom = function(conf)
{
	return this.each(function(){
		$(this).data('rtp-imgzoom', new rtp.imgzoom(this, conf));
	});
}
/*

  Copyright (c) Marcel Greter 2010 - RTPartner.ch - RTP jQuery Image Fader v0.7.0
  Based on jQuery Nivo Slider v1.9 - http://nivo.dev7studios.com/ - Copyright 2010, Gilbert Pellegrom
  This plugin available for use in all personal or commercial projects under both MIT and GPL licenses.

  could degrade in two ways
  	1) gallery - link to big picture with thumb preview
    2) teaser - link to anywhere and show big picture

*/

if (!window.rtp) window.rtp = {}; // ns

/* @@@@@@@@@@ CONSTRUCTOR @@@@@@@@@@ */

// constructor (variables/settings and init)
rtp.imgfader = function (el, conf)
{

	// store attached jquery node
	this.el = $(el);

	// has user action happened
	this.user_actions = 0;
	// store timer or true if timer should be set
	this.autoslider = false;
	// has object init been called
	this.inited = false;

	// queue animation actions
	this.queue = []; // queue scroll actions

	// create status variables (panel/slide)
	this.lst = -1; this.cur = -1; this.prv = -1; this.tmp = -1;

	// mix defaults with given settings
	this.conf = $.extend(
	{

		degradeMode : 1, // 1 = no external linking

		slideSliceDelay : 10,

		slicesVertical : 0, // vertical slides
		slicesHorizontal : 0, // horizontal slides
		slicesCubicVertical : 0, // not used yet
		slicesCubicHorizontal : 0, // not used yet

		slideEaseDuration: 1000, // easing duration per slide
		slideEaseFunction: 'linear' // easing function per step

	}, conf);

	// templating bits might be overridden
	this.tmpl =
	{
		'wrap-all' : '<div class="rtp-imgfader-wrapper"></div>'
	};

	// initialize
	this._init();

};

/* @@@@@@@@@@ RTP CLASS @@@@@@@@@@ */

// extend class prototype
(function ()
{

	// @@@ init rtp imgfader @@@
	this._init = function()
	{

		// only init once
		if (this.inited) { return; }
		else { this.inited = true; }

		// put a wrapper around everything
		this.el.wrapAll(this.tmpl['wrap-all']);

		// get wrapper node on to object
		this.wrapper = this.el.parent();

		// there is a link list with the actual images
		if (this.conf.degradeMode == 1)
		{
			// get a jquery array of all image sources (from link href)
			this.images = this.el.find('A').map( function() { return this.href } );
		}

		// construct html
		var html = [];

		// add wrapper for different slide methods (need different dom nodes)
		if(this.conf.slicesVertical > 0) html.push('<div class="rtp-vertical"/>');
		if(this.conf.slicesHorizontal > 0) html.push('<div class="rtp-horizontal"/>');

		if(this.conf.slicesCubicVertical > 0 && this.conf.slicesCubicHorizontal > 0) html.push('<div class="rtp-cubic"/>');

		// append the actual image
		html.push('<div class="rtp-image"><img class="rtp-image"></div>');

		// construct the fader dom node
		this.fader = $('<div class="rtp-imgfader">' + html.join('') + '</div>');

		// attach before the overview image
		this.el.before(this.fader);

		// get image dom node
		this.image = this.fader.find('IMG.rtp-image');
		// get dom collections for all slide methods
		this.cubic = this.fader.find('DIV.rtp-cubic');
		this.vertical = this.fader.find('DIV.rtp-vertical');
		this.horizontal = this.fader.find('DIV.rtp-horizontal');
		// collect all slices into one collection (to hide or show all)
		this.wrappers = $(this.cubic, this.vertical, this.horizontal)

		// defer execution of the next animation step
		// yield some time to the browser to update screen
		this.image.load($.proxy(function()
		{

			// only continue if waiting for load
			if (!this.image.loading) return;
			// call "after sliding" hook if defined
			var rv = ! this.conf.hookAfterFading ? true :
				this.conf.hookAfterFading.call(this,
					$.proxy(this._animate_stop_after, this));
			// continue animation if returned true
			if (rv === true) this._animate_stop_after();

		}, this));

		// init src to first given image
		this.image.attr('src', this.images.get(0));
		// init status variables
		this.cur = 0; this.nxt = false;

		// get dimension from this image
		this.width = this.conf.width || this.image.width() || 950;
		this.height = this.conf.height || this.image.height() || 471;

		// init status array
		this.stat =
		{

			slices :
			{
				vertical : this.conf.slicesVertical,
				horizontal : this.conf.slicesHorizontal
			},

			vertical :
			{
				width : [],
				offset : [0]
			}

		};

		// calculate average width for vertical slices
		var average = this.width / this.stat.slices.vertical, offset = 0;

		// distribute width evenly over all slices and create nodes
		for(var i = 1; i <= this.stat.slices.vertical; i++)
		{

			var width = Math.floor(average * i - offset);

			this.vertical.append(
				$('<div class="rtp-imgfader-slice"/>').css({
					height : '100%',
					left : offset + 'px',
					width : width + 'px',
					position : 'absolute'
				})
			);

			this.stat.vertical.width.push(width);
			this.stat.vertical.offset.push(offset += width);

		}

		this.fader.css({
			'position' : 'relative'
		});

		var common = {
			'top' : '0px',
			'left' : '0px',
			'width' : this.width + 'px',
			'height' : this.height + 'px',
			'position' : 'absolute'
		};

		this.cubic.css(common);
		this.vertical.css(common);
		this.horizontal.css(common);

		// lookup panels only once
		this.slices =
		{
			cubic : this.fader.find('DIV.rtp-imgfader-slice'),
			vertical : this.fader.find('DIV.rtp-imgfader-slice'),
			horizontal : this.fader.find('DIV.rtp-imgfader-slice')
		};

		// call "after init" hook to do userdefined html manipulation etc.
		if (this.conf.hookAfterInit) this.conf.hookAfterInit.call(this);

	}
	// @@@ EO _init @@@

	// @@@ update html to activate given panel @@@
	// this._update_ui = function () { }
	// @@@ EO _update_ui @@@


	// @@@ called after slide animation hook has finished @@@
	this._animate_stop_after = function ()
	{

		// animation has finished and reset status
		this.animation = false; this.nxt = false;


		if (this.lst != -1)
		{
			var img = this.lst;
			this.lst = -1;
			this.show_image(img);
		}

		// animate if more actions are in queue
		if (this.queue.length > 0) this.animate();
		// wait for empty queue until restarting autoslider
		else if (this.autoslider != false)
		{ this.autoslide(true, this.conf.autoSlideInterval); }


	}
	// EO @@@ _animate_stop_after @@@

	// @@@ called after slide animation has finished @@@
	this._animate_stop_before = function ()
	{

		// register next panel as curent and update html
		this.cur = this.normalize_image(this.nxt);

		// we will load a new image
		this.image.loading = true;

		// set src of the image behind to new image
		// this.image.attr('src', this.images.get(this.cur));
		if (this.image.get(0).src != this.images.get(this.cur))
		{ this.image.get(0).src = this.images.get(this.cur); }
		else { this.image.load(); }

		// reset image fader slices
		// $('.rtp-imgfader-slice', this.vertical).each(function()
		// { $(this).css({ height : '0px', opacity : '0' }); });
		// $('.rtp-imgfader-slice', this.horizontal).each(function()
		// { $(this).css({ width : '0px', opacity : '0' }); });

	}
	// @@@ EO _animate_stop_before @@@

	// @@@ start showing the next panel @@@
	this._animate_start = function ()
	{

		var delay = 0;

		var self = this;

		// setup all slices before animation
		this.slices.vertical.each(function(i)
		{

			$(this).css({
				background: 'url('+ self.images.get(self.nxt) +') no-repeat -'+ (self.stat.vertical.offset[i]) +'px 0%'
			});

			$(this).css({
				height:'0px', opacity:'0'
			});

		});

		// use multievent to trigger when all events have been finished
		// var complete = new window.rtp.multievent($.proxy(this._animate_stop_before, this));

		var complete = new window.rtp.multievent(function()
		{

			// defer execution of the next animation step
			// yield some time to the browser to update screen
			// window.setTimeout(function() { self._animate_stop_before.call(self) }, 20);

			self._animate_stop_before.call(self);

		});


		var effect = this.conf.effect;

		if(effect == 'sliceDown' || effect == 'sliceDownRight' || effect == 'sliceDownLeft')
		{

			// use vertical slices for animation
			var slices = this.slices.vertical;

			// start from opposite direction
			if(effect == 'sliceDownLeft')
			{
				slices = $(slices.toArray().reverse());
			}

			// start css styles
			var styles_start =
			{
				height : '0%',
				opacity : '0'
			}

			// final css styles
			var styles_end =
			{
				height : '100%',
				opacity : '1'
			}

			// animate each slice
			slices.each(function()
			{

				// get current slice
				var slice = $(this);

				// setup start css styles
				slice.css(styles_start);

				// delay animation
				slice.delay(20 + delay);

				// do animation
				slice.animate(
					styles_end,
					self.conf.slideEaseDuration,
					self.conf.slideEaseFunction,
					complete.prerequisite()
				);

				// increase next slice delay
				if (effect != 'sliceDown')
				{
					delay += self.conf.slideSliceDelay;
				}

			}); // EO each slice

		}

		else if(effect == 'fade')
		{

			var slices = this.slices.vertical;

			slices.each(function(){

				var slice = $(this);
				slice.css('height', '100%');
				slice.animate(
					{
						opacity:'1.0'
					},
					self.conf.slideEaseDuration,
					self.conf.slideEaseFunction,
					complete.prerequisite()
				);

			});
		}

	}
	// @@@ EO _animate_start @@@


	// @@@ return normalized image value @@@
	this.normalize_image = function(image)
	{

		// shift value into valid panel range
		if (image > this.images.length - 1)
		{ image = this.images.length - 1 }
		else { if (image < 0) image = 0 }

		// return image value
		return image;

	}
	// @@@ EO normalize_image @@@


	// @@@ start the animation to this panel @@@
	this.show_image = function(image)
	{

		// store info where we are sliding
		this.tmp = this.normalize_image(image);

		if (this.animation)
		{
			this.lst = this.tmp;
			if (window.console) console.log('animation look'); return;
		}
		else if (this.cur == this.tmp)
		{
			if (window.console) console.log('no image change detected'); return;
		}

		// lock animation
		this.animation = true;
		// store previous status information
		this.prv = this.cur; this.nxt = this.tmp;

		// call "before fading" hook if defined
		var rv = ! this.conf.hookBeforeFading ? true :
			this.conf.hookBeforeFading.call(this,
				$.proxy(this._animate_start, this));
		// continue animation if returned true
		if (rv === true) this._animate_start();

	}
	// @@@ EO show_image @@@

// EO extend class prototype
}).call(rtp.imgfader.prototype);

/* @@@@@@@@@@ JQUERY CONNECTOR @@@@@@@@@@ */

// register function for all jquery objects
$.fn.rtpImgFader = function(conf)
{
	return this.each(function(){
		$(this).data('rtp-imgfader', new rtp.imgfader(this, conf));
	});
}

/* (c) 2010 by Marcel Greter - Rüegg Tuck Partner GmbH */

var animation_time = 300;
var animation_opacity_stop = 0;
var animation_opacity_start = 1;

var slide_dot_full= '/fileadmin/templates/global/img/slide-dot-full.gif';
var slide_dot_empty = '/fileadmin/templates/global/img/slide-dot-empty.gif';

if (!window.twitter_username) window.twitter_username = 'BMCProTeam';

if (!window.console) window.console = { log: function(msg) {} }

function setupForms (form, vals)
{
	$(form).each(function ()
	{
		// jquery element node
		var form = $(this);
		//
		form.submit(function (e)
		{
			// walk all defined input fields
			for(var key in vals)
			{
				// closure for events
				var val = vals[key];
				// use advanced jquery selector to get form field
				var el = $('[name=\'' + key + '\']', this);
				// reset values filled with help texts
				if (el.val() == val) el.val('');
			}

		})
		// walk all defined input fields
		for(var key in vals)
		{
			// need anonymous function for closures
			(function () {

				// closure for events
				var val = vals[key];
				// use advanced jquery selector to get form field
				var el = $('[name=\'' + key + '\']', form);
				// define blur and focus event to show/hide texts
				el.blur(function (e) { el = $(this); if (el.val() == '') el.val(val); });
				el.focus(function (e) { el = $(this); if (el.val() == val) el.val(''); });
				// set initial value
				if (el.val() == '') el.val(val);

			})();
		}
	}) // each FORM.contant
}

$(function()
{

	if (!window.locallang) window.locallang = {};
	if (!window.twitter_loading) window.twitter_loading = locallang['tweet_loading'];
	if (!window.follow_text) window.follow_text = locallang['tweet_fallow'];

	// mark body tag for selectors if javascript is enabled
	$('body').removeClass('no-js').addClass('js');

	$.fn.orphans = function()
	{

	    var rv = [];

	    this.each(function()
	    {
		    $.each(this.childNodes, function()
		    {
			    // only process text nodes
			    if (this.nodeType == 3)
			    {
				    // don't match elements only containing whitespace
				    if(!this.nodeValue.match(/^[\n\s]*$/)) rv.push(this);
			    }
		    });

	    });

	    return $(rv);

    }

    // http://codesnippets.joyent.com/posts/show/1736
    $.fn.innerWrap = function() {
	    var a, args = arguments;
	    return this.each(function() {
		    if (!a)
			    a = $.clean(args, this.ownerDocument);
		    // Clone the structure that we are using to wrap
		    var b = a[0].cloneNode(true),
			    c = b;
		    // Find the deepest point in the wrap structure
		    while ( b.firstChild )
			    b = b.firstChild;
		    // append the child nodes to the wrapper
		    $.each(this.childNodes, function(i, node) {
			    b.appendChild(node);
		    });
		    $(this)
			    // clear the element
			    .empty()
			    // add the new wrapper with the previous child nodes appended
			    .append(c);
	    });
    };



	/***** NEWS ARCHIVE DROPDOWN *****/

	$('FORM.filter').each(function ()
	{
		// jquery form element
		var form = $(this);
		// hide the submit button
		$('INPUT[type=submit]', form).hide();
		// auto submit when selection does change
		$('SELECT', form).change(function (e) { form.submit(); });
	});

	/***** TWITTER BEGIN *****/

	$("DIV.tweets").html('').bind('loaded', function (event, tweets)
	{

		var img = '/fileadmin/templates/global/img/twitter-userlogo.gif', html = [];

		for(var i = 0; i < tweets.length; i++)
		{
			if (tweets[i]['user'] && tweets[i]['user']['profile_image_url'])
			{ img = tweets[i]['user']['profile_image_url']; break; }
			else if (tweets[i]['avatar_url']) { img = tweets[i]['avatar_url']; break; }
		}

		html.push('<div class=\"twitter_header\">');
		html.push('<img class=\"avatar\" src=\"' + img + '\" />');
		html.push('<p class="url"><a href=\"http://twitter.com/'+escape(twitter_username)+'\" target="_blank" title="' + follow_text + '" >twitter.com/' + twitter_username + '</a></p>')
		html.push('<p class="fallow">' + follow_text + '</p>')
		html.push('</div>');

		$(this).prepend(html.join(''));


	})
	.each(function()
    {
        $(this).tweet({
                count: 5,
                template: '{text}{time}',
                username: twitter_username,
                loading_text: twitter_loading
            });

    })

	/***** LANGUAGE BEGIN *****/

	$('DIV.language UL.regions > LI').orphans().wrap('<a href="javascript:void(0);"></a>');

	// click on region
	$('DIV.language UL.regions > LI > A').click(function ()
	{

		// remove marker and hide previous active region
		$('DIV.language UL.regions > LI > UL').hide()
			.parent().removeClass('cur');
		// add marker and show region
		$(this).next().show()
			.parent().addClass('cur');

	});

	// initialise language selector containers
	$('DIV.language DIV.select').css({ 'height' : '23px', 'opacity' : 1 });
	$('DIV.language DIV.change').css({ 'margin-top' : '-285px', 'opacity' : 0 });

	// attach click event handler for 'change' link
	$('DIV.language DIV.selector A').click(function ()
	{
		// show language selector and hide 'change' link
		$('DIV.language DIV.change').animate({ 'margin-top' : '0px', 'opacity' : 1 }, 'slow');
		$('DIV.language DIV.select').animate({ 'height' : '0px', 'opacity' : 0 }, 'slow');

		return true;

	});

	$('DIV.language DIV.change DIV.submit INPUT').click(function (e)
	{

		// hide language selector and show 'change' link
		$('DIV.language DIV.change').animate({ 'margin-top' : '-285px', 'opacity' : 1 }, 'slow');
		$('DIV.language DIV.select').animate({ 'height' : '23px', 'opacity' : 1 }, 'slow');

		return true;

	});

	// attach a click handler to the body
	$('BODY').click(function (e)
	{

		// check if the click has not been within the language selector container
		if($(e.target).parents('DIV.language:first').length == 0)
		{
			// hide language selector and show 'change' link
			$('DIV.language DIV.change').animate({ 'margin-top' : '-285px', 'opacity' : 1 }, 'slow');
			$('DIV.language DIV.select').animate({ 'height' : '23px', 'opacity' : 1 }, 'slow');
		}

		return true;

	});


	/***** LANGUAGE END *****/

	/***** INITIALIZE FORM FIELDS WITH TEXT *****/

	var contact_vals =
	{
		'name' : 'Name*',
		'address' : 'Address*',
		'city' : 'Zip / City*',
		'country' : 'Country*',
		'phone' : 'Phone*',
		'fax' : 'Fax',
		'email' : 'E-mail*',
		'message' : 'Optional message'
	}

	/* var gmaploc_vals =
	{
		'location' : 'e.g. Paris, France'
	} */

	var newsletter_vals =
	{
		'name' : 'Name',
		'email' : 'E-Mail'
	}


	var sizingtool_save_vals =
	{
		'name' : 'Name*',
		'email' : 'E-Mail Address'
	}

	/*
	$('FORM#mailform').each(function ()
	{

		var vals = {};

		var els = $('INPUT:not(:submit, :hidden), TEXTAREA', this);

		for (var i = els.length - 1; i != -1; --i)
		{

			var el = $(els[i]);
			vals[el.attr('name')] = el.val();

		}

		setupForms(this, vals);

	})
	*/

	// powermail text input fields
	$('DIV.tx-powermail-pi1 FORM').each(function ()
	{

		var vals = {};

		var els = $('DIV.tx_powermail_pi1_fieldwrap_html_text', this);

		for (var i = els.length - 1; i != -1; --i)
		{
			var inp = $('INPUT', els[i]);
			var lbl = $('LABEL', els[i]);
			if (inp.is(':password')) continue;
			vals[inp.attr('name')] = lbl.hide().text();
		}

		setupForms(this, vals);

	})

	// newsletter text input fields
	$('DIV.newsletter').parents('FORM').each(function ()
	{

		var vals = {};

 		var els = $('INPUT[type=text]', this);

		for (var i = els.length - 1; i != -1; --i)
		{
			// console.log($(els[i]).prev('LABEL'))
			vals[$(els[i]).attr('name')] =
				$(els[i]).prev('LABEL').hide().text();

		}

		setupForms(this, vals);

	})

	// setupForms('FORM.contact', contact_vals);
	// setupForms('FORM.gmaplocation', gmaploc_vals);
	setupForms('DIV.newsletter FORM', newsletter_vals);


	/***** IN-THE-WILD VIEWER BEGIN *****/

	// initialize 'in-the-wild' galleries

	/*
	$('UL.in-the-wild, UL.showroom').each(function ()
	{

		// get gallery list item
		var gallery = $(this);

		// insert html code for the viewer
		var viewer = $('<div class="viewer"><img src="img/null.png" /></div>').insertBefore(gallery);

		// attach click function to each link node
		gallery.find('LI A').click(function (event)
		{

			// use current event target
			var el = $(event.target);
			// get to the link node if needed
			if (event.target.tagName != "A")
			{ el = el.parents('A:first'); }
			// check if we have any element
			if (el.length == 0) return true;

			// get attribute values
			var href = el.attr('href')

			// check if href is of valid image mime type (extension)
			if (!href.match(/.(jpe?g|png|gif|tif)($|\?|\#)/)) return true;

			// get text value from img or link alt
			var text = el.find('IMG').attr('alt');
			if (!text) text = el.attr('alt');

			// sync viewers src/alt with link node
			viewer.find('IMG').attr('src', href);
			viewer.find('IMG').attr('alt', text);
			viewer.find('IMG').attr('title', text);

			// disable default link action
			event.preventDefault();

		})

		// activate/show first image on init
		gallery.find('LI A:first').click();

	});
	*/

});

// columnize specification bike data
$(function()
{

	var cont = $('DIV.data-specifications');

	$('UL.specification', cont).each(function ()
	{

		var org = $(this);

		var lis = $('LI', org);

		var ul1 = $('<ul class="specification first"></ul>')
		var ul2 = $('<ul class="specification last"></ul>')

		var len = lis.length;

		for(var i = 0; i < len; i++)
		{
			if (i < (len) / 2)
			{ ul1.append(lis.get(i)); }
			else { ul2.append(lis.get(i)); }
		}

		var el = $('<div class="clumnized" />')

		if (len > 1) org.replaceWith(el.append(ul1, ul2))
		else if (len > 0) org.replaceWith(el.append(ul1))

	})

});

// columnize showroom bike data
$(function()
{

	var cont = $('DIV.overview DIV.bike DIV.features');

	$('UL', cont).each(function ()
	{

		var org = $(this);

		var lis = $('LI', org);

		var ul1 = $('<ul class="column-first column" style="float:left; width:50%;"></ul>')
		var ul2 = $('<ul class="column-last column" style="float:left; width:50%;"></ul>')

		var len = lis.length;

		for(var i = 0; i < len; i++)
		{
			if (i < (len) / 2)
			{ ul1.append(lis.get(i)); }
			else { ul2.append(lis.get(i)); }
		}

		var el = $('<div class="clumnized" />')

		if (len > 1) org.replaceWith(el.append(ul1, ul2))
		else if (len > 0) org.replaceWith(el.append(ul1))

	})

	// if (window.TYPO3) TYPO3.FeEdit.EditPanelAction.prototype.ajaxRequestUrl = '/';

});


$(function()
{

	/***** BMC COLLAPSIBLES BEGIN *****/

	var tech = $('DIV.technology'), conts, mores;
	var containers = $('DIV.container', tech);

	var lock = false;

	containers.each(function (i)
	{

		var el = $(this);
		var h3 = el.find('H3');
		var h4 = el.find('H4');
		var more = el.find('DIV.more');

		h3.before('<div class="two-col"><div class="left"/><div class="right"/></div>');

		var tc = el.find('DIV.two-col');
		var left = tc.find('DIV.left');
		var right = tc.find('DIV.right');

		left.append(h3, h4);
		right.append(more);
		more.show();

		el.find('DL').wrap('<div class="slidebox"/>');

		tc.find('H3, H4, A').css('cursor', 'pointer').click(function (e)
		{

			var container = $(containers.get(i));

			if(lock == false && container.hasClass('container-closed'))
			{

				lock = true;

				containers.addClass('container-closed');

				Cufon.refresh('DIV.technology H3');
				Cufon.refresh('DIV.technology H4');

				var old_more = mores.not(':visible');
				var old_cont = conts.filter(':visible');

				var new_cont = container.find('DIV.slidebox');
				var new_more = container.find('DIV.right');

				var multi = new window.rtp.multievent(function ()
				{
					container.removeClass('container-closed');
					Cufon.refresh('DIV.technology H3');
					Cufon.refresh('DIV.technology H4');
					lock = false;
				});

				new_more.fadeOut(1000)
				old_more.delay(800);
				old_more.fadeIn(1000);

				old_cont.delay(200);
				new_cont.delay(200);

				old_cont.animate({ "height": "toggle", "opacity": "toggle" }, 1000, multi.prerequisite())
				new_cont.animate({ "height": "toggle", "opacity": "toggle" }, 1000, multi.prerequisite())

			}

			e.preventDefault()

		})

	});

	mores = tech.find('DIV.right');
	conts = tech.find('DIV.slidebox');

	mores.first().hide();
	conts.not(':first').hide();
	containers.not(':first').addClass('container-closed');

	/***** BMC COLLAPSIBLES END *****/

});
$(function()
{

	/***** BMC SIZING TOOL COLLAPSIBLES BEGIN *****/

	// declare local variables
	var lock = false, all_slideboxes;
	// get root dom element
	var root = $('#sizing-tool');
	// fetch all collapsible containers
	var all_containers = $('DIV.container', root);

	// some timing settings
	var delay_duration = 100;
	var animation_duration = 1000;

	// link selectors (define as variable as it can be optimized)
	var arrow_link_selector = 'DIV.headline A.toggler DIV.closer';
	var headline_selector_base = '#sizing-tool DIV.container DIV.headline ';

	// css selectors (define as variable as it can be optimized)
	var headline_title_selector = 'H3';
	var headline_indicator_selector = 'DIV.indicator SPAN';

	// css classes (define as variable as it can be optimized)
	var class_slidebox_outer = 'DIV.slidebox-outer';
	var class_container_closed = 'container-closed';

	// create the actual elements for the animation
	// need a wrapper div around without any margins
	// otherwise the animation would clip when finished
	root.find('DIV.slidebox').wrap('<DIV class="slidebox-outer"/>');

	// process each container
	// attach click event handler
	all_containers.each(function (i)
	{

		// current container element
		var container = $(this);
		// get some elements from the container
		var content = container.find('DIV.content');
		var headline = container.find('DIV.headline');
		// get some elements from the content container
		var slidebox = content.find(class_slidebox_outer);

		// add a div around the headline
		headline.wrapInner('<div/>')

		// local scoped event handler
		var toggler_click = function()
		{

			// assertion if the container should be opened
			if(lock == false)
			{

				// aquire lock
				lock = true;

				// get the old and the new container
				var closing_slidebox = all_slideboxes.filter(':visible');
				var current_slidebox = container.find(class_slidebox_outer);

				// filter the current (to be opened) sliding boxes
				current_slidebox = current_slidebox.filter(function()
				{
					// do not open any element that will be closed now
					for(var i = 0; i < closing_slidebox.length; i ++)
					{ if (closing_slidebox.get(i) === this) return false; }
					return true; // otherwise this element can be opened
				});

				// mark all containers as closed
				all_containers.addClass(class_container_closed);
					// redraw cufon related css style changes
				Cufon.refresh(headline_selector_base + headline_title_selector);
				Cufon.refresh(headline_selector_base + headline_indicator_selector);

				// event to be called when all animations have finished
				var multi = new window.rtp.multievent(function ()
				{
					lock = false;
					// mark containers as open
					current_slidebox.parent().removeClass(class_container_closed);
					// redraw cufon related css style changes
					Cufon.refresh(headline_selector_base + headline_title_selector);
					Cufon.refresh(headline_selector_base + headline_indicator_selector);
				});

				// add some delay before animations
				closing_slidebox.delay(delay_duration); current_slidebox.delay(delay_duration);

				// show/hide the containers (register multievent prerequisite for finish event)
				closing_slidebox.each(function() { $(this).animate({ "height": "hide", "opacity": "hide" }, animation_duration, multi.prerequisite()) });
				current_slidebox.each(function() { $(this).animate({ "height": "show", "opacity": "show" }, animation_duration, multi.prerequisite()) });

				// show/hide the status arrows (register multievent prerequisite for finish event)
				closing_slidebox.parent().find(arrow_link_selector).each(function() { $(this).animate({ 'opacity' : 0 }, animation_duration, multi.prerequisite()); });
				current_slidebox.parent().find(arrow_link_selector).each(function() { $(this).animate({ 'opacity' : 1 }, animation_duration, multi.prerequisite()); });

				// call finish to tell multievent we
				// finished setting up prerequisites
				multi.finish();

			}
			// EO lock assertion

			// abort click
			return false;

		};
		// EO fn toggler_click

		// get toggler div and assign click handler
		var toggler = $('>DIV', headline)
			.css('overflow', 'hidden')
			.css('cursor', 'pointer')
			.attr('class', 'toggler')
			.prepend('<A class="toggler" href="javascript:void(0)"/>')
			.click(toggler_click);

		// setup the arrows
		toggler.find('>A.toggler')
			.prepend('<div class="closer"/>')
			.prepend('<div class="opener"/>')
			// .click(toggler_click);

	});
	// EO process each container

	// the actual elements for the animation
	all_slideboxes = root.find(class_slidebox_outer);

	// hide all but the first element
	all_slideboxes.not(':first').hide()
		// setup the css class of the container
		.parent().addClass(class_container_closed)
		// and setup/init the arrow links accordingly
		.find(arrow_link_selector).css('opacity', 0);

	/***** BMC SIZING TOOL COLLAPSIBLES END *****/

	/***** BMC SIZING TOOL TABS BEGIN *****/

	var sizing_tool = $('#sizing-tool');
	var tab_header = sizing_tool.find('DIV.tabhead');
	var tab_service = $('<div class="service"/>').appendTo(tab_header);

	var containers = sizing_tool.find('DIV.tab-container');

	// if (containers.length > 1)
	containers.each(function(i)
	{

		var container = $(this);

		var title = container.find('H3.tabtitle'), text = title.text();

		var link = $('<a href="#" />')
			.html(text).attr('title', text)
			.addClass('tab-head-link')
			.appendTo(tab_service)
			.click(function()
			{

				containers.hide();
				container.show();
				sizing_tool.find('A.tab-head-link').removeClass('cur');
				link.addClass('cur')

				Cufon.refresh('#sizing-tool DIV.service A');

				return false;

			});

		if (i != 0) { container.hide(); }
		else { link.addClass('cur'); }

	});



	/***** BMC SIZING TOOL TABS END *****/

});
$(function()
{

	/***** BMC DATA TABS BEGIN *****/

	var data_wrap = $('DIV.data-tabs');

	var data_tabs = data_wrap.find('> DIV');

	data_wrap.addClass('data-tabs-js');

	var headline_wrap = $('<div class="data-tab"><div class="headline"></div></div>').prependTo(data_wrap).find('DIV.headline');

	var headline_els;

	data_tabs.each(function ()
	{

		var el = $(this);

		var h2 = el.find('DIV.headline H2');

		h2 = h2.appendTo(headline_wrap);

		h2.wrapAll('<a href="javascript:void(0);"></a>');

		h2.click(function ()
		{

			headline_els.removeClass('current');
			h2.addClass('current');
			data_tabs.hide();
			el.show();

			Cufon.refresh('DIV.data-tabs H2');

		})

		el.hide();

	});

	headline_els = headline_wrap.find('> A > H2');
	data_tabs.find('DIV.headline').remove();

	headline_wrap.find('> A > H2:eq(0)').click();

	/***** BMC DATA TABS END *****/

})


$(function()
{

	/***** BMC DATA SUB-TABS BEGIN *****/

	var data_wrap = $('DIV.data-subtabs');

	var data_tabs = data_wrap.find('> DIV');

	data_wrap.addClass('data-subtabs-js');

	var headline_wrap = $('<div class="sub-navigation"></div>').prependTo(data_wrap);

	var headline_els;

	data_tabs.each(function (i)
	{

		var el = $(this);

		var h3 = el.find('> H3');

		if (i == 0) h3.addClass('first');

		h3 = h3.appendTo(headline_wrap);

		h3.wrapAll('<a href="javascript:void(0);"></a>');

		h3.click(function ()
		{

			headline_els.removeClass('current');
			h3.addClass('current');
			data_tabs.hide();
			el.show();

			// Cufon.refresh('DIV.data-tabs H3');

		})

		el.hide();

	});

	headline_els = headline_wrap.find('> A > H3');
	data_tabs.find('DIV.subheadline').remove();
	headline_wrap.find('> A > H3:eq(0)').click();

	/***** BMC DATA SUB-TABS END *****/

});
$(function()
{

	/***** BMC SHOWROOM CONFIG *****/

	// player dimensions
	var width = 950;
	var height = 471;

	var botr_player = 'MFGUuTF2';

	var botr_re = new RegExp(/\/videos\/(\w+)\.mp4$/);
	var botr_dns = "content.bitsontherun.com";
	var botr_iframe = '<iframe frameborder="0" scrolling="auto" '
		+ 'width="' + width + '" height="' + height + '"></iframe>'

	// function to embed flash movie
	var embed = function(flash, conf)
	{
		if (botr_re.exec(flash))
		{

			var url = "http://" + botr_dns + "/previews/" + RegExp.$1 + "-" + botr_player;

			$('#rtp-movie IFRAME').attr("src", url);
		}

	}

	/***** BMC SHOWROOM BEGIN *****/

	// process all slider dom elements
	$('UL.showroom').each(function ()
	{

		// get fader list item
		var fader = $(this);

		// get all links to the panels
		var panels = fader.find('>LI');

		// get all links to the panels
		var links = panels.find('A');

		// need big, normal and thumb picture
		links.each(function (id)
		{

			// get href from given link (for zoom)
			var href = $(this).attr('href');
			// store href on to the given link
			$(this).data('rtp-imgzoom-link', href);
			// get the source of the hidden image (for fader)
			var src = $('IMG:not(:visible)', this).attr('src');
			// change the link href to fade image
			$(this).attr('href', src);

			// attach click function to link
			$(this).click(function (event)
			{
				// show/fade to this image
				fader.data('rtp-imgfader').show_image(id);
				// abort event propagation
				event.preventDefault();
				// return from function
				return false;
			}); // EO click

		})

		// are there even any items?
		if(panels.length == 0) return;

		var get_link = function(type)
		{
			return $(this.el.find('A').get(this[type]))
				.data('rtp-imgzoom-link')
		}

		// initialize this rtp fader
		fader.rtpImgFader(
		{

			effect : 'fade',

			width : width,
			height : height,

			slicesVertical : 1,
			// slideSliceDelay : 10,
			slideEaseDuration : 800,
			slideEaseFunction : 'easeOutQuart',

			// create pointer html
			// preload first big
			hookAfterInit : function ()
			{

				// setup swf links (cosmetics)
				links.each(function ()
				{
					var href = $(this).data('rtp-imgzoom-link');
					if (href.match(/\.mp4$/)) $(this).attr('href', href);
				})

				// set movie dimensions
				this.fader.css({
					'width' : width + 'px',
					'height' : height + 'px'
				});

				$(this.el).wrap('<div class="pointer" style="position:relative" />');

				var row = Math.floor(this.nxt / 8);
				var cell = this.nxt - row * 8;

				this.el.css({ 'position' : 'relative' });

				this.el.pointer = $('<img src="/fileadmin/templates/global/img/arrow-product.gif" class="pointer" />')
					.css({
						'left' : (120 * cell + 50 ) + 'px',
						'top' : (102 * row + 2 ) + 'px',
						'position' : 'absolute'
					}).insertBefore(this.el);

				var lnk_cur = $(this.el.find('A').get(this.cur)).data('rtp-imgzoom-link');

				// rtp.preload();

			},

			hookAfterFading : function (process)
			{

				// hide all fader foreground slices
				fader.data('rtp-imgfader').vertical.hide();
				// fader.data('rtp-imgfader').cubic.hide();
				// fader.data('rtp-imgfader').horizontal.hide();

				// get links to detect content type changes
				var lnk_cur = get_link.call(this, 'cur');

 				// get the image zoom object
 				var zoom = this.image.data('rtp-imgzoom');

				// detect current content type
				if (lnk_cur.match(/\.mp4$/))
				{
					// show flash movie
					zoom.movie.show();

					// zoom.movie.find('OBJECT').css({
					//	'visibility' : 'visible'
					// })

					// hide image viewer
					this.image.hide();
					// hide zoom in text
					zoom.zoom_in.hide();
				}
				else
				{
					// show zoom in text
					zoom.zoom_in.show();
				}

				// hide zoom out text
				zoom.zoom_out.hide();

				// continue
				return true;

			}, // EO hookAfterFading

			hookBeforeFading : function (process)
			{

				// show all fader foreground slices
				fader.data('rtp-imgfader').vertical.show();
				// fader.data('rtp-imgfader').cubic.show();
				// fader.data('rtp-imgfader').horizontal.show();

				// get links to detect content type changes
				var lnk_cur = get_link.call(this, 'cur');
				var lnk_nxt = get_link.call(this, 'nxt');

 				// get the image zoom object
 				var zoom = this.image.data('rtp-imgzoom');

				// hide the movie
				zoom.movie.hide();

				// zoom.movie.css({ 'visibility' : 'hidden' });

				// show fade image
				this.image.show();
				// hide zoom texts
				zoom.zoom_in.hide();
				zoom.zoom_out.hide();

				// previous content is flash
				if (lnk_cur.match(/\.mp4$/))
				{
					// reset movie html (force movie stop)
					zoom.movie.html('<div id="rtp-movie">' + botr_iframe + '</div>');
				}

				// next content is flash
				if (lnk_nxt.match(/\.mp4$/))
				{
					// set movie dimensions
					zoom.movie.css({
						'width' : width + 'px',
						'height' : height + 'px'
					});
					// embed hidden
					embed(lnk_nxt);

					// zoom.movie.find('OBJECT').css({
					// 	'visibility' : 'hidden'
					// })

				}
				else
				{
					// preload big image
					rtp.preload(lnk_nxt);
				}

				var row = Math.floor(this.nxt / 8);
				var cell = this.nxt - row * 8;

				// animate the pointer position
				this.el.pointer.animate({
					'left' : (120 * cell + 50 ) + 'px',
					'top' : (103 * row + 2 ) + 'px'
				}, 800, 'easeOutExpo');

				// continue
				return true;

			} // EO hookBeforeFading

		}); // EO init rtpImgFader

		// fader object from element jquery data
		var imgfader = fader.data('rtp-imgfader');

		// initialize the image zoom plugin
		imgfader.image.rtpImgZoom(
		{

			// get zoom source on runtime
			src : function ()
			{

				// restore big image from thumbnail node data
				return get_link.call(imgfader, 'cur')

			}, // EP src

			hookAfterInit : function (e)
			{

				if (!window.locallang) window.locallang = {};
				if (!locallang['showroom_zoom_in']) locallang['showroom_zoom_in'] = 'Click image to zoom in';
				if (!locallang['showroom_zoom_out']) locallang['showroom_zoom_out'] = 'Click image to zoom out';
				this.movie = $('<div class="rtp-movie"><div id="rtp-movie">' + botr_iframe + '</div></div>').insertBefore(this.viewer);
				this.zoom_in = $('<div class="rtp-imgzoom-info-zoomin">' + locallang['showroom_zoom_in'] + '</div>').insertBefore(this.viewer)
				this.zoom_out = $('<div class="rtp-imgzoom-info-zoomout">' + locallang['showroom_zoom_out'] + '</div>').insertBefore(this.viewer)

				imgfader.vertical.hide();
				// imgfader.cubic.hide();
				// imgfader.horizontal.hide();

				imgfader.slices.vertical.css('z-index', 99);
				// imgfader.slices.cubic.css('z-index', 99);
				// imgfader.slices.horizontal.css('z-index', 99);

				var  url = get_link.call(imgfader, 'cur');

				if (url && url.match(/\.mp4$/))
				{

				// set movie dimensions
				this.movie.css({
					'width' : width + 'px',
					'height' : height + 'px'
				});
				// embed flash movie
				embed(url, { autostart: false });
				// show flash movie
					this.movie.show();
				// hide image viewer
				imgfader.image.hide();
				// hide zoom in text
				this.zoom_in.hide();

				}
				else
				{
					this.movie.hide();
				}

			} // EO hookAfterInit

		}); // EO rtpImgZoom

	});

	/***** BMC SHOWROOM END *****/

});
$(function()
{

	/***** RTP SLIDER BEGIN *****/

	var ie8 = (navigator.appName == 'Microsoft Internet Explorer'
		&& navigator.userAgent.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/)
		&& parseFloat( RegExp.$1 ) >= 8);

	var selector = 'DIV.current DD';
	if (ie8) selector += ', DIV.current DD cufoncanvas *';
	// XXX - doesn't seem to work anymore - do workaround
	// if (ie8) selector += ', DIV.current DD shape';

	// hock for rtp slider - before slide animation is started
	var before_sliding = function(proceed)
	{

		// update slider position
		if (this.nxt.slide != this.cur.slide)
		{
			// update slide count representation
			var cur = $(this.el).parent().find('SPAN.slide-dot-' + this.nxt.slide + ' IMG');
			var prv = $(this.el).parent().find('SPAN.slide-dot-' + this.cur.slide + ' IMG');
			// fade previous out and current in
			cur.animate({ 'opacity' : 1 }, this.conf.slideEaseDuration, 'linear');
			prv.animate({ 'opacity' : 0 }, this.conf.slideEaseDuration, 'linear');
		}

		// get elements to be hidden
		var dds = $(this.el).find(selector);
		// check if there is anything to be done
		if (dds.length == 0) return proceed();
		// get multievent for when we can continue sliding
		var multi = new window.rtp.multievent(proceed);
		// grep out some elements from selection (ie8)
		// grep out some elements from selection (ie8)
		if (ie8)
		{
			dds = $.grep(dds, function(el)
			{
				var tag = el.tagName.toUpperCase();
				if (tag == 'SHAPE') el.style.filter = 'alpha(opacity=0)';
				return tag == 'DD';
			})
		}
		// do all animations and call continue if all satisfied
		$.each(dds, function() { $(this).animate({ 'opacity' : 0 }, 400, 'linear', multi.prerequisite()) });
	}

	// hock for rtp slider - after slide animation is finished
	var after_sliding = function(proceed)
	{
		// only do fade in animation on last slide
		if(this.queue.length > 0) return proceed.call(this);
		// get elements to be hidden
		var dds = $(this.el).find(selector);
		// check if there is anything to be done
		if (dds.length == 0) return proceed();
		// get multievent for when we can continue sliding
		var multi = new window.rtp.multievent(proceed);
		// grep out some elements from selection (ie8)
		if (ie8)
		{
			dds = $.grep(dds, function(el)
			{
				var tag = el.tagName.toUpperCase();
				if (tag == 'SHAPE') el.style.filter = 'alpha(opacity=80)';
				return tag == 'DD';
			})
			// do all animations and call continue if all satisfied
			$.each(dds, function() { $(this).animate({ 'opacity' : 0.8 }, 400, 'linear', multi.prerequisite()) });
		}
		else
		{
		// work with semi-transparent opacity if rgba not supported
		var opacity = dds.css('background-color').match(/rgba/) ? 1 : 0.8;
		// do all animations and call continue if all satisfied
			$.each(dds, function() { $(this).animate({ 'opacity' : opacity }, 400, 'linear', multi.prerequisite()) });
		}
	}

	// hock for rtp slider - after slider initialization
	var after_init = function()
	{

		// only paint dots if there is more than one panel
		if (this.slides.length < 2) return;

		// create a representation for each slide
		var images = []; for(var i = 0; i < this.slides.length; i++)
		{
			images.push(
				'<span class="slide-dot slide-dot-' + i + '" style="background:url(' + slide_dot_empty + ') no-repeat;">' +
					'<a href="javascript:void(0);"><img src="' + slide_dot_full + '" width="8" height="8" alt="' +
					  (i+1) + "/" + this.slides.length + '" title="' + (i+1) + "/" + this.slides.length + '"/></a>' +
				'</span>'
			);
		}

		// append images to the slider dom element
		$('<div class="slide-dots">' + images.join('') + '</div>').appendTo(this.el.parent());

		// attach click event to each slide dot
		for(var i = 0; i < this.slides.length; i++)
		{
			$(this.el.parent()).find('DIV.slide-dots SPAN.slide-dot-' + i).
				click($.proxy(function() { this[0].action(this[1]); }, [this, i]));
		}

		// hide all slide dots
		$(this.el).parent().
			find('SPAN.slide-dot IMG').
			css({ 'opacity' : 0 });

		// show current slide dot
		$(this.el).parent().
			find('SPAN.slide-dot-' + this.cur.slide + ' IMG').
			css({ 'opacity' : 1 });

		// hide navigation arrows now
		fader.call(this, animation_opacity_stop, 0);

	}

	// fade in/out function
	var fader = function(opacity, duration) {
		var prev = $('.rtp-nav-prev a', this);
		var next = $('.rtp-nav-next a', this);
		if(prev) prev.stop(true, false);
		if(next) next.stop(true, false);
		if(prev) prev.animate({ opacity:opacity }, duration);
		if(next) next.animate({ opacity:opacity }, duration);
	}

	// process all slider dom elements
	$('.rtp-slider').each(function ()
	{

		// get and enable/show all slider panels
		var panels = $('.panel', this).show();

		// autoslide only if more than one panel is found
		var enable = panels.length > 1;

		// initialize this rtp slider
		$(this).rtpSlider({
			// basic options
			carousel : true,
			vertical : false,
			crossLinking : false,
			// set up autoslider
			firstAutoSlideDelay : 1000,
			autoSlide : window.autoslide,
			autoSlideStopOnAction : true,
			autoSlidePauseOnMouseOver : true,
			// navigation arrows
			navigationArrows : true,
			navigationArrowPrevText : '<img src="/fileadmin/templates/global/img/slide-arrow-left.gif" width="10" height="21">',
			navigationArrowNextText : '<img src="/fileadmin/templates/global/img/slide-arrow-right.gif" width="10" height="21">',
			// hook functions into slider
			hookAfterInit: after_init,
			hookAfterSliding: after_sliding,
			hookBeforeSliding: before_sliding,
			// randomize first slide to be loaded
			firstSlideToLoad : window.randomslide ? Math.floor(Math.random() * panels.length) : 0
		});

		// fix opacity for the internet explorer
		// $('DIV.current DD', this).css({ 'opacity' : 0.8 });

		// attach hover effect to show/hide navigation arrows
		if(enable) { $('div.rtp-slider-wrapper').hover(
			// fade navigation in and out on hover
			function() { fader.call(this, animation_opacity_start, animation_time); },
			function() { fader.call(this, animation_opacity_stop, animation_time); }
		); } else {
			// disable navigation elements if only a single slide
			$('div.rtp-slider-wrapper').find('.rtp-nav-prev a, .rtp-nav-next a').hide();
		}


		// make the background images in panels clickable too
		panels.each(function(){
			var panel = this;
			$(panel).find('dt img').first().click(function(){
				window.location.pathname = $(panel).find('dd div.more a').first().attr('href');
			});
		});


	});

	/***** RTP SLIDER END *****/

});
// cufonizer function
function cufonize(selector, font, stretch, shadow)
{

	Cufon.replace(
		selector,
		{
			fontFamily : 'BMC HelveticaNeueLT Pro ' + font,
			textShadow : (shadow ? '1px 1px ' + shadow : 'none'),
			fontStretch : stretch + '%',
			letterSpacing : '0'
		}
	);

}

// include hotfix for ie9 beta (maybe remove on final release)
// https://github.com/sorccu/cufon/wiki/faq#faq-8
if ($.browser.msie && $.browser.version == 9)
{ Cufon.set('engine', 'canvas'); }

// cufonize titles
$(function()
{
    if(typeof window.disableCufon == 'undefined' || !window.disableCufon) {
        // these can not be refreshed !!
        // would need to to them all again !!
        cufonize(
             [
                'H2',
                'H3.content',
                'H4.content',
                'DIV.news-item H3',
                'DIV.showroom DIV.service A',
                '#sizing-tool DIV.service A',
                'DIV.overview UL.navigation',
                'DIV.rtp-slider DIV.panel H3',
                'DIV.option-packages H3'
            ].join(','),
            '95 Blk',
            110
        )

        // needed for data tabs style (refresh on activate)
        cufonize('DIV.data-tabs H2', '95 Blk', 110, '#191919');

        // caption for data tables
        cufonize('TABLE.rte CAPTION', '95 Blk', 100, '#191919');

        // collapsible containers
        cufonize('DIV.technology H3', '95 Blk', 110, '#000000');
        cufonize('#sizing-tool DIV.service A', '95 Blk', 110, '#000000');
        cufonize('DIV.technology H4', '45 Lt', 100, '#000000');

        // collapsible containers for sizing tool
        cufonize('#sizing-tool .subtitle', '95 Blk', 90, '#000000');
        cufonize('#sizing-tool FORM DIV.error H3', '95 Blk', 100, '#000000');
        cufonize('#sizing-tool FORM DIV.input LABEL', '95 Blk', 110, '#000000');
        cufonize('#sizing-tool DIV.container DIV.headline H3', '95 Blk', 110, '#000000');
        cufonize('#sizing-tool DIV.container DIV.headline DIV.indicator SPAN', '95 Blk', 110, '#000000');

        // special style for bike titles
        cufonize('H2 SPAN.type, H3 SPAN.type, H4 SPAN.type', '45 Lt', 105, '#191919');
        cufonize('H2 SPAN.bike, H3 SPAN.bike, H4 SPAN.bike', '95 Blk', 105, '#191919');
        cufonize('H2 SPAN.variety, H3 SPAN.variety, H4 SPAN.variety', '45 Lt', 90, '#191919');

        // draw now
        Cufon.now()

        // init cufonized title styles on showroom panels
        var dds = $('.rtp-slider DD'); if (dds.length > 0)
        {
            var opacity = dds.css('background-color').match(/rgba/) ? 1 : 0.8;
            $('.rtp-slider DD, .rtp-slider DD cvml\\:shape').css({ 'opacity' : 0, 'display' : 'block' });
            $('.rtp-slider .current DD, .rtp-slider .current DD cvml\\:shape').css({ 'opacity' : opacity });
        }
    }
});
$(function()
{

	/***** BMC DEALERS MAP BEGIN *****/

	$('BODY').append('<div id="gmaptooltip">tooltip</div>');

	var tooltip = $('#gmaptooltip'), hider;

	tooltip.mouseover(function(e)
	{
		if (hider) { window.clearTimeout(hider); hider = false; }
	})


	tooltip.mouseout(function(e)
	{
		hider = window.setTimeout(function()
		{
			if(tooltip) tooltip.css({
				display : 'none'
			})
			tooltip = null;
		}, 500)
	})


	hider = tooltip = false;

	// init google map asynchronous as we may need to load maps api first
	$("DIV.gmap").bmcGoogleMap({

		hookCreateMarker: function (marker)
		{

			var self = this;

			var root = '/fileadmin/templates/global/img/gmap-marker-';

			var dealer = marker.data[11] ? 'impec' : 'default';

			marker.setIcon(root + dealer + '.png')

			google.maps.event.addListener(marker, 'click', function () {
				$('UL.dealers LI').removeClass('active');
				$('#bmcdealer-' + this.data[0]).addClass('active');
			});


			google.maps.event.addListener(marker, 'mouseover', function (e)
			{

				// clear pending hiding timeout
				if (hider) { window.clearTimeout(hider); hider = false; }

				tooltip = $('#gmaptooltip');

				var html = [];

				if (this.data[3]) html.push('<p class="name">' + this.data[3] + '</p>')
				if (this.data[4]) html.push('<p class="street">' + this.data[4] + '</p>')
				if (this.data[8]) html.push('<p class="tel">' + locallang['gmap_tel'] + ': ' + this.data[8] + '</p>')

				tooltip.html(html.join(''));

				var off = $(self.gmap.getDiv()).offset();
				var h = $(tooltip).outerHeight();
				// var w = $(tooltip).outerWidth();

				var point = self.canvasProjectionOverlay.getProjection().fromLatLngToContainerPixel(e.latLng);

				tooltip.css({
					'display' : 'block',
					'position' : 'absolute',
					'top' :  (off.top + point.y) + 'px',
					'left' : (off.left + point.x - 10) + 'px'
				});

			}); // mouseover

			/*
			google.maps.event.addListener(self.gmap, 'mousemove', function (e)
			{

				if (tooltip && !hider)
				{

					var off = $(self.gmap.getDiv()).offset();
					var h = $(tooltip).outerHeight();
					// var w = $(tooltip).outerWidth();

					tooltip.css({
						'left' : (off.left + e.pixel.x + 5) + 'px',
						'top' :  (off.top + e.pixel.y - 5 - h) + 'px'
					});

				}

			}); // mousemove
			*/

			google.maps.event.addListener(marker, 'mouseout', function (e)
			{

				hider = window.setTimeout(function()
				{
					if(tooltip) tooltip.css({
						display : 'none'
					})
					tooltip = null;
				}, 500)

			}); // mouseout

		}, // hookCreateMarker

		hookAfterInit:	function ()
		{

			// closure for event handlers
			var rtpmap = $("DIV.gmap").data('bmc-gmap');

			function CanvasProjectionOverlay() {}
			CanvasProjectionOverlay.prototype = new google.maps.OverlayView();
			CanvasProjectionOverlay.prototype.constructor = CanvasProjectionOverlay;
			CanvasProjectionOverlay.prototype.onAdd = function(){};
			CanvasProjectionOverlay.prototype.draw = function(){};
			CanvasProjectionOverlay.prototype.onRemove = function(){};

			// attach canvas projection overlay
			rtpmap.canvasProjectionOverlay = new CanvasProjectionOverlay();
			rtpmap.canvasProjectionOverlay.setMap(rtpmap.gmap);

			// update the shown dealers tabs
			var update = function ()
			{

				// shown markers and code segments
				var shown = [], html = [];

				// all clusters of current zoom level
				var clusters = rtpmap.mm.state.clusters[rtpmap.mm.zoom];

				// only go on if clusters are available
				if (clusters == null) return;

				// walk all clusters and collect shown ones
				for(var i = clusters.length - 1; i != -1; -- i)
				{
					if (clusters[i].shown && clusters[i].length >= 1)
					{ shown = shown.concat(clusters[i].markers) }
				}

				// sort items by name
				shown.sort(function (a,b)
				{
					var a = String(a.data[3]).toLowerCase();
					var b = String(b.data[3]).toLowerCase();
					return (a > b ? 1 : (a < b ? -1 : 0));
				})

				// update the dealer list
				$('UL.dealers').html('')

				// walk all shown markers and generate html
				for (var i = 0; i < shown.length; ++ i)
				{

					// get data of this marker
					var data = shown[i].data;
					// compute classes
					var classes = [], html = [];
					if (i == 0) classes.push('first')
					if (i == shown.length - 1) classes.push('last')
					// create list item opening tag (add optional classnames)
					html.push(classes.length ? '<li class="' + classes.join(' ') + '"' : '<li');
					html.push(' id="bmcdealer-' + (data[0]) + '">')
					// create two-column div structure
					html.push('<div class="two-cols"><div class="col-1">');
					// generate various left html code segments
					if (data[3]) html.push('<p class="name">' + data[3] + '</p>');
					if (data[4]) html.push('<p class="street">' + data[4] + '</p>');
					if (data[5] && data[6]) html.push('<p class="city">' + data[5] + ' ' + data[6] + '</p>');
					if (data[7]) html.push('<p class="country">' + data[7] + '</p>');
					// switch from left to right col
					html.push('</div><div class="col-2">');
					// generate various right html code segments
					if (data[8]) html.push('<p class="tel">Tel: ' + data[8] + '</p>');
					if (data[10]) html.push('<p class="email"><a href=\"mailto:' + data[10] + '\">' + data[10] + '</a></p>');
					if (data[9]) html.push('<p class="web"><a href=\"http://' + data[9] + '\" target=\"_blank\">' + data[9] + '</a></p>');
					if (data[12]) html.push('<p class="testcenter"><img src="/fileadmin/templates/global/img/dealer-test-center.gif" width="120" height="20" /></p>');
					// close and open div
					html.push('</div><div>');
					// close the list item
					html.push('</li>');
					// append to the dealer list
					$('UL.dealers').append(html.join(''))

				} // for shown clusters


				if (shown.length == 0)
				{
					$('UL.dealers').append('<li>' + locallang['gmap_dealer_eavail'] + '</li>')
				}

				// calculate height for all li
				var height = 72 * (shown.length + 1);
				// obey min/maximum height
				if (height < 100) height = 100;
				if (height > 840) height = 840;
				// set height of dealers service element
				$('UL.dealers').css('height', height + 'px')


			} // EO update

			// create geocoder for location search
			var geocoder = new rtp.gmap.geocoder();

			// attach event to location form
			$('DIV.gmaplocation FORM').submit(function (event)
			{

				// get value from location input field
				var place = $('DIV.gmaplocation INPUT.text').val();

				// call asynchronous resolver if place is defined
				if(place) geocoder.resolve(place, function (position)
				{

					// assertion
					if (!position) return alert(locallang['gmap_location_efound']);

					rtpmap.mm.zoomed = true;

					if (typeof(position.bounds) !== 'undefined')
					{
						rtpmap.gmap.fitBounds(position.bounds);
					}
					else if(typeof(position.lat) !== 'undefined' && typeof(position.lng) !== 'undefined')
					{
						rtpmap.gmap.setCenter(new google.maps.LatLng(position.lat, position.lng	));
					}
					else
					{
						alert('google maps api response not valid');
					}

					var _dragend = function ()
					{
						if (rtpmap.mm.zoomed == false) { update() }
						else { window.setTimeout(_dragend, 50); }
					}

					_dragend();

				});

				// do not submit the form
				event.preventDefault()

			})

			// attach shown dealers update for map dragend
			google.maps.event.addListener(rtpmap.gmap, 'idle', update);
			// google.maps.event.addListener(rtpmap.gmap, 'dragend', update);

		} // hookAfterInit

	}
	)

	/***** BMC DEALERS MAP END *****/

});

