$(function(){
	$('ul.arch-accord,ul.arch-accord01').accordion({
		active: ".selected",
		autoHeight: false,
		header: ".opener",
		collapsible: true,
		event: "click"
	});
	clearFormFields({
		clearInputs: true,
		clearTextareas: true,
		passwordFieldText: true,
		addClassFocus: "focus",
		filterClass: "default"
	});
	ieHover(".agent div, .side-ad div, .tabset ul a, .accordion .opener div, .v-menu a, .btn-send input", "hover");
	initCufon();
	initAcc();
	$('a.with-popup').each(function(i){
		$(this).pvlightbox();
	});
	$('div.vd-gallery').each(function(){
		$(this).fadeGallery({
			prev : 'a.btn-prev',
			next : 'a.btn-next',
			slides : '>div > ul > li',
			switcher : 'ul.swicher li'
		})
	})
	initFadeTabs();
	initMainGallery();
})

// cufon config
function initCufon() {
	Cufon.replace('.heading a, .tabset ul a, .rss-link, #nav a', { hover: true, fontFamily: 'Caecilia-Heavy' });
	Cufon.replace('.team-block h3, .team-box .contact-box em, .heading, .map-link, .contact-hold .contact-box h3, .tab-hold .tab h2, .popup h3, .accordion .opener strong, .accordion .opener em, .itiner-list h3, .popup h2', { fontFamily: 'Caecilia-Heavy' });
}

//fade tabs
function initFadeTabs() {
	var _duration = 700; //ms
	$('div.tabset ul').each(function(){
		var _list = $(this);
		var _links = _list.find('a.tab');

		_links.each(function() {
			var _link = $(this);
			var _href = _link.attr('href');
			var _tab = $(_href);

			if(_link.hasClass('active')) _tab.show();
			else _tab.hide();

			_link.click(function(){
				if ($($(this).attr('href')).css('display') == 'block') return false;
				_links.filter('.active').each(function(){
					$($(this).removeClass('active').attr('href')).hide();
				});
				_link.addClass('active');
				_tab.stop().css({opacity: 0,display: 'block'}).animate({opacity:1}, _duration);
				return false;
			});
		});
	});
}

function initMainGallery(){
	var slideSpeed = 500
	var easing = 'easeOutExpo';
	var header = $('#header');
	var holder = $('div.gallery-wrapper');
	var slidesHolder = $('div.gallery-slide-holder',holder);
	var firstRun = true;
	var animation = false;
	var smallGallObj = [];
	var bigGallObj = [];
	var activeInd = false;
	var slides = [];
	var scrollGall = [];
	
	$('div.g-holder div.g-slide').each(function(ind){
		var switchTime = getRandomInt(2000,4000);
		var holder = $(this);
		var view = $('a.view',holder);
			smallGallObj[ind] = holder.fadeGallery({
			onChange:function(index){
				if (typeof bigGallObj[ind] != 'undefined') {
					bigGallObj[ind].load(index,true);
					scrollGall[ind].moveCurrent(Math.floor(index/15));
				}
			},
			autoplay : true,
			current:0,
			switchTime : switchTime				
		});
		
		view.click(function(){
			var link = $(this);
			if (firstRun) {
				firstRun = false;
				smallGallObj[ind].toggleAutorotation();
				slidesHolder.animate({height:518},slideSpeed,function(){
					load(ind);
				});
				slidesHolder.addClass('hidedefault');
			} else {
				if (!animation && activeInd !== ind) {	
					animation = true;
					smallGallObj[ind].toggleAutorotation();
					if (activeInd !== false) {
						smallGallObj[activeInd].toggleAutorotation();
					}
					slides[activeInd].animate({bottom:-518},slideSpeed,function(){
						if (typeof slides[ind] != 'undefined') {
							showNext(ind);
						} else {
							load(ind)
						}
					});
				}
			}
			
			function showNext(ind) {
				slides[ind].animate({bottom:0},slideSpeed,function(){
					animation = false;
					activeInd = ind;
				});
			}
			
			function load(ind){
				$.ajax({
					url:link.attr('href'),
					success:function(msg){
						slides[ind] = $(msg);
						slides[ind].appendTo(slidesHolder);
						//additional
						Cufon.replace('.heading', { fontFamily: 'Caecilia-Heavy' });
						var images = slides[ind].find('img');
						var imagesCount = images.length;
						images.each(function(){
							var img = this;
							img.onload = function(){
								img.loaded = true;
								img.onload = null;
								reCalc();
							}
						});
						function reCalc() {
							var cnt = 0;
							images.each(function(){
								if(this.loaded) cnt++;
							});
							if(cnt == imagesCount) {
								showNext(ind);
							}
						}
						bigGallObj[ind] = slides[ind].fadeGallery({
							slides : 'div.visual ul li',
							switcher : 'ul.g-list ul li',
							onChange:function(index){
								smallGallObj[ind].load(index,true);
							},
							current:smallGallObj[ind].current
						});
						scrollGall[ind] = slides[ind].scrollGallery({
							current:Math.floor(smallGallObj[ind].current/15)
						});
					}
				});
			}
			return false;
		});
	});
	
	function getRandomInt(min, max) {
	 	return Math.floor(Math.random() * (max - min + 1)) + min;
	}
}

//OBJ SCROLL GALLERY
$.fn.scrollGallery = function(options) {return new scrollGallery($(this).get(0), options)}

function scrollGallery(element, options) {this.init(element,options)}

scrollGallery.prototype = {
	init: function(element,options){
		var el = this
		el.options = jQuery.extend({
			holder:'div.gallery > div.box',
			slider:'>ul.g-list',
			slides:'>li',
			prev : 'a.prev',
			next : 'a.next',
			duration : 700,
			current:0
		}, options);
		
		el.mainHolder = $(element);
		el.holder = $(el.options.holder,el.mainHolder);
		el.slider = $(el.options.slider,el.holder);
		el.slides = $(el.options.slides,el.slider);
		el.prevBtn = $(el.options.prev,el.mainHolder);
		el.nextBtn = $(el.options.next,el.mainHolder);
		el.duration = el.options.duration;
		el.current = el.options.current;
	
		el.sum = 0;
		el.step = el.holder.width();
		
		el.slides.each(function(i){
			el.sum += $(this).outerWidth(true);
		});
		
		if (el.step > el.sum) el.max = 0
		else el.max = el.sum - el.step;
		
		el.maxCount = Math.floor(el.sum/el.step);
		el.setCurrent(el.current);
		
		el.prevBtn.click(function(){
			el.prevSlide();
			return false;
		})
		el.nextBtn.click(function(){
			el.nextSlide();
			return false;
		})
	},
	nextSlide:function(){
		var el = this;
		if (el.current < el.maxCount) {
			el.current++;
			if (el.current*el.step > el.max) el.move(el.max);
			else el.move(el.current*el.step);
		}
	},
	prevSlide:function(){
		var el = this;
		if (el.current > 0) {
			el.current--;
			el.move(el.current*el.step);
		}
	},
	move:function(margin){
		var el = this;
		el.slider.animate({marginLeft:-margin},el.duration);
	},
	setCurrent:function(current){
		var el = this;
		el.current = current;
		if (el.current * el.step > el.max) el.slider.css({marginLeft:-el.max})
		else el.slider.css({marginLeft:-el.current*el.step});
	},
	moveCurrent:function(current){
		var el = this;
		if (el.current != current) {
			el.current = current;
			if (el.current*el.step > el.max) el.slider.animate({marginLeft:-el.max},el.duration)
			else el.slider.animate({marginLeft:-el.current*el.step},el.duration);
		}
	}
}

//OBJ FADE GALLERY
$.fn.fadeGallery = function(options) {return new fadeGallery($(this).get(0), options)}

function fadeGallery(element, options) {this.init(element,options)}

fadeGallery.prototype = {
	init: function(element,_options){
		var _obj = this
		_obj.options = jQuery.extend({
			prev : 'a.btn-prev',
			next : 'a.btn-next',
			slides : 'ul.visual li',
			switcher : 'ul.switcher li',
			autoplay : false,
			onChange : null,
			switchTime : 7000,
			duration : 700,
			current:0
		}, _options);
		
		_obj.holder = $(element);
		_obj.slides = $(_obj.options.slides, _obj.holder);
		_obj.prev = $(_obj.options.prev, _obj.holder);
		_obj.next = $(_obj.options.next, _obj.holder);
		_obj.slider = _obj.slides.eq(0).parent();
		_obj.switcher = $(_obj.options.switcher, _obj.holder);
		_obj.current = _obj.options.current;
		_obj.autoplay = _obj.options.autoplay;
		_obj.timer;
		
		//set default styles
		_obj.slides.css({opacity:0, display:'none', position:'absolute'});
		_obj.slides.eq(_obj.current).css({opacity:1, display:'block'});
		_obj.switcher.eq(_obj.current).addClass('active');
		
		//events
		_obj.switcher.each(function(i){
			$(this).click(function(e){
				if (_obj.current != i && !_obj.loading) {
					_obj.load(i);
				}
				e.preventDefault();
			});
		});
		
		_obj.next.click(function(e){
			_obj.load(_obj.nextElem());
			e.preventDefault();
		});
		
		_obj.prev.click(function(e){
			_obj.load(_obj.prevElem());
			e.preventDefault();
		});
		
		if (_obj.autoplay) {
			_obj.timer = setTimeout(function(){
				_obj.load(_obj.nextElem());
			}, _obj.options.switchTime);
		}
	},
	
	nextElem: function(){
		var _obj = this;
		var tmp = _obj.current;
		if (tmp <  _obj.slides.length-1) tmp++;
		else tmp = 0;
		return tmp;
	},
	
	prevElem : function(){
		var _obj = this;
		var tmp = _obj.current;
		if (tmp > 0) tmp--;
		else tmp = _obj.slides.length-1;
		return tmp;
	},
	
	load:function(_ind,flag){
		var _obj = this;
		
		if (typeof flag == 'undefined' && $.isFunction(_obj.options.onChange)) {
			_obj.options.onChange(_ind);
		}
		
		_obj.slides.eq(_obj.current).stop().removeClass('active').animate({opacity:0},_obj.options.duration, function(){
			$(this).css({ display: 'none'});
			//autoplay
			clearTimeout(_obj.timer);
			if (_obj.autoplay) {
				_obj.timer = setTimeout(function(){
					_obj.load(_obj.nextElem());
				}, _obj.options.switchTime);
			}
		})
		_obj.slides.eq(_ind).stop().addClass('active').css({display:'block'}).animate({opacity:1},_obj.options.duration);
		_obj.switcher.eq(_obj.current).removeClass('active').end().eq(_ind).addClass('active');
		_obj.current = _ind;
	},
	
	toggleAutorotation : function(){
		var _obj = this;
		clearTimeout(_obj.timer);
		if (_obj.autoplay) _obj.autoplay = false
		else {
			_obj.autoplay = true;
			_obj.timer = setTimeout(function(){
				_obj.load(_obj.nextElem());
			}, _obj.options.switchTime);
		}
	}
}

