(function() {
	window.jspackager = {};
	jspackager.devmode = false;
	var tmpList = {"__basic-behaviour":["libs/jquery-1.4x","libs/jquery.ui.core","libs/jquery.ui.widget","fb-snippets/ui.a11y.ext","libs/modernizr","fb-snippets/jquery.easing.1.3","webshims/polyfiller","libs/jquery.swfobject","libs/swfobject","modules/teaserManagement","webshims/sssl","fb-modules/ui.cOverlay","fb-snippets/setUnset","fb-snippets/moduleloader","init/global-cfg","modules/ga-tracking","fb-modules/ui.scroller","libs/jquery.ui.autocomplete","libs/jquery.ui.position","modules/validate-ui","init/init-basic"],"_async-behavior":["fb-snippets/clickArea","fb-snippets/locations","fb-snippets/hashhistory","fb-modules/jquery.tabtree","fb-snippets/clip","fb-snippets/posAround","fb-modules/ui.combobox","fb-modules/simpleMenu","modules/pager","modules/jquery.jcarousel.min","fb-snippets/jquery.imgpreload","fb-snippets/urlIndex","fb-snippets/jquery.objscale","fb-modules/showbox","fb-modules/showbox.iframe","fb-modules/showbox.swf","fb-snippets/sort-elements","init/init-async"],"_jme-behavior":["libs/jquery.ui.mouse","libs/jquery.ui.slider","libs/jquery.ui.progressbar","fb-modules/mm.full.min","fb-modules/fullwindow","fb-snippets/useractivity","fb-snippets/a11y-slider.ext","fb-snippets/reinitjme","fb-snippets/fadeOver","modules/jquery.path","init/init-jme"],"_edit-behavior":["libs/jquery.cookie","init/init-edit"],"_ie6-behavior":["extra/DD_belatedPNG_0.0.8a","init/init-ie6"]};
	jspackager.jsList = (window.jQuery) ? jQuery.extend(jspackager.jsList || {}, tmpList) : tmpList;
	var basicScript = ["__basic-behaviour"], srcMatch = /(.*)__basic-behaviour\.js/, querys = location.search, hash = location.hash, scripts, src, path;
	function loadModule(path) {
		for ( var j = 0, leng = basicScript.length; j < leng; j = j + 1) {
			if (jspackager.querys['mgnl']) {
				basicScript[j] = basicScript[j].replace(/\./g, '-');
			}
			document.write('<script src="' + path + basicScript[j] + '.js"><\/script>');
		}
	}
	querys = querys.replace(/^\?/, '').split('&');
	var obj = {}, tmp;
	for ( var i = querys.length; i--;) {
		if (querys[i] === '') {
			continue;
		}
		tmp = querys[i].split('=');
		obj[tmp[0]] = (tmp[1] === undefined || tmp[1] === null) ? true : tmp[1];
	}
	jspackager.querys = obj;
	if (hash === '#devmode') {
		basicScript = jspackager.jsList[basicScript];
		jspackager.devmode = true;
	} else {
		if (jspackager.querys['devmode']) {
			basicScript = jspackager.jsList[basicScript];
			jspackager.devmode = true;
		}
	}
	if (jspackager.devmode) {
		scripts = document.getElementsByTagName('script');
		for ( var i = 0, len = scripts.length; i < len; i++) {
			src = scripts[i].getAttribute('src');
			if (src) {
				path = srcMatch.exec(src);
				if (path && path[0] && path[1]) {
					jspackager.jsPath = path[1];
					loadModule(path[1]);
				}
			}
		}
	}
})();;if(!window.jspackager || !jspackager.devmode) {(function(a,b){function d(g,a,v){if(v===b&&g.nodeType===1)if(v=g.getAttribute("data-"+a),typeof v==="string"){try{v=v==="true"?!0:v==="false"?!1:v==="null"?null:!e.isNaN(v)?parseFloat(v):C.test(v)?e.parseJSON(v):v}catch(d){}e.data(g,a,v)}else v=b;return v}function c(){return!1}function f(){return!0}function h(g,a,b){b[0].type=g;return e.event.handle.apply(a,b)}function i(g){var a,b,d,c,f,h,i,j,k,m,o,p=[];c=[];f=e.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;if(!(g.liveFired===
this||!f||!f.live||g.button&&g.type==="click")){g.namespace&&(o=RegExp("(^|\\.)"+g.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));g.liveFired=this;var y=f.live.slice(0);for(i=0;i<y.length;i++)f=y[i],f.origType.replace(O,"")===g.type?c.push(f.selector):y.splice(i--,1);c=e(g.target).closest(c,g.currentTarget);j=0;for(k=c.length;j<k;j++){m=c[j];for(i=0;i<y.length;i++)if(f=y[i],m.selector===f.selector&&(!o||o.test(f.namespace))){h=m.elem;d=null;if(f.preType==="mouseenter"||f.preType==="mouseleave")g.type=
f.preType,d=e(g.relatedTarget).closest(f.selector)[0];(!d||d!==h)&&p.push({elem:h,handleObj:f,level:m.level})}}j=0;for(k=p.length;j<k;j++){c=p[j];if(b&&c.level>b)break;g.currentTarget=c.elem;g.data=c.handleObj.data;g.handleObj=c.handleObj;o=c.handleObj.origHandler.apply(c.elem,arguments);if(o===!1||g.isPropagationStopped())if(b=c.level,o===!1&&(a=!1),g.isImmediatePropagationStopped())break}return a}}function j(g,a){return(g&&g!=="*"?g+".":"")+a.replace(Q,"`").replace(T,"&")}function o(g,a,b){if(e.isFunction(a))return e.grep(g,
function(g,e){return!!a.call(g,e,g)===b});else if(a.nodeType)return e.grep(g,function(g){return g===a===b});else if(typeof a==="string"){var d=e.grep(g,function(g){return g.nodeType===1});if(ta.test(a))return e.filter(a,d,!b);else a=e.filter(a,d)}return e.grep(g,function(g){return e.inArray(g,a)>=0===b})}function k(g,a){var b=0;a.each(function(){if(this.nodeName===(g[b]&&g[b].nodeName)){var a=e.data(g[b++]),l=e.data(this,a);if(a=a&&a.events){delete l.handle;l.events={};for(var d in a)for(var c in a[d])e.event.add(this,
d,a[d][c],a[d][c].data)}}})}function m(g,a){a.src?e.ajax({url:a.src,async:!1,dataType:"script"}):e.globalEval(a.text||a.textContent||a.innerHTML||"");a.parentNode&&a.parentNode.removeChild(a)}function n(g,a,b){var d=a==="width"?g.offsetWidth:g.offsetHeight;if(b==="border")return d;e.each(a==="width"?ua:va,function(){b||(d-=parseFloat(e.css(g,"padding"+this))||0);b==="margin"?d+=parseFloat(e.css(g,"margin"+this))||0:d-=parseFloat(e.css(g,"border"+this+"Width"))||0});return d}function s(g,a,b,d){e.isArray(a)&&
a.length?e.each(a,function(a,l){b||wa.test(g)?d(g,l):s(g+"["+(typeof l==="object"||e.isArray(l)?a:"")+"]",l,b,d)}):!b&&a!=null&&typeof a==="object"?e.isEmptyObject(a)?d(g,""):e.each(a,function(a,l){s(g+"["+a+"]",l,b,d)}):d(g,a)}function q(g,a){var b={};e.each(ga.concat.apply([],ga.slice(0,a)),function(){b[this]=g});return b}function z(g){if(!da[g]){var a=e("<"+g+">").appendTo("body"),b=a.css("display");a.remove();if(b==="none"||b==="")b="block";da[g]=b}return da[g]}function w(g){return e.isWindow(g)?
g:g.nodeType===9?g.defaultView||g.parentWindow:!1}var p=a.document,e=function(){function g(){if(!l.isReady){try{p.documentElement.doScroll("left")}catch(a){setTimeout(g,1);return}l.ready()}}var l=function(g,a){return new l.fn.init(g,a)},e=a.jQuery,d=a.$,c,f=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,h=/\S/,i=/^\s+/,j=/\s+$/,k=/\W/,m=/\d/,o=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,y=/^[\],:{}\s]*$/,x=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,n=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,D=/(?:^|:|,)(?:\s*\[)+/g,
I=/(webkit)[ \/]([\w.]+)/,xa=/(opera)(?:.*version)?[ \/]([\w.]+)/,ya=/(msie) ([\w.]+)/,za=/(mozilla)(?:.*? rv:([\w.]+))?/,V=navigator.userAgent,ha=!1,W=[],q,z=Object.prototype.toString,u=Object.prototype.hasOwnProperty,S=Array.prototype.push,s=Array.prototype.slice,M=String.prototype.trim,H=Array.prototype.indexOf,J={};l.fn=l.prototype={init:function(g,a){var e,d,v;if(!g)return this;if(g.nodeType)return this.context=this[0]=g,this.length=1,this;if(g==="body"&&!a&&p.body)return this.context=p,this[0]=
p.body,this.selector="body",this.length=1,this;if(typeof g==="string")if((e=f.exec(g))&&(e[1]||!a))if(e[1])return v=a?a.ownerDocument||a:p,(d=o.exec(g))?l.isPlainObject(a)?(g=[p.createElement(d[1])],l.fn.attr.call(g,a,!0)):g=[v.createElement(d[1])]:(d=l.buildFragment([e[1]],[v]),g=(d.cacheable?d.fragment.cloneNode(!0):d.fragment).childNodes),l.merge(this,g);else{if((d=p.getElementById(e[2]))&&d.parentNode){if(d.id!==e[2])return c.find(g);this.length=1;this[0]=d}this.context=p;this.selector=g;return this}else return!a&&
!k.test(g)?(this.selector=g,this.context=p,g=p.getElementsByTagName(g),l.merge(this,g)):!a||a.jquery?(a||c).find(g):l(a).find(g);else if(l.isFunction(g))return c.ready(g);if(g.selector!==b)this.selector=g.selector,this.context=g.context;return l.makeArray(g,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return s.call(this,0)},get:function(g){return g==null?this.toArray():g<0?this.slice(g)[0]:this[g]},pushStack:function(g,a,b){var e=l();l.isArray(g)?
S.apply(e,g):l.merge(e,g);e.prevObject=this;e.context=this.context;if(a==="find")e.selector=this.selector+(this.selector?" ":"")+b;else if(a)e.selector=this.selector+"."+a+"("+b+")";return e},each:function(g,a){return l.each(this,g,a)},ready:function(g){l.bindReady();l.isReady?g.call(p,l):W&&W.push(g);return this},eq:function(g){return g===-1?this.slice(g):this.slice(g,+g+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(s.apply(this,
arguments),"slice",s.call(arguments).join(","))},map:function(g){return this.pushStack(l.map(this,function(a,l){return g.call(a,l,a)}))},end:function(){return this.prevObject||l(null)},push:S,sort:[].sort,splice:[].splice};l.fn.init.prototype=l.fn;l.extend=l.fn.extend=function(){var g,a,e,d,v,c=arguments[0]||{},f=1,h=arguments.length,E=!1;typeof c==="boolean"&&(E=c,c=arguments[1]||{},f=2);typeof c!=="object"&&!l.isFunction(c)&&(c={});h===f&&(c=this,--f);for(;f<h;f++)if((g=arguments[f])!=null)for(a in g)e=
c[a],d=g[a],c!==d&&(E&&d&&(l.isPlainObject(d)||(v=l.isArray(d)))?(v?(v=!1,e=e&&l.isArray(e)?e:[]):e=e&&l.isPlainObject(e)?e:{},c[a]=l.extend(E,e,d)):d!==b&&(c[a]=d));return c};l.extend({noConflict:function(g){a.$=d;if(g)a.jQuery=e;return l},isReady:!1,readyWait:1,ready:function(g){g===!0&&l.readyWait--;if(!l.readyWait||g!==!0&&!l.isReady){if(!p.body)return setTimeout(l.ready,1);l.isReady=!0;if(!(g!==!0&&--l.readyWait>0)&&W){var a=0,b=W;for(W=null;g=b[a++];)g.call(p,l);l.fn.trigger&&l(p).trigger("ready").unbind("ready")}}},
bindReady:function(){if(!ha){ha=!0;if(p.readyState==="complete")return setTimeout(l.ready,1);if(p.addEventListener)p.addEventListener("DOMContentLoaded",q,!1),a.addEventListener("load",l.ready,!1);else if(p.attachEvent){p.attachEvent("onreadystatechange",q);a.attachEvent("onload",l.ready);var b=!1;try{b=a.frameElement==null}catch(e){}p.documentElement.doScroll&&b&&g()}}},isFunction:function(g){return l.type(g)==="function"},isArray:Array.isArray||function(g){return l.type(g)==="array"},isWindow:function(g){return g&&
typeof g==="object"&&"setInterval"in g},isNaN:function(g){return g==null||!m.test(g)||isNaN(g)},type:function(g){return g==null?String(g):J[z.call(g)]||"object"},isPlainObject:function(g){if(!g||l.type(g)!=="object"||g.nodeType||l.isWindow(g))return!1;if(g.constructor&&!u.call(g,"constructor")&&!u.call(g.constructor.prototype,"isPrototypeOf"))return!1;for(var a in g);return a===b||u.call(g,a)},isEmptyObject:function(g){for(var a in g)return!1;return!0},error:function(g){throw g;},parseJSON:function(g){if(typeof g!==
"string"||!g)return null;g=l.trim(g);if(y.test(g.replace(x,"@").replace(n,"]").replace(D,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(g):(new Function("return "+g))();else l.error("Invalid JSON: "+g)},noop:function(){},globalEval:function(g){if(g&&h.test(g)){var a=p.getElementsByTagName("head")[0]||p.documentElement,b=p.createElement("script");b.type="text/javascript";l.support.scriptEval?b.appendChild(p.createTextNode(g)):b.text=g;a.insertBefore(b,a.firstChild);a.removeChild(b)}},nodeName:function(g,
a){return g.nodeName&&g.nodeName.toUpperCase()===a.toUpperCase()},each:function(g,a,e){var d,v=0,c=g.length,f=c===b||l.isFunction(g);if(e)if(f)for(d in g){if(a.apply(g[d],e)===!1)break}else for(;v<c;){if(a.apply(g[v++],e)===!1)break}else if(f)for(d in g){if(a.call(g[d],d,g[d])===!1)break}else for(e=g[0];v<c&&a.call(e,v,e)!==!1;e=g[++v]);return g},trim:M?function(g){return g==null?"":M.call(g)}:function(g){return g==null?"":g.toString().replace(i,"").replace(j,"")},makeArray:function(g,a){var b=a||
[];if(g!=null){var e=l.type(g);g.length==null||e==="string"||e==="function"||e==="regexp"||l.isWindow(g)?S.call(b,g):l.merge(b,g)}return b},inArray:function(g,a){if(a.indexOf)return a.indexOf(g);for(var l=0,b=a.length;l<b;l++)if(a[l]===g)return l;return-1},merge:function(g,a){var l=g.length,e=0;if(typeof a.length==="number")for(var d=a.length;e<d;e++)g[l++]=a[e];else for(;a[e]!==b;)g[l++]=a[e++];g.length=l;return g},grep:function(g,a,l){for(var b=[],e,l=!!l,d=0,v=g.length;d<v;d++)e=!!a(g[d],d),l!==
e&&b.push(g[d]);return b},map:function(g,a,l){for(var b=[],e,d=0,v=g.length;d<v;d++)e=a(g[d],d,l),e!=null&&(b[b.length]=e);return b.concat.apply([],b)},guid:1,proxy:function(g,a,e){arguments.length===2&&(typeof a==="string"?(e=g,g=e[a],a=b):a&&!l.isFunction(a)&&(e=a,a=b));!a&&g&&(a=function(){return g.apply(e||this,arguments)});if(g)a.guid=g.guid=g.guid||a.guid||l.guid++;return a},access:function(g,a,e,d,v,c){var f=g.length;if(typeof a==="object"){for(var h in a)l.access(g,h,a[h],d,v,e);return g}if(e!==
b){d=!c&&d&&l.isFunction(e);for(h=0;h<f;h++)v(g[h],a,d?e.call(g[h],h,v(g[h],a)):e,c);return g}return f?v(g[0],a):b},now:function(){return(new Date).getTime()},uaMatch:function(g){g=g.toLowerCase();g=I.exec(g)||xa.exec(g)||ya.exec(g)||g.indexOf("compatible")<0&&za.exec(g)||[];return{browser:g[1]||"",version:g[2]||"0"}},browser:{}});l.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(g,a){J["[object "+a+"]"]=a.toLowerCase()});V=l.uaMatch(V);if(V.browser)l.browser[V.browser]=
!0,l.browser.version=V.version;if(l.browser.webkit)l.browser.safari=!0;if(H)l.inArray=function(g,a){return H.call(a,g)};/\s/.test("\u00a0")||(i=/^[\s\xA0]+/,j=/[\s\xA0]+$/);c=l(p);p.addEventListener?q=function(){p.removeEventListener("DOMContentLoaded",q,!1);l.ready()}:p.attachEvent&&(q=function(){p.readyState==="complete"&&(p.detachEvent("onreadystatechange",q),l.ready())});return a.jQuery=a.$=l}();(function(){e.support={};var g=p.documentElement,l=p.createElement("script"),b=p.createElement("div"),
d="script"+e.now();b.style.display="none";b.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var c=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],h=p.createElement("select"),i=h.appendChild(p.createElement("option"));if(c&&c.length&&f){e.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),
hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:b.getElementsByTagName("input")[0].value==="on",optSelected:i.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,scriptEval:!1,noCloneEvent:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0};h.disabled=!0;e.support.optDisabled=!i.disabled;l.type="text/javascript";try{l.appendChild(p.createTextNode("window."+d+"=1;"))}catch(j){}g.insertBefore(l,
g.firstChild);if(a[d])e.support.scriptEval=!0,delete a[d];try{delete l.test}catch(k){e.support.deleteExpando=!1}g.removeChild(l);b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function sa(){e.support.noCloneEvent=!1;b.detachEvent("onclick",sa)}),b.cloneNode(!0).fireEvent("onclick"));b=p.createElement("div");b.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";g=p.createDocumentFragment();g.appendChild(b.firstChild);e.support.checkClone=g.cloneNode(!0).cloneNode(!0).lastChild.checked;
e(function(){var g=p.createElement("div");g.style.width=g.style.paddingLeft="1px";p.body.appendChild(g);e.boxModel=e.support.boxModel=g.offsetWidth===2;if("zoom"in g.style)g.style.display="inline",g.style.zoom=1,e.support.inlineBlockNeedsLayout=g.offsetWidth===2,g.style.display="",g.innerHTML="<div style='width:4px;'></div>",e.support.shrinkWrapBlocks=g.offsetWidth!==2;g.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var a=g.getElementsByTagName("td");e.support.reliableHiddenOffsets=
a[0].offsetHeight===0;a[0].style.display="";a[1].style.display="none";e.support.reliableHiddenOffsets=e.support.reliableHiddenOffsets&&a[0].offsetHeight===0;g.innerHTML="";p.body.removeChild(g).style.display="none"});g=function(g){var a=p.createElement("div"),g="on"+g,l=g in a;l||(a.setAttribute(g,"return;"),l=typeof a[g]==="function");return l};e.support.submitBubbles=g("submit");e.support.changeBubbles=g("change");g=l=b=c=f=null}})();var u={},C=/^(?:\{.*\}|\[.*\])$/;e.extend({cache:{},uuid:0,expando:"jQuery"+
e.now(),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},data:function(g,l,d){if(e.acceptData(g)){var g=g==a?u:g,c=g.nodeType,f=c?g[e.expando]:null,h=e.cache;if(!c||f||!(typeof l==="string"&&d===b))return c?f||(g[e.expando]=f=++e.uuid):h=g,typeof l==="object"?c?h[f]=e.extend(h[f],l):e.extend(h,l):c&&!h[f]&&(h[f]={}),g=c?h[f]:h,d!==b&&(g[l]=d),typeof l==="string"?g[l]:g}},removeData:function(g,l){if(e.acceptData(g)){var g=g==a?u:g,b=g.nodeType,d=b?g[e.expando]:g,c=e.cache,
f=b?c[d]:d;if(l)f&&(delete f[l],b&&e.isEmptyObject(f)&&e.removeData(g));else if(b&&e.support.deleteExpando)delete g[e.expando];else if(g.removeAttribute)g.removeAttribute(e.expando);else if(b)delete c[d];else for(var h in g)delete g[h]}},acceptData:function(g){if(g.nodeName){var a=e.noData[g.nodeName.toLowerCase()];if(a)return!(a===!0||g.getAttribute("classid")!==a)}return!0}});e.fn.extend({data:function(g,a){var c=null;if(typeof g==="undefined"){if(this.length)for(var f=this[0].attributes,h,c=e.data(this[0]),
i=0,j=f.length;i<j;i++)h=f[i].name,h.indexOf("data-")===0&&(h=h.substr(5),d(this[0],h,c[h]));return c}else if(typeof g==="object")return this.each(function(){e.data(this,g)});var k=g.split(".");k[1]=k[1]?"."+k[1]:"";return a===b?(c=this.triggerHandler("getData"+k[1]+"!",[k[0]]),c===b&&this.length&&(c=e.data(this[0],g),c=d(this[0],g,c)),c===b&&k[1]?this.data(k[0]):c):this.each(function(){var b=e(this),d=[k[0],a];b.triggerHandler("setData"+k[1]+"!",d);e.data(this,g,a);b.triggerHandler("changeData"+
k[1]+"!",d)})},removeData:function(g){return this.each(function(){e.removeData(this,g)})}});e.extend({queue:function(g,a,b){if(g){var a=(a||"fx")+"queue",d=e.data(g,a);if(!b)return d||[];!d||e.isArray(b)?d=e.data(g,a,e.makeArray(b)):d.push(b);return d}},dequeue:function(g,a){var a=a||"fx",b=e.queue(g,a),d=b.shift();d==="inprogress"&&(d=b.shift());d&&(a==="fx"&&b.unshift("inprogress"),d.call(g,function(){e.dequeue(g,a)}))}});e.fn.extend({queue:function(g,a){typeof g!=="string"&&(a=g,g="fx");return a===
b?e.queue(this[0],g):this.each(function(){var b=e.queue(this,g,a);g==="fx"&&b[0]!=="inprogress"&&e.dequeue(this,g)})},dequeue:function(g){return this.each(function(){e.dequeue(this,g)})},delay:function(g,a){g=e.fx?e.fx.speeds[g]||g:g;a=a||"fx";return this.queue(a,function(){var b=this;setTimeout(function(){e.dequeue(b,a)},g)})},clearQueue:function(g){return this.queue(g||"fx",[])}});var B=/[\n\t]/g,F=/\s+/,G=/\r/g,t=/^(?:href|src|style)$/,x=/^(?:button|input)$/i,D=/^(?:button|input|object|select|textarea)$/i,
M=/^a(?:rea)?$/i,H=/^(?:radio|checkbox)$/i;e.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};e.fn.extend({attr:function(g,a){return e.access(this,g,a,!0,e.attr)},removeAttr:function(g){return this.each(function(){e.attr(this,g,"");this.nodeType===1&&this.removeAttribute(g)})},addClass:function(g){if(e.isFunction(g))return this.each(function(a){var b=
e(this);b.addClass(g.call(this,a,b.attr("class")))});if(g&&typeof g==="string")for(var a=(g||"").split(F),b=0,d=this.length;b<d;b++){var c=this[b];if(c.nodeType===1)if(c.className){for(var f=" "+c.className+" ",h=c.className,i=0,j=a.length;i<j;i++)f.indexOf(" "+a[i]+" ")<0&&(h+=" "+a[i]);c.className=e.trim(h)}else c.className=g}return this},removeClass:function(g){if(e.isFunction(g))return this.each(function(a){var b=e(this);b.removeClass(g.call(this,a,b.attr("class")))});if(g&&typeof g==="string"||
g===b)for(var a=(g||"").split(F),d=0,c=this.length;d<c;d++){var f=this[d];if(f.nodeType===1&&f.className)if(g){for(var h=(" "+f.className+" ").replace(B," "),i=0,j=a.length;i<j;i++)h=h.replace(" "+a[i]+" "," ");f.className=e.trim(h)}else f.className=""}return this},toggleClass:function(g,a){var b=typeof g,d=typeof a==="boolean";return e.isFunction(g)?this.each(function(b){var d=e(this);d.toggleClass(g.call(this,b,d.attr("class"),a),a)}):this.each(function(){if(b==="string")for(var c,f=0,h=e(this),
i=a,j=g.split(F);c=j[f++];)i=d?i:!h.hasClass(c),h[i?"addClass":"removeClass"](c);else if(b==="undefined"||b==="boolean")this.className&&e.data(this,"__className__",this.className),this.className=this.className||g===!1?"":e.data(this,"__className__")||""})},hasClass:function(g){for(var g=" "+g+" ",a=0,b=this.length;a<b;a++)if((" "+this[a].className+" ").replace(B," ").indexOf(g)>-1)return!0;return!1},val:function(g){if(!arguments.length){var a=this[0];if(a){if(e.nodeName(a,"option")){var d=a.attributes.value;
return!d||d.specified?a.value:a.text}if(e.nodeName(a,"select")){var c=a.selectedIndex,d=[],f=a.options,a=a.type==="select-one";if(c<0)return null;for(var h=a?c:0,c=a?c+1:f.length;h<c;h++){var i=f[h];if(i.selected&&(e.support.optDisabled?!i.disabled:i.getAttribute("disabled")===null)&&(!i.parentNode.disabled||!e.nodeName(i.parentNode,"optgroup"))){g=e(i).val();if(a)return g;d.push(g)}}return d}return H.test(a.type)&&!e.support.checkOn?a.getAttribute("value")===null?"on":a.value:(a.value||"").replace(G,
"")}return b}var j=e.isFunction(g);return this.each(function(a){var b=e(this),l=g;if(this.nodeType===1)if(j&&(l=g.call(this,a,b.val())),l==null?l="":typeof l==="number"?l+="":e.isArray(l)&&(l=e.map(l,function(g){return g==null?"":g+""})),e.isArray(l)&&H.test(this.type))this.checked=e.inArray(b.val(),l)>=0;else if(e.nodeName(this,"select")){var d=e.makeArray(l);e("option",this).each(function(){this.selected=e.inArray(e(this).val(),d)>=0});if(!d.length)this.selectedIndex=-1}else this.value=l})}});e.extend({attrFn:{val:!0,
css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(g,a,d,c){if(!g||g.nodeType===3||g.nodeType===8)return b;if(c&&a in e.attrFn)return e(g)[a](d);var c=g.nodeType!==1||!e.isXMLDoc(g),f=d!==b,a=c&&e.props[a]||a,h=t.test(a);if((a in g||g[a]!==b)&&c&&!h)return f&&(a==="type"&&x.test(g.nodeName)&&g.parentNode&&e.error("type property can't be changed"),d===null?g.nodeType===1&&g.removeAttribute(a):g[a]=d),e.nodeName(g,"form")&&g.getAttributeNode(a)?g.getAttributeNode(a).nodeValue:
a==="tabIndex"?(a=g.getAttributeNode("tabIndex"))&&a.specified?a.value:D.test(g.nodeName)||M.test(g.nodeName)&&g.href?0:b:g[a];if(!e.support.style&&c&&a==="style"){if(f)g.style.cssText=""+d;return g.style.cssText}f&&g.setAttribute(a,""+d);if(!g.attributes[a]&&g.hasAttribute&&!g.hasAttribute(a))return b;g=!e.support.hrefNormalized&&c&&h?g.getAttribute(a,2):g.getAttribute(a);return g===null?b:g}});var O=/\.(.*)$/,J=/^(?:textarea|input|select)$/i,Q=/\./g,T=/ /g,X=/[^\w\s.|`]/g,$=function(g){return g.replace(X,
"\\$&")},N={focusin:0,focusout:0};e.event={add:function(g,l,d,f){if(!(g.nodeType===3||g.nodeType===8)){e.isWindow(g)&&g!==a&&!g.frameElement&&(g=a);if(d===!1)d=c;else if(!d)return;var h,i;if(d.handler)h=d,d=h.handler;if(!d.guid)d.guid=e.guid++;if(i=e.data(g)){var j=g.nodeType?"events":"__events__",k=i[j],m=i.handle;if(typeof k==="function")m=k.handle,k=k.events;else if(!k)g.nodeType||(i[j]=i=function(){}),i.events=k={};if(!m)i.handle=m=function(){return typeof e!=="undefined"&&!e.event.triggered?
e.event.handle.apply(m.elem,arguments):b};m.elem=g;for(var l=l.split(" "),o=0,y;j=l[o++];){i=h?e.extend({},h):{handler:d,data:f};j.indexOf(".")>-1?(y=j.split("."),j=y.shift(),i.namespace=y.slice(0).sort().join(".")):(y=[],i.namespace="");i.type=j;if(!i.guid)i.guid=d.guid;var p=k[j],x=e.event.special[j]||{};if(!p&&(p=k[j]=[],!x.setup||x.setup.call(g,f,y,m)===!1))g.addEventListener?g.addEventListener(j,m,!1):g.attachEvent&&g.attachEvent("on"+j,m);if(x.add&&(x.add.call(g,i),!i.handler.guid))i.handler.guid=
d.guid;p.push(i);e.event.global[j]=!0}g=null}}},global:{},remove:function(g,a,b,d){if(!(g.nodeType===3||g.nodeType===8)){b===!1&&(b=c);var f,h,i=0,j,k,m,o,y,p,x=g.nodeType?"events":"__events__",n=e.data(g),D=n&&n[x];if(n&&D){if(typeof D==="function")n=D,D=D.events;if(a&&a.type)b=a.handler,a=a.type;if(!a||typeof a==="string"&&a.charAt(0)===".")for(f in a=a||"",D)e.event.remove(g,f+a);else{for(a=a.split(" ");f=a[i++];)if(o=f,j=f.indexOf(".")<0,k=[],j||(k=f.split("."),f=k.shift(),m=RegExp("(^|\\.)"+
e.map(k.slice(0).sort(),$).join("\\.(?:.*\\.)?")+"(\\.|$)")),y=D[f])if(b){o=e.event.special[f]||{};for(h=d||0;h<y.length;h++)if(p=y[h],b.guid===p.guid){if(j||m.test(p.namespace))d==null&&y.splice(h--,1),o.remove&&o.remove.call(g,p);if(d!=null)break}if(y.length===0||d!=null&&y.length===1)(!o.teardown||o.teardown.call(g,k)===!1)&&e.removeEvent(g,f,n.handle),delete D[f]}else for(h=0;h<y.length;h++)if(p=y[h],j||m.test(p.namespace))e.event.remove(g,o,p.handler,h),y.splice(h--,1);if(e.isEmptyObject(D)){if(a=
n.handle)a.elem=null;delete n.events;delete n.handle;typeof n==="function"?e.removeData(g,x):e.isEmptyObject(n)&&e.removeData(g)}}}}},trigger:function(a,l,d,c){var f=a.type||a;if(!c){a=typeof a==="object"?a[e.expando]?a:e.extend(e.Event(f),a):e.Event(f);if(f.indexOf("!")>=0)a.type=f=f.slice(0,-1),a.exclusive=!0;d||(a.stopPropagation(),e.event.global[f]&&e.each(e.cache,function(){this.events&&this.events[f]&&e.event.trigger(a,l,this.handle.elem)}));if(!d||d.nodeType===3||d.nodeType===8)return b;a.result=
b;a.target=d;l=e.makeArray(l);l.unshift(a)}a.currentTarget=d;(c=d.nodeType?e.data(d,"handle"):(e.data(d,"__events__")||{}).handle)&&c.apply(d,l);c=d.parentNode||d.ownerDocument;try{if((!d||!d.nodeName||!e.noData[d.nodeName.toLowerCase()])&&d["on"+f]&&d["on"+f].apply(d,l)===!1)a.result=!1,a.preventDefault()}catch(h){}if(!a.isPropagationStopped()&&c)e.event.trigger(a,l,c,!0);else if(!a.isDefaultPrevented()){var i,c=a.target,j=f.replace(O,""),k=e.nodeName(c,"a")&&j==="click",m=e.event.special[j]||{};
if((!m._default||m._default.call(d,a)===!1)&&!k&&(!c||!c.nodeName||!e.noData[c.nodeName.toLowerCase()])){try{if(c[j])(i=c["on"+j])&&(c["on"+j]=null),e.event.triggered=!0,c[j]()}catch(o){}i&&(c["on"+j]=i);e.event.triggered=!1}}},handle:function(g){var d,c,f,h;c=[];var i=e.makeArray(arguments),g=i[0]=e.event.fix(g||a.event);g.currentTarget=this;d=g.type.indexOf(".")<0&&!g.exclusive;if(!d)f=g.type.split("."),g.type=f.shift(),c=f.slice(0).sort(),f=RegExp("(^|\\.)"+c.join("\\.(?:.*\\.)?")+"(\\.|$)");g.namespace=
g.namespace||c.join(".");h=e.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=h.events;c=(h||{})[g.type];if(h&&c){c=c.slice(0);h=0;for(var j=c.length;h<j;h++){var k=c[h];if(d||f.test(k.namespace)){g.handler=k.handler;g.data=k.data;g.handleObj=k;k=k.handler.apply(this,i);if(k!==b)g.result=k,k===!1&&(g.preventDefault(),g.stopPropagation());if(g.isImmediatePropagationStopped())break}}}return g.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[e.expando])return a;for(var d=a,a=e.Event(d),c=this.props.length,f;c;)f=this.props[--c],a[f]=d[f];if(!a.target)a.target=a.srcElement||p;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null)d=p.documentElement,c=p.body,a.pageX=a.clientX+(d&&d.scrollLeft||c&&c.scrollLeft||0)-(d&&d.clientLeft||c&&c.clientLeft||0),a.pageY=a.clientY+(d&&d.scrollTop||
c&&c.scrollTop||0)-(d&&d.clientTop||c&&c.clientTop||0);if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==b)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:e.proxy,special:{ready:{setup:e.bindReady,teardown:e.noop},live:{add:function(a){e.event.add(this,j(a.origType,a.selector),e.extend({},a,{handler:i,guid:a.handler.guid}))},remove:function(a){e.event.remove(this,
j(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(e.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};e.removeEvent=p.removeEventListener?function(a,b,e){a.removeEventListener&&a.removeEventListener(b,e,!1)}:function(a,b,e){a.detachEvent&&a.detachEvent("on"+b,e)};e.Event=function(a){if(!this.preventDefault)return new e.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type):this.type=a;this.timeStamp=e.now();
this[e.expando]=!0};e.Event.prototype={preventDefault:function(){this.isDefaultPrevented=f;var a=this.originalEvent;if(a)a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=f;var a=this.originalEvent;if(a)a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=f;this.stopPropagation()},isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c};var R=function(a){var b=
a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this)a.type=a.data,e.event.handle.apply(this,arguments)}catch(d){}},L=function(a){a.type=a.data;e.event.handle.apply(this,arguments)};e.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){e.event.special[a]={setup:function(d){e.event.add(this,b,d&&d.selector?L:R,a)},teardown:function(a){e.event.remove(this,b,a&&a.selector?L:R)}}});if(!e.support.submitBubbles)e.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
"form")e.event.add(this,"click.specialSubmit",function(a){var d=a.target,c=d.type;if((c==="submit"||c==="image")&&e(d).closest("form").length)return a.liveFired=b,h("submit",this,arguments)}),e.event.add(this,"keypress.specialSubmit",function(a){var d=a.target,c=d.type;if((c==="text"||c==="password")&&e(d).closest("form").length&&a.keyCode===13)return a.liveFired=b,h("submit",this,arguments)});else return!1},teardown:function(){e.event.remove(this,".specialSubmit")}};if(!e.support.changeBubbles){var P,
Y=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?e.map(a.options,function(a){return a.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},r=function(a,d){var c=a.target,f,h;if(J.test(c.nodeName)&&!c.readOnly&&(f=e.data(c,"_change_data"),h=Y(c),(a.type!=="focusout"||c.type!=="radio")&&e.data(c,"_change_data",h),!(f===b||h===f)))if(f!=null||h)return a.type="change",a.liveFired=
b,e.event.trigger(a,d,c)};e.event.special.change={filters:{focusout:r,beforedeactivate:r,click:function(a){var b=a.target,e=b.type;if(e==="radio"||e==="checkbox"||b.nodeName.toLowerCase()==="select")return r.call(this,a)},keydown:function(a){var b=a.target,e=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(e==="checkbox"||e==="radio")||e==="select-multiple")return r.call(this,a)},beforeactivate:function(a){a=a.target;e.data(a,"_change_data",Y(a))}},setup:function(){if(this.type===
"file")return!1;for(var a in P)e.event.add(this,a+".specialChange",P[a]);return J.test(this.nodeName)},teardown:function(){e.event.remove(this,".specialChange");return J.test(this.nodeName)}};P=e.event.special.change.filters;P.focus=P.beforeactivate}p.addEventListener&&e.each({focus:"focusin",blur:"focusout"},function(a,b){function d(a){a=e.event.fix(a);a.type=b;return e.event.trigger(a,null,a.target)}e.event.special[b]={setup:function(){N[b]++===0&&p.addEventListener(a,d,!0)},teardown:function(){--N[b]===
0&&p.removeEventListener(a,d,!0)}}});e.each(["bind","one"],function(a,d){e.fn[d]=function(a,g,c){if(typeof a==="object"){for(var f in a)this[d](f,g,a[f],c);return this}if(e.isFunction(g)||g===!1)c=g,g=b;var h=d==="one"?e.proxy(c,function(a){e(this).unbind(a,h);return c.apply(this,arguments)}):c;if(a==="unload"&&d!=="one")this.one(a,g,c);else{f=0;for(var i=this.length;f<i;f++)e.event.add(this[f],a,h,g)}return this}});e.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
a[d]);else{d=0;for(var c=this.length;d<c;d++)e.event.remove(this[d],a,b)}return this},delegate:function(a,b,e,d){return this.live(b,e,d,a)},undelegate:function(a,b,e){return arguments.length===0?this.unbind("live"):this.die(b,null,e,a)},trigger:function(a,b){return this.each(function(){e.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=e.Event(a);d.preventDefault();d.stopPropagation();e.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=
1;d<b.length;)e.proxy(a,b[d++]);return this.click(e.proxy(a,function(c){var f=(e.data(this,"lastToggle"+a.guid)||0)%d;e.data(this,"lastToggle"+a.guid,f+1);c.preventDefault();return b[f].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var y={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};e.each(["live","die"],function(a,d){e.fn[d]=function(a,g,c,f){var h,i=0,k,m,o=f||this.selector,f=f?this:e(this.context);if(typeof a===
"object"&&!a.preventDefault){for(h in a)f[d](h,g,a[h],o);return this}e.isFunction(g)&&(c=g,g=b);for(a=(a||"").split(" ");(h=a[i++])!=null;)if(k=O.exec(h),m="",k&&(m=k[0],h=h.replace(O,"")),h==="hover")a.push("mouseenter"+m,"mouseleave"+m);else if(k=h,h==="focus"||h==="blur"?(a.push(y[h]+m),h+=m):h=(y[h]||h)+m,d==="live"){m=0;for(var p=f.length;m<p;m++)e.event.add(f[m],"live."+j(h,o),{data:g,selector:o,handler:c,origType:h,origHandler:c,preType:k})}else f.unbind("live."+j(h,o),c);return this}});e.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".split(" "),
function(a,b){e.fn[b]=function(a,g){g==null&&(g=a,a=null);return arguments.length>0?this.bind(b,a,g):this.trigger(b)};e.attrFn&&(e.attrFn[b]=!0)});a.attachEvent&&!a.addEventListener&&e(a).bind("unload",function(){for(var a in e.cache)if(e.cache[a].handle)try{e.event.remove(e.cache[a].handle.elem)}catch(b){}});(function(){function a(g,b,d,e,c,l){for(var c=0,f=e.length;c<f;c++){var h=e[c];if(h){for(var i=!1,h=h[g];h;){if(h.sizcache===d){i=e[h.sizset];break}if(h.nodeType===1&&!l)h.sizcache=d,h.sizset=
c;if(h.nodeName.toLowerCase()===b){i=h;break}h=h[g]}e[c]=i}}}function d(a,g,b,e,c,l){for(var c=0,f=e.length;c<f;c++){var h=e[c];if(h){for(var i=!1,h=h[a];h;){if(h.sizcache===b){i=e[h.sizset];break}if(h.nodeType===1){if(!l)h.sizcache=b,h.sizset=c;if(typeof g!=="string"){if(h===g){i=!0;break}}else if(k.filter(g,[h]).length>0){i=h;break}}h=h[a]}e[c]=i}}}var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,f=0,h=Object.prototype.toString,
i=!1,j=!0;[0,0].sort(function(){j=!1;return 0});var k=function(a,g,b,e){var b=b||[],d=g=g||p;if(g.nodeType!==1&&g.nodeType!==9)return[];if(!a||typeof a!=="string")return b;var l,f,i,j,E,y=!0,x=k.isXML(g),A=[],D=a;do if(c.exec(""),l=c.exec(D))if(D=l[3],A.push(l[1]),l[2]){j=l[3];break}while(l);if(A.length>1&&o.exec(a))if(A.length===2&&m.relative[A[0]])f=u(A[0]+A[1],g);else for(f=m.relative[A[0]]?[g]:k(A.shift(),g);A.length;)a=A.shift(),m.relative[a]&&(a+=A.shift()),f=u(a,f);else if(!e&&A.length>1&&
g.nodeType===9&&!x&&m.match.ID.test(A[0])&&!m.match.ID.test(A[A.length-1])&&(l=k.find(A.shift(),g,x),g=l.expr?k.filter(l.expr,l.set)[0]:l.set[0]),g){l=e?{expr:A.pop(),set:n(e)}:k.find(A.pop(),A.length===1&&(A[0]==="~"||A[0]==="+")&&g.parentNode?g.parentNode:g,x);f=l.expr?k.filter(l.expr,l.set):l.set;for(A.length>0?i=n(f):y=!1;A.length;)l=E=A.pop(),m.relative[E]?l=A.pop():E="",l==null&&(l=g),m.relative[E](i,l,x)}else i=[];i||(i=f);i||k.error(E||a);if(h.call(i)==="[object Array]")if(y)if(g&&g.nodeType===
1)for(a=0;i[a]!=null;a++)i[a]&&(i[a]===!0||i[a].nodeType===1&&k.contains(g,i[a]))&&b.push(f[a]);else for(a=0;i[a]!=null;a++)i[a]&&i[a].nodeType===1&&b.push(f[a]);else b.push.apply(b,i);else n(i,b);j&&(k(j,d,b,e),k.uniqueSort(b));return b};k.uniqueSort=function(a){if(I&&(i=j,a.sort(I),i))for(var g=1;g<a.length;g++)a[g]===a[g-1]&&a.splice(g--,1);return a};k.matches=function(a,g){return k(a,null,null,g)};k.matchesSelector=function(a,g){return k(g,null,null,[a]).length>0};k.find=function(a,g,b){var e;
if(!a)return[];for(var d=0,c=m.order.length;d<c;d++){var l,f=m.order[d];if(l=m.leftMatch[f].exec(a)){var h=l[1];l.splice(1,1);if(h.substr(h.length-1)!=="\\"&&(l[1]=(l[1]||"").replace(/\\/g,""),e=m.find[f](l,g,b),e!=null)){a=a.replace(m.match[f],"");break}}}e||(e=g.getElementsByTagName("*"));return{set:e,expr:a}};k.filter=function(a,g,e,d){for(var c,l,f=a,h=[],i=g,v=g&&g[0]&&k.isXML(g[0]);a&&g.length;){for(var j in m.filter)if((c=m.leftMatch[j].exec(a))!=null&&c[2]){var E,o,y=m.filter[j];o=c[1];l=
!1;c.splice(1,1);if(o.substr(o.length-1)!=="\\"){i===h&&(h=[]);if(m.preFilter[j])if(c=m.preFilter[j](c,i,e,h,d,v)){if(c===!0)continue}else l=E=!0;if(c)for(var A=0;(o=i[A])!=null;A++)if(o){E=y(o,c,A,i);var fa=d^!!E;e&&E!=null?fa?l=!0:i[A]=!1:fa&&(h.push(o),l=!0)}if(E!==b){e||(i=h);a=a.replace(m.match[j],"");if(!l)return[];break}}}if(a===f)if(l==null)k.error(a);else break;f=a}return i};k.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var m=k.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|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className",
"for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")}},relative:{"+":function(a,g){var b=typeof g==="string",e=b&&!/\W/.test(g),b=b&&!e;e&&(g=g.toLowerCase());for(var e=0,d=a.length,c;e<d;e++)if(c=a[e]){for(;(c=c.previousSibling)&&c.nodeType!==1;);a[e]=b||c&&c.nodeName.toLowerCase()===g?c||!1:c===g}b&&k.filter(g,a,!0)},">":function(a,g){var b,e=typeof g==="string",d=0,c=a.length;if(e&&!/\W/.test(g))for(g=g.toLowerCase();d<c;d++){if(b=a[d])b=b.parentNode,a[d]=b.nodeName.toLowerCase()===
g?b:!1}else{for(;d<c;d++)(b=a[d])&&(a[d]=e?b.parentNode:b.parentNode===g);e&&k.filter(g,a,!0)}},"":function(b,e,c){var h,i=f++,v=d;typeof e==="string"&&!/\W/.test(e)&&(h=e=e.toLowerCase(),v=a);v("parentNode",e,i,b,h,c)},"~":function(b,e,c){var h,i=f++,v=d;typeof e==="string"&&!/\W/.test(e)&&(h=e=e.toLowerCase(),v=a);v("previousSibling",e,i,b,h,c)}},find:{ID:function(a,g,b){if(typeof g.getElementById!=="undefined"&&!b)return(a=g.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,g){if(typeof g.getElementsByName!==
"undefined"){for(var b=[],e=g.getElementsByName(a[1]),d=0,c=e.length;d<c;d++)e[d].getAttribute("name")===a[1]&&b.push(e[d]);return b.length===0?null:b}},TAG:function(a,g){return g.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,g,b,e,d,c){a=" "+a[1].replace(/\\/g,"")+" ";if(c)return a;for(var c=0,l;(l=g[c])!=null;c++)l&&(d^(l.className&&(" "+l.className+" ").replace(/[\t\n]/g," ").indexOf(a)>=0)?b||e.push(l):b&&(g[c]=!1));return!1},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},
CHILD:function(a){if(a[1]==="nth"){var g=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=g[1]+(g[2]||1)-0;a[3]=g[3]-0}a[0]=f++;return a},ATTR:function(a,g,b,e,d,c){g=a[1].replace(/\\/g,"");!c&&m.attrMap[g]&&(a[1]=m.attrMap[g]);a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,g,b,e,d){if(a[1]==="not")if((c.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=k(a[3],null,null,g);else return a=k.filter(a[3],g,b,1^d),b||e.push.apply(e,
a),!1;else if(m.match.POS.test(a[0])||m.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,g,b){return!!k(b[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},
text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},
setFilters:{first:function(a,g){return g===0},last:function(a,g,b,e){return g===e.length-1},even:function(a,g){return g%2===0},odd:function(a,g){return g%2===1},lt:function(a,g,b){return g<b[3]-0},gt:function(a,g,b){return g>b[3]-0},nth:function(a,g,b){return b[3]-0===g},eq:function(a,g,b){return b[3]-0===g}},filter:{PSEUDO:function(a,g,b,e){var d=g[1],c=m.filters[d];if(c)return c(a,b,g,e);else if(d==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(g[3])>=0;else if(d==="not"){g=
g[3];b=0;for(e=g.length;b<e;b++)if(g[b]===a)return!1;return!0}else k.error("Syntax error, unrecognized expression: "+d)},CHILD:function(a,g){var b=g[1],e=a;switch(b){case "only":case "first":for(;e=e.previousSibling;)if(e.nodeType===1)return!1;if(b==="first")return!0;e=a;case "last":for(;e=e.nextSibling;)if(e.nodeType===1)return!1;return!0;case "nth":var b=g[2],d=g[3];if(b===1&&d===0)return!0;var c=g[0],l=a.parentNode;if(l&&(l.sizcache!==c||!a.nodeIndex)){for(var f=0,e=l.firstChild;e;e=e.nextSibling)if(e.nodeType===
1)e.nodeIndex=++f;l.sizcache=c}e=a.nodeIndex-d;return b===0?e===0:e%b===0&&e/b>=0}},ID:function(a,g){return a.nodeType===1&&a.getAttribute("id")===g},TAG:function(a,g){return g==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===g},CLASS:function(a,g){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(g)>-1},ATTR:function(a,g){var b=g[1],b=m.attrHandle[b]?m.attrHandle[b](a):a[b]!=null?a[b]:a.getAttribute(b),e=b+"",d=g[2],c=g[4];return b==null?d==="!=":d==="="?e===c:d==="*="?e.indexOf(c)>=
0:d==="~="?(" "+e+" ").indexOf(c)>=0:!c?e&&b!==!1:d==="!="?e!==c:d==="^="?e.indexOf(c)===0:d==="$="?e.substr(e.length-c.length)===c:d==="|="?e===c||e.substr(0,c.length+1)===c+"-":!1},POS:function(a,g,b,e){var d=m.setFilters[g[2]];if(d)return d(a,b,g,e)}}},o=m.match.POS,y=function(a,g){return"\\"+(g-0+1)},x;for(x in m.match)m.match[x]=RegExp(m.match[x].source+/(?![^\[]*\])(?![^\(]*\))/.source),m.leftMatch[x]=RegExp(/(^(?:.|\r|\n)*?)/.source+m.match[x].source.replace(/\\(\d+)/g,y));var n=function(a,
g){a=Array.prototype.slice.call(a,0);return g?(g.push.apply(g,a),g):a};try{Array.prototype.slice.call(p.documentElement.childNodes,0)}catch(D){n=function(a,g){var b=0,e=g||[];if(h.call(a)==="[object Array]")Array.prototype.push.apply(e,a);else if(typeof a.length==="number")for(var d=a.length;b<d;b++)e.push(a[b]);else for(;a[b];b++)e.push(a[b]);return e}}var I,q;p.documentElement.compareDocumentPosition?I=function(a,g){return a===g?(i=!0,0):!a.compareDocumentPosition||!g.compareDocumentPosition?a.compareDocumentPosition?
-1:1:a.compareDocumentPosition(g)&4?-1:1}:(I=function(a,g){var b,e,d=[],c=[];b=a.parentNode;e=g.parentNode;var l=b;if(a===g)return i=!0,0;else if(b===e)return q(a,g);else if(b){if(!e)return 1}else return-1;for(;l;)d.unshift(l),l=l.parentNode;for(l=e;l;)c.unshift(l),l=l.parentNode;b=d.length;e=c.length;for(l=0;l<b&&l<e;l++)if(d[l]!==c[l])return q(d[l],c[l]);return l===b?q(a,c[l],-1):q(d[l],g,1)},q=function(a,g,b){if(a===g)return b;for(a=a.nextSibling;a;){if(a===g)return-1;a=a.nextSibling}return 1});
k.getText=function(a){for(var g="",b,e=0;a[e];e++)b=a[e],b.nodeType===3||b.nodeType===4?g+=b.nodeValue:b.nodeType!==8&&(g+=k.getText(b.childNodes));return g};(function(){var a=p.createElement("div"),g="script"+(new Date).getTime(),e=p.documentElement;a.innerHTML="<a name='"+g+"'/>";e.insertBefore(a,e.firstChild);if(p.getElementById(g))m.find.ID=function(a,g,e){if(typeof g.getElementById!=="undefined"&&!e)return(g=g.getElementById(a[1]))?g.id===a[1]||typeof g.getAttributeNode!=="undefined"&&g.getAttributeNode("id").nodeValue===
a[1]?[g]:b:[]},m.filter.ID=function(a,g){var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===g};e.removeChild(a);e=a=null})();(function(){var a=p.createElement("div");a.appendChild(p.createComment(""));if(a.getElementsByTagName("*").length>0)m.find.TAG=function(a,g){var b=g.getElementsByTagName(a[1]);if(a[1]==="*"){for(var e=[],d=0;b[d];d++)b[d].nodeType===1&&e.push(b[d]);b=e}return b};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!==
"undefined"&&a.firstChild.getAttribute("href")!=="#")m.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();p.querySelectorAll&&function(){var a=k,g=p.createElement("div");g.innerHTML="<p class='TEST'></p>";if(!(g.querySelectorAll&&g.querySelectorAll(".TEST").length===0)){k=function(g,b,e,d){b=b||p;g=g.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!d&&!k.isXML(b))if(b.nodeType===9)try{return n(b.querySelectorAll(g),e)}catch(c){}else if(b.nodeType===1&&b.nodeName.toLowerCase()!==
"object"){var l=b.getAttribute("id"),f=l||"__sizzle__";l||b.setAttribute("id",f);try{return n(b.querySelectorAll("#"+f+" "+g),e)}catch(h){}finally{l||b.removeAttribute("id")}}return a(g,b,e,d)};for(var b in a)k[b]=a[b];g=null}}();(function(){var a=p.documentElement,g=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,b=!1;try{g.call(p.documentElement,"[test!='']:sizzle")}catch(e){b=!0}if(g)k.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");
if(!k.isXML(a))try{if(b||!m.match.PSEUDO.test(e)&&!/!=/.test(e))return g.call(a,e)}catch(d){}return k(e,null,null,[a]).length>0}})();(function(){var a=p.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))m.order.splice(1,0,"CLASS"),m.find.CLASS=function(a,g,b){if(typeof g.getElementsByClassName!=="undefined"&&!b)return g.getElementsByClassName(a[1])},
a=null})();k.contains=p.documentElement.contains?function(a,g){return a!==g&&(a.contains?a.contains(g):!0)}:p.documentElement.compareDocumentPosition?function(a,g){return!!(a.compareDocumentPosition(g)&16)}:function(){return!1};k.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1};var u=function(a,g){for(var b,e=[],d="",c=g.nodeType?[g]:g;b=m.match.PSEUDO.exec(a);)d+=b[0],a=a.replace(m.match.PSEUDO,"");a=m.relative[a]?a+"*":a;b=0;for(var l=c.length;b<l;b++)k(a,
c[b],e);return k.filter(d,e)};e.find=k;e.expr=k.selectors;e.expr[":"]=e.expr.filters;e.unique=k.uniqueSort;e.text=k.getText;e.isXMLDoc=k.isXML;e.contains=k.contains})();var I=/Until$/,S=/^(?:parents|prevUntil|prevAll)/,Aa=/,/,ta=/^.[^:#\[\.,]*$/,Ba=Array.prototype.slice,Ca=e.expr.match.POS;e.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,c=0,f=this.length;c<f;c++)if(d=b.length,e.find(a,this[c],b),c>0)for(var h=d;h<b.length;h++)for(var i=0;i<d;i++)if(b[i]===b[h]){b.splice(h--,
1);break}return b},has:function(a){var b=e(a);return this.filter(function(){for(var a=0,g=b.length;a<g;a++)if(e.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(o(this,a,!1),"not",a)},filter:function(a){return this.pushStack(o(this,a,!0),"filter",a)},is:function(a){return!!a&&e.filter(a,this).length>0},closest:function(a,b){var d=[],c,f,h=this[0];if(e.isArray(a)){var i,k={},j=1;if(h&&a.length){c=0;for(f=a.length;c<f;c++)i=a[c],k[i]||(k[i]=e.expr.match.POS.test(i)?e(i,b||this.context):
i);for(;h&&h.ownerDocument&&h!==b;){for(i in k)c=k[i],(c.jquery?c.index(h)>-1:e(h).is(c))&&d.push({selector:i,elem:h,level:j});h=h.parentNode;j++}}return d}i=Ca.test(a)?e(a,b||this.context):null;c=0;for(f=this.length;c<f;c++)for(h=this[c];h;)if(i?i.index(h)>-1:e.find.matchesSelector(h,a)){d.push(h);break}else if(h=h.parentNode,!h||!h.ownerDocument||h===b)break;d=d.length>1?e.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){return!a||typeof a==="string"?e.inArray(this[0],a?e(a):
this.parent().children()):e.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?e(a,b||this.context):e.makeArray(a),c=e.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11?c:e.unique(c))},andSelf:function(){return this.add(this.prevObject)}});e.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return e.dir(a,"parentNode")},parentsUntil:function(a,
b,d){return e.dir(a,"parentNode",d)},next:function(a){return e.nth(a,2,"nextSibling")},prev:function(a){return e.nth(a,2,"previousSibling")},nextAll:function(a){return e.dir(a,"nextSibling")},prevAll:function(a){return e.dir(a,"previousSibling")},nextUntil:function(a,b,d){return e.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return e.dir(a,"previousSibling",d)},siblings:function(a){return e.sibling(a.parentNode.firstChild,a)},children:function(a){return e.sibling(a.firstChild)},contents:function(a){return e.nodeName(a,
"iframe")?a.contentDocument||a.contentWindow.document:e.makeArray(a.childNodes)}},function(a,b){e.fn[a]=function(d,c){var f=e.map(this,b,d);I.test(a)||(c=d);c&&typeof c==="string"&&(f=e.filter(c,f));f=this.length>1?e.unique(f):f;if((this.length>1||Aa.test(c))&&S.test(a))f=f.reverse();return this.pushStack(f,a,Ba.call(arguments).join(","))}});e.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return b.length===1?e.find.matchesSelector(b[0],a)?[b[0]]:[]:e.find.matches(a,b)},dir:function(a,d,c){for(var f=
[],a=a[d];a&&a.nodeType!==9&&(c===b||a.nodeType!==1||!e(a).is(c));)a.nodeType===1&&f.push(a),a=a[d];return f},nth:function(a,b,e){for(var b=b||1,d=0;a;a=a[e])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,b){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&e.push(a);return e}});var ia=/ jQuery\d+="(?:\d+|null)"/g,aa=/^\s+/,ja=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ka=/<([\w:]+)/,Da=/<tbody/i,Ea=/<|&#?\w+;/,la=/<(?:script|object|embed|option|style)/i,
ma=/checked\s*(?:[^=]|=\s*.checked.)/i,Fa=/\=([^="'>\s]+\/)>/g,K={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,"",""]};K.optgroup=K.option;K.tbody=K.tfoot=K.colgroup=K.caption=K.thead;K.th=K.td;if(!e.support.htmlSerialize)K._default=
[1,"div<div>","</div>"];e.fn.extend({text:function(a){return e.isFunction(a)?this.each(function(b){var d=e(this);d.text(a.call(this,b,d.text()))}):typeof a!=="object"&&a!==b?this.empty().append((this[0]&&this[0].ownerDocument||p).createTextNode(a)):e.text(this)},wrapAll:function(a){if(e.isFunction(a))return this.each(function(b){e(this).wrapAll(a.call(this,b))});if(this[0]){var b=e(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&
a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return e.isFunction(a)?this.each(function(b){e(this).wrapInner(a.call(this,b))}):this.each(function(){var b=e(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){e(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){e.nodeName(this,"body")||e(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,
!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});else if(arguments.length){var a=e(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,e(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,c;(c=this[d])!=null;d++)if(!a||e.filter(a,[c]).length)!b&&c.nodeType===1&&(e.cleanData(c.getElementsByTagName("*")),e.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&e.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!e.support.noCloneEvent&&!e.isXMLDoc(this)){var a=this.outerHTML,b=this.ownerDocument;if(!a)a=b.createElement("div"),a.appendChild(this.cloneNode(!0)),a=a.innerHTML;return e.clean([a.replace(ia,"").replace(Fa,'="$1">').replace(aa,"")],b)[0]}else return this.cloneNode(!0)});a===!0&&(k(this,b),k(this.find("*"),b.find("*")));return b},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ia,""):null;else if(typeof a===
"string"&&!la.test(a)&&(e.support.leadingWhitespace||!aa.test(a))&&!K[(ka.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ja,"<$1></$2>");try{for(var d=0,c=this.length;d<c;d++)if(this[d].nodeType===1)e.cleanData(this[d].getElementsByTagName("*")),this[d].innerHTML=a}catch(f){this.empty().append(a)}}else e.isFunction(a)?this.each(function(b){var d=e(this);d.html(a.call(this,b,d.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(e.isFunction(a))return this.each(function(b){var d=
e(this),c=d.html();d.replaceWith(a.call(this,b,c))});typeof a!=="string"&&(a=e(a).detach());return this.each(function(){var b=this.nextSibling,d=this.parentNode;e(this).remove();b?e(b).before(a):e(d).append(a)})}else return this.pushStack(e(e.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,!0)},domManip:function(a,d,c){var f,h,i,k=a[0],j=[];if(!e.support.checkClone&&arguments.length===3&&typeof k==="string"&&ma.test(k))return this.each(function(){e(this).domManip(a,
d,c,!0)});if(e.isFunction(k))return this.each(function(f){var h=e(this);a[0]=k.call(this,f,d?h.html():b);h.domManip(a,d,c)});if(this[0]){f=k&&k.parentNode;f=e.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length?{fragment:f}:e.buildFragment(a,this,j);i=f.fragment;if(h=i.childNodes.length===1?i=i.firstChild:i.firstChild){d=d&&e.nodeName(h,"tr");h=0;for(var o=this.length;h<o;h++)c.call(d?e.nodeName(this[h],"table")?this[h].getElementsByTagName("tbody")[0]||this[h].appendChild(this[h].ownerDocument.createElement("tbody")):
this[h]:this[h],h>0||f.cacheable||this.length>1?i.cloneNode(!0):i)}j.length&&e.each(j,m)}return this}});e.buildFragment=function(a,b,d){var c,f,h,b=b&&b[0]?b[0].ownerDocument||b[0]:p;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===p&&!la.test(a[0])&&(e.support.checkClone||!ma.test(a[0])))f=!0,(h=e.fragments[a[0]])&&h!==1&&(c=h);c||(c=b.createDocumentFragment(),e.clean(a,b,c,d));f&&(e.fragments[a[0]]=h?c:1);return{fragment:c,cacheable:f}};e.fragments={};e.each({appendTo:"append",prependTo:"prepend",
insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){e.fn[a]=function(d){var c=[],d=e(d),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1)return d[b](this[0]),this;else{for(var f=0,h=d.length;f<h;f++){var i=(f>0?this.clone(!0):this).get();e(d[f])[b](i);c=c.concat(i)}return this.pushStack(c,a,d.selector)}}});e.extend({clean:function(a,b,d,c){b=b||p;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||
p);for(var f=[],h=0,i;(i=a[h])!=null;h++)if(typeof i==="number"&&(i+=""),i){if(typeof i==="string"&&!Ea.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(ja,"<$1></$2>");var k=(ka.exec(i)||["",""])[1].toLowerCase(),j=K[k]||K._default,m=j[0],o=b.createElement("div");for(o.innerHTML=j[1]+i+j[2];m--;)o=o.lastChild;if(!e.support.tbody){m=Da.test(i);k=k==="table"&&!m?o.firstChild&&o.firstChild.childNodes:j[1]==="<table>"&&!m?o.childNodes:[];for(j=k.length-1;j>=0;--j)e.nodeName(k[j],
"tbody")&&!k[j].childNodes.length&&k[j].parentNode.removeChild(k[j])}!e.support.leadingWhitespace&&aa.test(i)&&o.insertBefore(b.createTextNode(aa.exec(i)[0]),o.firstChild);i=o.childNodes}i.nodeType?f.push(i):f=e.merge(f,i)}if(d)for(h=0;f[h];h++)c&&e.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript")?c.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]):(f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(e.makeArray(f[h].getElementsByTagName("script")))),d.appendChild(f[h]));
return f},cleanData:function(a){for(var b,d,c=e.cache,f=e.event.special,h=e.support.deleteExpando,i=0,k;(k=a[i])!=null;i++)if(!k.nodeName||!e.noData[k.nodeName.toLowerCase()])if(d=k[e.expando]){if((b=c[d])&&b.events)for(var j in b.events)f[j]?e.event.remove(k,j):e.removeEvent(k,j,b.handle);h?delete k[e.expando]:k.removeAttribute&&k.removeAttribute(e.expando);delete c[d]}}});var na=/alpha\([^)]*\)/i,Ga=/opacity=([^)]*)/,Ha=/-([a-z])/ig,Ia=/([A-Z])/g,oa=/^-?\d+(?:px)?$/i,Ja=/^-?\d/,Ka={position:"absolute",
visibility:"hidden",display:"block"},ua=["Left","Right"],va=["Top","Bottom"],Z,pa,ba,La=function(a,b){return b.toUpperCase()};e.fn.css=function(a,d){return arguments.length===2&&d===b?this:e.access(this,a,d,!0,function(a,g,d){return d!==b?e.style(a,g,d):e.css(a,g)})};e.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=Z(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":e.support.cssFloat?
"cssFloat":"styleFloat"},style:function(a,d,c,f){if(a&&!(a.nodeType===3||a.nodeType===8||!a.style)){var h,i=e.camelCase(d),k=a.style,j=e.cssHooks[i],d=e.cssProps[i]||i;if(c!==b){if(!(typeof c==="number"&&isNaN(c)||c==null))if(typeof c==="number"&&!e.cssNumber[i]&&(c+="px"),!j||!("set"in j)||(c=j.set(a,c))!==b)try{k[d]=c}catch(m){}}else return j&&"get"in j&&(h=j.get(a,!1,f))!==b?h:k[d]}},css:function(a,d,c){var f,h=e.camelCase(d),i=e.cssHooks[h],d=e.cssProps[h]||h;if(i&&"get"in i&&(f=i.get(a,!0,c))!==
b)return f;else if(Z)return Z(a,d,h)},swap:function(a,b,d){var e={},c;for(c in b)e[c]=a.style[c],a.style[c]=b[c];d.call(a);for(c in b)a.style[c]=e[c]},camelCase:function(a){return a.replace(Ha,La)}});e.curCSS=e.css;e.each(["height","width"],function(a,b){e.cssHooks[b]={get:function(a,g,d){var c;if(g)return a.offsetWidth!==0?c=n(a,b,d):e.swap(a,Ka,function(){c=n(a,b,d)}),c<=0&&(c=Z(a,b,b),c==="0px"&&ba&&(c=ba(a,b,b)),c!=null)?c===""||c==="auto"?"0px":c:c<0||c==null?(c=a.style[b],c===""||c==="auto"?
"0px":c):typeof c==="string"?c:c+"px"},set:function(a,b){if(oa.test(b)){if(b=parseFloat(b),b>=0)return b+"px"}else return b}}});if(!e.support.opacity)e.cssHooks.opacity={get:function(a,b){return Ga.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var c=e.isNaN(b)?"":"alpha(opacity="+b*100+")",f=d.filter||"";d.filter=na.test(f)?f.replace(na,c):d.filter+" "+c}};p.defaultView&&p.defaultView.getComputedStyle&&
(pa=function(a,d,c){var f,c=c.replace(Ia,"-$1").toLowerCase();if(!(d=a.ownerDocument.defaultView))return b;if(d=d.getComputedStyle(a,null))f=d.getPropertyValue(c),f===""&&!e.contains(a.ownerDocument.documentElement,a)&&(f=e.style(a,c));return f});p.documentElement.currentStyle&&(ba=function(a,b){var d,e,c=a.currentStyle&&a.currentStyle[b],f=a.style;if(!oa.test(c)&&Ja.test(c))d=f.left,e=a.runtimeStyle.left,a.runtimeStyle.left=a.currentStyle.left,f.left=b==="fontSize"?"1em":c||0,c=f.pixelLeft+"px",
f.left=d,a.runtimeStyle.left=e;return c===""?"auto":c});Z=pa||ba;if(e.expr&&e.expr.filters)e.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!e.support.reliableHiddenOffsets&&(a.style.display||e.css(a,"display"))==="none"},e.expr.filters.visible=function(a){return!e.expr.filters.hidden(a)};var Ma=e.now(),Na=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Oa=/^(?:select|textarea)/i,Pa=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
Qa=/^(?:GET|HEAD)$/,wa=/\[\]$/,U=/\=\?(&|$)/,ea=/\?/,Ra=/([?&])_=[^&]*/,Sa=/^(\w+:)?\/\/([^\/?#]+)/,Ta=/%20/g,Ua=/#.*$/,qa=e.fn.load;e.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&qa)return qa.apply(this,arguments);else if(!this.length)return this;var c=a.indexOf(" ");if(c>=0)var f=a.slice(c,a.length),a=a.slice(0,c);c="GET";b&&(e.isFunction(b)?(d=b,b=null):typeof b==="object"&&(b=e.param(b,e.ajaxSettings.traditional),c="POST"));var h=this;e.ajax({url:a,type:c,dataType:"html",data:b,complete:function(a,
b){if(b==="success"||b==="notmodified")h.html(f?e("<div>").append(a.responseText.replace(Na,"")).find(f):a.responseText);d&&h.each(d,[a.responseText,b,a])}});return this},serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?e.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Oa.test(this.nodeName)||Pa.test(this.type))}).map(function(a,b){var d=e(this).val();return d==null?
null:e.isArray(d)?e.map(d,function(a){return{name:b.name,value:a}}):{name:b.name,value:d}}).get()}});e.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){e.fn[b]=function(a){return this.bind(b,a)}});e.extend({get:function(a,b,d,c){e.isFunction(b)&&(c=c||d,d=b,b=null);return e.ajax({type:"GET",url:a,data:b,success:d,dataType:c})},getScript:function(a,b){return e.get(a,null,b,"script")},getJSON:function(a,b,d){return e.get(a,b,d,"json")},post:function(a,b,
d,c){e.isFunction(b)&&(c=c||d,d=b,b={});return e.ajax({type:"POST",url:a,data:b,success:d,dataType:c})},ajaxSetup:function(a){e.extend(e.ajaxSettings,a)},ajaxSettings:{url:location.href,global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,xhr:function(){return new a.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},
ajax:function(d){var c=e.extend(!0,{},e.ajaxSettings,d),f,h,i,k=c.type.toUpperCase(),j=Qa.test(k);c.url=c.url.replace(Ua,"");c.context=d&&d.context!=null?d.context:c;if(c.data&&c.processData&&typeof c.data!=="string")c.data=e.param(c.data,c.traditional);if(c.dataType==="jsonp"){if(k==="GET")U.test(c.url)||(c.url+=(ea.test(c.url)?"&":"?")+(c.jsonp||"callback")+"=?");else if(!c.data||!U.test(c.data))c.data=(c.data?c.data+"&":"")+(c.jsonp||"callback")+"=?";c.dataType="json"}if(c.dataType==="json"&&(c.data&&
U.test(c.data)||U.test(c.url))){f=c.jsonpCallback||"jsonp"+Ma++;if(c.data)c.data=(c.data+"").replace(U,"="+f+"$1");c.url=c.url.replace(U,"="+f+"$1");c.dataType="script";var m=a[f];a[f]=function(d){if(e.isFunction(m))m(d);else{a[f]=b;try{delete a[f]}catch(g){}}i=d;e.handleSuccess(c,q,h,i);e.handleComplete(c,q,h,i);x&&x.removeChild(n)}}if(c.dataType==="script"&&c.cache===null)c.cache=!1;if(c.cache===!1&&j){var o=e.now(),y=c.url.replace(Ra,"$1_="+o);c.url=y+(y===c.url?(ea.test(c.url)?"&":"?")+"_="+o:
"")}c.data&&j&&(c.url+=(ea.test(c.url)?"&":"?")+c.data);c.global&&e.active++===0&&e.event.trigger("ajaxStart");o=(o=Sa.exec(c.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(c.dataType==="script"&&k==="GET"&&o){var x=p.getElementsByTagName("head")[0]||p.documentElement,n=p.createElement("script");if(c.scriptCharset)n.charset=c.scriptCharset;n.src=c.url;if(!f){var D=!1;n.onload=n.onreadystatechange=function(){if(!D&&(!this.readyState||this.readyState===
"loaded"||this.readyState==="complete"))D=!0,e.handleSuccess(c,q,h,i),e.handleComplete(c,q,h,i),n.onload=n.onreadystatechange=null,x&&n.parentNode&&x.removeChild(n)}}x.insertBefore(n,x.firstChild);return b}var I=!1,q=c.xhr();if(q){c.username?q.open(k,c.url,c.async,c.username,c.password):q.open(k,c.url,c.async);try{(c.data!=null&&!j||d&&d.contentType)&&q.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(e.lastModified[c.url]&&q.setRequestHeader("If-Modified-Since",e.lastModified[c.url]),
e.etag[c.url]&&q.setRequestHeader("If-None-Match",e.etag[c.url])),o||q.setRequestHeader("X-Requested-With","XMLHttpRequest"),q.setRequestHeader("Accept",c.dataType&&c.accepts[c.dataType]?c.accepts[c.dataType]+", */*; q=0.01":c.accepts._default)}catch(u){}if(c.beforeSend&&c.beforeSend.call(c.context,q,c)===!1)return c.global&&e.active--===1&&e.event.trigger("ajaxStop"),q.abort(),!1;c.global&&e.triggerGlobal(c,"ajaxSend",[q,c]);var z=q.onreadystatechange=function(a){if(!q||q.readyState===0||a==="abort"){if(I||
e.handleComplete(c,q,h,i),I=!0,q)q.onreadystatechange=e.noop}else if(!I&&q&&(q.readyState===4||a==="timeout")){I=!0;q.onreadystatechange=e.noop;h=a==="timeout"?"timeout":!e.httpSuccess(q)?"error":c.ifModified&&e.httpNotModified(q,c.url)?"notmodified":"success";var b;if(h==="success")try{i=e.httpData(q,c.dataType,c)}catch(d){h="parsererror",b=d}h==="success"||h==="notmodified"?f||e.handleSuccess(c,q,h,i):e.handleError(c,q,h,b);f||e.handleComplete(c,q,h,i);a==="timeout"&&q.abort();c.async&&(q=null)}};
try{var S=q.abort;q.abort=function(){q&&Function.prototype.call.call(S,q);z("abort")}}catch(s){}c.async&&c.timeout>0&&setTimeout(function(){q&&!I&&z("timeout")},c.timeout);try{q.send(j||c.data==null?null:c.data)}catch(M){e.handleError(c,q,null,M),e.handleComplete(c,q,h,i)}c.async||z();return q}},param:function(a,c){var d=[],f=function(a,b){b=e.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(c===b)c=e.ajaxSettings.traditional;if(e.isArray(a)||a.jquery)e.each(a,function(){f(this.name,
this.value)});else for(var h in a)s(h,a[h],c,f);return d.join("&").replace(Ta,"+")}});e.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,c,d){a.error&&a.error.call(a.context,b,c,d);a.global&&e.triggerGlobal(a,"ajaxError",[b,a,d])},handleSuccess:function(a,b,d,c){a.success&&a.success.call(a.context,c,d,b);a.global&&e.triggerGlobal(a,"ajaxSuccess",[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&e.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&
e.active--===1&&e.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?e(a.context):e.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return!1},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),c=a.getResponseHeader("Etag");d&&(e.lastModified[b]=d);c&&(e.etag[b]=c);return a.status===304},httpData:function(a,b,d){var c=a.getResponseHeader("content-type")||
"",f=b==="xml"||!b&&c.indexOf("xml")>=0,a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&e.error("parsererror");d&&d.dataFilter&&(a=d.dataFilter(a,b));typeof a==="string"&&(b==="json"||!b&&c.indexOf("json")>=0?a=e.parseJSON(a):(b==="script"||!b&&c.indexOf("javascript")>=0)&&e.globalEval(a));return a}});if(a.ActiveXObject)e.ajaxSettings.xhr=function(){if(a.location.protocol!=="file:")try{return new a.XMLHttpRequest}catch(b){}try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(d){}};
e.support.ajax=!!e.ajaxSettings.xhr();var da={},Va=/^(?:toggle|show|hide)$/,Wa=/^([+\-]=)?([\d+.\-]+)(.*)$/,ca,ga=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];e.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(q("show",3),a,b,d);else{for(var d=0,c=this.length;d<c;d++){a=this[d];b=a.style.display;if(!e.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&e.css(a,"display")===
"none"&&e.data(a,"olddisplay",z(a.nodeName))}for(d=0;d<c;d++)if(a=this[d],b=a.style.display,b===""||b==="none")a.style.display=e.data(a,"olddisplay")||"";return this}},hide:function(a,b,d){if(a||a===0)return this.animate(q("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++)d=e.css(this[a],"display"),d!=="none"&&e.data(this[a],"olddisplay",d);for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:e.fn.toggle,toggle:function(a,b,d){var c=typeof a==="boolean";e.isFunction(a)&&e.isFunction(b)?
this._toggle.apply(this,arguments):a==null||c?this.each(function(){var b=c?a:e(this).is(":hidden");e(this)[b?"show":"hide"]()}):this.animate(q("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,c){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,c)},animate:function(a,b,d,c){var f=e.speed(b,d,c);return e.isEmptyObject(a)?this.each(f.complete):this[f.queue===!1?"each":"queue"](function(){var b=e.extend({},f),d,c=this.nodeType===1,h=c&&e(this).is(":hidden"),i=this;
for(d in a){var k=e.camelCase(d);d!==k&&(a[k]=a[d],delete a[d],d=k);if(a[d]==="hide"&&h||a[d]==="show"&&!h)return b.complete.call(this);if(c&&(d==="height"||d==="width"))if(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],e.css(this,"display")==="inline"&&e.css(this,"float")==="none")e.support.inlineBlockNeedsLayout?z(this.nodeName)==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1):this.style.display="inline-block";if(e.isArray(a[d]))(b.specialEasing=
b.specialEasing||{})[d]=a[d][1],a[d]=a[d][0]}if(b.overflow!=null)this.style.overflow="hidden";b.curAnim=e.extend({},a);e.each(a,function(d,c){var f=new e.fx(i,b,d);if(Va.test(c))f[c==="toggle"?h?"show":"hide":c](a);else{var k=Wa.exec(c),j=f.cur()||0;if(k){var l=parseFloat(k[2]),m=k[3]||"px";m!=="px"&&(e.style(i,d,(l||1)+m),j*=(l||1)/f.cur(),e.style(i,d,j+m));k[1]&&(l=(k[1]==="-="?-1:1)*l+j);f.custom(j,l,m)}else f.custom(j,c,"")}});return!0})},stop:function(a,b){var d=e.timers;a&&this.queue([]);this.each(function(){for(var a=
d.length-1;a>=0;a--)if(d[a].elem===this){if(b)d[a](!0);d.splice(a,1)}});b||this.dequeue();return this}});e.each({slideDown:q("show",1),slideUp:q("hide",1),slideToggle:q("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){e.fn[a]=function(a,d,c){return this.animate(b,a,d,c)}});e.extend({speed:function(a,b,d){var c=a&&typeof a==="object"?e.extend({},a):{complete:d||!d&&b||e.isFunction(a)&&a,duration:a,easing:d&&b||b&&!e.isFunction(b)&&b};c.duration=
e.fx.off?0:typeof c.duration==="number"?c.duration:c.duration in e.fx.speeds?e.fx.speeds[c.duration]:e.fx.speeds._default;c.old=c.complete;c.complete=function(){c.queue!==!1&&e(this).dequeue();e.isFunction(c.old)&&c.old.call(this)};return c},easing:{linear:function(a,b,d,c){return d+c*a},swing:function(a,b,d,c){return(-Math.cos(a*Math.PI)/2+0.5)*c+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});e.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,
this.now,this);(e.fx.step[this.prop]||e.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(e.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function c(a){return f.step(a)}var f=this,h=e.fx;this.startTime=e.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;c.elem=this.elem;c()&&e.timers.push(c)&&!ca&&(ca=setInterval(h.tick,
h.interval))},show:function(){this.options.orig[this.prop]=e.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());e(this.elem).show()},hide:function(){this.options.orig[this.prop]=e.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=e.now(),d=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=!0;for(var c in this.options.curAnim)this.options.curAnim[c]!==
!0&&(d=!1);if(d){if(this.options.overflow!=null&&!e.support.shrinkWrapBlocks){var f=this.elem,h=this.options;e.each(["","X","Y"],function(a,b){f.style["overflow"+b]=h.overflow[a]})}this.options.hide&&e(this.elem).hide();if(this.options.hide||this.options.show)for(var i in this.options.curAnim)e.style(this.elem,i,this.options.orig[i]);this.options.complete.call(this.elem)}return!1}else a=b-this.startTime,this.state=a/this.options.duration,b=this.options.easing||(e.easing.swing?"swing":"linear"),this.pos=
e.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}};e.extend(e.fx,{tick:function(){for(var a=e.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||e.fx.stop()},interval:13,stop:function(){clearInterval(ca);ca=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){e.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=
null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});if(e.expr&&e.expr.filters)e.expr.filters.animated=function(a){return e.grep(e.timers,function(b){return a===b.elem}).length};var Xa=/^t(?:able|d|h)$/i,ra=/^(?:body|html)$/i;e.fn.offset="getBoundingClientRect"in p.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(b){e.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return e.offset.bodyOffset(b);
try{d=b.getBoundingClientRect()}catch(c){}var f=b.ownerDocument,h=f.documentElement;if(!d||!e.contains(h,b))return d||{top:0,left:0};b=f.body;f=w(f);return{top:d.top+(f.pageYOffset||e.support.boxModel&&h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||e.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(b){e.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===
b.ownerDocument.body)return e.offset.bodyOffset(b);e.offset.initialize();var d,c=b.offsetParent,f=b.ownerDocument,h=f.documentElement,i=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,j=b.offsetLeft;(b=b.parentNode)&&b!==i&&b!==h;){if(e.offset.supportsFixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;j-=b.scrollLeft;if(b===c){k+=b.offsetTop;j+=b.offsetLeft;if(e.offset.doesNotAddBorder&&(!e.offset.doesAddBorderForTableAndCells||
!Xa.test(b.nodeName)))k+=parseFloat(d.borderTopWidth)||0,j+=parseFloat(d.borderLeftWidth)||0;c=b.offsetParent}e.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(k+=parseFloat(d.borderTopWidth)||0,j+=parseFloat(d.borderLeftWidth)||0)}if(d.position==="relative"||d.position==="static")k+=i.offsetTop,j+=i.offsetLeft;e.offset.supportsFixedPosition&&d.position==="fixed"&&(k+=Math.max(h.scrollTop,i.scrollTop),j+=Math.max(h.scrollLeft,i.scrollLeft));return{top:k,left:j}};e.offset={initialize:function(){var a=
p.body,b=p.createElement("div"),d,c,f,h=parseFloat(e.css(a,"marginTop"))||0;e.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,
a.firstChild);d=b.firstChild;c=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=c.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;c.style.position="fixed";c.style.top="20px";this.supportsFixedPosition=c.offsetTop===20||c.offsetTop===15;c.style.position=c.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=c.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);e.offset.initialize=
e.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;e.offset.initialize();e.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(e.css(a,"marginTop"))||0,d+=parseFloat(e.css(a,"marginLeft"))||0);return{top:b,left:d}},setOffset:function(a,b,d){var c=e.css(a,"position");if(c==="static")a.style.position="relative";var f=e(a),h=f.offset(),i=e.css(a,"top"),k=e.css(a,"left"),j=c==="absolute"&&e.inArray("auto",[i,k])>-1,c={},m={};j&&(m=f.position());i=j?m.top:parseInt(i,10)||0;k=j?m.left:
parseInt(k,10)||0;e.isFunction(b)&&(b=b.call(a,d,h));if(b.top!=null)c.top=b.top-h.top+i;if(b.left!=null)c.left=b.left-h.left+k;"using"in b?b.using.call(a,c):f.css(c)}};e.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),c=ra.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(e.css(a,"marginTop"))||0;d.left-=parseFloat(e.css(a,"marginLeft"))||0;c.top+=parseFloat(e.css(b[0],"borderTopWidth"))||0;c.left+=parseFloat(e.css(b[0],"borderLeftWidth"))||
0;return{top:d.top-c.top,left:d.left-c.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||p.body;a&&!ra.test(a.nodeName)&&e.css(a,"position")==="static";)a=a.offsetParent;return a})}});e.each(["Left","Top"],function(a,d){var c="scroll"+d;e.fn[c]=function(d){var f=this[0],h;return!f?null:d!==b?this.each(function(){(h=w(this))?h.scrollTo(!a?d:e(h).scrollLeft(),a?d:e(h).scrollTop()):this[c]=d}):(h=w(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:e.support.boxModel&&
h.document.documentElement[c]||h.document.body[c]:f[c]}});e.each(["Height","Width"],function(a,d){var c=d.toLowerCase();e.fn["inner"+d]=function(){return this[0]?parseFloat(e.css(this[0],c,"padding")):null};e.fn["outer"+d]=function(a){return this[0]?parseFloat(e.css(this[0],c,a?"margin":"border")):null};e.fn[c]=function(a){var f=this[0];if(!f)return a==null?null:this;if(e.isFunction(a))return this.each(function(b){var d=e(this);d[c](a.call(this,b,d[c]()))});if(e.isWindow(f))return f.document.compatMode===
"CSS1Compat"&&f.document.documentElement["client"+d]||f.document.body["client"+d];else if(f.nodeType===9)return Math.max(f.documentElement["client"+d],f.body["scroll"+d],f.documentElement["scroll"+d],f.body["offset"+d],f.documentElement["offset"+d]);else if(a===b){var f=e.css(f,c),g=parseFloat(f);return e.isNaN(g)?f:g}else return this.css(c,typeof a==="string"?a:a+"px")}})})(window);jQuery.ui||function(a){a.ui={version:"1.8.1",plugin:{add:function(b,d,c){var b=a.ui[b].prototype,f;for(f in c)b.plugins[f]=b.plugins[f]||[],b.plugins[f].push([d,c[f]])},call:function(a,d,c){if((d=a.plugins[d])&&a.element[0].parentNode)for(var f=0;f<d.length;f++)a.options[d[f][0]]&&d[f][1].apply(a.element,c)}},contains:function(a,d){return document.compareDocumentPosition?a.compareDocumentPosition(d)&16:a!==d&&a.contains(d)},hasScroll:function(b,d){if(a(b).css("overflow")=="hidden")return!1;var c=
d&&d=="left"?"scrollLeft":"scrollTop",f=!1;if(b[c]>0)return!0;b[c]=1;f=b[c]>0;b[c]=0;return f},isOverAxis:function(a,d,c){return a>d&&a<d+c},isOver:function(b,d,c,f,h,i){return a.ui.isOverAxis(b,c,h)&&a.ui.isOverAxis(d,f,i)},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}};a.fn.extend({_focus:a.fn.focus,focus:function(b,d){return typeof b==="number"?this.each(function(){var c=this;setTimeout(function(){a(c).focus();d&&d.call(c)},b)}):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 b;b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||
/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(b){if(b!==
void 0)return this.css("zIndex",b);if(this.length)for(var b=a(this[0]),d;b.length&&b[0]!==document;){d=b.css("position");if(d=="absolute"||d=="relative"||d=="fixed")if(d=parseInt(b.css("zIndex")),!isNaN(d)&&d!=0)return d;b=b.parent()}return 0}});a.extend(a.expr[":"],{data:function(b,d,c){return!!a.data(b,c[3])},focusable:function(b){var d=b.nodeName.toLowerCase(),c=a.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(d)?!b.disabled:"a"==d||"area"==d?b.href||!isNaN(c):!isNaN(c))&&
!a(b)["area"==d?"parents":"closest"](":hidden").length},tabbable:function(b){var d=a.attr(b,"tabindex");return(isNaN(d)||d>=0)&&a(b).is(":focusable")}})}(jQuery);(function(a){var b=a.fn.remove;a.fn.remove=function(d,c){return this.each(function(){c||(!d||a.filter(d,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")});return b.call(a(this),d,c)})};a.widget=function(b,c,f){var h=b.split(".")[0],i,b=b.split(".")[1];i=h+"-"+b;if(!f)f=c,c=a.Widget;a.expr[":"][i]=function(c){return!!a.data(c,b)};a[h]=a[h]||{};a[h][b]=function(a,b){arguments.length&&this._createWidget(a,b)};c=new c;c.options=a.extend({},c.options);a[h][b].prototype=
a.extend(!0,c,{namespace:h,widgetName:b,widgetEventPrefix:a[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:i},f);a.widget.bridge(b,a[h][b])};a.widget.bridge=function(b,c){a.fn[b]=function(f){var h=typeof f==="string",i=Array.prototype.slice.call(arguments,1),j=this,f=!h&&i.length?a.extend.apply(null,[!0,f].concat(i)):f;if(h&&f.substring(0,1)==="_")return j;h?this.each(function(){var c=a.data(this,b),h=c&&a.isFunction(c[f])?c[f].apply(c,i):c;if(h!==c&&h!==void 0)return j=h,!1}):this.each(function(){var h=
a.data(this,b);h?(f&&h.option(f),h._init()):a.data(this,b,new c(f,this))});return j}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){this.element=a(c).data(this.widgetName,this);this.options=a.extend(!0,{},this.options,a.metadata&&a.metadata.get(c)[this.widgetName],b);var f=this;this.element.bind("remove."+this.widgetName,function(){f.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(b,c){var f=b,h=this;if(arguments.length===0)return a.extend({},h.options);if(typeof b==="string"){if(c===void 0)return this.options[b];f={};f[b]=c}a.each(f,function(a,b){h._setOption(a,
b)});return h},_setOption:function(a,b){this.options[a]=b;a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,f){var h=this.options[b],c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();f=f||{};if(c.originalEvent)for(var b=a.event.props.length,
i;b;)i=a.event.props[--b],c[i]=c.originalEvent[i];this.element.trigger(c,f);return!(a.isFunction(h)&&h.call(this.element[0],c,f)===!1||c.isDefaultPrevented())}}})(jQuery);(function(a){function b(){o=a(document.body);var b=a('<div style="position: absolute; visibility: hidden; width: 80px; overflow: scroll;height: 80px;"><div style="width: 99px; height: 99px;" /></div>').appendTo("body");a.SCROLLBARWIDTH=b.innerWidth()-a("div",b).css("width","auto").innerWidth();b.remove();o.removeClass("js-off")}try{if(!window.console)window.console={};if(!console.log)console.log=function(){}}catch(d){}if(document.execCommand)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(c){}if(!a.support.opacity&&
!a.opacityRemoveFix){var f=a.style;a.style=function(a,b,c){var d=f(a,b,c);if(b==="opacity"&&c==1)a.style.filter=(a.style.filter||"").replace("alpha(opacity=100)","");return d};a.opacityRemoveFix=!0}a.beget=function(a,b){a=new function(){};a.create&&a.create.apply&&a.create.call(a,b||{});return a};var h=["h1","h2","h3","h4","h5","h6","a","p","li","dt","dd","blockquote","address","th","td","dfn"],i=a.expr.filters;i.focusPoint=function(b){var c=b.nodeName.toLowerCase();return!b.disabled&&b.type!=="hidden"&&
b.getAttribute("role")!=="presentation"&&b.getAttribute("aria-disabled")!=="true"&&b.offsetWidth>0&&b.offsetHeight>0&&a.curCSS(b,"visibility")!=="hidden"&&a.inArray(c,h)!==-1};i.focusAble=function(b,c){return a.attr(c,"tabindex")!==void 0};a.fn.firstExpOf=function(b){if(!this[0])return this.pushStack([]);for(var c=a("*",this[0]),d=c.length,f=[],h=0;h<d;h++)if(i[b](c[h],h)){f=[c[h]];break}return this.pushStack(f)};var j=location.href.split("#")[0];a.fn.getHrefHash=function(){var a="";this[0]&&(a=this[0].hash||
this[0].href.replace(j,""));return a};a("html").addClass("js-on");var o;a.SCROLLBARWIDTH=15;a.SCROLLROOT=a(a.browser.webkit||document.compatMode=="BackCompat"?document.body:document.documentElement);!document.body||!document.body.style?a(b):b();a.each(["outerHeight","outerWidth","height","width","innerHeight","innerWidth"],function(b,c){a.fn[c+"s"]=function(b){if((c==="height"||c==="width")&&b!==void 0)return a.fn[c].apply(this,arguments);var d=0;this.each(function(){d+=a(this)[c](b)});return d}})})(jQuery);
(function(a){function b(){d=!1;h(function(){d=!0},1)}var d=!0;a.each(["focusin","focusout"],function(c,f){a.event.special["dom"+f]={setup:function(){a(this).bind(f,a.event.special["dom"+f].handler);return!0},teardown:function(){a(this).unbind(f,a.event.special["dom"+f].handler);return!0},handler:function(c){var h;h=c;var i=h.originalEvent;h.target===document||h.target===window||a.nodeName(h.target,"body")||a.nodeName(h.target,"html")||a.attr(h.target,"tabindex")===void 0?(b(),h=!1):h=i?d&&h.target&&
h.target.nodeType===1&&(i.explicitOriginalTarget&&i.explicitOriginalTarget&&i.explicitOriginalTarget!==window&&i.explicitOriginalTarget!==document&&!a(i.explicitOriginalTarget).is("html, body")||i.toElement||i.fromElement)?!0:!1:!0;if(h)return c=a.extend({},c,{type:"dom"+f}),a.event.handle.call(this,c)}}});var c=window.clearInterval,f=window.setInterval,h=window.setTimeout;a.createTimer=function(a){function b(d){a[d]!==void 0&&c(a[d])}return{setInterval:function(c,d,h){b(c);a[c]=f(function(){d.call(a)},
h)},setDelay:function(c,d,f){b(c);a[c]=h(function(){d.call(a)},f)},clear:b}}})(jQuery);
(function(a){var b=a("html").attr("dir")==="rtl"?"right: -9999em;":"left: -99999em;",d="position: absolute; width: 1px; height: 1px; overflow: hidden;margin: 0; padding: 0;top: 0;"+b,c=parseInt(a.browser.version,10);a.support.waiAria=!a.browser.msie||c>7;a.notIE6=!a.browser.msie||c>6;a.browser.lteIE6=a.browser.msie&&c<7;a.browser.lteIE7=a.browser.msie&&c<8;a.browser.lteIE8=a.browser.msie&&c<9;a(function(){function c(a,b){if(f.cssRules||f.rules)f.insertRule?f.insertRule(a+" {"+b+";}",f.cssRules.length):
f.addRule&&f.addRule(a,b)}var d=document.createElement("style"),f;d.setAttribute("type","text/css");d=a(d).prependTo("head");f=document.styleSheets[0];c(".a11y-js-overflow","overflow:visible !important");c(".a11y-hidden","position:absolute");c(".a11y-hidden",b.replace(";",""));a.cssRule={add:c}});a.ui=a.ui||{};if(!a.ui.keyCode)a.ui.keyCode={DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38};a.ui.userMode=function(){function b(){h=h||a('<div style="'+
d+'"></div>').appendTo("body");var f=a.curCSS(h.css({backgroundColor:"#000000"})[0],"backgroundColor",!0),i=a.curCSS(h.css({backgroundColor:"#ffffff"})[0],"backgroundColor",!0),f=f===i||i==="transparent";f!=c&&(c=f,a.event.trigger({type:"usermode",disabled:!c,enabled:c}));return c}var c,f,h;a.event.special.usermode={add:function(d){b();var f=this;setTimeout(function(){a(f).trigger({type:"usermode",disabled:!c,enabled:c})},0);return d},setup:function(){},teardown:function(){},handler:function(){}};
return{get:b,init:function(){b();clearInterval(f);f=setInterval(b,3E3)}}}();a.fn.userMode=function(a){return this[a?"bind":"trigger"]("usermode",a)};a(function(){a("html").userMode(function(b){a(this)[b.enabled?"addClass":"removeClass"]("hcm")});a.ui.userMode.init()});(function(a){function b(d){if(!c&&(!d.keyCode||d.keyCode===13||d.keyCode===32&&a.attr(d.target,"role")==="button"))return c=!0,setTimeout(function(){c=!1},1),a.event.special.ariaclick.handler.apply(this,arguments);else if(c&&d.type==
"click")return d.preventDefault(),!1}var c=!1;a.event.special.ariaclick={setup:function(){a(this).bind("click keypress",b);return!0},teardown:function(){a(this).unbind("click keypress",b);return!0},handler:function(b){b.type="ariaclick";return a.event.handle.apply(this,arguments)}}})(jQuery);a.bodyDefaultFontsize=10;a.testEm=function(){function b(){var c=f.emPx;f.emPx=parseInt(a.curCSS(d,"fontSize",!0),10);if(f.emPx!==c)f.oldEmPx=c,a.event.trigger(f);return f}function c(b){for(var b=b.emPx-a.bodyDefaultFontsize,
d=b>0?"em-increased-":"em-decreased-",f=[],b=Math.abs(b)+1;b-- >1;)f.push(d+b);h[0].className=a.grep(h[0].className.split(" "),function(a){return a.indexOf("em-increased-")!==0&&a.indexOf("em-decreased-")!==0}).concat(f).join(" ")}var d=document.body,f={type:"emchange",emPx:0,oldEmPx:0},h=a(document.documentElement);a(function(){d=document.body;setTimeout(function(){c(b());h.bind("emchange",c);setInterval(b,3E3)},0)});return b}();(function(a){function b(){d=!1;clearTimeout(h);setTimeout(function(){d=
!0;clearTimeout(h)},99)}function c(b){var d=b.attr("tabindex");if(!(d||d===0))if(b.css({outline:"none"}).attr({tabindex:"-1"}),!a.support.waiAria&&b[0])b[0].hideFocus=!0;return b}var d=!0,f="activeElement"in document,h,i;a(document).bind("mousedown click",b).bind("domfocusin",function(b){var c=a(b.target).addClass("a11y-focus");if(!f)document.activeElement=b.target;clearTimeout(h);h=setTimeout(function(){d&&c.addClass("a11y-focus-key").trigger("keyfocus")},0)}).bind("focusout",function(b){clearTimeout(h);
a(b.target).removeClass("a11y-focus-key a11y-focus-widget a11y-focus")});a.fn.setFocus=function(d){if(!this[0])return this;var d=a.extend({},a.fn.setFocus.defaults,d),f=this[0],h=a(f),e=document.activeElement,m=(new Date).getTime(),n=function(){try{b(),f.focus(),h.addClass("a11y-focus-widget")}catch(a){}},s;d.addTabindex&&c(h);a.ui.SR.update();if(d.fast)n();else{if(e&&e.nodeType===1&&e.focus&&e.blur&&!a(e).is("body, html"))try{e.blur(),b(),e.focus()}catch(F){}clearTimeout(i);s=h.closest(":animated",
d.context);s[0]?s.queue(function(){var a=(new Date).getTime()-m-70,a=a>9?a:9;i=setTimeout(n,a);setTimeout(function(){s.dequeue()},a+16)}):i=setTimeout(n,70)}return this};a.fn.setFocus.defaults={addTabindex:!0,fast:!1,context:!1}})(jQuery);a.fn.ariaHide=function(){a.fn.hide.apply(this,arguments);return this.attr({"aria-hidden":"true"})};a.fn.ariaShow=function(){a.fn.show.apply(this,arguments);return this.attr({"aria-hidden":"false"})};a.ui.SR=function(){function b(){c&&(c[0].setAttribute("value",""+
++f),setTimeout(function(){c[0].setAttribute("value",""+ ++f)},1))}var c,f=0,h,i,s,q;return{update:b,alert:function(a){clearTimeout(i);h.ariaHide().html(a).find("*").attr({role:"presentation"}).end().ariaShow();i=setTimeout(function(){h.ariaHide().empty()},999)},giveStatus:function(b){b=a("<div>"+b+"</div>").find("*").attr({role:"presentation"}).end();s.html(b);clearTimeout(q);q=setTimeout(function(){s.empty()},999)},init:function(){h=a('<div class="a11y-hidden" role="alert" style="'+d+'" />').ariaHide().appendTo("body");
s=a('<div class="a11y-hidden" style="'+d+'"><div aria-live="polite" relevant="additions text" /> </div>').appendTo("body").find("div");c=a('<form role="presentation" action="#" class="aural" style="'+d+'"><input name="sr-update" id="sr-update" type="hidden" value="'+f+'" /></form>').appendTo("body").find("input").ajaxComplete(b)}}}();a(a.ui.SR.init);if(!a.fn.getID){var f=(new Date).getTime();a.fn.getID=function(a){function b(){var a=this.getAttribute("id");a||(a="ID-"+f++,this.setAttribute("id",a));
return a}if(this[0])return a&&this.each(b),b.call(this[0])}}a.each({labelWith:"aria-labelledby",describeWith:"aria-describedby",ownsThis:"aria-owns",controlsThis:"aria-controls",activateThis:"aria-activedescendant"},function(b,c){a.fn[b]=function(b){return this.attr(c,a(b).getID()||"")}});var h=/focusin|focus$|mouseenter|mouseover/,i=0;a.fn.enterLeave=function(b,c,d){d=a.extend({},a.fn.enterLeave.defaults,d);i++;var f="enterLeaveData-"+i,n="mouseenter mouseleave focusin focusout";d.useEventTypes===
"mouse"?n="mouseenter mouseleave":d.useEventTypes==="focus"&&(n="focusin focusout");return this[d.bindStyle](n,function(i){var q,n=a.data(this,f)||a.data(this,f,{inEvents:0}),w,p=this,e;if(h.test(i.type)){if(q=b,w=[1,"in",!0],d.useWebkitAutoBlur)n.autoBlur=!0,setTimeout(function(){n.autoBlur=!1},0)}else if(q=c,w=[-1,"out",!1],n.autoBlur)return;clearTimeout(n.inOutTimer);n.inEvents=Math.max(n.inEvents+w[0],0);n.inOutTimer=setTimeout(function(){if(w[2]!=n.inOutState&&(w[2]||!d.bothOut||!n.inEvents))n.inOutState=
w[2],e=a.Event(w[1]),e.originalEvent=i,a.extend(e,{target:i.target,currentTarget:i.currentTarget}),q.call(p,e)},/focus/.test(i.type)?d.keyDelay:d.mouseDelay)})};a.fn.enterLeave.defaults={mouseDelay:0,keyDelay:1,bothOut:!1,useEventTypes:"both",useWebkitAutoBlur:!1,bindStyle:"bind"};a.fn.inOut=a.fn.enterLeave;a.fn.slideParentDown=function(b){var b=a.extend({},a.fn.slideParentDown.defaults,b),c=b.complete;return this.each(function(){var d=a(this),f=d.parent().css({height:""});d.css(b.hideStyle==="visibility"?
{visibility:""}:{display:"block"});d=f.height();f.css({overflow:"hidden",height:"0px"}).animate({height:d},a.extend({},b,{complete:function(){f.css({height:""});c.apply(this,arguments)}}))})};a.fn.slideParentDown.defaults={duration:400,complete:a.noop,hideStyle:"display"};a.fn.slideParentUp=function(b){var b=a.extend({},a.fn.slideParentUp.defaults,b),c=b.complete;return this.each(function(){var d=a(this),f=d.parent().css({overflow:"hidden"}),h={height:"0px"};if(a.browser.mozilla&&b.flickrFix)h.flickrFix=
Math.random()*2;f.animate(h,a.extend({},b,{complete:function(){b.hideStyle==="visibility"?d.css({visibility:"hidden"}):(d.css({display:"none"}),f.css({height:"",overflow:"",display:""}));c.apply(this,arguments)}}))})};a.fn.slideParentUp.defaults={duration:400,hideStyle:"display",complete:a.noop,flickrFix:!1}})(jQuery);window.Modernizr=function(a,b,d){function c(){f.input=function(a){for(var b=0,c=a.length;b<c;b++)n[a[b]]=!!(a[b]in j);return n}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));f.inputtypes=function(a){for(var c=0,f,i,k,n=a.length;c<n;c++)j.setAttribute("type",i=a[c]),(f=j.type!=="text")&&(j.value=o,j.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(i)&&j.style.WebkitAppearance!==d?(h.appendChild(j),k=b.defaultView,f=k.getComputedStyle&&
k.getComputedStyle(j,null).WebkitAppearance!=="textfield"&&j.offsetHeight!==0,h.removeChild(j)):/^(search|tel)$/.test(i)||(/^(url|email)$/.test(i)?f=j.checkValidity&&j.checkValidity()===!1:/^color$/.test(i)?(h.appendChild(j),f=j.value!=o,h.removeChild(j)):f=j.value!=o)),m[a[c]]=!!f;return m}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var f={},h=b.documentElement;b.head||b.getElementsByTagName("head");var i=b.createElement("modernizr"),i=i.style,
j=b.createElement("input"),o=":)";" -webkit- -moz- -o- -ms- -khtml- ".split(" ");"Webkit Moz O ms Khtml".split(" ");var k={},m={},n={},a=[],s;(function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(c,f){var f=f||b.createElement(a[c]||"div"),h=(c="on"+c)in f;h||(f.setAttribute||(f=b.createElement("div")),f.setAttribute&&f.removeAttribute&&(f.setAttribute(c,""),h=typeof f[c]==="function",typeof f[c]===d||(f[c]=d),f.removeAttribute(c)));
return h}})();var q={}.hasOwnProperty,z;typeof q===d||typeof q.call===d?z=function(a,b){return b in a&&typeof a.constructor.prototype[b]===d}:z=function(a,b){return q.call(a,b)};k.canvas=function(){var a=b.createElement("canvas");return a.getContext&&a.getContext("2d")};k.geolocation=function(){return!!navigator.geolocation};k.localstorage=function(){try{return!!localStorage.getItem}catch(a){return!1}};k.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return!1}};for(var w in k)z(k,
w)&&(s=w.toLowerCase(),f[s]=k[w](),a.push((f[s]?"":"no-")+s));f.input||c();f.crosswindowmessaging=f.postmessage;f.historymanagement=f.history;f.addTest=function(a,b){a=a.toLowerCase();if(!f[a])return b=!!b(),h.className+=" "+(b?"":"no-")+a,f[a]=b,f};i.cssText="";i=j=null;f._enableHTML5=!0;f._version="1.7";h.className=h.className.replace(/\bno-js\b/,"")+" js "+a.join(" ");return f}(this,this.document);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,d,c,f){return jQuery.easing[jQuery.easing.def](a,b,d,c,f)},easeInQuad:function(a,b,d,c,f){return c*(b/=f)*b+d},easeOutQuad:function(a,b,d,c,f){return-c*(b/=f)*(b-2)+d},easeInBack:function(a,b,d,c,f,h){h==void 0&&(h=1.70158);return c*(b/=f)*b*((h+1)*b-h)+d},easeOutBack:function(a,b,d,c,f,h){h==void 0&&(h=1.70158);return c*((b=b/f-1)*b*((h+1)*b+h)+1)+d}});(function(a,b,d,c){d.createElement("datalist");var f=a.event.special,h=a([]),i=b.Modernizr,j=i.input||{},o=i.inputtypes||{},k=parseFloat(a.browser.version,10),m=b.Object;(function(){var c=i.addTest,e=a('<form action="#"><input name="a" required /><select><option>y</option></select><input required id="date-input-test" type="date" /></form>');c("formvalidation",function(){return!!("checkValidity"in e[0])});c("datalist",function(){return!(!j.list||!b.HTMLDataListElement)});c("validationmessage",function(){if(!i.formvalidation)return!1;
e.appendTo("head");return!!a("input",e).attr("validationMessage")});c("output",function(){return i.formvalidation&&"value"in d.createElement("output")});c("details",function(){return"open"in d.createElement("details")});i.deprecatedSessionstorage=!(!i.sessionstorage||"clear"in b.sessionStorage);i.genericDOM=!!a("<video><div></div></video>")[0].innerHTML;i.requiredSelect=!!(i.formvalidation&&"required"in a("select",e)[0]);i.bugfreeformvalidation=i.formvalidation&&i.requiredSelect&&i.validationmessage&&
(!a.browser.webkit||navigator.userAgent.indexOf("hrome")!=-1&&k>534.19);j.valueAsNumber=!1;j.valueAsNumberSet=!1;j.valueAsDate=!1;if(i.formvalidation){c=a("#date-input-test",e)[0];j.valueAsNumber="valueAsNumber"in c;if(j.valueAsNumber){try{c.valueAsNumber=0}catch(f){}j.valueAsNumberSet=c.value=="1970-01-01"}j.valueAsDate="valueAsDate"in c;c=null}if(o.date&&j.valueAsNumber&&!j.valueAsNumberSet)i.bugfreeformvalidation=!1;i.formvalidation&&e.remove();e=null;i.ES5base=!(!String.prototype.trim||!Date.now||
!Date.prototype.toISOString);i.ES5extras=!(!Array.isArray||!m.keys||!m.create||!Function.prototype.bind||!m.defineProperties);i.ES5base&&a.each(["filter","map","every","reduce","reduceRight","lastIndexOf"],function(a,b){if(!Array.prototype[b])return i.ES5base=!1});var h=!(!m.create||!m.defineProperties||!m.getOwnPropertyDescriptor);!a.browser.msie&&m.defineProperty&&m.prototype.__defineGetter__&&function(){try{var a=d.createElement("foo");m.defineProperty(a,"bar",{get:function(){return!0}});h=!!a.bar}catch(b){h=
!1}a=null}();i.ES5=i.ES5base&&i.ES5extras&&h;i.objectAccessor=!(!(h||m.prototype.__defineGetter__&&m.prototype.__lookupSetter__)||a.browser.opera&&!(k>=11));i.domAccessor=!!(i.objectAccessor||m.defineProperty&&m.getOwnPropertyDescriptor);i.advancedObjectProperties=h})();a.webshims=a.sub?a.sub():{};a.extend(a.webshims,{version:"1.6.6",cfg:{useImportantStyles:!0,waitReady:!0,extendNative:!0,loader:{sssl:function(a,b){sssl(a,b)},require:function(a,b){require([a],b)},yepnope:function(a,b){yepnope({load:a,
callback:b})}}},modules:{},features:{},featureList:[],profiles:{lightweight:["es5","json-storage","canvas","geolocation","forms"]},setOptions:function(b,d){typeof b=="string"&&d!==c?q[b]=!a.isPlainObject(d)?d:a.extend(!0,q[b]||{},d):typeof b=="object"&&a.extend(!0,q,b)},addPolyfill:function(b,c){var c=c||{},d=c.feature||b;z[d]||(z[d]=[],n.featureList.push(d),q[d]={});z[d].push(b);c.options=a.extend(q[d],c.options);F(b,c);if(c.methodNames){if(!a.isArray(c.methodNames))c.methodNames=[c.methodNames];
a.each(c.methodNames,function(a,b){n.addMethodName(b)})}},polyfill:function(){var d=function(c){var e,f=[],h=c,j=function(){a("html").removeClass("loading-polyfills long-loading-polyfills polyfill-remove-fouc");a(b).unbind(".lP");clearTimeout(e)};a.isReady?n.warn("You should call $.webshims.polyfill before DOM-Ready"):(q.removeFOUC&&(q.waitReady&&(h=h.concat(["DOM"])),f.push("polyfill-remove-fouc")),f.push("loading-polyfills"),a(b).bind("load.lP polyfillloaderror.lP  error.lP",j),e=setTimeout(function(){a("html").addClass("long-loading-polyfills")},
600));p(c,j);q.useImportantStyles&&f.push("polyfill-important");f[0]&&a("html").addClass(f.join(" "));C.loadCSS("styles/shim.css");d=a.noop;i.genericDOM||a(function(){B(["dom-extend"])})};return function(b,e){if(b&&(b===!0||a.isPlainObject(b)))e=b,b=c;var f=[],b=b||n.featureList;typeof b=="string"&&(b=n.profiles[b]||b.split(" "));q.waitReady&&(a.readyWait++,p(b,function(){a.ready(!0)}));a.each(b,function(a,b){b!==z[b][0]&&p(z[b],function(){w(b,!0)});f=f.concat(z[b])});d(b);B(f,e)}}(),isReady:function(b,
c){b+="Ready";if(c){if(f[b]&&f[b].add)return!0;f[b]=a.extend(f[b]||{},{add:function(c){c.handler.call(this,a.Event(b))}});a.event.trigger(b)}return!(!f[b]||!f[b].add)||!1},ready:function(c,e,f){typeof c=="string"&&(c=c.split(" "));f||(c=a.map(a.grep(c,function(a){return!w(a)}),function(a){return a+"Ready"}));c.length?(f=c.shift(),a(d).one(f,function(){p(c,e,!0)})):e(a,n,b,d)},addMethodName:function(b){a.fn[b]&&"shim"in a.fn[b]||(a.fn[b]=function(){var d=arguments,e;this.each(function(){var f=a.attr(this,
b);if(f&&f.apply&&(e=f.apply(this,d),e!==c))return!1});return e!==c?e:this})},fixHTML5:function(a){return a},capturingEvents:function(b,c){d.addEventListener&&(typeof b=="string"&&(b=[b]),a.each(b,function(b,d){var e=function(b){b=a.event.fix(b);if(c&&!b._isPolyfilled){var d=b.isDefaultPrevented,e=b.preventDefault;b.preventDefault=function(){clearTimeout(a.data(b.target,b.type+"-defaultPrevented"));a.data(b.target,b.type+"-defaultPrevented",setTimeout(function(){a.removeData(b.target,b.type+"-defaultPrevented")},
30));return e.apply(this,arguments)};b.isDefaultPrevented=function(){return!(!d.apply(this,arguments)&&!a.data(b.target,b.type+"-defaultPrevented"))};b._isPolyfilled=!0}return a.event.handle.call(this,b)};f[d]=f[d]||{};f[d].setup||f[d].teardown||a.extend(f[d],{setup:function(){this.addEventListener(d,e,!0)},teardown:function(){this.removeEventListener(d,e,!0)}})}))},register:function(e,f){var h=u[e];if(h){if(h.noAutoCallback){var i=function(){f(a,n,b,d,c,h.options);w(e,!0)};h.dependencies?p(h.dependencies,
i):i()}}else n.warn("can't find module: "+e)},loader:{basePath:function(){var b=a('meta[name="polyfill-path"]').attr("content");b||(b=a("script").filter('[src$="polyfiller.js"]'),b=b[0]||b.end()[b.end().length-1],b=(!a.browser.msie||d.documentMode>=8?b.src:b.getAttribute("src",4)).split("?")[0],b=b.slice(0,b.lastIndexOf("/")+1)+"shims/");return b}(),addModule:function(a,b){u[a]=b;b.name=b.name||a},loadList:function(){var b=[],c=function(c,d){typeof d=="string"&&(d=[d]);a.merge(b,d);C.loadScript(c,
!1,d)},d=function(c,d){if(w(c)||a.inArray(c,b)!=-1)return!0;var e=u[c];if(e)if(e.test&&a.isFunction(e.test)?e.test(d):e.test)w(c,!0);else return!1;return!0},e=function(b,c){if(b.dependencies&&b.dependencies.length){var e=function(b,e){!d(e,c)&&a.inArray(e,c)==-1&&c.push(e)};a.each(b.dependencies,function(b,c){u[c]?e(b,c):z[c]&&(a.each(z[c],e),p(z[c],function(){w(c,!0)}))});if(!b.noAutoCallback)b.noAutoCallback=!0}},f=/\.\/|\/\//,h=function(d,e){var h=[],i=[],j=0,k=location,e=a.extend({seperator:",",
base:"/min/f=",maxFiles:10,scriptPath:C.basePath.replace(k.protocol+"//"+k.host+"/",""),fn:function(b,c,d,e){return b+a.map(e,function(a){return c+a}).join(d)}},typeof e=="object"?e:{});a.each(d,function(d,k){if(a.inArray(k,b)==-1){var m=u[k].src||k;m.indexOf(".")==-1&&(m+=".js");f.test(m)?c(m,k):(j++,h.push(m),i.push(k),j>=e.maxFiles&&(c(e.fn(e.base,e.scriptPath,e.seperator,h),i),h=[],i=[],j=0))}});h.length&&c(e.fn(e.base,e.scriptPath,e.seperator,h),i)};return function(a,b){for(var f,i=[],j=0;j<
a.length;j++)f=u[a[j]],!f||d(f.name,a)?f||n.warn("could not find: "+a[j]):(f.css&&C.loadCSS(f.css),f.loadInit&&f.loadInit(),f.loaded=!0,e(f,a),b?i.push(f.name):c(f.src||f.name,f.name));b&&h(i,b)}}(),makePath:function(a){if(a.indexOf("//")!=-1||a.indexOf("/")===0)return a;a.indexOf(".")==-1&&(a+=".js");q.addCacheBuster&&(a+=q.addCacheBuster);return C.basePath+a},loadCSS:function(){var b,c=[];return function(e){e=this.makePath(e);a.inArray(e,c)==-1&&(b=b||d.getElementsByTagName("script")[0],c.push(e),
a('<link rel="stylesheet" />').insertBefore(b).attr({href:e}))}}(),loadScript:function(){var c=[],d;return function(e,f,i){e=C.makePath(e);if(a.inArray(e,c)==-1){var j=h,k,m=function(){a(b).triggerHandler("polyfillloaderror");n.warn('Error: could not find "'+e+'" | configure polyfill-path: $.webshims.loader.basePath = "path/to/shims-folder"');o()},o=function(){clearTimeout(k);j.unbind("error",m);j=m=o=null;f&&f();i&&(typeof i=="string"&&(i=i.split(" ")),a.each(i,function(a,b){u[b]&&(u[b].afterLoad&&
u[b].afterLoad(),w(!u[b].noAutoCallback?b:b+"FileLoaded",!0))}))};c.push(e);d||a.each(q.loader,function(a,c){if(b[a])return d=c,!1});d?(d(e,o),n.debug!==!1&&(setTimeout(function(){j=a('script[src="'+e+'"]').bind("error",m)},0),k=setTimeout(m,15E3))):n.warn("you need to include a scriptloader")}}}()}});var n=a.webshims,s=(location.protocol=="https:"?"https://":"http://")+"ajax.googleapis.com/ajax/libs/",q=n.cfg,z=n.features,w=n.isReady,p=n.ready,e=n.addPolyfill,u=n.modules,C=n.loader,B=C.loadList,
F=C.addModule,G={warn:1,error:1},t={cache:!0,dataType:"text",error:function(a,b){n.warn("error with: "+this.url+" | "+b)}};n.activeLang=function(){var a=navigator.browserLanguage||navigator.language||"";p("webshimLocalization",function(){n.activeLang(a)});return function(b){if(b){if(typeof b=="string")a=b;else if(typeof b=="object"){var c=arguments,d=this;p("webshimLocalization",function(){n.activeLang.apply(d,c)})}B(["dom-extend"])}return a}}();a.each(["log","error","warn","info"],function(a,c){n[c]=
function(a){if((G[c]&&n.debug!==!1||n.debug)&&b.console&&console.log)return console[console[c]?c:"log"](a)}});a.prop&&a.fn.prop&&n.warn("webshims 1.6.x does not work with jQuery 1.6+. Please use webshims lib 1.7+");(function(){a.isDOMReady=a.isReady;if(a.isDOMReady)w("DOM",!0);else{var b=a.ready;a.ready=function(c){if(c!==!0&&!a.isDOMReady)d.body?(a.isDOMReady=!0,w("DOM",!0),a.ready=b):setTimeout(function(){a.ready(c)},13);return b.apply(this,arguments)}}})();(function(){var b=[];a.extend(n,{addReady:function(a){var c=
function(b,c){n.ready("DOM",function(){a(b,c)})};b.push(c);c(d,h)},triggerDomUpdate:function(c){if(c&&c.nodeType){var e=c.nodeType;if(!(e!=1&&e!=9)){var f=c!==d?a(c):h;a.each(b,function(a,b){b(c,f)})}}}});a.fn.htmlWebshim=function(b){b=a.fn.html.call(this,b?n.fixHTML5(b):b);b===this&&a.isDOMReady&&this.each(function(){this.nodeType==1&&n.triggerDomUpdate(this)});return b};if(n.fn)n.fn.html=a.fn.htmlWebshim;a.each(["after","before","append","prepend","replaceWith"],function(b,c){a.fn[c+"Webshim"]=
function(b){b=a(n.fixHTML5(b));a.fn[c].call(this,b);a.isDOMReady&&b.each(function(){this.nodeType==1&&n.triggerDomUpdate(this)});return this};n.fn&&(n.fn[c]=a.fn[c+"Webshim"])})})();(function(){var b=m.prototype.hasOwnProperty,d=["configurable","enumerable","writable"],e=function(a){for(var b=0;b<3;b++)if(a[d[b]]===c&&(d[b]!=="writable"||a.value!==c))a[d[b]]=!0},f=function(a){if(a)for(var c in a)b.call(a,c)&&e(a[c])};if(m.create)n.objectCreate=function(b,c,d){f(c);b=m.create(b,c);if(d)b.options=a.extend(!0,
{},b.options||{},d),d=b.options;b._create&&a.isFunction(b._create)&&b._create(d);return b};if(m.defineProperty)n.defineProperty=function(a,b,c){e(c);return m.defineProperty(a,b,c)};if(m.defineProperties)n.defineProperties=function(a,b){f(b);return m.defineProperties(a,b)};n.getOwnPropertyDescriptor=m.getOwnPropertyDescriptor;n.getPrototypeOf=m.getPrototypeOf})();F("jquery-ui",{src:s+"jqueryui/1.8.11/jquery-ui.min.js",test:function(){return!(!a.widget||!a.Widget)}});F("input-widgets",{src:"",test:function(){var b=
!(a.widget&&!a.fn.datepicker&&!a.fn.slider);return!this.src?(b||n.warn('jQuery UI Widget factory is already included, but not datepicker or slider. configure src of $.webshims.modules["input-widgets"].src'),!0):b}});F("swfobject",{src:s+"swfobject/2.2/swfobject.js",test:function(){return"swfobject"in b}});e("es5",{test:i.ES5});e("dom-extend",{feature:"dom-support",noAutoCallback:!0,dependencies:["es5"]});e("json-storage",{test:i.localstorage&&"sessionStorage"in b&&"JSON"in b,loadInit:function(){B(["swfobject"])},
noAutoCallback:!0});e("geolocation",{test:i.geolocation,options:{destroyWrite:!0,confirmText:""},dependencies:["json-storage"]});(function(){var c;e("canvas",{src:"excanvas",test:i.canvas,options:{type:"excanvas"},noAutoCallback:!0,loadInit:function(){var d=this.options.type;if(d&&d.indexOf("flash")!==-1&&(!b.swfobject||swfobject.hasFlashPlayerVersion("9.0.0")))b.FlashCanvasOptions=b.FlashCanvasOptions||{},c=FlashCanvasOptions,d=="flash"?(a.extend(c,{swfPath:C.basePath+"FlashCanvas/"}),this.src="FlashCanvas/flashcanvas",
d=c.swfPath+"flashcanvas.swf"):(a.extend(c,{swfPath:C.basePath+"FlashCanvasPro/"}),this.src="FlashCanvasPro/flashcanvas",d=c.swfPath+"flash10canvas.swf"),d&&a.ajax(d,t)},afterLoad:function(){n.addReady(function(b,c){a("canvas",b).add(c.filter("canvas")).each(function(){this.getContext||G_vmlCanvasManager.initElement(this)})});w("canvas",!0)},methodNames:["getContext"],dependencies:["es5","dom-support"]})})();n.validationMessages=n.validityMessages=[];n.inputTypes={};e("form-core",{feature:"forms",
dependencies:i.validationmessage?["es5"]:["es5","dom-extend"],loadInit:function(){this.options.customMessages&&i.validationmessage&&B(["dom-extend"])},options:{placeholderType:"value"},methodNames:["setCustomValidity","checkValidity"]});i.formvalidation?(n.capturingEvents(["input"]),n.capturingEvents(["invalid"],!0),e("form-extend",{feature:"forms",src:"form-native-extend",test:function(b){return i.bugfreeformvalidation&&(u["forms-ext"].test(b)||a.inArray("forms-ext",b)==-1)&&!this.options.overrideMessages},
dependencies:["form-core","dom-support"]}),e("form-native-fix",{feature:"forms",test:i.bugfreeformvalidation,dependencies:["form-extend"]}),e("form-output-datalist",{feature:"forms",test:function(){var b=i.datalist&&j.list;if(b&&a(d.createElement("input")).attr("list")===null){var e=a.attr;a.attr=function(a,b,d){if(b=="list"&&a&&(a.nodeName||"").toLowerCase()=="input")if(d!==c)a.setAttribute(b,d);else return a.getAttribute(b);return e.apply(this,arguments)}}return i.output&&b},dependencies:["dom-support"]})):
e("form-extend",{feature:"forms",src:"form-shim-all",dependencies:["form-core","dom-support"]});e("forms-ext",{src:"form-number-date",uiTest:function(){return o.range&&o.date&&o.time&&o.number&&!this.options.replaceUI},test:function(){return j.valueAsNumberSet&&this.uiTest()},noAutoCallback:!0,dependencies:["forms"],loadInit:function(){this.uiTest()||(B(["jquery-ui"]),u["input-widgets"].src&&B(["input-widgets"]))},options:{stepArrows:{number:1,time:1},calculateWidth:!0,slider:{},datepicker:{},langSrc:s+
"jqueryui/1.8.11/i18n/jquery.ui.datepicker-",recalcWidth:!0,lazyDate:!0}});e("details",{test:i.details,dependencies:["dom-support"],options:{text:"Details"}})})(jQuery,this,this.document);(function(a){var b=(new Date).getTime();a.fn.embedSWF=function(d){function c(a){var c=a.attr("id");c||(c="id-"+String(b++),a.attr({id:c}));return c}function f(b){var c={},d;b&&(b=b.replace(/^\?/,"").replace(/&amp;/g,"&").split(/&/),a.each(b,function(a,b){d=b.split(/\=/);c[decodeURIComponent(d[0])]=d[1]?decodeURIComponent(d[1]):""}));return c}var h=[],i=["width","height","expressInstall","version"],d=a.extend(!0,{},a.fn.embedSWF.defaults,d);this.each(function(){var b=a(this),o=this.className,k=a("a",
this).filter("[data-href*=.swf], [data-href*=.flv]"),m=c(b),k=k.attr("data-href").split("?"),n=f(k[1]),s=n.width||b.width(),b=n.height||b.height(),q=n.version||d.version,z;(z=a("a[data-ping]",this).attr("data-ping"))&&a(this).parent().attr("data-ping",z).addClass("click-track");z=n.expressInstall=="false"?!1:n.expressInstall?n.expressInstall:d.expressInstall;a.each(i,function(a,b){delete n[b]});a.extend({},d.parameters,n);swfobject.embedSWF(k[0],m,s,b,q,z,!1,n);m=document.getElementById(m);m.className=
o;h.push(m)});return this.pushStack(h)};a.fn.embedSWF.defaults={expressInstall:!1,version:"9.0.124",parameters:{}}})(jQuery);var swfobject=function(){function a(){if(!N){try{var a=t.getElementsByTagName("body")[0].appendChild(t.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}N=!0;for(var a=M.length,c=0;c<a;c++)M[c]()}}function b(a){N?a():M[M.length]=a}function d(a){if(typeof G.addEventListener!=u)G.addEventListener("load",a,!1);else if(typeof t.addEventListener!=u)t.addEventListener("load",a,!1);else if(typeof G.attachEvent!=u)q(G,"onload",a);else if(typeof G.onload=="function"){var b=G.onload;G.onload=
function(){b();a()}}else G.onload=a}function c(){var a=t.getElementsByTagName("body")[0],b=t.createElement(C);b.setAttribute("type",B);var c=a.appendChild(b);if(c){var d=0;(function(){if(typeof c.GetVariable!=u){var e=c.GetVariable("$version");if(e)e=e.split(" ")[1].split(","),r.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}else if(d<10){d++;setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;f()})()}else f()}function f(){var a=H.length;if(a>0)for(var b=0;b<a;b++){var c=H[b].id,
d=H[b].callbackFn,e={success:!1,id:c};if(r.pv[0]>0){var f=s(c);if(f)if(z(H[b].swfVersion)&&!(r.wk&&r.wk<312)){if(p(c,!0),d)e.success=!0,e.ref=h(c),d(e)}else if(H[b].expressInstall&&i()){e={};e.data=H[b].expressInstall;e.width=f.getAttribute("width")||"0";e.height=f.getAttribute("height")||"0";if(f.getAttribute("class"))e.styleclass=f.getAttribute("class");if(f.getAttribute("align"))e.align=f.getAttribute("align");for(var k={},f=f.getElementsByTagName("param"),m=f.length,n=0;n<m;n++)f[n].getAttribute("name").toLowerCase()!=
"movie"&&(k[f[n].getAttribute("name")]=f[n].getAttribute("value"));j(e,k,c,d)}else o(f),d&&d(e)}else if(p(c,!0),d){if((c=h(c))&&typeof c.SetVariable!=u)e.success=!0,e.ref=c;d(e)}}}function h(a){var b=null;if((a=s(a))&&a.nodeName=="OBJECT")typeof a.SetVariable!=u?b=a:(a=a.getElementsByTagName(C)[0])&&(b=a);return b}function i(){return!R&&z("6.0.65")&&(r.win||r.mac)&&!(r.wk&&r.wk<312)}function j(a,b,c,d){R=!0;X=d||null;$={success:!1,id:c};var e=s(c);if(e){e.nodeName=="OBJECT"?(Q=k(e),T=null):(Q=e,T=
c);a.id=F;if(typeof a.width==u||!/%$/.test(a.width)&&parseInt(a.width,10)<310)a.width="310";if(typeof a.height==u||!/%$/.test(a.height)&&parseInt(a.height,10)<137)a.height="137";t.title=t.title.slice(0,47)+" - Flash Player Installation";d=r.ie&&r.win?"ActiveX":"PlugIn";d="MMredirectURL="+G.location.toString().replace(/&/g,"%26")+"&MMplayerType="+d+"&MMdoctitle="+t.title;typeof b.flashvars!=u?b.flashvars+="&"+d:b.flashvars=d;if(r.ie&&r.win&&e.readyState!=4)d=t.createElement("div"),c+="SWFObjectNew",
d.setAttribute("id",c),e.parentNode.insertBefore(d,e),e.style.display="none",function(){e.readyState==4?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)}();m(a,b,c)}}function o(a){if(r.ie&&r.win&&a.readyState!=4){var b=t.createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(k(a),b);a.style.display="none";(function(){a.readyState==4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(k(a),a)}function k(a){var b=t.createElement("div");
if(r.win&&r.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(C)[0])if(a=a.childNodes)for(var c=a.length,d=0;d<c;d++)!(a[d].nodeType==1&&a[d].nodeName=="PARAM")&&a[d].nodeType!=8&&b.appendChild(a[d].cloneNode(!0));return b}function m(a,b,c){var d,e=s(c);if(r.wk&&r.wk<312)return d;if(e){if(typeof a.id==u)a.id=c;if(r.ie&&r.win){var f="",h;for(h in a)if(a[h]!=Object.prototype[h])h.toLowerCase()=="data"?b.movie=a[h]:h.toLowerCase()=="styleclass"?f+=' class="'+a[h]+'"':h.toLowerCase()!="classid"&&
(f+=" "+h+'="'+a[h]+'"');h="";for(var i in b)b[i]!=Object.prototype[i]&&(h+='<param name="'+i+'" value="'+b[i]+'" />');e.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";O[O.length]=a.id;d=s(a.id)}else{i=t.createElement(C);i.setAttribute("type",B);for(var j in a)a[j]!=Object.prototype[j]&&(j.toLowerCase()=="styleclass"?i.setAttribute("class",a[j]):j.toLowerCase()!="classid"&&i.setAttribute(j,a[j]));for(f in b)b[f]!=Object.prototype[f]&&f.toLowerCase()!=
"movie"&&(a=i,h=f,j=b[f],c=t.createElement("param"),c.setAttribute("name",h),c.setAttribute("value",j),a.appendChild(c));e.parentNode.replaceChild(i,e);d=i}}return d}function n(a){var b=s(a);if(b&&b.nodeName=="OBJECT")r.ie&&r.win?(b.style.display="none",function(){if(b.readyState==4){var c=s(a);if(c){for(var d in c)typeof c[d]=="function"&&(c[d]=null);c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b)}function s(a){var b=null;try{b=t.getElementById(a)}catch(c){}return b}
function q(a,b,c){a.attachEvent(b,c);J[J.length]=[a,b,c]}function z(a){var b=r.pv,a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1}function w(a,b,c,d){if(!r.ie||!r.mac){var e=t.getElementsByTagName("head")[0];if(e){c=c&&typeof c=="string"?c:"screen";d&&(P=L=null);if(!L||P!=c)d=t.createElement("style"),d.setAttribute("type","text/css"),d.setAttribute("media",c),L=e.appendChild(d),
r.ie&&r.win&&typeof t.styleSheets!=u&&t.styleSheets.length>0&&(L=t.styleSheets[t.styleSheets.length-1]),P=c;r.ie&&r.win?L&&typeof L.addRule==C&&L.addRule(a,b):L&&typeof t.createTextNode!=u&&L.appendChild(t.createTextNode(a+" {"+b+"}"))}}}function p(a,b){if(Y){var c=b?"visible":"hidden";N&&s(a)?s(a).style.visibility=c:w("#"+a,"visibility:"+c)}}function e(a){return/[\\\"<>\.;]/.exec(a)!=null&&typeof encodeURIComponent!=u?encodeURIComponent(a):a}var u="undefined",C="object",B="application/x-shockwave-flash",
F="SWFObjectExprInst",G=window,t=document,x=navigator,D=!1,M=[function(){D?c():f()}],H=[],O=[],J=[],Q,T,X,$,N=!1,R=!1,L,P,Y=!0,r=function(){var a=typeof t.getElementById!=u&&typeof t.getElementsByTagName!=u&&typeof t.createElement!=u,b=x.userAgent.toLowerCase(),c=x.platform.toLowerCase(),d=c?/win/.test(c):/win/.test(b),c=c?/mac/.test(c):/mac/.test(b),b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,e=!+"\u000b1",f=[0,0,0],h=null;if(typeof x.plugins!=u&&typeof x.plugins["Shockwave Flash"]==
C){if((h=x.plugins["Shockwave Flash"].description)&&!(typeof x.mimeTypes!=u&&x.mimeTypes[B]&&!x.mimeTypes[B].enabledPlugin))D=!0,e=!1,h=h.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),f[0]=parseInt(h.replace(/^(.*)\..*$/,"$1"),10),f[1]=parseInt(h.replace(/^.*\.(.*)\s.*$/,"$1"),10),f[2]=/[a-zA-Z]/.test(h)?parseInt(h.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}else if(typeof G.ActiveXObject!=u)try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(i&&(h=i.GetVariable("$version")))e=!0,h=h.split(" ")[1].split(","),
f=[parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10)]}catch(j){}return{w3:a,pv:f,wk:b,ie:e,win:d,mac:c}}();(function(){r.w3&&((typeof t.readyState!=u&&t.readyState=="complete"||typeof t.readyState==u&&(t.getElementsByTagName("body")[0]||t.body))&&a(),N||(typeof t.addEventListener!=u&&t.addEventListener("DOMContentLoaded",a,!1),r.ie&&r.win&&(t.attachEvent("onreadystatechange",function(){t.readyState=="complete"&&(t.detachEvent("onreadystatechange",arguments.callee),a())}),G==top&&function(){if(!N){try{t.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,
0);return}a()}}()),r.wk&&function(){N||(/loaded|complete/.test(t.readyState)?a():setTimeout(arguments.callee,0))}(),d(a)))})();(function(){r.ie&&r.win&&window.attachEvent("onunload",function(){for(var a=J.length,b=0;b<a;b++)J[b][0].detachEvent(J[b][1],J[b][2]);a=O.length;for(b=0;b<a;b++)n(O[b]);for(var c in r)r[c]=null;r=null;for(var d in swfobject)swfobject[d]=null;swfobject=null})})();return{registerObject:function(a,b,c,d){if(r.w3&&a&&b){var e={};e.id=a;e.swfVersion=b;e.expressInstall=c;e.callbackFn=
d;H[H.length]=e;p(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(r.w3)return h(a)},embedSWF:function(a,c,d,e,f,h,k,o,n,q){var s={success:!1,id:c};r.w3&&!(r.wk&&r.wk<312)&&a&&c&&d&&e&&f?(p(c,!1),b(function(){d+="";e+="";var b={};if(n&&typeof n===C)for(var r in n)b[r]=n[r];b.data=a;b.width=d;b.height=e;r={};if(o&&typeof o===C)for(var w in o)r[w]=o[w];if(k&&typeof k===C)for(var t in k)typeof r.flashvars!=u?r.flashvars+="&"+t+"="+k[t]:r.flashvars=t+"="+k[t];if(z(f))w=m(b,r,c),b.id==
c&&p(c,!0),s.success=!0,s.ref=w;else if(h&&i()){b.data=h;j(b,r,c,q);return}else p(c,!0);q&&q(s)})):q&&q(s)},switchOffAutoHideShow:function(){Y=!1},ua:r,getFlashPlayerVersion:function(){return{major:r.pv[0],minor:r.pv[1],release:r.pv[2]}},hasFlashPlayerVersion:z,createSWF:function(a,b,c){if(r.w3)return m(a,b,c)},showExpressInstall:function(a,b,c,d){r.w3&&i()&&j(a,b,c,d)},removeSWF:function(a){r.w3&&n(a)},createCSS:function(a,b,c,d){r.w3&&w(a,b,c,d)},addDomLoadEvent:b,addLoadEvent:d,getQueryParamValue:function(a){var b=
t.location.search||t.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(a==null)return e(b);for(var b=b.split("&"),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return e(b[c].substring(b[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(R){var a=s(F);if(a&&Q){a.parentNode.replaceChild(Q,a);if(T&&(p(T,!0),r.ie&&r.win))Q.style.display="block";X&&X($)}R=!1}}}}();(function(a){var b=a("html").is(".editMode");a.widget("aperto.teaserManager",{options:{},_create:function(){this.createList();this.getContent()},getNum:function(b){if(!b)return!1;b=parseInt(a.trim(b),10);return isNaN(b)?!1:b},getContent:function(){var d=this.element.prev(),c=this;if(this.list.length){var f=this.isRandom?0>this.list.length-1?-1:0==this.list.length-1?0:0+parseInt(Math.random()*(this.list.length-1-0+1),10):0;a.ajax({url:this.list[f],dataType:"text",success:function(f){f=a(f).removeClass("teaser-contained");
if(d.hasClass("teaser-contained")){var i=d.attr("data-teaser-index");i&&f.attr("data-teaser-index",i);b&&f.length>1?(f.insertAfter(d),d.remove()):f.replaceAll(d)}else f.insertBefore(c.element);a.isReady&&a(document).triggerHandler("domcontentchanged",{context:f});setTimeout(function(){c.element.remove()},9)}})}else d.removeClass("teaser-contained"),setTimeout(function(){c.element.remove()},9)},createList:function(){var b=this;this.isRandom=this.element.is("[data-choice=random]");this.list=[];a("span",
this.element).each(function(){var c=b.getNum(a.attr(this,"data-begin")),f=b.getNum(a.attr(this,"data-end"));if((!f||f>migros.nowTime)&&(!c||c<migros.nowTime))if(b.list.push(a.trim(a.attr(this,"data-src"))),!b.isRandom)return!1})}})})(jQuery);(function(){var a=document.getElementsByTagName("script")[0],b=a.parentNode,d=/ded|co/,c=function(c,h){var i=document.createElement("script");i.onload=i.onreadystatechange=function(){if(!this.readyState||d.test(this.readyState))i.onload=i.onreadystatechange=null,h&&h(i),i=null};i.async=!0;i.src=c;b.insertBefore(i,a)};window.sssl=function(a,b){if(typeof a=="string")c(a,b);else{var d=a.shift();c(d,function(){a.length?window.sssl(a,b):b&&b()})}}})();(function(a){a.fn.fadeInTo=function(){var b=arguments;return this.each(function(){var c=a(this);c.css("display")==="none"&&c.css({opacity:"0",display:"block"});a.fn.fadeTo.apply(c,b)})};var b=(new Date).getTime();a.widget("ui.overlayProto",{hideElementsOnShow:function(){var b=this.options,c=this;this.hiddenElements=a([]);if(b.hideWindowedFlash)this.hiddenElements=a("object, embed").filter(function(){return!(((this.getAttribute("classid")||"").toLowerCase()==="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"||
this.getAttribute("type")==="application/x-shockwave-flash")&&this.getAttribute("transparent")!=="transparent"&&/<param\s+(?:[^>]*(?:name=["'?]\bwmode["'?][\s\/>]|\bvalue=["'?](?:opaque|transparent)["'?][\s\/>])[^>]*){2}/i.test(this.innerHTML))});if(b.hideWhileShown)this.hiddenElements=this.hiddenElements.add(b.hideWhileShown);this.hiddenElements=this.hiddenElements.filter(function(){return a.curCSS(this,"visibility")!=="hidden"&&!a.contains(c.element[0],this)}).filter(b.hideFilter).css({visibility:"hidden"})}});
a.widget("ui.mask",a.ui.overlayProto,{options:{extraClass:!1,closeOnClick:!0,closeOnEsc:!0,hideFilter:function(){return!0},handleDisplay:!0,fadeInTime:0,fadeOutTime:0,opacity:0.8,bgIframe:!1,cssWidth:!0},_create:function(){var c=this.options,d=this,i;b++;this.id=b;this.maskedElement=this.element.parent();this.maskedElement.is("body")?(this.dimensionElement=a(document),this.calcMethod={height:"height",width:"width"}):(this.dimensionElement=this.maskedElement.css({position:"relative"}),this.calcMethod=
{height:"innerHeight",width:"innerWidth"});this.maskedElement.is("body")||parseInt(a.browser.version,10)<7&&a.browser.msie?(i={display:"none",position:"absolute",top:"0",left:"0"},this.calcSize=!0):(i={display:"none",position:"absolute",top:0,left:0,right:0,bottom:0},this.calcSize=!1);this.element.css(i);this.isVisible=!1;c.closeOnClick&&this.element.click(function(a){d.hide.call(d,a,this)});c.extraClass&&this.element.addClass(c.extraClass)},ui:function(){return{instance:this}},hide:function(b){if(this.isVisible){var c=
this.options,d=this;if(this._trigger("close",b,this.ui())!==!1)this.isVisible=!1,c.handleDisplay&&(c.fadeOutTime?this.element.fadeOut(c.fadeOutTime,function(){d.unexpose.call(d)}):(this.element.hide(),this.unexpose())),this.element.queue(function(){d.hiddenElements&&d.hiddenElements.css&&d.hiddenElements.css({visibility:"visible"});d.maskedElement.removeClass("mask-visible");d.element.dequeue()}),a(document).unbind(".mask"+this.id),a(window).unbind(".mask"+this.id)}},resize:function(a){var b={height:this.dimensionElement[this.calcMethod.height]()};
if(!this.options.cssWidth)b.width=this.dimensionElement[this.calcMethod.width]();a&&this.element.css(b);return b},show:function(b,c){if(!this.isVisible){var c=c?a.extend(!0,{},this.options,c):this.options,d=this,j=function(){d.resize.call(d,!0)};c.expose&&this.expose(c.expose);this._trigger("show",b,a.extend(!0,{},this.ui(),c));this.isVisible=!0;this.maskedElement.addClass("mask-visible");this.hideElementsOnShow();c.handleDisplay&&(this.calcSize&&this.resize(!0),c.fadeInTime?this.element.fadeInTo(c.fadeInTime,
c.opacity):this.element.css({opacity:c.opacity,display:"block"}));c.closeOnEsc&&a(document).bind("keydown.mask"+this.id,function(b){b.keyCode===a.ui.keyCode.ESCAPE&&d.hide.call(d,b,this)});d.calcSize&&(a(document).bind("resize.mask"+this.id+" emchange.mask"+this.id,j),a(window).bind("resize.mask"+this.id,j))}},unexpose:function(b){if(b||this.exposed)if((b||this.exposed).each(function(){a(this).css({position:"",zIndex:""})}),!b)this.exposed=!1},expose:function(b){var c=parseInt(this.maskedElement.css("z-index"),
10)||9,b=this.maskedElement.find(b);b.each(function(){var b=a(this);b.css("position")==="static"&&b.css({position:"relative"});c++;b.css({zIndex:c})});this.exposed=b}});var d,c=(new Date).getTime();a(document).bind("focusin",function(a){if(a.target.nodeType==1)d=a.target});if(!a.fn.mask)a.fn.mask=function(){return this};a.widget("ui.cOverlay",a.ui.overlayProto,{options:{mask:!1,maskOpts:{},hideStyle:"visibility",bgIframe:!1,hideWindowedFlash:"auto",hideWhileShown:!1,hideFilter:function(){return!0},
extraClass:!1,attrs:{},bodyShowClass:"overlay-visible",positionType:"",positionOpts:{},followMouse:!1,restoreFocus:"auto",focusOnShow:!1,closeOnEsc:!0,closeBtnSel:"a.close-button",animShow:function(a,b){a.css(b.posCSS).css({visibility:"visible"})},animHide:function(a){a.css({visibility:"hidden"})},addRole:!1,createA11yWrapper:"auto",labelledbySel:!1,describedbySel:!1,openerSel:!1,openerContext:document,bindStyle:"bind",openEvent:"ariaclick",closeEvent:!1,openDelay:0,setInitialContent:!1},_create:function(){var b=
this.options,d=this,i=b.hideStyle==="display"?{display:"none"}:{visibility:"hidden"},j=function(a){var b=this;d.timer.clear("openTimer");d.timer.setDelay("closeTimer",function(){d.hide(a,{closer:b})},1);return!1},o=function(a){var c=this;d.closeTimer!==void 0&&(!d.currentOpener||d.currentOpener[0]===c||c===d.element[0])&&d.timer.clear("closeTimer");d.timer.setDelay("openTimer",function(){d.show(a,{opener:c})},b.openDelay);return!1};this.timer=a.createTimer(this);this.mask=a([]);b.mask&&b.hideWindowedFlash===
"auto"?(b.maskOpts=b.maskOpts||{},b.hideWindowedFlash=!0):b.hideWindowedFlash=!1;if(b.maskOpts)b.maskOpts.hideWindowedFlash=!1;b.extraClass&&this.element.addClass(b.extraClass);if(b.mask)this.mask=a('<div class="mask" />').insertBefore(this.element).mask(a.extend(b.maskOpts,{close:function(a,b){d.timer.clear("openTimer");return d.hide(a,b)}}));this.element.css(i).addClass("a11y-js-overflow").attr(b.attrs).attr({"aria-hidden":"true"});(b.createA11yWrapper===!0||b.createA11yWrapper&&this.element.parent().is("body"))&&
this.element.wrap('<div class="a11y-wrapper" />');if(b.restoreFocus==="auto")b.restoreFocus=!!b.focusOnShow;b.setInitialContent&&this.fillContent(this.element,b.setInitialContent);this.clonedOverlay=this.element.clone().attr({role:"presentation"}).addClass("cloned-overlay");b.bgIframe&&a.fn.bgIframe&&parseInt(a.browser.version,10)<7&&this.element.bgIframe();c++;this.id="overlay-"+c;this.isVisible=!1;this.hiddenElements=a([]);this.openers=a([]);this.closeBtn=a(b.closeBtnSel,this.element).bind("ariaclick",
function(a){d.timer.clear("openTimer");d.hide(a,{closer:this});return!1});if(b.openerSel){this.openers=a(b.openerSel,b.openercontext);if(b.openEvent)this.openers[b.bindStyle](b.openEvent,o);if(b.closeEvent)this.openers[b.bindStyle](b.closeEvent,j)}a.support.waiAria&&(this.closeBtn[0]&&a.nodeName(this.closeBtn[0],"a")&&this.closeBtn.removeAttr("href").attr({tabindex:"0",role:"button"}),b.labelledbySel&&this.element.labelWith(a(b.labelledbySel,this.element)),b.describedbySel&&this.element.describeWith(a(b.describedbySel,
this.element)),b.addRole&&this.element.attr("role",b.addRole));this._trigger("init",{type:"init"},this.ui())},fillContent:function(b,c,d){var j=this.options,b=b||this.element,c=c||this.content||{};a.each(c,function(j,k){a.isFunction(k)?k(j,b,c,d):a("."+j,b).html(k)});(j.addRole==="tooltip"||j.addRole==="alert")&&a("*",this.element).attr({role:"presentation"})},ui:function(){for(var b={instance:this,isVisible:this.isVisible,openers:this.openers,id:this.id,element:this.element},c=arguments,d=0,j=c.length;d<
j;d++)c[d]&&a.extend(b,c[d]);return b},show:function(b,c){this.timer.clear("closeTimer");this.currentOpener=c&&c.opener?a(c.opener):b&&b.currentTarget?a(b.currentTarget):a(d);c=c||{};c.opener=this.currentOpener;if(!this.isVisible&&!(this._trigger("beforeShow",b,this.ui({extras:c}))===!1||this.stopShow)){this.isVisible=!0;var i=this.options,j=this,o;this.hideElementsOnShow();i.addRole==="tooltip"&&this.currentOpener&&this.currentOpener.attr({"aria-describedby":this.element.getID()});o=this.setPosition(b,
c);o=this.ui({extras:c,posCSS:o});this.mask.mask("show");i.animShow(this.element.stop(!0,!0),o);this.element.attr({"aria-hidden":"false"});a.ui.SR.update();this.restoreFocus=d;i.focusOnShow&&(i.focusOnShow===!0?this.element.firstExpOf("focusPoint").setFocus({context:(this.element[0].parentNode||{}).parentNode}):a(i.focusOnShow,this.element).setFocus({context:(this.element[0].parentNode||{}).parentNode}));a("body").addClass(i.bodyShowClass);i.closeOnEsc&&a(document).bind("keydown."+this.id,function(b){b.keyCode===
a.ui.keyCode.ESCAPE&&j.hide.call(j,b,{closer:this})});this.mask.mask("resize",!0);a.ui.SR.update();this._trigger("show",b,o)}},hide:function(b,c){if(this.isVisible){var d=this.options,j=this.ui({extras:c});if(this._trigger("beforeHide",b,j)===!1)return!1;this.isVisible=!1;d.addRole==="tooltip"&&this.currentOpener&&this.currentOpener.removeAttr("aria-describedby");this.mask.mask("hide");a(document).unbind("."+this.id);a(window).unbind("."+this.id);d.restoreFocus&&this.restoreFocus&&a(this.restoreFocus).setFocus({fast:!0});
d.animHide(this.element,j);this.removeFlashContent&&this.removeFlashContent();this.element.attr({"aria-hidden":"true"});this.hiddenElements.css({visibility:"visible"});this._trigger("hide",b,j);a("body").removeClass(d.bodyShowClass);this.restoreFocus=!1}},setPosition:function(b,c,d){var d=d||this.element,j=this.options,o={},b=b&&b.type?b:{type:"unknown"},c=c||{};if(!c.opener)c.opener=this.currentOpener;typeof j.positionType==="string"&&a.ui.cOverlay.posMethods[j.positionType]?o=a.ui.cOverlay.posMethods[j.positionType](d,
b,c,this):a.isFunction(j.positionType)&&(o=j.positionType(d,b,c,this));return o}});a.ui.cOverlay.posMethods={};a.ui.cOverlay.posMethods.position=function(b,c,d,j){var o=j.options,k,m;if(o.followMouse&&c.type.indexOf("mouse")!=-1)k=c,a(document).bind("mousemove."+j.id,function(a){a={top:c.pageY-a.pageY,left:c.pageX-a.pageX};b.css({top:m.top-a.top,left:m.left-a.left})});else if(o.positionOpts.posTarget||d.opener)k=o.positionOpts.posTarget||j.currentOpener||d.opener;b.position(a.extend({},o.positionOpts,
{of:k,using:function(a){m=a}}));return m};a.ui.cOverlay.posMethods.around=function(b,c,d,j){var o=j.options,k;if(!a.posAround)return setTimeout(function(){throw"please install the posAround plugin";},0),{};if(o.followMouse&&c.type.indexOf("mouse")!=-1)k=a.posAround(b,c,o.positionOpts),a(document).bind("mousemove."+j.id,function(a){a={top:c.pageY-a.pageY,left:c.pageX-a.pageX};b.css({top:k.top-a.top,left:k.left-a.left})});else if(o.positionOpts.posTarget||d.opener)k=a.posAround(b,o.positionOpts.posTarget||
d.opener,o.positionOpts);return k};a.ui.cOverlay.posMethods.centerInsideView=function(b,c,d,j){d=j.options;c=a(document);if(!a.objScale)return setTimeout(function(){throw"please install the objScale plugin";},0),{};b=a.objScale.centerObjTo(b,a(window),d.positionOpts);b.top+=c.scrollTop();b.left+=c.scrollLeft();return b}})(jQuery);(function(a){a.createSetUnsetFunction=function(a){if(typeof a=="string"){var d=a.split(".");typeof window[d[0]]=="undefined"&&(window[d[0]]={});for(var a=window[d[0]],c=1,f=d.length;c<f;c++)typeof a[d[c]]=="undefined"&&(a[d[c]]={}),a=a[d[c]]}return function(c,d){var f=c;typeof c=="string"&&(f={},f[c]=d);for(name in f)typeof a[name]=="undefined"&&(a[name]=f[name])}};a.i18n=function(){var b={},d="de",c=a("html").attr("lang")||"de";return{setActive:function(a){c=a},setDefault:function(a){d=a},setText:function(a,
d,i){arguments.length===1&&typeof a==="object"&&(d=a,a=c);if(i!==void 0){var j={};j[d]=i;d=j}b[a]||(b[a]={});for(var o in d)b[a][o]=d[o]},getText:function(a,h){h||(h=a,a=c);b[a]||(b[a]={});var i=b[a][h];return i!==void 0?i:b[d][h]||""}}}()})(jQuery);(function(a){if(!window.jspackager)window.jspackager={},jspackager.devmode=window.apertoDevmode||!1,jspackager.jsList=window.devModuleList||{};a.copyArray=function(a){for(var d=a.length,c=[];d;)c[--d]=a[d];return c};a.moduleLoader=function(){function b(a,b,c){function d(a){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")e.onload=null,e.onerror=null,e.onreadystatechange=null,c||(m=!0),b(a,this)}var e=document.createElement("script");e.onload=d;e.onerror=d;e.onreadystatechange=
d;c||(m=!0);e.src=a;s.appendChild(e)}function d(a,b){var d=b,b=function(f,e){if(a.shift){var h=a.shift();h?c(h,b):d(f,e)}};b()}function c(c,f,h){if(jspackager.devmode&&jspackager.jsList&&jspackager.jsList[c]&&jspackager.jsList[c].length)return d(a.copyArray(jspackager.jsList[c]),f),!1;var i=a("script[src*="+c+"]");i[0]?f({type:"alreadyLoaded"},i):(c=/:\/|\.js/.test(c)?c:k+c+".js",b(c,f,h))}function f(b,d,f){o.queue(b,function(){c(d,function(c,e){f(c,e,d);o.dequeue(b);var h=d.replace(/\./g,"_")+"Loaded";
a(document).triggerHandler(h);a.event.special[h]={add:function(b){b.handler.call(this,a.Event(h))}}})});!m&&s&&o.queue(b).length===1&&o.dequeue(b)}function h(a,b){f("scriptLoadQueue",a,b||function(){})}function i(a,b,c){return a?(f("scriptLoadQueue",b,c||function(){}),!0):a}function j(){!m&&o.queue("scriptLoadQueue").length&&o.dequeue("scriptLoadQueue");a.each(n,function(a,b){c(b.module,b.fn,!0)});n=[]}var o=a(document),k="",m=!1,n=[],s;return{config:function(b){k=b;a("head").getTillReady(function(){s=
this[0];j()})},require:h,requireIf:i,loadJSFile:h,loadDeferJS:function(b,d){var f=d||function(){},d=function(c,d){f(c,d,b);a(document).triggerHandler(b.replace(/\./g,"_")+"Loaded")};s?c(b,d,!0):n.push({module:b,fn:d})},loadJSFileIf:i}}()})(jQuery);(function(a){a.fn.getTillReady=function(b,d){var c=this.selector||"html",f=this.context||document,h,d=d||function(){},i=function(j){clearTimeout(h);j[0]?b.call(j,a.isReady):a.isReady?d.call(j,a.isReady):h=setTimeout(function(){i(a(c,f))},15)};i(this);return this}})(jQuery);(function(a){var b=a.createSetUnsetFunction("migros.path"),d=a.createSetUnsetFunction("migros.tmpl");a.createSetUnsetFunction("migros.cfg")({recipesPerPage:10,whitelistOrigins:["127.0.0.1","localhost","migros.ch","frontend.aperto.de"]});b({nowTime:"ajax-content/timeurl.txt",js:"static-main/js/",swf:"static-main/swf/"});a.i18n.setDefault("de");a.i18n.setText("de",{"dialog-close-button":"Dialog schlie\u00dfen",showboxPrev:"vorheriges Bild",showboxNext:"n\u00e4chstes Bild","showbox-close-button":"Bildbox schlie\u00dfen",
"validate-valueMissing":'Bitte f\u00fcllen Sie das Feld "{label}" aus',"validate-typeMismatch-email":'Bitte tragen Sie in das Feld "{label}" eine email-Adresse ein',mCPlayPause:"abspielen / pausieren",mCTimeSlider:"Abspielposition",mCVolumeSlider:"Lauts\u00e4rkeregler",mCFullscreen:"Vollbild anzeigen / normale Gr\u00f6\u00dfe",mainMenuText:"Kategorie",placeholderOptionText:"Bitte w\u00e4hlen"});a(function(){var b=a.i18n.getText;d({jmeControls:'<div class="media-state"></div> \t                        <div class="media-controls"> \t                            <a class="play-pause">'+
b("mCPlayPause")+'</a> \t                            <div class="timeline-slider"> \t                                <span class="handle-label">'+b("mCTimeSlider")+'</span> \t                                <div class="progressbar"></div> \t                            </div> \t                            <div class="time"> \t                            \t<span class="current-time player-display">00:00</span>/<span class="duration player-display">00:00</span> \t                            </div> \t\t\t\t\t\t\t\t<div class="volume"> \t                            \t<div class="volume-slider"><span class="handle-label">'+
b("mCVolumeSlider")+'</span></div> \t                            </div> \t                            <div class="buttons"> \t                                <span class="fullscreen">'+b("mCFullscreen")+"</span> \t                            </div> \t                        </div>"})})})(jQuery);(function(a){function b(b){var c=a.parseJSON(this.getAttribute("data-ping")),f=this,h;a.each(c,function(c,j){j=b.type=="submit"?a.map(j,function(a){return a=a.replace(/\{([^{^}]+)\}/g,function(a,b){var c=f[b];return c?c.value:a})}):a.map(j,function(c,i){var j;i&&c.indexOf("${position}")!=-1?(h===void 0&&(h="",j=a(f).closest(".compact-teaser, .teaser, .oss-item"),j[0]&&(h=a("div.compact-teaser, div.teaser, div.oss-item",b.liveFired).index(j[0]))),j=c.replace("${position}",h)):j=c;return j});_gaq.push(j)})}
window._gaq=window._gaq||[];window.socialGA={fb:function(a){if(!a||typeof a!="string")a=location.href;window.FB&&window.FB.Event&&(FB.Event.subscribe("edge.create",function(b){_gaq.push(["_trackSocial","facebook","like",b||a])}),FB.Event.subscribe("edge.remove",function(a){_gaq.push(["_trackSocial","facebook","unlike",a])}),FB.Event.subscribe("message.send",function(a){_gaq.push(["_trackSocial","facebook","send",a])}))},twitter:function(){if(window.twttr&&window.twttr.events){var a=location.href;
twttr.events.bind("tweet",function(b){b&&_gaq.push(["_trackSocial","twitter","Share",a])})}}};a(function(){a(document).bind("migrosNowTime",function(){a("form[data-ping]").bind("submit",b);a.each({main:"main-",nav:"left-",extras:"oss-",branding:"branding-"},function(d){a("#"+d).delegate("a[data-ping], [data-ping].click-track","mousedown",function(a){(!("which"in a)||a.which==1)&&b.apply(this,arguments)})})})})})(jQuery);(function(a){a.widget("ui.scroller",{options:{hidingWrapper:"div.rack",moveWrapper:"div.rack-design",atoms:"div.teaser",nextLink:"a.next",prevLink:"a.prev",activeLinkClass:"show",stickyFirstLast:!1,linkFn:a.noop,moveStep:"atom",direction:"horizontal",hidingWidth:!1,hidingHeight:!1,animate:!0,animateOptions:{duration:600,complete:a.noop},enableMwheel:!0,diashow:!1,restartDiaShow:!0,addSubPixel:0,recalcStageOnresize:!0,updateOnImgLoad:!0,bindStyle:"bind",pagination:!1,paginationAtoms:'<li class="pa-$number"><a href="#">$number</a></li>',
paginationTitleFrom:!1,activePaginationClass:"on",paginationFn:!1},_create:function(){var b=this.element[0],d=this.options,c=this,f=d.animateOptions.complete;d.animateOptions.complete=function(){f&&a.isFunction(f)&&f.call(this,c);c.propagate("end")};d.direction=d.direction=="vertical"?{scroll:"scrollTop",outerD:"outerHeight",dim:"height",dir:"Top"}:{scroll:"scrollLeft",outerD:"outerWidth",dim:"width",dir:"Left"};this.moveElem=a(d.moveWrapper,b);this.atomElem=a(d.atoms,b);this.hidingWrapper=a(d.hidingWrapper,
b);this.nextLink=a(d.nextLink,b);this.prevLink=a(d.prevLink,b);this.oldAtomPos=this.oldPosition=this.percentage=this.atomPos=this.position=0;if(d.hidingHeight||d.hidingWidth)b=d.hidingHeight?{height:d.hidingHeight}:{},d.hidingWidth&&(b=a.extend(b,{width:d.hidingWidth})),this.hidingWrapper.css(b);this.selectedFocus=!1;if(a.fn.setFocus&&a.fn.closest){var h={};d.direction.dir==="Top"?(h[a.ui.keyCode.UP]="prev",h[a.ui.keyCode.DOWN]="next"):(h[a.ui.keyCode.LEFT]="prev",h[a.ui.keyCode.RIGHT]="next");this.moveElem.bind("keyfocus",
function(b){b=a(b.target).closest(d.atoms);b[0]&&c.scrollIntoView(b)}).bind("focusin",function(b){b=a(b.target).closest(d.atoms);c.selectedFocus=b[0]?b:!1}).bind("focusout",function(){c.selectedFocus=!1}).bind("keydown",function(a){if(c.selectedFocus!==!1&&h[a.keyCode]){var b=c.selectedFocus[h[a.keyCode]](d.atoms);b&&b[0]?(a.preventDefault(),b.setFocus(),c.scrollIntoView(b)):c.isSliding&&a.preventDefault()}})}this.dims=[0];this.hidingWrapper[d.direction.scroll](0);this.minPos=0;this.update();if(d.recalcStageOnresize||
d.recalTeaserOnResize){var i,j=!0,b=function(a){j&&a.type=="emchange"?j=!1:(clearTimeout(i),i=setTimeout(function(){d.recalTeaserOnResize?c.update.call(c,!0):c.stageWidthUpdate.call(c)},20))};a(window).bind("resize",b);a(document).bind("orientationchange emchange",b)}d.updateOnImgLoad&&this.updateOnImgLoad();d.diashow?(this.startDiashow(),this.element.enterLeave(function(){c.pauseDiashow()},function(){d.restartDiaShow&&!c.isDiashowStopped&&c.isDiashowPaused&&c.startDiashow.call(c)})):this.stopDiashow();
d.enableMwheel&&a.fn.mwheelIntent&&this.hidingWrapper.mwheelIntent(function(a,b){c.stopDiashow.call(c);b=b<0?"-":"+";if(c.position>=c.maxPos&&b==="-"||b==="+"&&c.position<=c.minPos)return!c.isSliding;c.moveTo(b+"atom1");return!1});b=function(){var b=a.inArray(this,c.prevLink)!==-1?"+":"-";c.pauseDiashow.call(c);c.moveTo(b+d.moveStep);return!1};this.nextLink.bind("click.uiscroller",b);this.prevLink.bind("click.uiscroller",b);if(a.browser.msie&&parseInt(a.browser.version,10)<7){var b=function(){a(this).addClass("over")},
o=function(){a(this).removeClass("over")};this.nextLink.hover(b,o);this.prevLink.hover(b,o)}d.defaultSelected&&this.moveTo("goTo"+d.defaultSelected,!1);this.propagate("init")},stageWidthUpdate:function(){var a=this.hidingWrapper[this.options.direction.dim]();return a!==this.dims[1]?(this.dims[1]=a,this.maxPos=this.dims[0]-this.dims[1],this.updatePosition_Controls(),this.hidingWrapper[this.options.direction.scroll]()>this.maxPos&&this.moveTo(this.maxPos,!1),!0):!1},createPagination:function(){var b=
"<ul>",d=this,c,f=this.options;this.pagination=a(f.pagination,this.element[0]);this.atomElem.each(function(d){c=f.paginationAtoms.replace(/\$number/g,d+1);b+=f.paginationTitleFrom?c.replace(/\$title/g,a(f.paginationTitleFrom,this).text()):c});this.pagination.html(b+"</ul>").find("li").each(function(b){a(this).click(function(){d.stopDiashow.call(d);d.moveTo.call(d,"goTo"+b);return!1})})},getIndexNearPos:function(a){for(var d=this.dims.length;d--;)if(a==this.dims[d])return d;else if(a>this.dims[d])return d+
1;return!1},inView:function(a){var d=this.options.direction,c=this.dims[1],f=a[d.outerD](),h=this.hidingWrapper["scroll"+d.dir](),a=a[0]["offset"+d.dir];return h>a||c<f+a-h?a:!1},scrollIntoView:function(a){a=this.inView(a);a!==!1&&this.moveTo(a)},_setOption:function(b,d){var c=this.options;switch(b){case "enableMwheel":!d&&c.enableMwheel&&this.hidingWrapper.unmwheelIntent();break;case "addSubPixel":if(c.addSubPixel!==d)this.dims[0]-=c.addSubPixel,c.addSubPixel=d,this.dims[0]+=c.addSubPixel,this.update()}a.Widget.prototype._setOption.apply(this,
arguments)},startDiashow:function(){var a=this;clearInterval(this.diaTimer);this.diaTimer=setInterval(function(){a.position===a.maxPos&&a.options.type!=="carousel"?a.moveTo(0,!1):a.moveTo("-"+a.options.moveStep)},this.options.diashow);this.propagate("diashowstarted")},stopDiashow:function(){this.isDiashowStopped=!0;this.pauseDiashow();this.propagate("diashowstopped")},pauseDiashow:function(){clearInterval(this.diaTimer);setTimeout(function(){clearInterval(this.diaTimer)},9);this.isDiashowPaused=!0;
this.propagate("diashowpaused")},updateOnImgLoad:function(){var b=0,d=this;a("img",this.element).each(function(){this.complete||(b++,a(this).one("load",function(){b--;b||d.update(!0)}))})},update:function(b){var d,c=this.options;if(b)this.dims=[0];this.dims[1]=this.hidingWrapper.css({overflow:"hidden",position:"relative"})[c.direction.dim]();for(var f=this.dims.length-2,h=this.atomElem.length;f<h;f++)d=a(this.atomElem[f]),this.dims.push(this.dims[0]),this.dims[0]+=d[c.direction.outerD]({margin:!0});
this.dims[0]+=c.addSubPixel;this.maxPos=this.dims[0]-this.dims[1];d={};d[c.direction.dim]=this.dims[0]+"px";this.moveElem.css(d);c.pagination&&this.createPagination(b);this.updatePosition_Controls()},updatePosition_Controls:function(b){function d(a,b){return a[(b?{style:"addClass"}:{style:"removeClass"}).style](c.activeLinkClass)}var c=this.options,b=isNaN(b)?parseInt(this.hidingWrapper[c.direction.scroll](),10):b;if(b!==this.position){this.percentage=b/(this.maxPos/100);this.oldPosition=this.position;
this.oldAtomPos=this.atomPos;this.position=b;var f=this.getIndexNearPos(this.position);this.atomPos=f?f-2:0}this.percentage=b/(this.maxPos/100);b<=this.minPos&&this.prevLink.hasClass(c.activeLinkClass)?(c.linkFn.call(this.prevLink,"hide",this.ui()),d(this.prevLink),this.propagate("startreached")):b>this.minPos&&!this.prevLink.hasClass(c.activeLinkClass)&&(c.linkFn.call(this.prevLink,"show",this.ui()),d(this.prevLink,!0),this.propagate("startleft"));b>=this.maxPos&&this.nextLink.hasClass(c.activeLinkClass)?
(c.linkFn.call(this.nextLink,"hide",this.ui()),d(this.nextLink),this.propagate("endreached")):b<this.maxPos&&!this.nextLink.hasClass(c.activeLinkClass)&&(c.linkFn.call(this.nextLink,"show",this.ui()),d(this.nextLink,!0),this.propagate("endleft"));this.pagination&&(b=this.pagination.find("li").filter("."+c.activePaginationClass).removeClass(c.activePaginationClass),f=b.end().eq(this.atomPos).addClass(c.activePaginationClass),a.isFunction(c.paginationFn)&&(c.paginationFn.call(b,"inactive"),c.paginationFn.call(f,
"active")))},getNummericPosition:function(a){var d=!1,c,d=this.dims[this.dims.length-1];if(a.indexOf("goTo")===0)c=parseInt(/(\d+)$/.exec(a)[0],10)+2,a=this.dims[c];else if(a.indexOf("centerTo")===0)c=parseInt(/(\d+)$/.exec(a)[0],10)+2,a=this.dims[c]-this.dims[1]/2+this.atomElem.filter(":eq("+c+")")[this.options.direction.outerD]()/2;else if(a.indexOf("stageWidth")===1){var f=this,d=a.slice(0,1);c=this.dims[1];a=function(){for(var a=2;a<f.dims.length;a++)if(f.dims[a]>f.dims[1])break;return a-3}();
if(this.atomPos===0&&d==="+")return;a=d==="+"?this.atomPos-a+2<2?2:this.atomPos-a+2:this.atomPos+a+2;a=this.dims[a]}else a=="-atom"||a=="-atom1"?(c=this.atomPos+3,a=this.dims[c]||this.dims[c]===0?this.dims[c]:d):a=="+atom"||a=="+atom1"?a=this.atomPos?this.dims[this.atomPos+1]:0:a.indexOf("atom")==1?(c=parseInt(/(\d+)$/.exec(a)[0],10),a.indexOf("-")===0?(c+=2,a=this.dims[this.atomPos+c]?this.dims[this.atomPos+c]:d):(c-=2,a=this.atomPos-c>1&&this.dims[this.atomPos-c]?this.dims[this.atomPos-c]:0)):a.indexOf("+")===
0||a.indexOf("-")===0?(d=a.slice(0,1),a=parseInt(a.slice(1),10),a=d=="-"?this.position+a:this.position-a):(d=/(\d+)%$/.exec(a))&&d[1]&&(a=this.maxPos/100*parseFloat(a));if(this.options.stickyFirstLast)(a-this.maxPos)*-1<this.atomElem.filter(":last")[this.options.direction.outerD]()&&a>this.position?a=this.maxPos:a<this.atomElem[this.options.direction.outerD]()&&a<this.position&&(a=0);return a},moveTo:function(b,d,c){b=typeof b==="string"||isNaN(b)?this.getNummericPosition(b):b;b=b<=0?0:b>=this.maxPos?
this.maxPos:b;if(b===this.position)return!1;var f=this.options,h=f.direction.scroll;this.updatePosition_Controls(b);this.propagate("start",this.oldPosition);(d=typeof d=="undefined"?f.animate:d)?(c=c||{},c=a.extend({},f.animateOptions,{slide:this},c),b=h=="scrollTop"?{scrollerTop:b}:{scrollerLeft:b},this.hidingWrapper.stop().animate(b,c)):(this.hidingWrapper.stop()[h](b),this.propagate("end"))},ui:function(){return{instance:this,options:this.options,pos:this.position,percentPos:this.percentage,oldIndex:this.oldAtomPos,
newIndex:this.atomPos,size:this.dims.length-2}},propagate:function(b,d){var c=d||d===0?a.extend({},this.ui(),{pos:d,percentPos:d/(this.maxPos/100)}):this.ui();if(b==="start")this.isSliding=!0;else if(b==="end")this.isSliding=!1;b=="slide"?this.element.triggerHandler("uiscroller"+b,[c]):this.element.trigger("uiscroller"+b,[c]);this.options[b]&&this.options[b].call(this.element[0],{type:"uiscroller"+b},c)}});a.each({scrollerLeft:"scrollLeft",scrollerTop:"scrollTop"},function(b,d){a.fx.step[b]=function(a){if(a.now||
a.now===0){var b=a.options.slide;if(b){if(!a.scrollerInit)a.scrollerInit=!0,a.start=b.hidingWrapper[d](),a.now=a.start;b.hidingWrapper[d](a.now);b.propagate("slide",a.now)}}}})})(jQuery);(function(a){a.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var b=this,d=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!b.options.disabled){var d=a.ui.keyCode;switch(c.keyCode){case d.PAGE_UP:b._move("previousPage",
c);break;case d.PAGE_DOWN:b._move("nextPage",c);break;case d.UP:b._move("previous",c);c.preventDefault();break;case d.DOWN:b._move("next",c);c.preventDefault();break;case d.ENTER:case d.NUMPAD_ENTER:b.menu.element.is(":visible")&&c.preventDefault();case d.TAB:if(!b.menu.active)break;b.menu.select(c);break;case d.ESCAPE:b.element.val(b.term);b.close(c);break;default:clearTimeout(b.searching),b.searching=setTimeout(function(){if(b.term!=b.element.val())b.selectedItem=null,b.search(null,c)},b.options.delay)}}}).bind("focus.autocomplete",
function(){if(!b.options.disabled)b.selectedItem=null,b.previous=b.element.val()}).bind("blur.autocomplete",function(a){if(!b.options.disabled)clearTimeout(b.searching),b.closing=setTimeout(function(){b.close(a);b._change(a)},150)});this._initSource();this.response=function(){return b._response.apply(b,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",d)[0]).mousedown(function(c){var d=b.menu.element[0];c.target===d&&setTimeout(function(){a(document).one("mousedown",
function(c){c.target!==b.element[0]&&c.target!==d&&!a.ui.contains(d,c.target)&&b.close()})},1);setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(a,d){var h=d.item.data("item.autocomplete");!1!==b._trigger("focus",null,{item:h})&&/^key/.test(a.originalEvent.type)&&b.element.val(h.value)},selected:function(a,f){var h=f.item.data("item.autocomplete"),i=b.previous;if(b.element[0]!==d.activeElement)b.element.focus(),b.previous=i;!1!==b._trigger("select",a,{item:h})&&b.element.val(h.value);
b.close(a);b.selectedItem=h},blur:function(){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(b,
d){a.Widget.prototype._setOption.apply(this,arguments);b==="source"&&this._initSource();b==="appendTo"&&this.menu.element.appendTo(a(d||"body",this.element[0].ownerDocument)[0])},_initSource:function(){var b,d;a.isArray(this.options.source)?(b=this.options.source,this.source=function(c,d){d(a.ui.autocomplete.filter(b,c.term))}):typeof this.options.source==="string"?(d=this.options.source,this.source=function(b,f){a.getJSON(d,b,f)}):this.source=this.options.source},search:function(a,d){a=a!=null?a:
this.element.val();if(a.length<this.options.minLength)return this.close(d);clearTimeout(this.closing);return this._trigger("search")===!1?void 0:this._search(a)},_search:function(a){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:a},this.response)},_response:function(a){a.length?(a=this._normalize(a),this._suggest(a),this._trigger("open")):this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);this.menu.element.is(":visible")&&
(this._trigger("close",a),this.menu.element.hide(),this.menu.deactivate())},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return typeof b==="string"?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(b){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1),c;this._renderMenu(d,b);this.menu.deactivate();
this.menu.refresh();this.menu.element.show().position(a.extend({of:this.element},this.options.position));b=d.width("").outerWidth();c=this.element.outerWidth();d.outerWidth(Math.max(b,c))},_renderMenu:function(b,d){var c=this;a.each(d,function(a,d){c._renderItem(b,d)})},_renderItem:function(b,d){return a("<li></li>").data("item.autocomplete",d).append(a("<a></a>").text(d.label)).appendTo(b)},_move:function(a,d){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&
/^next/.test(a))this.element.val(this.term),this.menu.deactivate();else this.menu[a](d);else this.search(null,d)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,d){var c=RegExp(a.ui.autocomplete.escapeRegex(d),"i");return a.grep(b,function(a){return c.test(a.label||a.value||a)})}})})(jQuery);
(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){a(d.target).closest(".ui-menu-item a").length&&(d.preventDefault(),b.select(d))});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(d){b.activate(d,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(a,d){this.deactivate();if(this.hasScroll()){var c=d.offset().top-this.element.offset().top,f=this.element.attr("scrollTop"),h=this.element.height();c<0?this.element.attr("scrollTop",f+c):c>h&&this.element.attr("scrollTop",f+c-h+d.height())}this.active=d.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",a,{item:d})},deactivate:function(){if(this.active)this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),
this._trigger("blur"),this.active=null},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,d,c){this.active?(a=this.active[a+"All"](".ui-menu-item").eq(0),a.length?this.activate(c,a):this.activate(c,this.element.children(d))):this.activate(c,this.element.children(d))},
nextPage:function(b){if(this.hasScroll())if(!this.active||this.last())this.activate(b,this.element.children(":first"));else{var d=this.active.offset().top,c=this.element.height(),f=this.element.children("li").filter(function(){var b=a(this).offset().top-d-c+a(this).height();return b<10&&b>-10});f.length||(f=this.element.children(":last"));this.activate(b,f)}else this.activate(b,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll())if(!this.active||
this.first())this.activate(b,this.element.children(":last"));else{var d=this.active.offset().top,c=this.element.height();result=this.element.children("li").filter(function(){var b=a(this).offset().top-d+c-a(this).height();return b<10&&b>-10});result.length||(result=this.element.children(":first"));this.activate(b,result)}else this.activate(b,this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(a){this._trigger("selected",
a,{item:this.active})}})})(jQuery);(function(a){a.ui=a.ui||{};var b=/left|center|right/,d=/top|center|bottom/,c=a.fn.position,f=a.fn.offset;a.fn.position=function(f){if(!f||!f.of)return c.apply(this,arguments);var f=a.extend({},f),i=a(f.of),j=i[0],o=(f.collision||"flip").split(" "),k=f.offset?f.offset.split(" "):[0,0],m,n,s;j.nodeType===9?(m=i.width(),n=i.height(),s={top:0,left:0}):j.scrollTo&&j.document?(m=i.width(),n=i.height(),s={top:i.scrollTop(),left:i.scrollLeft()}):j.preventDefault?(f.at="left top",m=n=0,s={top:f.of.pageY,left:f.of.pageX}):
(m=i.outerWidth(),n=i.outerHeight(),s=i.offset());a.each(["my","at"],function(){var a=(f[this]||"").split(" ");a.length===1&&(a=b.test(a[0])?a.concat(["center"]):d.test(a[0])?["center"].concat(a):["center","center"]);a[0]=b.test(a[0])?a[0]:"center";a[1]=d.test(a[1])?a[1]:"center";f[this]=a});o.length===1&&(o[1]=o[0]);k[0]=parseInt(k[0],10)||0;k.length===1&&(k[1]=k[0]);k[1]=parseInt(k[1],10)||0;f.at[0]==="right"?s.left+=m:f.at[0]==="center"&&(s.left+=m/2);f.at[1]==="bottom"?s.top+=n:f.at[1]==="center"&&
(s.top+=n/2);s.left+=k[0];s.top+=k[1];return this.each(function(){var b=a(this),c=b.outerWidth(),d=b.outerHeight(),i=parseInt(a.curCSS(this,"marginLeft",!0))||0,e=parseInt(a.curCSS(this,"marginTop",!0))||0,j=c+i+parseInt(a.curCSS(this,"marginRight",!0))||0,C=d+e+parseInt(a.curCSS(this,"marginBottom",!0))||0,B=a.extend({},s),F;f.my[0]==="right"?B.left-=c:f.my[0]==="center"&&(B.left-=c/2);f.my[1]==="bottom"?B.top-=d:f.my[1]==="center"&&(B.top-=d/2);B.left=parseInt(B.left);B.top=parseInt(B.top);F={left:B.left-
i,top:B.top-e};a.each(["left","top"],function(b,e){if(a.ui.position[o[b]])a.ui.position[o[b]][e](B,{targetWidth:m,targetHeight:n,elemWidth:c,elemHeight:d,collisionPosition:F,collisionWidth:j,collisionHeight:C,offset:k,my:f.my,at:f.at})});a.fn.bgiframe&&b.bgiframe();b.offset(a.extend(B,{using:f.using}))})};a.ui.position={fit:{left:function(b,c){var d=a(window),d=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft();b.left=d>0?b.left-d:Math.max(b.left-c.collisionPosition.left,b.left)},
top:function(b,c){var d=a(window),d=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]!=="center"){var d=a(window),d=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),f=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,k=c.at[0]==="left"?c.targetWidth:-c.targetWidth,m=-2*c.offset[0];b.left+=c.collisionPosition.left<0?f+k+m:d>0?f+k+m:0}},top:function(b,
c){if(c.at[1]!=="center"){var d=a(window),d=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),f=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,k=c.at[1]==="top"?c.targetHeight:-c.targetHeight,m=-2*c.offset[1];b.top+=c.collisionPosition.top<0?f+k+m:d>0?f+k+m:0}}}};if(!a.offset.setOffset)a.offset.setOffset=function(b,c){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var d=a(b),f=d.offset(),k=parseInt(a.curCSS(b,"top",!0),10)||0,m=parseInt(a.curCSS(b,
"left",!0),10)||0,f={top:c.top-f.top+k,left:c.left-f.left+m};"using"in c?c.using.call(b,f):d.css(f)},a.fn.offset=function(b){var c=this[0];return!c||!c.ownerDocument?null:b?this.each(function(){a.offset.setOffset(this,b)}):f.call(this)}})(jQuery);(function(a){a.fn.scrollIntoView=function(){var b=a(a.browser.webkit||document.compatMode=="BackCompat"?document.body:document.documentElement);return function(d){if(this[0]){var d=a.extend({},a.fn.scrollIntoView.defaults,d),c={top:b.scrollTop(),left:b.scrollLeft()},f=this.offset(),h={};d.addMargins&&(f.top-=parseInt(this.css("marginTop"),10)||0,f.left-=parseInt(this.css("marginLeft"),10)||0);c.top>f.top&&(h[d.animate?"scrollTop":"top"]=f.top+d.addExtra*-1);c.left>f.left&&(h[d.animate?"scrollLeft":
"left"]=f.left+d.addExtra*-1);if(a.isEmptyObject(h)){d.animate&&d.animate.complete&&d.animate.complete(document);return}d.animate?b.animate(h,d.animate):("top"in h&&b.scrollTop(h.top),"left"in h&&b.scrollLeft(h.left))}return this}}();a.fn.scrollIntoView.defaults={addMargins:!0,addExtra:0,animate:!1};a(function(){a.ui.autocomplete&&a.extend(a.ui.autocomplete,{filter:function(b,d){var c=RegExp("^"+a.ui.autocomplete.escapeRegex(d),"i");return a.grep(b,function(a){return c.test(a.label||a.value||a)})}})});
a.widget("aperto.formHelper",{getFieldElement:function(b){b=(a.data(b,"html5element")||a(b))[0];if(a.attr(b,"willValidate")&&a.attr(b,"type")!=="submit")return b},markAs:function(){var b={error:"valid",success:"error"};return function(d,c){d=a(d);if(a.data(d[0],"fieldMarkedAs")!=c){a[c?"data":"removeData"](d[0],"fieldMarkedAs",c);var f=this.getContainerFor(d).removeClass(b[c]||"error valid");c&&f.addClass(c)}}}(),getContainerFor:function(b){b=a(b);return b.is(":radio")?b.closest(".field-group"):b.parent()},
getVisualElement:function(b){return(a.data(b,"inputUIReplace")||{visual:a(b)}).visual[0]},setValidationMessage:function(b,d,c){var f;if(d){if((f=b.getAttribute("data-errormessage"))&&f.indexOf("{")!==-1)try{f=a.parseJSON(f)}catch(h){}typeof f=="object"&&(f=f[d]||d)}f&&c&&(f=f.replace("{$placeholder$}",c));a.data(b,"ajaxValidationMessage",f||"");a(b).setCustomValidity(f||"").trigger("revalidate")}});a.widget("aperto.validationService",a.aperto.formHelper,{_create:function(){var b=this,d=function(){var c=
b.element.attr("data-param")||"term",d={},i=b.element.val();d[c]=i;a.ajax({url:b.element.attr("data-validation-service"),dataType:"json",data:d,success:function(a){a.val&&i==b.element.val()&&b.element.val(a.val);b.setValidationMessage(b.element[0],a.message,a.placeholder)}})},c;this.element.bind("change",d);this.element.hasClass("validate-only-onchange")||this.element.bind("input",function(){clearTimeout(c);c=setTimeout(d,300)})}});a.widget("aperto.fieldsetWizard",a.aperto.formHelper,{_create:function(){var b=
this;this.elements=a("input, select, textarea",this.element).filter(function(){return this.name&&a.attr(this,"willValidate")});this.elements.filter("[data-wizardsuggest]").each(function(){b.createAutoSuggest(this)});this.elements.filter("select").each(function(){a.data(this,"defaultOptions",{options:a(this).html(),defaultSelected:a.attr(this,"selectedIndex")})});a(this.elements[0].form||[]).bind("reset",function(){b.elements.filter("select").each(function(){var b=a.data(this,"defaultOptions");b&&
(b=a(this).html(b.options).attr("selectedIndex",b.defaultSelected).data("combobox"))&&b.refresh()})});var d;this.emptyValues=!0;this.element.bind("change input revalidate",function(c){clearTimeout(d);d=setTimeout(function(){var d=b.getFieldElement(c.target);d&&((c.type!="change"||a(d).is("select"))&&b.emptyNextElements(d),c.type=="change"&&b.fillSelect(d))},c&&c.type=="input"?200:1)});this.addCombobox()},fillSelect:function(b){if(a(b).is("[data-fillselect-path]")&&a(b).val()){var d={};this.getPrevElements(b).each(function(){var b=
this.name;b&&(d[b]=a(this).val())});d[a(b).attr("name")||""]=a(b).val();d.term=d.term||"";a.ajax({url:a(b).attr("data-fillselect-path"),dataType:"json",data:d,success:function(c){if(c=c&&c.items)a('[name="'+a(b).attr("data-fillselect-name")+'"]',b.form).autocomplete("option","source",c),b=null}})}},addCombobox:function(){var b=this;this.elements.filter("[data-fillselect-path-init]").each(function(){var d=a(this).autocomplete({minLength:0,source:a.noop,change:function(){},select:function(){var c=this;
setTimeout(function(){b.setValidationMessage(c,"");a(c).trigger("revalidate")},0)}}).bind("focus",function(){a(this).autocomplete("search","")}).bind("change",function(){var h=d.val();if(h)b.setValidationMessage(d[0],""),c={},b.getPrevElements(d).each(function(){var b=this.name;b&&(c[b]=a(this).val())}),c.term=h,f(function(a){a&&a.message&&b.setValidationMessage(d[0],a.message)})}).addClass("writeable-combobox"),c={},f=function(b){a.ajax({url:d.attr("data-fillselect-path-init"),dataType:"json",data:c,
success:b})};b.getPrevElements(d).each(function(){var b=this.name;b&&(c[b]=a(this).val())});c.term=c.term||"";d.is("[data-unkown-text]")&&b.addUnknownMessage(d[0]);f(function(a){(a=a&&a.items)&&d.autocomplete("option","source",a)})})},addUnknownMessage:function(b){var d=b.getAttribute("data-unkown-text"),c,f=function(){if(!(document.activeElement&&document.activeElement.id=="ui-active-menuitem")){var c=b.value;if(c){var f=a(b).autocomplete("option","source");f&&a.inArray(c,f)==-1?(a.data(b,"unknownTextMessage",
d),a(b.form).tooltipvalidation("showSpecialMessageFor",b)):a.data(b,"unknownTextMessage","")}}};a(document).bind("mousedown",function(a){a.target.id=="ui-active-menuitem"&&clearTimeout(c)});a(b).bind("focusout",function(){clearTimeout(c);c=setTimeout(f,50)})},disable:function(b,d){if(b){d=!!d;b.disabled=d;var c=a(b)[d?"addClass":"removeClass"]("disabled").data("combobox");c&&c._setOption("disabled",d)}},setValue:function(b,d){a(b).val(d);var c=a(b).data("combobox");c&&(d===""&&a(b).attr("disabled")&&
a(b).val()!==""&&(a(b).prepend('<option value=""></option>').attr("selectedIndex",0),c.refresh()),c.update(),a(b).is("[data-fillselect-path]")&&a(b).val()&&a(b).trigger("change"))},getNextElements:function(b){var d=[],c=!1;this.elements.each(function(){c&&this.name&&d.push(this);this===b&&(c=!0)});return a(d)},getPrevElements:function(b){var d=[];this.elements.each(function(){if(this===b)return!1;this.name&&d.push(this)});return a(d)},emptyNextElements:function(b){var d=this.getNextElements(b),c=
(a.attr(b,"validity")||{valid:!0}).valid,f=this;d.each(function(a){(a||!c)&&f.disable(this,!0);f.emptyValues&&f.setValue(this,"");f.markAs(this)});c&&d[0]&&d.each(function(){f.disable(this,!1);if(!(a.attr(this,"validity")||{valid:!0}).valid)return!1})},delayValueEmpty:function(){var a=this;clearTimeout(a.emptyValueTimer);a.emptyValues=!1;a.emptyValueTimer=setTimeout(function(){a.emptyValues=!0},201)},createAutoSuggest:function(b){var d={},c=b.getAttribute("data-wizardsuggest"),f=b.getAttribute("data-param")||
"term",h,i=this,j,o=b.getAttribute("data-unkown-text"),k,m=function(){var c=b.value;c&&(j&&a.inArray(c,j)==-1?(a.data(b,"unknownTextMessage",o),a(b.form).tooltipvalidation("showSpecialMessageFor",b)):a.data(b,"unknownTextMessage",""))},n;o&&a(b).bind("focusout",function(){clearTimeout(n);n=setTimeout(m,30)});var s=function(c,d){var e=a('[name="'+c+'"]',b.form);if(e[0]){var f=e.data("combobox");if(f){var h="";a.each(d,function(a,b){h+='<option value="'+b.val+'">'+b.name+"</option>"});e.html(h);i.delayValueEmpty();
f&&f.refresh();i.fillSelect(e[0])}(f=e.data("autocomplete"))&&e.autocomplete("option","source",d)}},q=function(c){var d={};h=h||i.getPrevElements(b);h.each(function(){var b=this.name;b&&(d[b]=a(this).val())});d[f]=c;return d},z=function(c,d){i.setValidationMessage(b,c.message);if(c.items&&d&&d.call){(j=c.items)&&!j.length&&m();var e=a.map(c.items,function(a){return{label:a,value:a}});d(e)}!c.message&&c.fillSelect&&a.each(c.fillSelect,s)},w=function(b,e){if(d[b.term])z(d[b.term],e);else{k=b.term;var f=
q(b.term);a.ajax({url:c,dataType:"json",data:f,success:function(a){a&&(d[b.term]=a,z(a,e))}})}},p,e=function(){var c=a(b).val();k!==c&&w({term:c},a.noop)};a(b).change(e).bind("input",function(){clearTimeout(p);p=setTimeout(e,300)}).autocomplete({minLength:parseInt(b.getAttribute("data-min-length"),10)||2,select:function(){setTimeout(function(){i.setValidationMessage(b,"");w({term:a(b).val()},a.noop);m()},1)},source:w}).data("autocomplete").menu.element.bind("mousedown",function(){setTimeout(function(){clearTimeout(n)},
0)})}});a.widget("aperto.tooltipvalidation",a.aperto.formHelper,{_create:function(){var b=this,d;a(document).bind("mousedown",function(a){a.target.id=="ui-active-menuitem"&&clearTimeout(d)});this.element.bind("focusin",function(a){(a=b.getFieldElement(a.target))&&b.showMessageFor(a)}).bind("focusout",function(a){var f=b.getFieldElement(a.target);f&&(clearTimeout(d),b.hideFor(f),d=setTimeout(function(){(!document.activeElement||document.activeElement.id!=="ui-active-menuitem")&&b.markValidity(f)},
10))}).bind("markvalidity revalidate change",function(a){var f=b.getFieldElement(a.target);f&&(a.type=="change"?(clearTimeout(d),d=setTimeout(function(){(!document.activeElement||document.activeElement.id!=="ui-active-menuitem")&&b.markValidity(f)},10)):b.markValidity(f))}).bind("invalid",function(a){a=b.getFieldElement(a.target);b.markAs(a,"invalid")}).bind("firstinvalid",function(a){a=b.getVisualElement(a.target);try{a.focus()}catch(d){}return!1}).bind("reset",function(){a("input, textarea, select",
this).each(function(){if(a.attr(this,"willValidate")&&this.type!="submit"){var c=b.getFieldElement(this);c&&b.markAs(c)}})})},markValidity:function(b){b=a(b);b.attr("validity").valid?(b.is(":radio,:checkbox")?b.is(":checked"):b.val())?this.markAs(b,"valid"):this.markAs(b):this.markAs(b,"error")},hideFor:function(b){var d=a.data(b,"tooltip");d&&(d.stop().animate({opacity:0},{complete:function(){d.remove()}}),a(">span",d).stop().animate({marginLeft:a(">span",d).outerWidth()*-1}))},getMessage:function(b){return a.data(b,
"ajaxValidationMessage")||a.webshims.getContentValidationMessage(b)||a.attr(b,"validationMessage")||a.data(b,"unknownTextMessage")},showMessageFor:function(b){clearTimeout(a.data(b,"tooltipHideTimer"));var d=this.getMessage(b);if(d){var c=a.data(b,"tooltip");c&&c.remove();var c=a.data(b,"tooltip",a('<span class="validation-tooltip" role="alert"><span /></span>').appendTo("body")),b=this.getContainerFor(b),f=b.offset(),d=a("span",c).html(d);d.css({marginLeft:c.outerWidth()*-1});f.left+=b.outerWidth();
c.css(a.extend({opacity:0,visibility:"visible"},f)).animate({opacity:1});d.animate({marginLeft:0})}},showSpecialMessageFor:function(b){var d=this,c=this.getMessage(b);if(c){var f=a.data(b,"tooltip");f?a("span",f).html(c):(this.showMessageFor(b),document.activeElement!==b&&a.data(b,setTimeout(function(){d.hideFor(b)},3E3)))}}});jQuery.aperto.validator||a.widget("aperto.validator",{options:{closestWrapper:"div",i18n:{valueMissing:'Bitte f\u00fcllen Sie das Feld "{label}" aus:',typeMismatch:{email:'Bitte tragen Sie in das Feld "{label}" eine email-Adresse ein'}}},
_create:function(){var b=this,d={checkbox:1,radio:1,"select-one":1,submit:1};this.element.parent().hasClass("s2f-box-box")?this.element.bind("firstinvalid",function(b){var d=a(b.target);d.parent().scrollIntoView({animate:{complete:function(){d.setFocus({fast:!0})}}});return!1}).bind("focusout",function(b){setTimeout(function(){a(b.target).hasClass("form-ui-valid")?a(b.target).parent().removeClass("error").addClass("valid"):a(b.target).hasClass("form-ui-invalid")&&a(b.target).parent().addClass("error").removeClass("valid")},
9)}).bind("changedinvalid invalid",function(b){a(b.target).parent().addClass("error")}):(this.element.bind("invalid",function(c){c.preventDefault();b.showErrorMessage(c.target,a.attr(c.target,"validity"))}).bind("firstinvalid",function(b){var d=a(b.target);d.parent().scrollIntoView({animate:{complete:function(){d.setFocus({fast:!0})}}})}),this.element.bind("focusout revalidate",function(c){!d[c.target.type]&&a.attr(c.target,"willValidate")&&!a.attr(c.target.form,"novalidate")&&(a.attr(c.target,"validity").valid?
b.showValidStyle(c.target):b.showErrorStyle(c.target))}))},showErrorStyle:function(b){a(b).closest(this.options.closestWrapper).removeClass("valid").addClass("error")},showValidStyle:function(b){var d=a(b).closest(this.options.closestWrapper).removeClass("error");this.hideErrorMessage(b);a.attr(b,"value")?d.addClass("valid"):d.removeClass("valid")},showErrorMessage:function(b,d){this.showErrorStyle(b);var c=a("label[for="+b.id+"]",b.form),f=this.getErrorText(d,b,c);f&&(this.saveLabelText(c),a("span.label-text",
c).text(f))},hideErrorMessage:function(b){var b=a("label[for="+b.id+"]",b.form),d=b.data("labelText");d&&a("span.label-text",b).text(d)},getErrorText:function(b,d,c){if(b.valid)return"";var f=this.options.i18n,h="",d=d[0]||d,h=a(d).data("errormessage");if(typeof h=="string")return h;if(h!=null&&typeof h=="object")return a.each(b,function(a,b){if(b&&a!=="valid"&&h[a])return h=h[a],!1}),h;a.each(b,function(a,b){if(b&&a!=="valid"&&f[a])return h=f[a],typeof h!=="string"&&(h=h[d.getAttribute("type")]),
!1});return h&&h.replace?h.replace("{label}",this.getLabelText(c||a("label[for="+d.id+"]",d.form))):""},getLabelText:function(b){b=a(b);return!b[0]?"":b.data("labelText")||a.data(b[0],"labelText",a("span.label-text",b).text()||"")},saveLabelText:function(b){b.data("labelText")||b.data("labelText",a("span.label-text",b).text())},ui:function(b){return a.extend({instance:this,options:this.options,element:this.element},b)}})})(jQuery);(function(a){jQuery.noConflict();a("<video />");a("<audio />");a("<source />");a.form2AjaxOpts=function(b,c){var b=a(b),c=c||{},f={url:b[0].action,type:b[0].method||"GET"};c.data?(typeof c.data=="string"?f.data=b.serialize()+"&"+c.data:a.isArray(c.data)?f.data=a.merge(b.serializeArray(),c.data):"name"in c.data&&"value"in c.data?f.data=b.serializeArray().push(c.data):(f.data=b.serializeArray(),a.each(c.data,function(a,b){f.data.push({name:a,value:b})})),delete c.data):f.data=b.serializeArray();return a.extend(f,
c)};var b=a.i18n.getText;a.readyWait++;a.moduleLoader.config(migros.path.js);(function(){var b=a("html").attr(b);b&&a.webshims.activeLang("fr")})();a.webshims.setOptions("extendNative",!1);a.webshims.loader.basePath=migros.path.js+"webshims/shims/";a.webshims.setOptions("extendNative",!1);a.webshims.setOptions("waitReady",!1);window.polyfillCFG&&a.webshims.setOptions(window.polyfillCFG);a.moduleLoader.loadDeferJS("_async-behavior");a.webshims.polyfill(window.polyfillFeature||"forms");a("html").hasClass("editMode")&&
document.write('<script src="'+migros.path.js+'_edit-behavior.js"><\/script>');a(document).bind("domcontentchanged",function(b,c){a("div.flash",c.context).embedSWF()});a(function(){a("dl.video-m")[0]||a("div").filter(".media-player, .ti-audio, .audio-list, .ti-video")[0]?a.moduleLoader.loadDeferJS("_jme-behavior"):a(window).bind("load",function(){a.moduleLoader.loadDeferJS("_jme-behavior")});a("body").bind("mousedown dblclick selectstart select",function(b){a(b.target).is(".jcarousel-prev, .jcarousel-next")&&
b.preventDefault()});a(".teaser-list div.tl-teaser:nth-child(2n)").addClass("mod");a("dl.send-2friend").each(function(){var b=a(this),c,f,h,i,j=function(){if(window.Recaptcha){h&&window.Recaptcha&&Recaptcha.destroy(h);var c=a("div[data-recaptcha-key]",b);c[0]?(Recaptcha.create(c.attr("data-recaptcha-key"),"s2f-captcha",{theme:"white"}),h=c[0],setTimeout(function(){a("#recaptcha_response_field").attr("required",!0)},401)):h=!1}else h=!1},o,k=function(){if(!o)return!1;o=!1;c=c||a("dd > div.s2f-box",
b);c.stop().animate({bottom:c.outerHeight()*-1},{complete:function(){b.removeClass("open-s2f")}});a(document).unbind("mousedown.s2f");return!1};a("> dt",b).bind("click",function(){if(o)return!1;o=!0;c=c||a(this).next("dd").children("div.s2f-box");f?(a("div.s2f-body",b).htmlWebshim(f),a("div.s2f-head > em",b).show()):f=a("div.s2f-body",b).html();j();i||(b.position().left<210&&b.addClass("flipped-s2f"),i=!0);b.hasClass("open-s2f")||(b.addClass("open-s2f"),c.css({bottom:c.outerHeight()*-1}));c.stop().animate({bottom:0});
a(document).unbind("mousedown.s2f").bind("mousedown.s2f",function(c){a.contains(b[0],c.target)||k()})});a("a.close-btn",b).bind("click",k);a("form",b).bind("submit",function(){var c=a("div.s2f-body",this).slideUp(),f=a.form2AjaxOpts(this,{data:{ajax:"true"},success:function(f){c.queue(function(){h&&window.Recaptcha&&Recaptcha.destroy(h);c.htmlWebshim(f);j();a("div.success",c)[0]&&a("div.s2f-head > em",b).hide();c.dequeue()}).slideDown()}});a.ajax(f);return!1})});a("div.teaser-switcher").find(".rack-teaser:last-child").addClass("last-child");
a("div.teaser-switcher").each(function(){var b={pagination:"div.ts-pagination",atoms:"div.rack-teaser",nextLink:"div.ts-controls span.next",prevLink:"div.ts-controls span.prev"},c=a(this).data("scrollercfg");c&&a.extend(b,c);a(this).scroller(b)}).hover(function(){a(this).addClass("over")},function(){a(this).removeClass("over")});a("fieldset.address-wizard").fieldsetWizard();a("input[data-validation-service]").validationService();a("#old-address button.copy-address").bind("click",function(){a("#old-address").find("input, select, textarea").not(".form-ui-invalid").each(function(){var b=
this.id;b&&b.indexOf("_old")!==-1&&(b=a("#"+b.replace("_old","_new")),b[0]&&(a.attr(this,"disabled")||b.attr("disabled",!1),b.is('[type="radio"], [type="checkbox"]')?b.attr("checked",a(this).attr("checked")):(b.is("select")&&(b.html(a(this).html()),b.combobox("refresh")),b.val(a(this).val()),b.is("select")&&b.combobox("update"))))});return!1});(function(){var d=["name","id","className","required","data-errormessage","data-mirrortext","data-fillselect-path","data-fillselect-name"];a("input.create-select").each(function(){var c=
a('<select><option value="">'+b("placeholderOptionText")+"</option></select>"),f=this,h=a(f).val(),i=a.attr(f,"data-value")||h||"";h&&c.append('<option selected value="'+i+'">'+h+"</option>");a.each(d,function(b,d){c.attr(d,a.attr(f,d))});a(f).replaceWith(c);a.fn.combobox&&c.combobox({addTextboxWidthToDatalist:!0})})})();a("select[data-mirrortext]").each(function(){var b=this.getAttribute("data-mirrortext");b&&(b=a('<input type="hidden" name="'+b+'" />').insertAfter(this).val(a("option:selected",
this).text()),a(this).bind("change",function(){b.val(a("option:selected",this).text())}))});swfobject.addDomLoadEvent(function(){a("div.flash").embedSWF()});a(".faq .super-list ul li:last-child div div").addClass("faq-last-child");a("#th-box-wrapper").each(function(){a("html").hasClass("editMode")||a("div.th-box",this).enterLeave(function(){var b=a("div.th-box-over",this);this.scrollTop=0;b.stop(!0).animate({bottom:0},{duration:600})},function(){var b=a("div.th-box-over",this);this.scrollTop=0;b.animate({bottom:(b.outerHeight()-
a("h3",b).outerHeight())*-1},{duration:900})},{bindStyle:"live"})});a(".js-back a").click(function(){history.back();return!1})});(function(){a.ajax({url:migros.path.nowTime,success:function(b){migros.nowTime=parseInt(a.trim(b),10);isNaN(migros.nowTime)||a(function(){a("div.teaser-data").teaserManager();a.event.trigger("migrosNowTime");a.event.special.migrosNowTime={add:function(a){a.handler.call(this,{type:"migrosNowTime"},a.data)}}})}})})();(function(){window.postMigrosIframeHeight=function(b){if(!isFinite(b)||
b=="deleteHeight")return a("#external-content-iframe").css({height:a(window).height()-120,overflowY:"hidden"}),!0;a("#external-content-iframe").css("height",b);return!0};var b=document.createElement("a");a(window).bind("message",function(c){if(c.originalEvent){var c=c.originalEvent,f=c.origin;b.href=c.origin;f=b.hostname;a.inArray(f,migros.cfg.whitelistOrigins)!=-1&&(c.data=="deleteHeight"?postMigrosIframeHeight(c.data):(c=parseInt(c.data,10),isNaN(c)||postMigrosIframeHeight(c)))}})})()})(jQuery);
}