//OBJ LIGHTBOX
$.fn.pvlightbox = function(options){return new pvlightbox($(this).eq(0),options)}
function pvlightbox(link, options) {this.init(link,options)}
pvlightbox.prototype = {
	init:function(link,options){
		var el = this;
		//options
		el.options = $.extend({
			fadeSpeed:400,
			closer:'a.close',
			wrapper:'#wrapper',
			IE:false,
			zIndex:1000
		},options);	
		//popup & default css styles
		if ($.browser.msie && el.options.IE) el.popup = $(link.attr('href')).css({visibility:'hidden'})
		else el.popup = $(link.attr('href')).css({opacity:0,visibility:'hidden'});
		if (el.options.zIndex) el.popup.css({zIndex : el.options.zIndex});
		el.closer = $(el.popup.find(el.options.closer));
		el.popup.visible = false;
		pvlightbox.prototype.activePopup = false;
		if (!pvlightbox.prototype.firstRun) {
			pvlightbox.prototype.firstRun = 'done'
			if ($.browser.msie && $.browser.version < 7) pvlightbox.prototype.selects = $('select',document);
			//create fader
			if (!$('#fader').length) {
				$('body').append('<div id="fader"></div>');
				pvlightbox.prototype.fader = $('#fader');
				pvlightbox.prototype.fader.css({position:'absolute',top:0,left:0,background:'#000',opacity:0,display:'none'});	
				if (el.options.zIndex) pvlightbox.prototype.fader.css({zIndex : el.options.zIndex-1});
			}
			//fader click event
			pvlightbox.prototype.fader.click(function(){
				if (pvlightbox.prototype.activePopup == false) el.hideFader()
				else pvlightbox.prototype.activePopup.hidePopup(function(){el.hideFader()});
				return false;
			});
			//esc event
			$(document).keydown(function (e) {
				if (e.keyCode == 27) {
					if (pvlightbox.prototype.activePopup == false) el.hideFader()
					else pvlightbox.prototype.activePopup.hidePopup(function(){el.hideFader()});
					return false;
				}
			});
			//minWidth
			pvlightbox.prototype.minWidth = $('body').css('min-width');
			if (pvlightbox.prototype.minWidth == '0px' || typeof(pvlightbox.prototype.minWidth) == 'undefined') {
				if (el.options.wrapper) {
					pvlightbox.prototype.wrapper = $(el.options.wrapper);
					pvlightbox.prototype.minWidth = $(el.options.wrapper).outerWidth();
				}
			}
			pvlightbox.prototype.minWidth = parseInt(pvlightbox.prototype.minWidth);
		}
		if ($.browser.msie && $.browser.version < 7) {
			el.popupSelects = $('select',el.popup);
			pvlightbox.prototype.selects = pvlightbox.prototype.selects.not(el.popupSelects);
		}
		//open event
		link.click(function(){
			if (pvlightbox.prototype.activePopup == el) {return false;}
			if (pvlightbox.prototype.activePopup) {
				pvlightbox.prototype.activePopup.hidePopup(function(){
					el.showPopup()
					el.positioning(true);
				});
			} else {
				el.showFader(function(){el.showPopup()});
				el.positioning(true);
			} 
			return false;
		});
		//close event
		el.closer.click(function(){
			el.hidePopup(function(){el.hideFader()});
			return false;
		});
		//resize event
		$(window).resize(function(){
			if (el.popup.visible) el.positioning(false);
		});
	},
	showPopup:function(){
		var el = this;
		el.popup.visible = true;
		pvlightbox.prototype.activePopup = el;
		if ($.browser.msie && el.options.IE) el.popup.css({visibility:'visible'})
		else el.popup.stop().css({'visibility':'visible'}).animate({opacity:1},el.options.fadeSpeed)
	},
	hidePopup:function(callback){
		var el = this;
		if ($.browser.msie && el.options.IE) {
			el.popup.css({left:'-9999px',top:'-9999px',visibility:'hidden'});
			el.popup.visible = false;
			pvlightbox.prototype.activePopup = false;
			if ($.isFunction(callback)) callback();
		} else {
			el.popup.stop().animate({opacity:0},el.options.fadeSpeed,function(){
				el.popup.css({left:'-9999px',top:'-9999px',visibility:'hidden'});
				el.popup.visible = false;
				pvlightbox.prototype.activePopup = false;
				if ($.isFunction(callback)) callback();
			});
		}
	},
	showFader:function(callback){
		var el = this;
		el.fader.stop().css({display:'block'}).animate({opacity:0.5},el.options.fadeSpeed,function(){
			if ($.isFunction(callback)) callback();
		});
		if ($.browser.msie && $.browser.version < 7) pvlightbox.prototype.selects.css({'visibility': 'hidden'});
	},
	hideFader:function(){
		var el = this;
		el.fader.stop().animate({opacity:0},el.options.fadeSpeed,function(){
			el.fader.css({display:'none'});
			if ($.browser.msie && $.browser.version < 7) pvlightbox.prototype.selects.css({'visibility': 'visible'});
		});
	},
	positioning:function(openFlag){
		var el = this;
		//x offset
		var windowW = $(window).width();
		var popupW = el.popup.outerWidth();
		if (windowW < pvlightbox.prototype.minWidth) {
			el.popup.css({left:pvlightbox.prototype.minWidth/2-popupW/2})
			el.fader.css({width:pvlightbox.prototype.minWidth});
		} else {
			 el.popup.css({left:windowW/2-popupW/2});
			 el.fader.css({width:windowW})
		}
		//y offset
		var docH = $(document).height();
		var popupH = el.popup.outerHeight();
		if (openFlag) {
			var windowH = $(window).height();
			var popupH = el.popup.outerHeight();
			if (popupH < windowH) el.popup.css({top:windowH/2-popupH/2+$(window).scrollTop()});
			else if ($(window).scrollTop()+popupH > docH){
				el.popup.css({top:docH-popupH});
			} else {
				el.popup.css({top:$(window).scrollTop()});
			}
		}
		el.fader.css({height:docH});
	}
}

/*--- acc nav ---*/
function initAcc(){
	var _hold = $('ul.accordion');
	var intro = $('div.intro');
	_hold.each(function(){
		var _list = $(this).children();
		var _a = _list.index(_list.filter('.active:eq(0)'));
		if(_a != -1){
			_list.removeClass('active').eq(_a).addClass('active');
		}
		_list.each(function(_i){
			var _el = $(this);
			_el.removeClass('active');
			this._btn = _el.find('div.opener a');
			this._box = _el.children('div.slide');
			if(this._btn.length && this._box.length){
				this._h = this._box.height();
				if(_i == _a) this._box.show();
				else this._box.hide();
				this._btn.click(function(){
					if(_a != -1){
						_list.eq(_a).removeClass('active');
						_list.get(_a)._box.stop().animate({height: 0}, 400, function(){
							$(this).css({display: 'none', height: 'auto'});
						});
					}
					if(_a != _i){
						_list.eq(_i).addClass('active');
						if(_list.get(_i)._box.is(':hidden')){
							_list.get(_i)._box.show();
							_list.get(_i)._h = _list.get(_i)._box.height();
							_list.get(_i)._box.height(0);
						}
						_list.get(_i)._box.stop().animate({ height: _list.get(_i)._h}, 400, function(){
							$(this).height('auto');
						});
						_a = _i;
					}
					else{
						_a = -1;
					}
					return false;
				});
			}
		});
	});
}

//ie6 hover
function ieHover(h_list, h_class){
	if($.browser.msie && $.browser.version < 7){
		if(!h_class) var h_class = 'hover';
		$(h_list).mouseenter(function(){
			$(this).addClass(h_class);
		}).mouseleave(function(){
			$(this).removeClass(h_class);
		});
	}
}

//clear form fields
function clearFormFields(o)
{
	if (o.clearInputs == null) o.clearInputs = true;
	if (o.clearTextareas == null) o.clearTextareas = true;
	if (o.passwordFieldText == null) o.passwordFieldText = false;
	if (o.addClassFocus == null) o.addClassFocus = false;
	if (!o.filter) o.filter = "default";
	if(o.clearInputs) {
		var inputs = document.getElementsByTagName("input");
		for (var i = 0; i < inputs.length; i++ ) {
			if((inputs[i].type == "text" || inputs[i].type == "password") && inputs[i].className.indexOf(o.filterClass)) {
				inputs[i].valueHtml = inputs[i].value;
				inputs[i].onfocus = function ()	{
					if(this.valueHtml == this.value) this.value = "";
					if(this.fake) {
						inputsSwap(this, this.previousSibling);
						this.previousSibling.focus();
					}
					if(o.addClassFocus && !this.fake) {
						this.className += " " + o.addClassFocus;
						this.parentNode.className += " parent-" + o.addClassFocus;
					}
				}
				inputs[i].onblur = function () {
					if(this.value == "") {
						this.value = this.valueHtml;
						if(o.passwordFieldText && this.type == "password") inputsSwap(this, this.nextSibling);
					}
					if(o.addClassFocus) {
						this.className = this.className.replace(o.addClassFocus, "");
						this.parentNode.className = this.parentNode.className.replace("parent-"+o.addClassFocus, "");
					}
				}
				if(o.passwordFieldText && inputs[i].type == "password") {
					var fakeInput = document.createElement("input");
					fakeInput.type = "text";
					fakeInput.value = inputs[i].value;
					fakeInput.className = inputs[i].className;
					fakeInput.fake = true;
					inputs[i].parentNode.insertBefore(fakeInput, inputs[i].nextSibling);
					inputsSwap(inputs[i], null);
				}
			}
		}
	}
	if(o.clearTextareas) {
		var textareas = document.getElementsByTagName("textarea");
		for(var i=0; i<textareas.length; i++) {
			if(textareas[i].className.indexOf(o.filterClass)) {
				textareas[i].valueHtml = textareas[i].value;
				textareas[i].onfocus = function() {
					if(this.value == this.valueHtml) this.value = "";
					if(o.addClassFocus) {
						this.className += " " + o.addClassFocus;
						this.parentNode.className += " parent-" + o.addClassFocus;
					}
				}
				textareas[i].onblur = function() {
					if(this.value == "") this.value = this.valueHtml;
					if(o.addClassFocus) {
						this.className = this.className.replace(o.addClassFocus, "");
						this.parentNode.className = this.parentNode.className.replace("parent-"+o.addClassFocus, "");
					}
				}
			}
		}
	}
	function inputsSwap(el, el2) {
		if(el) el.style.display = "none";
		if(el2) el2.style.display = "inline";
	}
}

/*!
 * jQuery UI 1.8.1
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
jQuery.ui||function(c){c.ui={version:"1.8.1",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")=="hidden")return false;
b=b&&b=="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,f,g){return c.ui.isOverAxis(a,d,f)&&c.ui.isOverAxis(b,e,g)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,
PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||
/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==
undefined)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b=="absolute"||b=="relative"||b=="fixed"){b=parseInt(a.css("zIndex"));if(!isNaN(b)&&b!=0)return b}a=a.parent()}}return 0}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");return(/input|select|textarea|button|object/.test(b)?!a.disabled:"a"==b||"area"==b?a.href||!isNaN(d):!isNaN(d))&&
!c(a)["area"==b?"parents":"closest"](":hidden").length},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}})}(jQuery);
;/*!
 * jQuery UI Widget 1.8.1
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Widget
 */
;(function(b){var j=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return j.call(b(this),a,c)})};b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend({},c.options);b[e][a].prototype=
b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.substring(0,1)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==undefined){h=i;return false}}):this.each(function(){var g=
b.data(this,a);if(g){d&&g.option(d);g._init()}else b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){this.element=b(c).data(this.widgetName,this);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(c)[this.widgetName],a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();
this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a,e=this;if(arguments.length===0)return b.extend({},e.options);if(typeof a==="string"){if(c===undefined)return this.options[a];d={};d[a]=c}b.each(d,function(f,
h){e._setOption(f,h)});return e},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=
b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
;/*
 * jQuery UI Accordion 1.8.1
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Accordion
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.widget.js
 */
;(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},_create:function(){var a=this.options,b=this;this.running=0;this.element.addClass("ui-accordion ui-widget ui-helper-reset");
this.element[0].nodeName=="UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(a.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c(this).removeClass("ui-state-focus")});
this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(a.navigation){var d=this.element.find("a").filter(a.navigationFilter);if(d.length){var f=d.closest(".ui-accordion-header");this.active=f.length?f:d.closest(".ui-accordion-content").prev()}}this.active=this._findActive(this.active||a.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");
this._createIcons();this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(g){return b._keydown(g)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();this.active.length?this.active.attr("aria-expanded","true").attr("tabIndex","0"):this.headers.eq(0).attr("tabIndex","0");c.browser.safari||this.headers.find("a").attr("tabIndex","-1");a.event&&this.headers.bind(a.event+
".accordion",function(g){b._clickHandler.call(b,g,this);g.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){c("<span/>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");
this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(a.autoHeight||a.fillHeight)b.css("height",
"");return this},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons();b&&this._createIcons()}},_keydown:function(a){var b=c.ui.keyCode;if(!(this.options.disabled||a.altKey||a.ctrlKey)){var d=this.headers.length,f=this.headers.index(a.target),g=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:g=this.headers[(f+1)%d];break;case b.LEFT:case b.UP:g=this.headers[(f-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},
a.target);a.preventDefault()}if(g){c(a.target).attr("tabIndex","-1");c(g).attr("tabIndex","0");g.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,
b-c(this).innerHeight()+c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a=="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=
this.options;if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]==this.active[0];d.active=d.collapsible&&b?false:c(".ui-accordion-header",this.element).index(a);if(!(this.running||!d.collapsible&&b)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);
a.next().addClass("ui-accordion-content-active")}e=a.next();f=this.active.next();g={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):e,oldContent:f};d=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(e,f,g,b,d)}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
this.active.next().addClass("ui-accordion-content-active");var f=this.active.next(),g={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:f},e=this.active=c([]);this._toggle(e,f,g)}},_toggle:function(a,b,d,f,g){var e=this.options,k=this;this.toShow=a;this.toHide=b;this.data=d;var i=function(){if(k)return k._completed.apply(k,arguments)};this._trigger("changestart",null,this.data);this.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&f?{toShow:c([]),
toHide:b,complete:i,down:g,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:i,down:g,autoHeight:e.autoHeight||e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;f=c.ui.accordion.animations;var h=e.duration,j=e.animated;if(j&&!f[j]&&!c.easing[j])j="slide";f[j]||(f[j]=function(l){this.slide(l,{easing:j,
duration:h||700})});f[j](d)}else{if(e.collapsible&&f)a.toggle();else{b.hide();a.show()}i(true)}b.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();a.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(a){var b=this.options;this.running=a?0:--this.running;if(!this.running){b.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,
{version:"1.8.1",animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),f=0,g={},e={},k;b=a.toShow;k=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(i,h){e[h]="hide";i=(""+c.css(a.toShow[0],
h)).match(/^([\d+-.]+)(.*)$/);g[h]={value:i[1],unit:i[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(e,{step:function(i,h){if(h.prop=="height")f=h.end-h.start===0?0:(h.now-h.start)/(h.end-h.start);a.toShow[0].style[h.prop]=f*g[h.prop].value+g[h.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css("width",k);a.toShow.css({overflow:d});a.complete()}})}else a.toHide.animate({height:"hide"},
a);else a.toShow.animate({height:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);

/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 */
var Cufon=(function(){var K=function(){return K.replace.apply(null,arguments)};var U=K.DOM={ready:(function(){var Z=false,b={loaded:1,complete:1};var Y=[],a=function(){if(Z){return}Z=true;for(var c;c=Y.shift();c()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",a,false);window.addEventListener("pageshow",a,false)}if(!window.opera&&document.readyState){(function(){b[document.readyState]?a():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");a()}catch(c){setTimeout(arguments.callee,1)}})()}O(window,"load",a);return function(c){if(!arguments.length){a()}else{Z?c():Y.push(c)}}})()};var L=K.CSS={Size:function(Z,Y){this.value=parseFloat(Z);this.unit=String(Z).match(/[a-z%]*$/)[0]||"px";this.convert=function(a){return a/Y*this.value};this.convertFrom=function(a){return a/this.value*Y};this.toString=function(){return this.value+this.unit}},getStyle:function(Z){var Y=document.defaultView;if(Y&&Y.getComputedStyle){return new A(Y.getComputedStyle(Z,null))}if(Z.currentStyle){return new A(Z.currentStyle)}return new A(Z.style)},ready:(function(){var a=false;var Z=[],b=function(){a=true;for(var d;d=Z.shift();d()){}};var Y=Object.prototype.propertyIsEnumerable?F("style"):{length:0};var c=F("link");U.ready(function(){var g=0,f;for(var e=0,d=c.length;f=c[e],e<d;++e){if(!f.disabled&&f.rel.toLowerCase()=="stylesheet"){++g}}if(document.styleSheets.length>=Y.length+g){b()}else{setTimeout(arguments.callee,10)}});return function(d){if(a){d()}else{Z.push(d)}}})(),supports:function(a,Z){var Y=document.createElement("span").style;if(Y[a]===undefined){return false}Y[a]=Z;return Y[a]===Z},textAlign:function(b,a,Y,Z){if(a.get("textAlign")=="right"){if(Y>0){b=" "+b}}else{if(Y<Z-1){b+=" "}}return b},textDecoration:function(d,c){if(!c){c=this.getStyle(d)}var Z={underline:null,overline:null,"line-through":null};for(var Y=d;Y.parentNode&&Y.parentNode.nodeType==1;){var b=true;for(var a in Z){if(Z[a]){continue}if(c.get("textDecoration").indexOf(a)!=-1){Z[a]=c.get("color")}b=false}if(b){break}c=this.getStyle(Y=Y.parentNode)}return Z},textShadow:I(function(c){if(c=="none"){return null}var b=[],d={},Y,Z=0;var a=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(Y=a.exec(c)){if(Y[0]==","){b.push(d);d={},Z=0}else{if(Y[1]){d.color=Y[1]}else{d[["offX","offY","blur"][Z++]]=Y[2]}}}b.push(d);return b}),color:I(function(Z){var Y={};Y.color=Z.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(b,a,c){Y.opacity=parseFloat(c);return"rgb("+a+")"});return Y}),textTransform:function(Z,Y){return Z[{uppercase:"toUpperCase",lowercase:"toLowerCase"}[Y.get("textTransform")]||"toString"]()}};function Q(Z){var Y=this.face=Z.face;this.glyphs=Z.glyphs;this.w=Z.w;this.baseSize=parseInt(Y["units-per-em"],10);this.family=Y["font-family"].toLowerCase();this.weight=Y["font-weight"];this.style=Y["font-style"]||"normal";this.viewBox=(function(){var b=Y.bbox.split(/\s+/);var a={minX:parseInt(b[0],10),minY:parseInt(b[1],10),maxX:parseInt(b[2],10),maxY:parseInt(b[3],10)};a.width=a.maxX-a.minX,a.height=a.maxY-a.minY;a.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return a})();this.ascent=-parseInt(Y.ascent,10);this.descent=-parseInt(Y.descent,10);this.height=-this.ascent+this.descent}function E(){var Z={},Y={oblique:"italic",italic:"oblique"};this.add=function(a){(Z[a.style]||(Z[a.style]={}))[a.weight]=a};this.get=function(e,f){var d=Z[e]||Z[Y[e]]||Z.normal||Z.italic||Z.oblique;if(!d){return null}f={normal:400,bold:700}[f]||parseInt(f,10);if(d[f]){return d[f]}var b={1:1,99:0}[f%100],h=[],c,a;if(b===undefined){b=f>400}if(f==500){f=400}for(var g in d){g=parseInt(g,10);if(!c||g<c){c=g}if(!a||g>a){a=g}h.push(g)}if(f<c){f=c}if(f>a){f=a}h.sort(function(j,i){return(b?(j>f&&i>f)?j<i:j>i:(j<f&&i<f)?j>i:j<i)?-1:1});return d[h[0]]}}function P(){function a(c,d){if(c.contains){return c.contains(d)}return c.compareDocumentPosition(d)&16}function Y(d){var c=d.relatedTarget;if(!c||a(this,c)){return}Z(this)}function b(c){Z(this)}function Z(c){setTimeout(function(){K.replace(c,D.get(c).options,true)},10)}this.attach=function(c){if(c.onmouseenter===undefined){O(c,"mouseover",Y);O(c,"mouseout",Y)}else{O(c,"mouseenter",b);O(c,"mouseleave",b)}}}function X(){var a={},Y=0;function Z(b){return b.cufid||(b.cufid=++Y)}this.get=function(b){var c=Z(b);return a[c]||(a[c]={})}}function A(Y){var a={},Z={};this.get=function(b){return a[b]!=undefined?a[b]:Y[b]};this.getSize=function(c,b){return Z[c]||(Z[c]=new L.Size(this.get(c),b))};this.extend=function(b){for(var c in b){a[c]=b[c]}return this}}function O(Z,Y,a){if(Z.addEventListener){Z.addEventListener(Y,a,false)}else{if(Z.attachEvent){Z.attachEvent("on"+Y,function(){return a.call(Z,window.event)})}}}function R(Z,Y){var a=D.get(Z);if(a.options){return Z}if(Y.hover&&Y.hoverables[Z.nodeName.toLowerCase()]){B.attach(Z)}a.options=Y;return Z}function I(Y){var Z={};return function(a){if(!Z.hasOwnProperty(a)){Z[a]=Y.apply(null,arguments)}return Z[a]}}function C(d,c){if(!c){c=L.getStyle(d)}var Z=c.get("fontFamily").split(/\s*,\s*/),b;for(var a=0,Y=Z.length;a<Y;++a){b=Z[a].replace(/^(["'])(.*?)\1$/,"$2").toLowerCase();if(H[b]){return H[b].get(c.get("fontStyle"),c.get("fontWeight"))}}return null}function F(Y){return document.getElementsByTagName(Y)}function G(){var Y={},b;for(var a=0,Z=arguments.length;a<Z;++a){for(b in arguments[a]){Y[b]=arguments[a][b]}}return Y}function M(b,k,Z,m,c,a){var j=m.separate;if(j=="none"){return W[m.engine].apply(null,arguments)}var h=document.createDocumentFragment(),e;var f=k.split(N[j]),Y=(j=="words");if(Y&&S){if(/^\s/.test(k)){f.unshift("")}if(/\s$/.test(k)){f.push("")}}for(var g=0,d=f.length;g<d;++g){e=W[m.engine](b,Y?L.textAlign(f[g],Z,g,d):f[g],Z,m,c,a,g<d-1);if(e){h.appendChild(e)}}return h}function J(Z,g){var a,Y,d,f;for(var b=R(Z,g).firstChild;b;b=d){d=b.nextSibling;f=false;if(b.nodeType==1){if(!b.firstChild){continue}if(!/cufon/.test(b.className)){arguments.callee(b,g);continue}else{f=true}}if(!Y){Y=L.getStyle(Z).extend(g)}if(!a){a=C(Z,Y)}if(!a){continue}if(f){W[g.engine](a,null,Y,g,b,Z);continue}var e=b.data;if(e===""){continue}var c=M(a,e,Y,g,b,Z);if(c){b.parentNode.replaceChild(c,b)}else{b.parentNode.removeChild(b)}}}var S=" ".split(/\s+/).length==0;var D=new X();var B=new P();var V=[];var W={},H={},T={enableTextDecoration:false,engine:null,hover:false,hoverables:{a:true},printable:true,selector:(window.Sizzle||window.jQuery||(window.dojo&&dojo.query)||(window.$$&&function(Y){return $$(Y)})||(window.$&&function(Y){return $(Y)})||(document.querySelectorAll&&function(Y){return document.querySelectorAll(Y)})||F),separate:"words",textShadow:"none"};var N={words:/\s+/,characters:""};K.now=function(){U.ready();return K};K.refresh=function(){var a=V.splice(0,V.length);for(var Z=0,Y=a.length;Z<Y;++Z){K.replace.apply(null,a[Z])}return K};K.registerEngine=function(Z,Y){if(!Y){return K}W[Z]=Y;return K.set("engine",Z)};K.registerFont=function(a){var Y=new Q(a),Z=Y.family;if(!H[Z]){H[Z]=new E()}H[Z].add(Y);return K.set("fontFamily",Z)};K.replace=function(a,Z,Y){Z=G(T,Z);if(!Z.engine){return K}if(typeof Z.textShadow=="string"){Z.textShadow=L.textShadow(Z.textShadow)}if(!Y){V.push(arguments)}if(a.nodeType||typeof a=="string"){a=[a]}L.ready(function(){for(var c=0,b=a.length;c<b;++c){var d=a[c];if(typeof d=="string"){K.replace(Z.selector(d),Z,true)}else{J(d,Z)}}});return K};K.set=function(Y,Z){T[Y]=Z;return K};return K})();Cufon.registerEngine("canvas",(function(){var B=document.createElement("canvas");if(!B||!B.getContext||!B.getContext.apply){return null}B=null;var A=Cufon.CSS.supports("display","inline-block");var E=!A&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var F=document.createElement("style");F.type="text/css";F.appendChild(document.createTextNode(".cufon-canvas{text-indent:0}@media screen,projection{.cufon-canvas{display:inline;display:inline-block;position:relative;vertical-align:middle"+(E?"":";font-size:1px;line-height:1px")+"}.cufon-canvas .cufon-alt{position:absolute;left:-10000in;font-size:1px}"+(A?".cufon-canvas canvas{position:relative}":".cufon-canvas canvas{position:absolute}")+"}@media print{.cufon-canvas{padding:0 !important}.cufon-canvas canvas{display:none}.cufon-canvas .cufon-alt{display:inline}}"));document.getElementsByTagName("head")[0].appendChild(F);function D(O,H){var M=0,L=0;var G=[],N=/([mrvxe])([^a-z]*)/g,J;generate:for(var I=0;J=N.exec(O);++I){var K=J[2].split(",");switch(J[1]){case"v":G[I]={m:"bezierCurveTo",a:[M+~~K[0],L+~~K[1],M+~~K[2],L+~~K[3],M+=~~K[4],L+=~~K[5]]};break;case"r":G[I]={m:"lineTo",a:[M+=~~K[0],L+=~~K[1]]};break;case"m":G[I]={m:"moveTo",a:[M=~~K[0],L=~~K[1]]};break;case"x":G[I]={m:"closePath"};break;case"e":break generate}H[G[I].m].apply(H,G[I].a)}return G}function C(K,J){for(var I=0,H=K.length;I<H;++I){var G=K[I];J[G.m].apply(J,G.a)}}return function(q,T,k,P,X,r){var I=(T===null);var V=q.viewBox;var J=k.getSize("fontSize",q.baseSize);var h=k.get("letterSpacing");h=(h=="normal")?0:J.convertFrom(parseInt(h,10));var W=0,j=0,f=0,R=0;var U=P.textShadow,d=[];if(U){for(var p=0,m=U.length;p<m;++p){var Z=U[p];var c=J.convertFrom(parseFloat(Z.offX));var b=J.convertFrom(parseFloat(Z.offY));d[p]=[c,b];if(b<W){W=b}if(c>j){j=c}if(b>f){f=b}if(c<R){R=c}}}var u=Cufon.CSS.textTransform(I?X.alt:T,k).split("");var G=0,S=null;for(var p=0,m=u.length;p<m;++p){var Q=q.glyphs[u[p]]||q.missingGlyph;if(!Q){continue}G+=S=Number(Q.w||q.w)+h}if(S===null){return null}j+=(V.width-S);R+=V.minX;var O,K;if(I){O=X;K=X.firstChild}else{O=document.createElement("span");O.className="cufon cufon-canvas";O.alt=T;K=document.createElement("canvas");O.appendChild(K);if(P.printable){var n=document.createElement("span");n.className="cufon-alt";n.appendChild(document.createTextNode(T));O.appendChild(n)}}var v=O.style;var a=K.style;var H=J.convert(V.height-W+f);var t=Math.ceil(H);var e=t/H;K.width=Math.ceil(J.convert(G+j-R)*e);K.height=t;W+=V.minY;a.top=Math.round(J.convert(W-q.ascent))+"px";a.left=Math.round(J.convert(R))+"px";var N=Math.ceil(J.convert(G*e))+"px";if(A){v.width=N;v.height=J.convert(q.height)+"px"}else{v.paddingLeft=N;v.paddingBottom=(J.convert(q.height)-1)+"px"}var s=K.getContext("2d"),Y=t/V.height;s.scale(Y,Y);s.translate(-R,-W);s.lineWidth=q.face["underline-thickness"];s.save();function L(i,g){s.strokeStyle=g;s.beginPath();s.moveTo(0,i);s.lineTo(G,i);s.stroke()}var M=P.enableTextDecoration?Cufon.CSS.textDecoration(r,k):{};if(M.underline){L(-q.face["underline-position"],M.underline)}if(M.overline){L(q.ascent,M.overline)}s.fillStyle=k.get("color");function o(){for(var w=0,g=u.length;w<g;++w){var x=q.glyphs[u[w]]||q.missingGlyph;if(!x){continue}s.beginPath();if(x.d){if(x.code){C(x.code,s)}else{x.code=D("m"+x.d,s)}}s.fill();s.translate(Number(x.w||q.w)+h,0)}}if(U){for(var p=0,m=U.length;p<m;++p){var Z=U[p];s.save();s.fillStyle=Z.color;s.translate.apply(s,d[p]);o();s.restore()}}o();s.restore();if(M["line-through"]){L(-q.descent,M["line-through"])}return O}})());Cufon.registerEngine("vml",(function(){if(!document.namespaces){return}document.write('<!--[if vml]><script type="text/javascript">Cufon.vmlEnabled=true;<\/script><![endif]-->');if(!Cufon.vmlEnabled){return}if(document.namespaces.cvml==null){document.namespaces.add("cvml","urn:schemas-microsoft-com:vml");document.write('<style type="text/css">.cufon-vml-canvas{text-indent:0}@media screen{cvml\\:shape,cvml\\:group,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute}.cufon-vml-canvas{position:absolute;text-align:left}.cufon-vml{display:inline-block;position:relative;vertical-align:middle}.cufon-vml .cufon-alt{position:absolute;left:-10000in;font-size:1px}a .cufon-vml{cursor:pointer}}@media print{.cufon-vml *{display:none}.cufon-vml .cufon-alt{display:inline}}</style>')}function B(C,D){return A(C,/(?:em|ex|%)$/i.test(D)?"1em":D)}function A(F,G){if(/px$/i.test(G)){return parseFloat(G)}var E=F.style.left,D=F.runtimeStyle.left;F.runtimeStyle.left=F.currentStyle.left;F.style.left=G;var C=F.style.pixelLeft;F.style.left=E;F.runtimeStyle.left=D;return C}return function(r,U,m,R,Y,s,h){var F=(U===null);if(F){U=Y.alt}var W=r.viewBox;var G=m.computedFontSize||(m.computedFontSize=new Cufon.CSS.Size(B(s,m.get("fontSize"))+"px",r.baseSize));var g=m.computedLSpacing;if(g==undefined){g=m.get("letterSpacing");m.computedLSpacing=g=(g=="normal")?0:~~G.convertFrom(A(s,g))}var O,H;if(F){O=Y;H=Y.firstChild}else{O=document.createElement("span");O.className="cufon cufon-vml";O.alt=U;H=document.createElement("span");H.className="cufon-vml-canvas";O.appendChild(H);if(R.printable){var p=document.createElement("span");p.className="cufon-alt";p.appendChild(document.createTextNode(U));O.appendChild(p)}if(!h){O.appendChild(document.createElement("cvml:group"))}}var x=O.style;var b=H.style;var D=G.convert(W.height),u=Math.ceil(D);var f=u/D;var e=W.minX,d=W.minY;b.height=u;b.top=Math.round(G.convert(d-r.ascent));b.left=Math.round(G.convert(e));x.height=G.convert(r.height)+"px";var K=R.enableTextDecoration?Cufon.CSS.textDecoration(s,m):{};var T=m.get("color");var v=Cufon.CSS.textTransform(U,m).split("");var C=0,c=0,L=null;var S,M,V=R.textShadow;for(var q=0,o=0,n=v.length;q<n;++q){S=r.glyphs[v[q]]||r.missingGlyph;if(S){C+=L=~~(S.w||r.w)+g}}if(L===null){return null}var N=-e+C+(W.width-L);var w=G.convert(N*f),j=Math.round(w);var a=N+","+W.height,E;var X="r"+a+"nsnf";for(q=0;q<n;++q){S=r.glyphs[v[q]]||r.missingGlyph;if(!S){continue}if(F){M=H.childNodes[o];if(M.firstChild){M.removeChild(M.firstChild)}}else{M=document.createElement("cvml:shape");H.appendChild(M)}M.stroked="f";M.coordsize=a;M.coordorigin=E=(e-c)+","+d;M.path=(S.d?"m"+S.d+"xe":"")+"m"+E+X;M.fillcolor=T;var t=M.style;t.width=j;t.height=u;if(V){var J=V[0],I=V[1];var Q=Cufon.CSS.color(J.color),P;var Z=document.createElement("cvml:shadow");Z.on="t";Z.color=Q.color;Z.offset=J.offX+","+J.offY;if(I){P=Cufon.CSS.color(I.color);Z.type="double";Z.color2=P.color;Z.offset2=I.offX+","+I.offY}Z.opacity=Q.opacity||(P&&P.opacity)||1;M.appendChild(Z)}c+=~~(S.w||r.w)+g;++o}x.width=Math.max(Math.ceil(G.convert(C*f)),0);return O}})());

/*
 * Cufon fonts.
*/
/* Caecilia-Heavy */
Cufon.registerFont({"w":213,"face":{"font-family":"Caecilia-Heavy","font-weight":500,"font-stretch":"normal","units-per-em":"360","panose-1":"0 0 0 0 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"4","bbox":"-27 -306 406 100","underline-thickness":"18","underline-position":"-27","stemh":"37","stemv":"50","unicode-range":"U+0020-U+2122"},"glyphs":{" ":{"w":106,"k":{"\u201c":20,"\u2018":20,"Y":33,"W":20,"V":27,"T":20,"A":9}},"!":{"d":"29,-81r-4,-196r57,0r-5,196r-48,0xm19,-26v0,-21,15,-33,34,-33v19,0,34,12,34,33v0,18,-12,32,-34,32v-22,0,-34,-14,-34,-32","w":106},"\"":{"d":"27,-282v46,0,16,86,16,120v0,27,-32,26,-32,0v0,-33,-30,-120,16,-120xm93,-282v46,0,16,86,16,120v0,27,-32,26,-32,0v0,-33,-30,-120,16,-120","w":119},"#":{"d":"122,-104r6,-44r-37,0r-6,44r37,0xm132,-179r10,-73r32,0r-9,73r30,0r0,31r-35,0r-6,44r31,0r0,31r-35,0r-10,73r-32,0r10,-73r-37,0r-10,73r-32,0r10,-73r-31,0r0,-31r35,0r6,-44r-31,0r0,-31r35,0r10,-73r32,0r-10,73r37,0"},"$":{"d":"88,-37r0,-70v-51,-7,-82,-26,-82,-72v0,-45,31,-74,82,-79r0,-48r35,0r0,48v24,0,48,4,70,11r0,62r-44,0r0,-29v-8,-3,-17,-5,-26,-5r0,66v49,7,84,22,84,75v0,58,-51,81,-84,82r0,49r-35,0r0,-49v-32,0,-64,-5,-81,-11r0,-68r51,0r0,33v9,3,18,4,30,5xm88,-159r0,-60v-21,4,-31,17,-31,33v0,18,15,24,31,27xm123,-102r0,65v39,-1,56,-62,0,-65"},"%":{"d":"70,-171v34,0,34,-58,1,-58v-18,0,-24,14,-24,30v0,15,6,28,23,28xm131,-201v0,39,-28,59,-61,59v-40,0,-60,-22,-60,-58v0,-37,29,-58,62,-58v44,0,59,30,59,57xm222,-23v34,0,34,-58,1,-58v-18,0,-24,14,-24,30v0,15,6,28,23,28xm283,-53v0,39,-28,59,-61,59v-40,0,-60,-22,-60,-58v0,-37,29,-58,62,-58v44,0,59,30,59,57xm57,5r151,-278r29,16r-152,278","w":293},"&":{"d":"175,-123r0,-35r80,0r0,35r-19,0v-1,28,-10,51,-26,71v10,13,24,17,44,14r0,37v-33,2,-56,2,-71,-20v-48,50,-166,28,-166,-47v0,-34,20,-55,50,-72v-55,-48,-33,-116,42,-116v83,0,86,85,18,118r56,60v8,-10,14,-29,14,-45r-22,0xm102,-164v28,-3,46,-58,5,-58v-33,1,-35,41,-5,58xm156,-48r-63,-66v-43,22,-40,79,24,81v12,0,25,-3,39,-15","w":266},"\u2019":{"d":"37,-143r-23,-23v24,-19,28,-31,28,-44v0,-18,-19,-25,-19,-43v0,-18,13,-29,30,-29v26,0,40,25,40,49v0,37,-20,66,-56,90","w":106,"k":{"t":6,"s":27,"d":33,"\u2019":16}},"(":{"d":"83,-286r34,21v-66,112,-77,223,-4,344r-37,21v-94,-140,-84,-256,7,-386","w":106},")":{"d":"24,100r-34,-22v65,-112,76,-222,4,-343r36,-21v94,140,85,256,-6,386","w":106},"*":{"d":"58,-235r-8,-42r33,0v-2,14,-8,30,-7,42r31,-29r16,29v-13,5,-29,7,-40,14r39,13r-16,28v-10,-8,-21,-23,-31,-27r8,41r-33,0r8,-42r-31,28r-16,-28v12,-5,28,-7,39,-14r-40,-13r17,-29","w":133},"+":{"d":"89,-111r0,-71r38,0r0,71r72,0r0,39r-72,0r0,72r-38,0r0,-72r-72,0r0,-39r72,0","w":216},",":{"d":"31,80r-23,-22v24,-19,29,-32,29,-45v0,-18,-20,-24,-20,-42v0,-18,14,-30,31,-30v26,0,39,26,39,50v0,37,-20,65,-56,89","w":106,"k":{"\u201d":13,"\u2019":13," ":13}},"-":{"d":"24,-86r0,-43r105,0r0,43r-105,0","w":153},".":{"d":"19,-26v0,-21,15,-33,34,-33v19,0,34,12,34,33v0,18,-12,32,-34,32v-22,0,-34,-14,-34,-32","w":106,"k":{"\u201d":13,"\u2019":13," ":13}},"\/":{"d":"-8,17r106,-299r37,13r-107,299","w":126},"0":{"d":"10,-119v0,-105,49,-139,101,-139v55,0,92,44,92,132v0,90,-47,132,-100,132v-49,0,-93,-28,-93,-125xm65,-123v0,66,14,88,42,88v20,0,41,-18,41,-91v0,-77,-21,-91,-40,-91v-22,0,-43,21,-43,94"},"1":{"d":"43,0r0,-37r48,0r0,-167v-16,15,-38,26,-56,39r-20,-33r90,-54r39,0r0,215r49,0r0,37r-150,0"},"2":{"d":"9,0r0,-35v27,-19,130,-98,130,-148v0,-26,-20,-34,-35,-34v-26,0,-41,18,-44,42r-50,0v0,-29,20,-83,96,-83v39,0,86,19,86,73v1,52,-53,96,-112,146v37,-4,79,-1,119,-2r0,41r-190,0"},"3":{"d":"67,-112r0,-35v47,0,64,-22,64,-43v0,-17,-14,-29,-33,-29v-21,0,-40,14,-40,36r-50,0v0,-33,30,-75,94,-75v48,0,81,25,81,64v1,31,-23,54,-52,61v33,1,62,21,62,61v0,27,-15,78,-107,78v-35,0,-57,-5,-77,-15r0,-49v41,28,132,33,132,-17v0,-32,-39,-37,-74,-37"},"4":{"d":"121,-107r-1,-99r-67,101v20,-4,45,-1,68,-2xm121,-37r0,-31r-116,0r0,-39r101,-145r65,0r0,145r44,0r0,39r-44,0r0,31r25,0r0,37r-100,0r0,-37r25,0"},"5":{"d":"27,-125r0,-127r155,0r0,37r-105,0r0,51v46,0,116,12,116,79v0,79,-99,109,-172,80r0,-41v12,6,42,11,64,11v40,0,55,-21,55,-43v0,-35,-31,-47,-113,-47"},"6":{"d":"155,-81v0,-51,-62,-53,-87,-23v0,52,21,69,46,69v34,0,41,-32,41,-46xm195,-251r-3,39v-16,-6,-32,-9,-45,-9v-55,-1,-78,46,-79,82v44,-45,136,-26,134,54v0,41,-24,91,-88,91v-56,0,-98,-37,-98,-119v0,-103,74,-168,179,-138"},"7":{"d":"18,-211r0,-41r177,0r0,32r-88,177v-7,15,-16,29,-26,43r-57,0v47,-64,74,-146,120,-211r-126,0"},"8":{"d":"69,-127v-82,-31,-61,-133,42,-131v109,2,109,103,36,127v34,9,57,32,57,65v0,55,-47,72,-100,72v-44,0,-95,-15,-95,-66v0,-32,22,-55,60,-67xm147,-190v0,-19,-16,-29,-39,-29v-23,0,-39,12,-39,30v0,17,13,28,39,39v28,-14,39,-23,39,-40xm154,-67v0,-17,-10,-28,-49,-41v-28,10,-44,24,-44,42v0,17,16,33,46,33v30,0,47,-16,47,-34"},"9":{"d":"58,-171v0,51,62,53,87,23v0,-52,-21,-69,-46,-69v-34,0,-41,32,-41,46xm18,-1r3,-39v16,6,33,9,46,9v55,1,77,-46,78,-82v-44,45,-136,26,-134,-54v0,-41,24,-91,88,-91v56,0,98,37,98,119v0,103,-74,168,-179,138"},":":{"d":"19,-160v0,-21,15,-33,34,-33v19,0,34,12,34,33v0,18,-12,32,-34,32v-22,0,-34,-14,-34,-32xm19,-26v0,-21,15,-33,34,-33v19,0,34,12,34,33v0,18,-12,32,-34,32v-22,0,-34,-14,-34,-32","w":106},";":{"d":"31,80r-23,-22v24,-19,29,-32,29,-45v0,-18,-20,-24,-20,-42v0,-18,14,-30,31,-30v26,0,39,26,39,50v0,37,-20,65,-56,89xm19,-160v0,-21,15,-33,34,-33v19,0,34,12,34,33v0,18,-12,32,-34,32v-22,0,-34,-14,-34,-32","w":106},"<":{"d":"17,-75r0,-33r182,-77r0,39r-139,55r139,55r0,39","w":216},"=":{"d":"17,-106r0,-39r182,0r0,39r-182,0xm17,-37r0,-39r182,0r0,39r-182,0","w":216},">":{"d":"156,-91r-139,-55r0,-39r182,77r0,33r-182,78r0,-39","w":216},"?":{"d":"23,-234r-2,-40v20,-5,41,-8,58,-8v72,0,89,43,89,67v1,87,-119,69,-82,127r-46,13v-8,-10,-13,-23,-13,-35v0,-52,86,-48,86,-98v0,-40,-56,-37,-90,-26xm24,-26v0,-21,15,-33,34,-33v19,0,34,12,34,33v0,18,-12,32,-34,32v-22,0,-34,-14,-34,-32","w":173},"@":{"d":"176,-140v0,-24,-11,-34,-29,-34v-29,0,-49,36,-49,64v0,21,10,35,27,35v30,0,51,-39,51,-65xm186,-173r7,-20r26,0r-31,112v0,5,3,8,12,8v19,0,42,-33,42,-72v0,-49,-43,-83,-92,-83v-61,0,-104,49,-104,103v0,101,130,129,187,70r30,0v-18,34,-59,59,-116,59v-75,0,-133,-48,-133,-130v0,-73,55,-130,136,-130v71,0,124,43,124,107v0,70,-55,100,-89,100v-19,1,-23,-10,-26,-20v-26,34,-91,23,-91,-36v0,-68,80,-133,118,-68","w":288},"A":{"d":"166,-124r-28,-89v-8,32,-20,60,-31,89r59,0xm195,-37r-16,-48r-86,0r-18,48r24,0r0,37r-94,0r0,-37r20,0r89,-215r58,0r83,215r20,0r0,37r-100,0r0,-37r20,0","w":280,"k":{"\u201d":27,"y":20,"w":20,"v":20,"u":9,"Y":36,"W":27,"V":27,"U":16,"T":27,"Q":13,"O":13,"G":13,"C":13,"\u2019":27}},"B":{"d":"10,-252v83,5,194,-23,194,63v0,41,-34,57,-52,57v35,0,67,22,67,63v0,33,-26,69,-95,69r-112,0r0,-37r25,0r0,-178r-27,0r0,-37xm90,-215r0,66v34,2,62,-3,63,-35v1,-30,-30,-33,-63,-31xm90,-108r0,71v38,4,76,-6,72,-36v2,-30,-35,-39,-72,-35","w":233,"k":{"A":11}},"C":{"d":"184,-40r2,-46r45,0r-2,78v-103,36,-217,-7,-217,-116v0,-68,44,-132,137,-132v32,0,59,5,83,14r0,71r-45,0r0,-41v-68,-22,-118,26,-118,85v0,38,17,90,85,90v7,0,21,0,30,-3","w":246,"k":{"A":6}},"D":{"d":"37,-37r0,-178r-27,0r0,-37r118,0v84,0,135,42,135,121v0,78,-50,131,-132,131r-121,0r0,-37r27,0xm90,-37v68,4,116,-11,116,-93v0,-76,-48,-89,-116,-85r0,178","w":273,"k":{"Y":27,"W":16,"V":20,"A":20,".":13,",":13}},"E":{"d":"152,-37r3,-42r43,0r-3,79r-181,0r0,-37r23,0r0,-178r-27,0r0,-37r184,0r3,74r-44,0r-2,-37r-61,0r0,66r63,0r0,39r-63,0r0,73r62,0"},"F":{"d":"153,-178r-2,-37r-59,0r0,70r69,0r0,38r-69,0r0,70r28,0r0,37r-103,0r0,-37r22,0r0,-178r-27,0r0,-37r182,0r3,74r-44,0","w":206,"k":{"r":11,"o":16,"i":6,"e":16,"a":27,"A":22,".":46,",":46}},"G":{"d":"156,-86r0,-39r99,0r0,39r-23,0r0,78v-107,35,-220,-5,-220,-116v0,-70,44,-132,139,-132v41,0,64,8,84,15r0,70r-45,0r0,-41v-71,-22,-121,26,-121,85v0,38,17,90,85,90v11,0,18,-1,27,-2r0,-47r-25,0","w":259},"H":{"d":"192,-145r0,-70r-23,0r0,-37r98,0r0,37r-23,0r0,178r23,0r0,37r-98,0r0,-37r23,0r0,-70r-104,0r0,70r23,0r0,37r-98,0r0,-37r23,0r0,-178r-23,0r0,-37r98,0r0,37r-23,0r0,70r104,0","w":280},"I":{"d":"37,-37r0,-178r-23,0r0,-37r98,0r0,37r-22,0r0,178r22,0r0,37r-98,0r0,-37r23,0","w":126},"J":{"d":"14,-215r0,-37r98,0r0,37r-22,0r0,141v0,78,-27,114,-90,145r-18,-36v73,-19,52,-154,55,-250r-23,0","w":119,"k":{"u":11,"o":4,"e":4,"a":4,"A":13}},"K":{"d":"14,0r0,-37r23,0r0,-178r-23,0r0,-37r98,0r0,37r-22,0r0,80v29,-25,57,-60,89,-80r-26,0r0,-37r102,0r0,37r-20,0r-93,83r97,95r21,0r0,37r-111,0r0,-37r29,0v-33,-24,-58,-56,-88,-83r0,83r22,0r0,37r-98,0","w":259,"k":{"y":20,"u":6,"O":6}},"L":{"d":"154,-37r3,-45r43,0r-3,82r-180,0r0,-37r22,0r0,-178r-22,0r0,-37r97,0r0,37r-22,0r0,178r62,0","w":206,"k":{"\u201d":46,"y":20,"Y":40,"W":33,"V":33,"T":33,"\u2019":46}},"M":{"d":"262,-37r-1,-145v-16,63,-45,122,-66,182r-51,0r-58,-151v-6,-13,-8,-28,-11,-33r0,147r27,0r0,37r-90,0r0,-37r22,0r0,-178r-26,0r0,-37r92,0r65,167v5,9,7,23,11,35v16,-68,49,-137,71,-202r92,0r0,37r-27,0r0,178r26,0r0,37r-97,0r0,-37r21,0","w":346},"N":{"d":"14,0r0,-37r23,0r0,-178r-32,0r0,-37r73,0r106,134v11,14,19,23,22,33r0,-130r-23,0r0,-37r91,0r0,37r-25,0r0,215r-38,0r-120,-150v-7,-8,-10,-17,-13,-20r0,133r25,0r0,37r-89,0","w":286,"k":{"A":9,".":9,",":9}},"O":{"d":"12,-126v0,-69,45,-130,125,-130v86,0,124,56,124,130v0,71,-36,130,-124,130v-88,0,-125,-59,-125,-130xm69,-126v0,49,18,89,68,89v50,0,67,-40,67,-89v0,-49,-19,-89,-67,-89v-48,0,-68,40,-68,89","w":273,"k":{"Y":27,"X":11,"W":16,"V":20,"T":9,"A":13,".":13,",":13}},"P":{"d":"39,-37r0,-178r-25,0r0,-37r104,0v61,0,93,26,93,75v0,60,-49,87,-119,80r0,60r25,0r0,37r-103,0r0,-37r25,0xm92,-134v39,3,68,-3,68,-41v0,-37,-30,-43,-68,-40r0,81","w":219,"k":{"o":16,"e":16,"a":9,"A":33,".":46,",":46}},"Q":{"d":"296,23r0,35v-63,22,-144,-54,-172,-54v-60,0,-112,-47,-112,-130v0,-69,45,-130,125,-130v146,0,161,199,59,249v34,7,62,39,100,30xm69,-126v0,49,18,89,68,89v50,0,67,-40,67,-89v0,-49,-19,-89,-67,-89v-48,0,-68,40,-68,89","w":273},"R":{"d":"123,-252v60,-3,85,23,87,69v2,38,-33,62,-59,66v38,-1,40,84,85,80r0,37v-50,-2,-55,12,-83,-38v-19,-22,-19,-68,-63,-65r0,66r22,0r0,37r-98,0r0,-37r23,0r0,-178r-25,0r0,-37r111,0xm90,-215r0,73v37,2,68,-2,68,-37v0,-32,-30,-39,-68,-36","w":233,"k":{"Y":13,"W":13,"V":13,"T":6}},"S":{"d":"152,-183r0,-30v-26,-16,-89,-1,-80,25v0,29,37,29,60,36v36,11,79,22,79,74v0,48,-32,82,-104,82v-28,0,-57,-3,-91,-14r0,-66r53,0r0,33v32,13,92,6,87,-28v8,-19,-44,-32,-69,-38v-52,-12,-69,-33,-69,-72v0,-40,28,-75,99,-75v31,0,61,5,83,13r0,60r-48,0","w":226},"T":{"d":"197,-181r-2,-34r-46,0r0,178r23,0r0,37r-98,0r0,-37r23,0r0,-178r-46,0r-2,34r-43,0r2,-71r230,0r2,71r-43,0","w":246,"k":{"y":46,"w":54,"u":46,"r":33,"o":40,"i":13,"h":6,"e":33,"a":33,"O":9,"A":33,";":27,":":27,".":33,"-":50,",":33}},"U":{"d":"165,-215r0,-37r98,0r0,37r-23,0r0,115v0,78,-32,104,-106,104v-138,0,-93,-109,-101,-219r-23,0r0,-37r98,0r0,37r-23,0v8,70,-29,179,51,178v33,0,57,-12,57,-60r0,-118r-28,0","w":273,"k":{"A":20,".":9,",":9}},"V":{"d":"172,-215r0,-37r98,0r0,37r-19,0r-85,215r-58,0r-85,-215r-20,0r0,-37r102,0r0,37r-21,0r57,174v15,-61,39,-116,57,-174r-26,0","w":273,"k":{"u":16,"o":23,"i":13,"e":27,"a":27,"O":13,"G":6,"A":27,";":27,":":27,".":40,"-":33,",":40}},"W":{"d":"308,-215r0,-37r98,0r0,37r-20,0r-84,215r-56,0r-41,-118r-43,118r-57,0r-84,-215r-20,0r0,-37r102,0r0,37r-21,0r57,174v11,-50,31,-92,46,-139r-13,-35r-24,0r0,-37r100,0r0,37r-23,0r45,144v4,8,4,22,8,30v14,-63,38,-115,56,-174r-26,0","w":406,"k":{"y":16,"u":13,"o":27,"i":6,"e":27,"a":27,"O":13,"A":27,";":13,":":13,".":33,"-":19,",":33}},"X":{"d":"160,-215r0,-37r87,0r0,37r-18,0r-70,83r75,95r21,0r0,37r-106,0r0,-37r21,0v-18,-15,-30,-37,-45,-55v-16,18,-30,40,-49,55r22,0r0,37r-93,0r0,-37r21,0r75,-86r-70,-92r-21,0r0,-37r106,0r0,37r-24,0v18,13,29,35,44,52v16,-17,28,-38,48,-52r-24,0","w":259},"Y":{"d":"172,-215r0,-37r91,0r0,37r-20,0r-83,115r0,63r23,0r0,37r-98,0r0,-37r22,0r0,-63r-84,-115r-19,0r0,-37r100,0r0,37r-20,0v21,23,36,52,55,77r58,-77r-25,0","w":266,"k":{"u":27,"o":40,"i":13,"e":40,"a":40,"S":9,"O":13,"A":36,";":27,":":27,".":40,"-":46,",":40}},"Z":{"d":"13,0r0,-35r127,-162v6,-8,12,-14,17,-18r-86,0r-3,33r-45,0r2,-70r193,0r0,37r-124,160v-6,8,-11,14,-17,18r95,0r2,-33r46,0r-3,70r-204,0","w":233},"[":{"d":"26,90r0,-367r79,0r0,37r-29,0r0,294r31,0r0,36r-81,0","w":106},"\\":{"d":"98,30r-106,-299r36,-13r107,299","w":126},"]":{"d":"30,54r0,-294r-30,0r0,-37r81,0r0,367r-79,0r0,-36r28,0","w":106},"^":{"d":"155,-121r-47,-92r-47,92r-39,0r64,-131r44,0r64,131r-39,0","w":216},"_":{"d":"0,45r0,-18r180,0r0,18r-180,0","w":180},"\u2018":{"d":"69,-282r24,22v-24,19,-29,32,-29,45v0,18,20,24,20,42v0,18,-14,30,-31,30v-26,0,-39,-26,-39,-50v0,-37,19,-65,55,-89","w":106,"k":{"\u2018":16,"A":16}},"a":{"d":"15,-50v0,-57,50,-61,119,-61v6,-47,-30,-52,-67,-39r0,25r-43,0r0,-48v12,-7,42,-20,75,-20v50,0,83,18,83,73v0,31,-1,56,-2,83r21,0r0,37r-63,0v0,-13,-1,-29,2,-37v-13,28,-30,41,-62,41v-42,0,-63,-24,-63,-54xm134,-80v-37,-2,-74,6,-68,25v0,11,7,23,27,23v20,0,41,-13,41,-48","k":{"y":13,"w":11,"v":11,"t":6}},"b":{"d":"21,-12r0,-228r-29,0r0,-37r80,0r-3,124v11,-26,31,-40,63,-40v41,0,73,30,73,86v0,51,-25,111,-105,111v-33,0,-66,-8,-79,-16xm114,-152v-56,0,-41,57,-43,108v42,22,84,-10,84,-57v0,-26,-10,-51,-41,-51","w":219,"k":{"y":13,"v":6,"u":6}},"c":{"d":"126,-129r0,-25v-41,-11,-64,23,-64,55v0,32,16,62,59,62v17,0,32,-3,47,-10r-2,42v-18,7,-32,9,-57,9v-64,0,-98,-44,-98,-98v0,-85,83,-117,159,-90r0,55r-44,0","w":180,"k":{"y":11,"k":6,"h":6}},"d":{"d":"147,-188r0,-52r-29,0r0,-37r80,0r0,240r21,0r0,37r-71,0v-1,-13,5,-26,4,-36v-30,68,-141,46,-141,-46v0,-60,51,-131,136,-106xm102,-39v47,0,46,-56,44,-106v-39,-21,-82,8,-82,51v0,30,14,55,38,55","w":233,"k":{"y":13,"w":11,"v":11,"d":4}},"e":{"d":"197,-83r-131,0v0,53,78,58,120,35r-2,40v-23,9,-44,12,-70,12v-73,0,-103,-45,-103,-97v0,-59,36,-100,95,-100v65,0,91,49,91,110xm66,-117r76,0v0,-26,-15,-41,-38,-41v-23,0,-36,15,-38,41","w":206,"k":{"y":9,"w":6,"v":4}},"f":{"d":"32,-37r0,-115r-26,0r0,-36r26,0v-10,-76,43,-106,119,-90r0,36v-41,-12,-80,4,-69,54r40,0r0,36r-40,0r0,115r27,0r0,37r-99,0r0,-37r22,0","w":126,"k":{"\u201d":-13,"\u2019":-13}},"g":{"d":"206,-188r0,34r-32,0v6,7,12,21,12,37v-1,50,-44,64,-97,64v-15,0,-17,19,1,21v49,4,113,0,113,56v0,27,-23,71,-100,71v-76,0,-95,-28,-95,-51v0,-17,12,-33,42,-43v-46,-10,-23,-57,10,-60v-83,-27,-48,-142,38,-134v34,3,69,6,108,5xm61,-121v0,20,15,32,40,32v31,0,42,-17,42,-34v0,-20,-17,-33,-40,-33v-22,0,-42,10,-42,35xm155,32v0,-24,-55,-14,-78,-21v-9,3,-21,11,-21,22v0,18,20,25,51,25v22,0,48,-9,48,-26"},"h":{"d":"35,-37r0,-203r-29,0r0,-37r78,0r-2,128v9,-25,32,-44,65,-44v76,0,66,82,65,156r22,0r0,37r-93,0r0,-37r21,0v-3,-43,14,-112,-33,-112v-54,0,-43,60,-44,112r22,0r0,37r-93,0r0,-37r21,0","w":246,"k":{"y":16}},"i":{"d":"35,-37r0,-115r-25,0r0,-36r75,0r0,151r22,0r0,37r-93,0r0,-37r21,0xm24,-251v0,-19,13,-31,34,-31v21,0,34,12,34,31v0,19,-13,31,-34,31v-21,0,-34,-12,-34,-31","w":119,"k":{"v":11}},"j":{"d":"10,-152r0,-36r75,0r0,147v0,91,-37,130,-107,136r-5,-40v80,-9,59,-120,62,-207r-25,0xm24,-251v0,-19,13,-31,34,-31v21,0,34,12,34,31v0,19,-13,31,-34,31v-21,0,-34,-12,-34,-31","w":119},"k":{"d":"17,0r0,-37r21,0r0,-203r-29,0r0,-37r79,0r0,169r58,-44r-26,0r0,-36r96,0r0,36r-17,0r-58,47r63,68r21,0r0,37r-100,0r0,-37r19,0v-20,-16,-37,-40,-56,-59r0,59r17,0r0,37r-88,0","w":226},"l":{"d":"31,-37r0,-203r-28,0r0,-37r79,0r0,240r21,0r0,37r-92,0r0,-37r20,0","w":113,"k":{"y":11,"w":9}},"m":{"d":"263,0r0,-37r18,0v-3,-43,14,-112,-33,-112v-46,0,-41,63,-40,112r22,0r0,37r-90,0r0,-37r18,0v-3,-43,14,-112,-33,-112v-49,0,-40,63,-40,112r22,0r0,37r-93,0r0,-37r21,0r0,-115r-25,0r0,-36r74,0v1,12,-2,27,-2,38v13,-53,113,-61,121,0v9,-26,30,-43,63,-43v76,0,67,82,66,156r21,0r0,37r-90,0","w":366,"k":{"y":16,"u":6}},"n":{"d":"35,-37r0,-115r-25,0r0,-36r74,0v1,12,-2,28,-2,39v9,-25,32,-44,65,-44v76,0,66,82,65,156r22,0r0,37r-93,0r0,-37r21,0v-3,-43,14,-112,-33,-112v-54,0,-43,60,-44,112r22,0r0,37r-91,0r0,-37r19,0","w":246,"k":{"y":13,"v":11,"u":4}},"o":{"d":"11,-92v0,-54,37,-101,99,-101v63,0,99,35,99,101v0,56,-39,96,-99,96v-60,0,-99,-32,-99,-96xm66,-91v0,34,13,54,44,54v31,0,44,-20,44,-54v0,-40,-13,-61,-44,-61v-31,0,-44,27,-44,61","w":220,"k":{"y":11,"x":4,"w":6,"v":6}},"p":{"d":"32,54r0,-206r-29,0r0,-36r78,0v1,11,-3,25,-2,35v12,-26,32,-40,64,-40v41,0,73,30,73,86v0,60,-46,127,-134,108r0,53r22,0r0,36r-93,0r0,-36r21,0xm125,-152v-57,0,-42,58,-44,110v45,18,84,-12,84,-59v0,-26,-9,-51,-40,-51","w":233,"k":{"y":13,".":13,",":13}},"q":{"d":"149,54v-1,-30,2,-67,3,-90v-11,27,-27,40,-60,40v-43,0,-77,-32,-77,-86v0,-51,29,-111,110,-111v28,0,57,8,74,16r0,231r23,0r0,36r-93,0r0,-36r20,0xm107,-39v47,0,45,-57,43,-106v-39,-21,-82,8,-82,51v0,30,15,55,39,55","w":233},"r":{"d":"38,-37r0,-115r-25,0r0,-36r73,0v1,12,-2,28,-2,43v9,-37,34,-55,70,-45r-3,45v-35,-8,-63,10,-63,47r0,61r24,0r0,37r-95,0r0,-37r21,0","w":153,"k":{"o":6,"i":-4,"e":9,"d":6,"a":6,".":20,"-":13,",":20}},"s":{"d":"125,-134r0,-19v-22,-10,-66,-4,-63,15v-1,21,38,17,56,20v43,8,61,23,61,57v0,33,-23,65,-89,65v-23,0,-54,-5,-74,-12r0,-52r46,0r0,21v22,8,64,16,70,-16v4,-21,-49,-22,-71,-26v-33,-5,-47,-23,-47,-50v0,-73,92,-71,156,-49r0,46r-45,0","w":193,"k":{"w":9}},"t":{"d":"35,-188r0,-39r50,-3r0,42r50,0r0,36r-50,0r0,84v-3,39,26,37,52,28r-2,35v-47,19,-100,10,-100,-41r0,-106r-26,0r0,-36r26,0","w":133},"u":{"d":"132,-152r0,-36r75,0r0,151r22,0r0,37r-71,0v-1,-13,3,-32,4,-39v-12,30,-33,43,-65,43v-78,0,-63,-83,-64,-156r-25,0r0,-36r76,0r0,105v0,27,3,46,33,46v46,0,40,-67,39,-115r-24,0","w":240},"v":{"d":"126,-152r0,-36r90,0r0,36r-17,0r-64,152r-55,0r-66,-152r-17,0r0,-36r93,0r0,36r-18,0r39,109v8,-41,25,-72,37,-109r-22,0","k":{"o":6,"e":4,"a":6,".":27,",":27}},"w":{"d":"243,-152r0,-36r90,0r0,36r-18,0r-65,152r-52,0r-31,-81v-7,32,-23,53,-33,81r-52,0r-64,-152r-17,0r0,-36r90,0r0,36r-18,0v15,32,27,72,39,107v10,-30,24,-57,36,-85r-9,-22r-20,0r0,-36r92,0r0,36r-20,0v14,32,28,71,39,107v9,-37,23,-75,37,-107r-24,0","w":333,"k":{"o":9,"e":9,"a":6,".":27,",":27}},"x":{"d":"134,-152r0,-36r83,0r0,36r-19,0r-54,52r59,63r20,0r0,37r-99,0r0,-37r21,0v-13,-8,-22,-22,-33,-32v-12,10,-24,23,-37,32r22,0r0,37r-87,0r0,-37r19,0r60,-56r-55,-59r-21,0r0,-36r100,0r0,36v-6,1,-16,-2,-20,1v12,7,19,19,29,28r32,-29r-20,0","w":233,"k":{"e":6}},"y":{"d":"132,-152r0,-36r84,0r0,36r-17,0r-58,156v-32,83,-55,100,-123,86r0,-39v41,10,52,9,75,-38r-72,-165r-17,0r0,-36r93,0r0,36r-19,0v17,33,29,74,40,113v7,-42,22,-79,38,-113r-24,0","w":219,"k":{"o":11,"e":11,"a":9,".":27,",":27}},"z":{"d":"14,0r0,-37r108,-115r-58,0r-2,25r-43,0r2,-61r163,0r0,36r-98,107v-4,4,-7,7,-10,8r65,0r0,-26r45,0r-3,63r-169,0","w":200},"{":{"d":"0,-80r0,-27v40,-5,26,-73,28,-116v2,-47,33,-58,80,-54r0,27v-48,-7,-30,61,-30,101v0,31,-18,48,-37,56v44,8,38,75,37,129v-1,21,8,31,30,28r0,26v-46,4,-78,-6,-80,-53v-2,-44,12,-112,-28,-117","w":106},"|":{"d":"21,90r0,-360r38,0r0,360r-38,0","w":79},"}":{"d":"107,-107r0,27v-41,4,-27,73,-29,117v-2,47,-33,57,-79,53r0,-26v48,7,29,-62,29,-102v0,-31,19,-48,38,-56v-44,-8,-39,-73,-38,-128v1,-21,-7,-30,-29,-28r0,-27v47,-4,77,7,79,54v2,44,-12,111,29,116","w":106},"~":{"d":"25,-92v21,-57,86,-17,122,-6v10,0,19,-9,31,-27r13,35v-20,58,-89,15,-122,6v-10,0,-19,8,-31,26","w":216},"'":{"d":"40,-282v46,0,16,86,16,120v0,27,-32,26,-32,0v0,-33,-30,-120,16,-120","w":79},"\u201c":{"d":"68,-282r23,22v-24,19,-29,32,-29,45v0,18,20,24,20,42v0,18,-14,30,-31,30v-26,0,-39,-26,-39,-50v0,-37,20,-65,56,-89xm158,-282r23,22v-24,19,-28,32,-28,45v0,18,19,24,19,42v0,18,-13,30,-30,30v-26,0,-40,-26,-40,-50v0,-37,20,-65,56,-89","w":193,"k":{"A":16}},"\u2013":{"d":"0,-88r0,-39r180,0r0,39r-180,0","w":180},"\u201d":{"d":"126,-143r-24,-23v24,-19,29,-31,29,-44v0,-18,-20,-25,-20,-43v0,-18,14,-29,31,-29v26,0,39,25,39,49v0,37,-19,66,-55,90xm35,-143r-23,-23v24,-19,29,-31,29,-44v0,-18,-20,-25,-20,-43v0,-18,13,-29,30,-29v26,0,40,25,40,49v0,37,-20,66,-56,90","w":193,"k":{" ":20}},"\u2026":{"d":"26,-26v0,-21,15,-33,34,-33v19,0,34,12,34,33v0,18,-12,32,-34,32v-22,0,-34,-14,-34,-32xm146,-26v0,-21,15,-33,34,-33v19,0,34,12,34,33v0,18,-12,32,-34,32v-22,0,-34,-14,-34,-32xm266,-26v0,-21,15,-33,34,-33v19,0,34,12,34,33v0,18,-12,32,-34,32v-22,0,-34,-14,-34,-32","w":360},"`":{"d":"-11,-271r25,-25r79,63r-27,21","w":119},"\u2014":{"d":"0,-88r0,-39r360,0r0,39r-360,0","w":360},"\u00d7":{"d":"108,-118r58,-59r28,28r-59,58r59,58r-28,28r-58,-59r-58,59r-28,-28r59,-58r-59,-58r28,-28","w":216},"\u2122":{"d":"44,-102r0,-126r-43,0r0,-24r119,0r0,24r-43,0r0,126r-33,0xm287,-102r0,-115r-42,115r-24,0r-42,-115r0,115r-33,0r0,-150r49,0r38,107r38,-107r49,0r0,150r-33,0","w":356},"\u00a0":{"w":106,"k":{"\u201c":20,"\u2018":20,"Y":33,"W":20,"V":27,"T":20,"A":9}}}});


/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery. Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 */
;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*/
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});

