﻿/*!
 * jQuery JavaScript Library v1.5.1
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Wed Feb 23 13:55:29 2011 -0500
 */
(function(d,c){function z(b){return a.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:false}function R(b){if(!y[b]){var d=a("<"+b+">").appendTo("body"),c=d.css("display");d.remove();if(c==="none"||c==="")c="block";y[b]=c}return y[b]}function i(c,d){var b={};a.each(Q.concat.apply([],Q.slice(0,d)),function(){b[this]=c});return b}function Kb(){try{return new d.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}function O(){try{return new d.XMLHttpRequest}catch(a){}}function Ib(){a(d).unload(function(){for(var a in h)h[a](0,1)})}function zb(g,h){g.dataFilter&&(h=g.dataFilter(h,g.dataType));for(var n=g.dataTypes,i={},l,p=n.length,m,b=n[0],j,o,d,e,f,k=1;k<p;k++){if(k===1)for(l in g.converters)typeof l==="string"&&(i[l.toLowerCase()]=g.converters[l]);j=b,b=n[k];if(b==="*")b=j;else if(j!=="*"&&j!==b){o=j+" "+b,d=i[o]||i["* "+b];if(!d){f=c;for(e in i){m=e.split(" ");if(m[0]===j||m[0]==="*"){f=i[m[1]+" "+b];if(f){e=i[e],e===true?d=f:f===true&&(d=e);break}}}}!d&&!f&&a.error("No conversion from "+o.replace(" "," to ")),d!==true&&(h=d?d(h):f(e(h)))}}return h}function yb(e,j,f){var h=e.contents,b=e.dataTypes,k=e.responseFields,g,a,d,i;for(a in k)a in f&&(j[k[a]]=f[a]);while(b[0]==="*")b.shift(),g===c&&(g=e.mimeType||j.getResponseHeader("content-type"));if(g)for(a in h)if(h[a]&&h[a].test(g)){b.unshift(a);break}if(b[0]in f)d=b[0];else{for(a in f){if(!b[0]||e.converters[a+" "+b[0]]){d=a;break}i||(i=a)}d=d||i}if(d){d!==b[0]&&b.unshift(d);return f[d]}}function x(c,b,e,d){if(a.isArray(b)&&b.length)a.each(b,function(f,b){e||Ab.test(c)?d(c,b):x(c+"["+(typeof b==="object"||a.isArray(b)?f:"")+"]",b,e,d)});else if(e||b==null||typeof b!=="object")d(c,b);else if(a.isArray(b)||a.isEmptyObject(b))d(c,"");else for(var f in b)x(c+"["+f+"]",b[f],e,d)}function o(e,d,g,h,f,b){f=f||d.dataTypes[0],b=b||{},b[f]=true;for(var i=e[f],j=0,l=i?i.length:0,k=e===w,a;j<l&&(k||!a);j++)a=i[j](d,g,h),typeof a==="string"&&(!k||b[a]?a=c:(d.dataTypes.unshift(a),a=o(e,d,g,h,a,b)));(k||!a)&&!b["*"]&&(a=o(e,d,g,h,"*",b));return a}function L(b){return function(d,e){typeof d!=="string"&&(e=d,d="*");if(a.isFunction(e))for(var h=d.toLowerCase().split(E),f=0,j=h.length,c,i,g;f<j;f++)c=h[f],g=/^\+/.test(c),g&&(c=c.substr(1)||"*"),i=b[c]=b[c]||[],i[g?"unshift":"push"](e)}}function M(b,e,d){var f=e==="width"?ub:vb,c=e==="width"?b.offsetWidth:b.offsetHeight;if(d==="border")return c;a.each(f,function(){d||(c-=parseFloat(a.css(b,"padding"+this))||0),d==="margin"?c+=parseFloat(a.css(b,"margin"+this))||0:c-=parseFloat(a.css(b,"border"+this+"Width"))||0});return c}function lb(c,b){b.src?a.ajax({url:b.src,async:false,dataType:"script"}):a.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function v(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function T(c,b){if(b.nodeType===1){var d=b.nodeName.toLowerCase();b.clearAttributes(),b.mergeAttributes(c);if(d==="object")b.outerHTML=c.outerHTML;else if(d!=="input"||c.type!=="checkbox"&&c.type!=="radio"){if(d==="option")b.selected=c.defaultSelected;else if(d==="input"||d==="textarea")b.defaultValue=c.defaultValue}else c.checked&&(b.defaultChecked=b.checked=c.checked),b.value!==c.value&&(b.value=c.value);b.removeAttribute(a.expando)}}function ib(h,g){if(g.nodeType===1&&a.hasData(h)){var i=a.expando,e=a.data(h),f=a.data(g,e);if(e=e[i]){var b=e.events;f=f[i]=a.extend({},e);if(b){delete f.handle,f.events={};for(var c in b)for(var d=0,j=b[c].length;d<j;d++)a.event.add(g,c+(b[c][d].namespace?".":"")+b[c][d].namespace,b[c][d],b[c][d].data)}}}}function jc(b){return a.nodeName(b,"table")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}function bb(c,b,d){if(a.isFunction(b))return a.grep(c,function(a,c){var e=!!b.call(a,c,a);return e===d});if(b.nodeType)return a.grep(c,function(a){return a===b===d});if(typeof b==="string"){var e=a.grep(c,function(a){return a.nodeType===1});if(Tb.test(b))return a.filter(b,e,!d);b=a.filter(b,e)}return a.grep(c,function(c){return a.inArray(c,b)>=0===d})}function Z(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function s(a,b){return(a&&a!=="*"?a+".":"")+b.replace(dc,"`").replace(ec,"&")}function Pb(b){var q,k,i,c,d,l,e,f,j,s,g,m,n,o=[],r=[],p=a._data(this,"events");if(b.liveFired!==this&&p&&p.live&&!b.target.disabled&&(!b.button||b.type!=="click")){b.namespace&&(m=new RegExp("(^|\\.)"+b.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),b.liveFired=this;var h=p.live.slice(0);for(e=0;e<h.length;e++)d=h[e],d.origType.replace(t,"")===b.type?r.push(d.selector):h.splice(e--,1);c=a(b.target).closest(r,b.currentTarget);for(f=0,j=c.length;f<j;f++){g=c[f];for(e=0;e<h.length;e++){d=h[e];if(g.selector===d.selector&&(!m||m.test(d.namespace))&&!g.elem.disabled){l=g.elem,i=null;if(d.preType==="mouseenter"||d.preType==="mouseleave")b.type=d.preType,i=a(b.relatedTarget).closest(d.selector)[0];(!i||i!==l)&&o.push({elem:l,handleObj:d,level:g.level})}}}for(f=0,j=o.length;f<j;f++){c=o[f];if(k&&c.level>k)break;b.currentTarget=c.elem,b.data=c.handleObj.data,b.handleObj=c.handleObj,n=c.handleObj.origHandler.apply(c.elem,arguments);if(n===false||b.isPropagationStopped()){k=c.level,n===false&&(q=false);if(b.isImmediatePropagationStopped())break}}return q}}function V(e,f,d){var b=a.extend({},d[0]);b.type=e,b.originalEvent={},b.liveFired=c,a.event.handle.call(f,b),b.isDefaultPrevented()&&d[0].preventDefault()}function u(){return true}function j(){return false}function A(a){for(var b in a)if(b!=="toJSON")return false;return true}function X(d,e,b){if(b===c&&d.nodeType===1){b=d.getAttribute("data-"+e);if(typeof b==="string"){try{b=b==="true"?true:b==="false"?false:b==="null"?null:a.isNaN(b)?Ob.test(b)?a.parseJSON(b):b:parseFloat(b)}catch(f){}a.data(d,e,b)}else b=c}return b}var b=d.document,a=function(){function p(){if(!a.isReady){try{b.documentElement.doScroll("left")}catch(c){setTimeout(p,1);return}a.ready()}}var a=function(b,c){return new a.fn.init(b,c,m)},v=d.jQuery,w=d.$,m,x=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,q=/\S/,r=/^\s+/,s=/\s+$/,y=/\d/,z=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,A=/^[\],:{}\s]*$/,B=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,C=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,D=/(?:^|:|,)(?:\s*\[)+/g,E=/(webkit)[ \/]([\w.]+)/,F=/(opera)(?:.*version)?[ \/]([\w.]+)/,G=/(msie) ([\w.]+)/,H=/(mozilla)(?:.*? rv:([\w.]+))?/,I=navigator.userAgent,g,t=false,j,k="then done fail isResolved isRejected promise".split(" "),e,u=Object.prototype.toString,h=Object.prototype.hasOwnProperty,i=Array.prototype.push,f=Array.prototype.slice,l=String.prototype.trim,n=Array.prototype.indexOf,o={};a.fn=a.prototype={constructor:a,init:function(d,e,i){var g,h,f,j;if(!d)return this;if(d.nodeType){this.context=this[0]=d,this.length=1;return this}if(d==="body"&&!e&&b.body){this.context=b,this[0]=b.body,this.selector="body",this.length=1;return this}if(typeof d==="string"){g=x.exec(d);if(!g||!g[1]&&e)return!e||e.jquery?(e||i).find(d):this.constructor(e).find(d);if(g[1]){e=e instanceof a?e[0]:e,j=e?e.ownerDocument||e:b,f=z.exec(d),f?a.isPlainObject(e)?(d=[b.createElement(f[1])],a.fn.attr.call(d,e,true)):d=[j.createElement(f[1])]:(f=a.buildFragment([g[1]],[j]),d=(f.cacheable?a.clone(f.fragment):f.fragment).childNodes);return a.merge(this,d)}h=b.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return i.find(d);this.length=1,this[0]=h}this.context=b,this.selector=d;return this}if(a.isFunction(d))return i.ready(d);d.selector!==c&&(this.selector=d.selector,this.context=d.context);return a.makeArray(d,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},"get":function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(c,d,e){var b=this.constructor();a.isArray(c)?i.apply(b,c):a.merge(b,c),b.prevObject=this,b.context=this.context,d==="find"?b.selector=this.selector+(this.selector?" ":"")+e:d&&(b.selector=this.selector+"."+d+"("+e+")");return b},each:function(b,c){return a.each(this,b,c)},ready:function(b){a.bindReady(),j.done(b);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(b){return this.pushStack(a.map(this,function(a,c){return b.call(a,c,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:i,sort:[].sort,splice:[].splice},a.fn.init.prototype=a.fn,a.extend=a.fn.extend=function(){var h,g,e,d,i,j,b=arguments[0]||{},f=1,l=arguments.length,k=false;typeof b==="boolean"&&(k=b,b=arguments[1]||{},f=2),typeof b!=="object"&&!a.isFunction(b)&&(b={}),l===f&&(b=this,--f);for(;f<l;f++)if((h=arguments[f])!=null)for(g in h){e=b[g],d=h[g];if(b===d)continue;k&&d&&(a.isPlainObject(d)||(i=a.isArray(d)))?(i?(i=false,j=e&&a.isArray(e)?e:[]):j=e&&a.isPlainObject(e)?e:{},b[g]=a.extend(k,j,d)):d!==c&&(b[g]=d)}return b},a.extend({noConflict:function(b){d.$=w,b&&(d.jQuery=v);return a},isReady:false,readyWait:1,ready:function(c){c===true&&a.readyWait--;if(!a.readyWait||c!==true&&!a.isReady){if(!b.body)return setTimeout(a.ready,1);a.isReady=true;if(c!==true&&--a.readyWait>0)return;j.resolveWith(b,[a]),a.fn.trigger&&a(b).trigger("ready").unbind("ready")}},bindReady:function(){if(!t){t=true;if(b.readyState==="complete")return setTimeout(a.ready,1);if(b.addEventListener)b.addEventListener("DOMContentLoaded",e,false),d.addEventListener("load",a.ready,false);else if(b.attachEvent){b.attachEvent("onreadystatechange",e),d.attachEvent("onload",a.ready);var c=false;try{c=d.frameElement==null}catch(f){}b.documentElement.doScroll&&c&&p()}}},isFunction:function(b){return a.type(b)==="function"},isArray:Array.isArray||function(b){return a.type(b)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!y.test(a)||isNaN(a)},type:function(a){return a==null?String(a):o[u.call(a)]||"object"},isPlainObject:function(b){if(!b||a.type(b)!=="object"||b.nodeType||a.isWindow(b))return false;if(b.constructor&&!h.call(b,"constructor")&&!h.call(b.constructor.prototype,"isPrototypeOf"))return false;var d;for(d in b);return d===c||h.call(b,d)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=a.trim(b);if(A.test(b.replace(B,"@").replace(C,"]").replace(D,"")))return d.JSON&&d.JSON.parse?d.JSON.parse(b):new Function("return "+b)();a.error("Invalid JSON: "+b)},parseXML:function(e,b,c){d.DOMParser?(c=new DOMParser,b=c.parseFromString(e,"text/xml")):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(e)),c=b.documentElement,(!c||!c.nodeName||c.nodeName==="parsererror")&&a.error("Invalid XML: "+e);return b},noop:function(){},globalEval:function(c){if(c&&q.test(c)){var e=b.head||b.getElementsByTagName("head")[0]||b.documentElement,d=b.createElement("script");a.support.scriptEval()?d.appendChild(b.createTextNode(c)):d.text=c,e.insertBefore(d,e.firstChild),e.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(b,f,g){var d,e=0,h=b.length,j=h===c||a.isFunction(b);if(g){if(j){for(d in b)if(f.apply(b[d],g)===false)break}else for(;e<h;)if(f.apply(b[e++],g)===false)break}else if(j){for(d in b)if(f.call(b[d],d,b[d])===false)break}else for(var i=b[0];e<h&&f.call(i,e,i)!==false;i=b[++e]);return b},trim:l?function(a){return a==null?"":l.call(a)}:function(a){return a==null?"":(a+"").replace(r,"").replace(s,"")},makeArray:function(b,e){var c=e||[];if(b!=null){var d=a.type(b);b.length==null||d==="string"||d==="function"||d==="regexp"||a.isWindow(b)?i.call(c,b):a.merge(c,b)}return c},inArray:function(c,a){if(a.indexOf)return a.indexOf(c);for(var b=0,d=a.length;b<d;b++)if(a[b]===c)return b;return-1},merge:function(a,b){var e=a.length,d=0;if(typeof b.length==="number")for(var f=b.length;d<f;d++)a[e++]=b[d];else while(b[d]!==c)a[e++]=b[d++];a.length=e;return a},grep:function(b,f,c){var d=[],e;c=!!c;for(var a=0,g=b.length;a<g;a++)e=!!f(b[a],a),c!==e&&d.push(b[a]);return d},map:function(d,e,f){for(var a=[],c,b=0,g=d.length;b<g;b++)c=e(d[b],b,f),c!=null&&(a[a.length]=c);return a.concat.apply([],a)},guid:1,proxy:function(d,b,e){arguments.length===2&&(typeof b==="string"?(e=d,d=e[b],b=c):b&&!a.isFunction(b)&&(e=b,b=c)),!b&&d&&(b=function(){return d.apply(e||this,arguments)}),d&&(b.guid=d.guid=d.guid||b.guid||a.guid++);return b},access:function(b,d,f,g,h,i){var j=b.length;if(typeof d==="object"){for(var k in d)a.access(b,k,d[k],g,h,f);return b}if(f!==c){g=!i&&g&&a.isFunction(f);for(var e=0;e<j;e++)h(b[e],d,g?f.call(b[e],e,h(b[e],d)):f,i);return b}return j?h(b[0],d):c},now:function(){return+new Date},_Deferred:function(){var d=[],b,e,f,c={done:function(){if(!f){var j=arguments,e,k,g,i,h;b&&(h=b,b=0);for(e=0,k=j.length;e<k;e++)g=j[e],i=a.type(g),i==="array"?c.done.apply(c,g):i==="function"&&d.push(g);h&&c.resolveWith(h[0],h[1])}return this},resolveWith:function(a,c){if(!f&&!b&&!e){e=1;try{while(d[0])d.shift().apply(a,c)}catch(g){throw g;}finally{b=[a,c],e=0}}return this},resolve:function(){c.resolveWith(a.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return e||b},cancel:function(){f=1,d=[];return this}};return c},Deferred:function(e){var b=a._Deferred(),c=a._Deferred(),d;a.extend(b,{then:function(a,c){b.done(a).fail(c);return this},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,promise:function(a){if(a==null){if(d)return d;d=a={}}var c=k.length;while(c--)a[k[c]]=b[k[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,e&&e.call(b,b);return b},when:function(b){var c=arguments.length,d=c<=1&&b&&a.isFunction(b.promise)?b:a.Deferred(),g=d.promise();if(c>1){var e=f.call(arguments,0),h=c,i=function(a){return function(b){e[a]=arguments.length>1?f.call(arguments,0):b,--h||d.resolveWith(g,e)}};while(c--)b=e[c],b&&a.isFunction(b.promise)?b.promise().then(i(c),d.reject):--h;h||d.resolveWith(g,e)}else d!==b&&d.resolve(b);return g},uaMatch:function(a){a=a.toLowerCase();var b=E.exec(a)||F.exec(a)||G.exec(a)||a.indexOf("compatible")<0&&H.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function c(a,b){return new c.fn.init(a,b)}a.extend(true,c,this),c.superclass=this,c.fn=c.prototype=this(),c.fn.constructor=c,c.subclass=this.subclass,c.fn.init=function d(b,b){b&&b instanceof a&&!(b instanceof c)&&(b=c(b));return a.fn.init.call(this,d,b,e)},c.fn.init.prototype=c.fn;var e=c(b);return c},browser:{}}),j=a._Deferred(),a.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b,a){o["[object "+a+"]"]=a.toLowerCase()}),g=a.uaMatch(I),g.browser&&(a.browser[g.browser]=true,a.browser.version=g.version),a.browser.webkit&&(a.browser.safari=true),n&&(a.inArray=function(a,b){return n.call(b,a)}),q.test(" ")&&(r=/^[\s\xA0]+/,s=/[\s\xA0]+$/),m=a(b),b.addEventListener?e=function(){b.removeEventListener("DOMContentLoaded",e,false),a.ready()}:b.attachEvent&&(e=function(){b.readyState==="complete"&&(b.detachEvent("onreadystatechange",e),a.ready())});return a}();(function(){a.support={};var c=b.createElement("div");c.style.display="none",c.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var g=c.getElementsByTagName("*"),e=c.getElementsByTagName("a")[0],i=b.createElement("select"),j=i.appendChild(b.createElement("option")),h=c.getElementsByTagName("input")[0];if(g&&g.length&&e){a.support={leadingWhitespace:c.firstChild.nodeType===3,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/red/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:h.value==="on",optSelected:j.selected,deleteExpando:true,optDisabled:false,checkClone:false,noCloneEvent:true,noCloneChecked:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true},h.checked=true,a.support.noCloneChecked=h.cloneNode(true).checked,i.disabled=true,a.support.optDisabled=!j.disabled;var f=null;a.support.scriptEval=function(){if(f===null){var c=b.documentElement,e=b.createElement("script"),g="script"+a.now();try{e.appendChild(b.createTextNode("window."+g+"=1;"))}catch(h){}c.insertBefore(e,c.firstChild),d[g]?(f=true,delete d[g]):f=false,c.removeChild(e),c=e=g=null}return f};try{delete c.test}catch(n){a.support.deleteExpando=false}!c.addEventListener&&c.attachEvent&&c.fireEvent&&(c.attachEvent("onclick",function m(){a.support.noCloneEvent=false,c.detachEvent("onclick",m)}),c.cloneNode(true).fireEvent("onclick")),c=b.createElement("div"),c.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var k=b.createDocumentFragment();k.appendChild(c.firstChild),a.support.checkClone=k.cloneNode(true).cloneNode(true).lastChild.checked,a(function(){var c=b.createElement("div"),e=b.getElementsByTagName("body")[0];if(e){c.style.width=c.style.paddingLeft="1px",e.appendChild(c),a.boxModel=a.support.boxModel=c.offsetWidth===2,"zoom"in c.style&&(c.style.display="inline",c.style.zoom=1,a.support.inlineBlockNeedsLayout=c.offsetWidth===2,c.style.display="",c.innerHTML="<div style='width:4px;'></div>",a.support.shrinkWrapBlocks=c.offsetWidth!==2),c.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var d=c.getElementsByTagName("td");a.support.reliableHiddenOffsets=d[0].offsetHeight===0,d[0].style.display="",d[1].style.display="none",a.support.reliableHiddenOffsets=a.support.reliableHiddenOffsets&&d[0].offsetHeight===0,c.innerHTML="",e.removeChild(c).style.display="none",c=d=null}});var l=function(a){var c=b.createElement("div");a="on"+a;if(!c.attachEvent)return true;var d=a in c;d||(c.setAttribute(a,"return;"),d=typeof c[a]==="function"),c=null;return d};a.support.submitBubbles=l("submit"),a.support.changeBubbles=l("change"),c=g=e=null}})();var Ob=/^(?:\{.*\}|\[.*\])$/;a.extend({cache:{},uuid:0,expando:"jQuery"+(a.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(b){b=b.nodeType?a.cache[b[a.expando]]:b[a.expando];return!!b&&!A(b)},data:function(h,e,j,k){if(a.acceptData(h)){var g=a.expando,l=typeof e==="string",d,i=h.nodeType,f=i?a.cache:h,b=i?h[a.expando]:h[a.expando]&&a.expando;if((!b||k&&b&&!f[b][g])&&l&&j===c)return;b||(i?h[a.expando]=b=++a.uuid:b=a.expando),f[b]||(f[b]={},i||(f[b].toJSON=a.noop));if(typeof e==="object"||typeof e==="function")k?f[b][g]=a.extend(f[b][g],e):f[b]=a.extend(f[b],e);d=f[b],k&&(d[g]||(d[g]={}),d=d[g]),j!==c&&(d[e]=j);return e==="events"&&!d[e]?d[g]&&d[g].events:l?d[e]:d}},removeData:function(e,i,j){if(a.acceptData(e)){var f=a.expando,g=e.nodeType,b=g?a.cache:e,c=g?e[a.expando]:a.expando;if(!b[c])return;if(i){var h=j?b[c][f]:b[c];if(h){delete h[i];if(!A(h))return}}if(j){delete b[c][f];if(!A(b[c]))return}var k=b[c][f];a.support.deleteExpando||b!=d?delete b[c]:b[c]=null,k?(b[c]={},g||(b[c].toJSON=a.noop),b[c][f]=k):g&&(a.support.deleteExpando?delete e[a.expando]:e.removeAttribute?e.removeAttribute(a.expando):e[a.expando]=null)}},_data:function(b,c,d){return a.data(b,c,d,true)},acceptData:function(b){if(b.nodeName){var c=a.noData[b.nodeName.toLowerCase()];if(c)return c!==true&&b.getAttribute("classid")===c}return true}}),a.fn.extend({data:function(e,g){var b=null;if(typeof e==="undefined"){if(this.length){b=a.data(this[0]);if(this[0].nodeType===1)for(var i=this[0].attributes,f,h=0,j=i.length;h<j;h++)f=i[h].name,f.indexOf("data-")===0&&(f=f.substr(5),X(this[0],f,b[f]))}return b}if(typeof e==="object")return this.each(function(){a.data(this,e)});var d=e.split(".");d[1]=d[1]?"."+d[1]:"";if(g===c){b=this.triggerHandler("getData"+d[1]+"!",[d[0]]),b===c&&this.length&&(b=a.data(this[0],e),b=X(this[0],e,b));return b===c&&d[1]?this.data(d[0]):b}return this.each(function(){var b=a(this),c=[d[0],g];b.triggerHandler("setData"+d[1]+"!",c),a.data(this,e,g),b.triggerHandler("changeData"+d[1]+"!",c)})},removeData:function(b){return this.each(function(){a.removeData(this,b)})}}),a.extend({queue:function(e,c,d){if(e){c=(c||"fx")+"queue";var b=a._data(e,c);if(!d)return b||[];!b||a.isArray(d)?b=a._data(e,c,a.makeArray(d)):b.push(d);return b}},dequeue:function(c,b){b=b||"fx";var d=a.queue(c,b),e=d.shift();e==="inprogress"&&(e=d.shift()),e&&(b==="fx"&&d.unshift("inprogress"),e.call(c,function(){a.dequeue(c,b)})),d.length||a.removeData(c,b+"queue",true)}}),a.fn.extend({queue:function(b,d){typeof b!=="string"&&(d=b,b="fx");return d===c?a.queue(this[0],b):this.each(function(){var c=a.queue(this,b,d);b==="fx"&&c[0]!=="inprogress"&&a.dequeue(this,b)})},dequeue:function(b){return this.each(function(){a.dequeue(this,b)})},delay:function(b,c){b=a.fx?a.fx.speeds[b]||b:b,c=c||"fx";return this.queue(c,function(){var d=this;setTimeout(function(){a.dequeue(d,c)},b)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Y=/[\n\t\r]/g,B=/\s+/,Ub=/\r/g,Vb=/^(?:href|src|style)$/,Xb=/^(?:button|input)$/i,Zb=/^(?:button|input|object|select|textarea)$/i,bc=/^a(?:rea)?$/i,ab=/^(?:radio|checkbox)$/i;a.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},a.fn.extend({attr:function(b,c){return a.access(this,b,c,true,a.attr)},removeAttr:function(b){return this.each(function(){a.attr(this,b,""),this.nodeType===1&&this.removeAttribute(b)})},addClass:function(b){if(a.isFunction(b))return this.each(function(d){var c=a(this);c.addClass(b.call(this,d,c.attr("class")))});if(b&&typeof b==="string")for(var e=(b||"").split(B),f=0,h=this.length;f<h;f++){var c=this[f];if(c.nodeType===1)if(c.className){for(var i=" "+c.className+" ",g=c.className,d=0,j=e.length;d<j;d++)i.indexOf(" "+e[d]+" ")<0&&(g+=" "+e[d]);c.className=a.trim(g)}else c.className=b}return this},removeClass:function(b){if(a.isFunction(b))return this.each(function(d){var c=a(this);c.removeClass(b.call(this,d,c.attr("class")))});if(b&&typeof b==="string"||b===c)for(var h=(b||"").split(B),e=0,i=this.length;e<i;e++){var d=this[e];if(d.nodeType===1&&d.className)if(b){for(var f=(" "+d.className+" ").replace(Y," "),g=0,j=h.length;g<j;g++)f=f.replace(" "+h[g]+" "," ");d.className=a.trim(f)}else d.className=""}return this},toggleClass:function(b,c){var d=typeof b,e=typeof c==="boolean";return a.isFunction(b)?this.each(function(e){var d=a(this);d.toggleClass(b.call(this,e,d.attr("class"),c),c)}):this.each(function(){if(d==="string"){var f,i=0,h=a(this),g=c,j=b.split(B);while(f=j[i++])g=e?g:!h.hasClass(f),h[g?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean")this.className&&a._data(this,"__className__",this.className),this.className=this.className||b===false?"":a._data(this,"__className__")||""})},hasClass:function(b){for(var c=" "+b+" ",a=0,d=this.length;a<d;a++)if((" "+this[a].className+" ").replace(Y," ").indexOf(c)>-1)return true;return false},val:function(d){if(!arguments.length){var b=this[0];if(b){if(a.nodeName(b,"option")){var k=b.attributes.value;return!k||k.specified?b.value:b.text}if(a.nodeName(b,"select")){var f=b.selectedIndex,i=[],g=b.options,h=b.type==="select-one";if(f<0)return null;for(var j=h?f:0,l=h?f+1:g.length;j<l;j++){var e=g[j];if(e.selected&&(a.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!a.nodeName(e.parentNode,"optgroup"))){d=a(e).val();if(h)return d;i.push(d)}}return h&&!i.length&&g.length?a(g[f]).val():i}return ab.test(b.type)&&!a.support.checkOn?b.getAttribute("value")===null?"on":b.value:(b.value||"").replace(Ub,"")}return c}var m=a.isFunction(d);return this.each(function(f){var c=a(this),b=d;if(this.nodeType===1){m&&(b=d.call(this,f,c.val())),b==null?b="":typeof b==="number"?b+="":a.isArray(b)&&(b=a.map(b,function(a){return a==null?"":a+""}));if(a.isArray(b)&&ab.test(this.type))this.checked=a.inArray(c.val(),b)>=0;else if(a.nodeName(this,"select")){var e=a.makeArray(b);a("option",this).each(function(){this.selected=a.inArray(a(this).val(),e)>=0}),e.length||(this.selectedIndex=-1)}else this.value=b}})}}),a.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(b,d,e,l){if(!b||b.nodeType===3||b.nodeType===8||b.nodeType===2)return c;if(l&&d in a.attrFn)return a(b)[d](e);var f=b.nodeType!==1||!a.isXMLDoc(b),g=e!==c;d=f&&a.props[d]||d;if(b.nodeType===1){var j=Vb.test(d);if(d==="selected"&&!a.support.optSelected){var h=b.parentNode;h&&(h.selectedIndex,h.parentNode&&h.parentNode.selectedIndex)}if((d in b||b[d]!==c)&&f&&!j){g&&(d==="type"&&Xb.test(b.nodeName)&&b.parentNode&&a.error("type property can't be changed"),e===null?b.nodeType===1&&b.removeAttribute(d):b[d]=e);if(a.nodeName(b,"form")&&b.getAttributeNode(d))return b.getAttributeNode(d).nodeValue;if(d==="tabIndex"){var i=b.getAttributeNode("tabIndex");return i&&i.specified?i.value:Zb.test(b.nodeName)||bc.test(b.nodeName)&&b.href?0:c}return b[d]}if(!a.support.style&&f&&d==="style"){g&&(b.style.cssText=""+e);return b.style.cssText}g&&b.setAttribute(d,""+e);if(!b.attributes[d]&&b.hasAttribute&&!b.hasAttribute(d))return c;var k=!a.support.hrefNormalized&&f&&j?b.getAttribute(d,2):b.getAttribute(d);return k===null?c:k}g&&(b[d]=e);return b[d]}});var t=/\.(.*)$/,D=/^(?:textarea|input|select)$/i,dc=/\./g,ec=/ /g,fc=/[^\w\s.|`]/g,hc=function(a){return a.replace(fc,"\\$&")};a.event={add:function(b,o,e,q){if(b.nodeType!==3&&b.nodeType!==8){try{a.isWindow(b)&&b!==d&&!b.frameElement&&(b=d)}catch(s){}if(e===false)e=j;else if(!e)return;var l,g;e.handler&&(l=e,e=l.handler),e.guid||(e.guid=a.guid++);var i=a._data(b);if(!i)return;var m=i.events,h=i.handle;m||(i.events=m={}),h||(i.handle=h=function(){return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(h.elem,arguments):c}),h.elem=b,o=o.split(" ");var f,r=0,k;while(f=o[r++]){g=l?a.extend({},l):{handler:e,data:q},f.indexOf(".")>-1?(k=f.split("."),f=k.shift(),g.namespace=k.slice(0).sort().join(".")):(k=[],g.namespace=""),g.type=f,g.guid||(g.guid=e.guid);var p=m[f],n=a.event.special[f]||{};if(!p){p=m[f]=[];if(!n.setup||n.setup.call(b,q,k,h)===false)b.addEventListener?b.addEventListener(f,h,false):b.attachEvent&&b.attachEvent("on"+f,h)}n.add&&(n.add.call(b,g),g.handler.guid||(g.handler.guid=e.guid)),p.push(g),a.event.global[f]=true}b=null}},global:{},remove:function(f,b,k,o){if(f.nodeType!==3&&f.nodeType!==8){k===false&&(k=j);var t,d,v,e,u=0,p,l,q,m,g,h,r,i=a.hasData(f)&&a._data(f),n=i&&i.events;if(!i||!n)return;b&&b.type&&(k=b.handler,b=b.type);if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(d in n)a.event.remove(f,d+b);return}b=b.split(" ");while(d=b[u++]){r=d,h=null,p=d.indexOf(".")<0,l=[],p||(l=d.split("."),d=l.shift(),q=new RegExp("(^|\\.)"+a.map(l.slice(0).sort(),hc).join("\\.(?:.*\\.)?")+"(\\.|$)")),g=n[d];if(!g)continue;if(!k){for(e=0;e<g.length;e++){h=g[e];if(p||q.test(h.namespace))a.event.remove(f,r,h.handler,e),g.splice(e--,1)}continue}m=a.event.special[d]||{};for(e=o||0;e<g.length;e++){h=g[e];if(k.guid===h.guid){if(p||q.test(h.namespace))o==null&&g.splice(e--,1),m.remove&&m.remove.call(f,h);if(o!=null)break}}if(g.length===0||o!=null&&g.length===1)(!m.teardown||m.teardown.call(f,l)===false)&&a.removeEvent(f,d,i.handle),t=null,delete n[d]}if(a.isEmptyObject(n)){var s=i.handle;s&&(s.elem=null),delete i.events,delete i.handle,a.isEmptyObject(i)&&a.removeData(f,c,true)}}},trigger:function(b,g,d){var e=b.type||b,m=arguments[3];if(!m){b=typeof b==="object"?b[a.expando]?b:a.extend(a.Event(e),b):a.Event(e),e.indexOf("!")>=0&&(b.type=e=e.slice(0,-1),b.exclusive=true),d||(b.stopPropagation(),a.event.global[e]&&a.each(a.cache,function(){var d=a.expando,c=this[d];c&&c.events&&c.events[e]&&a.event.trigger(b,g,c.handle.elem)}));if(!d||d.nodeType===3||d.nodeType===8)return c;b.result=c,b.target=d,g=a.makeArray(g),g.unshift(b)}b.currentTarget=d;var j=a._data(d,"handle");j&&j.apply(d,g);var k=d.parentNode||d.ownerDocument;try{d&&d.nodeName&&a.noData[d.nodeName.toLowerCase()]||d["on"+e]&&d["on"+e].apply(d,g)===false&&(b.result=false,b.preventDefault())}catch(o){}if(!b.isPropagationStopped()&&k)a.event.trigger(b,g,k,true);else if(!b.isDefaultPrevented()){var i,f=b.target,h=e.replace(t,""),n=a.nodeName(f,"a")&&h==="click",l=a.event.special[h]||{};if((!l._default||l._default.call(d,b)===false)&&!n&&!(f&&f.nodeName&&a.noData[f.nodeName.toLowerCase()])){try{f[h]&&(i=f["on"+h],i&&(f["on"+h]=null),a.event.triggered=true,f[h]())}catch(p){}i&&(f["on"+h]=i),a.event.triggered=false}}},handle:function(b){var g,e,h,m,i,j=[],n=a.makeArray(arguments);b=n[0]=a.event.fix(b||d.event),b.currentTarget=this,g=b.type.indexOf(".")<0&&!b.exclusive,g||(h=b.type.split("."),b.type=h.shift(),j=h.slice(0).sort(),m=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),b.namespace=b.namespace||j.join("."),i=a._data(this,"events"),e=(i||{})[b.type];if(i&&e){e=e.slice(0);for(var k=0,o=e.length;k<o;k++){var f=e[k];if(g||m.test(f.namespace)){b.handler=f.handler,b.data=f.data,b.handleObj=f;var l=f.handler.apply(this,n);l!==c&&(b.result=l,l===false&&(b.preventDefault(),b.stopPropagation()));if(b.isImmediatePropagationStopped())break}}}return b.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(d){if(d[a.expando])return d;var h=d;d=a.Event(h);for(var i=this.props.length,g;i;)g=this.props[--i],d[g]=h[g];d.target||(d.target=d.srcElement||b),d.target.nodeType===3&&(d.target=d.target.parentNode),!d.relatedTarget&&d.fromElement&&(d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement);if(d.pageX==null&&d.clientX!=null){var e=b.documentElement,f=b.body;d.pageX=d.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),d.pageY=d.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)}d.which==null&&(d.charCode!=null||d.keyCode!=null)&&(d.which=d.charCode!=null?d.charCode:d.keyCode),!d.metaKey&&d.ctrlKey&&(d.metaKey=d.ctrlKey),!d.which&&d.button!==c&&(d.which=d.button&1?1:d.button&2?3:d.button&4?2:0);return d},guid:1e8,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(b){a.event.add(this,s(b.origType,b.selector),a.extend({},b,{handler:Pb,guid:b.handler.guid}))},remove:function(b){a.event.remove(this,s(b.origType,b.selector),b)}},beforeunload:{setup:function(c,d,b){a.isWindow(this)&&(this.onbeforeunload=b)},teardown:function(b,a){this.onbeforeunload===a&&(this.onbeforeunload=null)}}}},a.removeEvent=b.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,false)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},a.Event=function(b){if(!this.preventDefault)return new a.Event(b);b&&b.type?(this.originalEvent=b,this.type=b.type,this.isDefaultPrevented=b.defaultPrevented||b.returnValue===false||b.getPreventDefault&&b.getPreventDefault()?u:j):this.type=b,this.timeStamp=a.now(),this[a.expando]=true},a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=false)},stopPropagation:function(){this.isPropagationStopped=u;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=true)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u,this.stopPropagation()},isDefaultPrevented:j,isPropagationStopped:j,isImmediatePropagationStopped:j};var gb=function(d){var c=d.relatedTarget;try{if(c!==b&&!c.parentNode)return;while(c&&c!==this)c=c.parentNode;c!==this&&(d.type=d.data,a.event.handle.apply(this,arguments))}catch(e){}},hb=function(b){b.type=b.data,a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,c){a.event.special[b]={setup:function(d){a.event.add(this,c,d&&d.selector?hb:gb,b)},teardown:function(b){a.event.remove(this,c,b&&b.selector?hb:gb)}}}),a.support.submitBubbles||(a.event.special.submit={setup:function(){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")a.event.add(this,"click.specialSubmit",function(d){var b=d.target,c=b.type;(c==="submit"||c==="image")&&a(b).closest("form").length&&V("submit",this,arguments)}),a.event.add(this,"keypress.specialSubmit",function(b){var c=b.target,d=c.type;(d==="text"||d==="password")&&a(c).closest("form").length&&b.keyCode===13&&V("submit",this,arguments)});else return false},teardown:function(){a.event.remove(this,".specialSubmit")}});if(!a.support.changeBubbles){var m,U=function(b){var d=b.type,c=b.value;d==="radio"||d==="checkbox"?c=b.checked:d==="select-multiple"?c=b.selectedIndex>-1?a.map(b.options,function(a){return a.selected}).join("-"):"":b.nodeName.toLowerCase()==="select"&&(c=b.selectedIndex);return c},r=function(d){var b=d.target,e,f;if(D.test(b.nodeName)&&!b.readOnly){e=a._data(b,"_change_data"),f=U(b),(d.type!=="focusout"||b.type!=="radio")&&a._data(b,"_change_data",f);if(e===c||f===e)return;if(e!=null||f)d.type="change",d.liveFired=c,a.event.trigger(d,arguments[1],b)}};a.event.special.change={filters:{focusout:r,beforedeactivate:r,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&r.call(this,a)},keydown:function(a){var c=a.target,b=c.type;(a.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(b==="checkbox"||b==="radio")||b==="select-multiple")&&r.call(this,a)},beforeactivate:function(c){var b=c.target;a._data(b,"_change_data",U(b))}},setup:function(){if(this.type==="file")return false;for(var b in m)a.event.add(this,b+".specialChange",m[b]);return D.test(this.nodeName)},teardown:function(){a.event.remove(this,".specialChange");return D.test(this.nodeName)}},m=a.event.special.change.filters,m.focus=m.beforeactivate}b.addEventListener&&a.each({focus:"focusin",blur:"focusout"},function(b,c){function d(b){b=a.event.fix(b),b.type=c;return a.event.handle.call(this,b)}a.event.special[c]={setup:function(){this.addEventListener(b,d,true)},teardown:function(){this.removeEventListener(b,d,true)}}}),a.each(["bind","one"],function(d,b){a.fn[b]=function(e,d,f){if(typeof e==="object"){for(var h in e)this[b](h,d,e[h],f);return this}if(a.isFunction(d)||d===false)f=d,d=c;var i=b==="one"?a.proxy(f,function(b){a(this).unbind(b,i);return f.apply(this,arguments)}):f;if(e==="unload"&&b!=="one")this.one(e,d,f);else for(var g=0,j=this.length;g<j;g++)a.event.add(this[g],e,i,d);return this}}),a.fn.extend({unbind:function(b,e){if(typeof b!=="object"||b.preventDefault)for(var c=0,f=this.length;c<f;c++)a.event.remove(this[c],b,e);else for(var d in b)this.unbind(d,b[d]);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(b,c){return this.each(function(){a.event.trigger(b,c,this)})},triggerHandler:function(c,d){if(this[0]){var b=a.Event(c);b.preventDefault(),b.stopPropagation(),a.event.trigger(b,d,this[0]);return b.result}},toggle:function(b){var c=arguments,d=1;while(d<c.length)a.proxy(b,c[d++]);return this.click(a.proxy(b,function(f){var e=(a._data(this,"lastToggle"+b.guid)||0)%d;a._data(this,"lastToggle"+b.guid,e+1),f.preventDefault();return c[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var W={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};a.each(["live","die"],function(d,b){a.fn[b]=function(e,g,h,m){var d,p=0,k,f,n,i=m||this.selector,j=m?this:a(this.context);if(typeof e==="object"&&!e.preventDefault){for(var o in e)j[b](o,g,e[o],i);return this}a.isFunction(g)&&(h=g,g=c),e=(e||"").split(" ");while((d=e[p++])!=null){k=t.exec(d),f="",k&&(f=k[0],d=d.replace(t,""));if(d==="hover"){e.push("mouseenter"+f,"mouseleave"+f);continue}n=d,d==="focus"||d==="blur"?(e.push(W[d]+f),d=d+f):d=(W[d]||d)+f;if(b==="live")for(var l=0,q=j.length;l<q;l++)a.event.add(j[l],"live."+s(d,i),{data:g,selector:i,handler:h,origType:d,origHandler:h,preType:n});else j.unbind("live."+s(d,i),h)}return this}}),a.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(c,b){a.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},a.attrFn&&(a.attrFn[b]=true)}),function(){function r(g,f,h,c,k,i){for(var b=0,j=c.length;b<j;b++){var a=c[b];if(a){var e=false;a=a[g];while(a){if(a.sizcache===h){e=c[a.sizset];break}if(a.nodeType===1){i||(a.sizcache=h,a.sizset=b);if(typeof f!=="string"){if(a===f){e=true;break}}else if(d.filter(f,[a]).length>0){e=a;break}}a=a[g]}c[b]=e}}}function q(e,g,f,c,j,h){for(var b=0,i=c.length;b<i;b++){var a=c[b];if(a){var d=false;a=a[e];while(a){if(a.sizcache===f){d=c[a.sizset];break}a.nodeType===1&&!h&&(a.sizcache=f,a.sizset=b);if(a.nodeName.toLowerCase()===g){d=a;break}a=a[e]}c[b]=d}}}var m=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n=0,o=Object.prototype.toString,i=false,p=true,g=/\\/g,j=/\W/;[0,0].sort(function(){p=false;return 0});var d=function(k,c,i,r){i=i||[],c=c||b;var y=c;if(c.nodeType!==1&&c.nodeType!==9)return[];if(!k||typeof k!=="string")return i;var n,l,g,v,j,p,q,h,w=true,u=d.isXML(c),a=[],x=k;do{m.exec(""),n=m.exec(x);if(n){x=n[3],a.push(n[1]);if(n[2]){v=n[3];break}}}while(n);if(a.length>1&&t.exec(k))if(a.length===2&&e.relative[a[0]])l=s(a[0]+a[1],c);else{l=e.relative[a[0]]?[c]:d(a.shift(),c);while(a.length)k=a.shift(),e.relative[k]&&(k+=a.shift()),l=s(k,l)}else{!r&&a.length>1&&c.nodeType===9&&!u&&e.match.ID.test(a[0])&&!e.match.ID.test(a[a.length-1])&&(j=d.find(a.shift(),c,u),c=j.expr?d.filter(j.expr,j.set)[0]:j.set[0]);if(c){j=r?{expr:a.pop(),"set":f(r)}:d.find(a.pop(),a.length===1&&(a[0]==="~"||a[0]==="+")&&c.parentNode?c.parentNode:c,u),l=j.expr?d.filter(j.expr,j.set):j.set,a.length>0?g=f(l):w=false;while(a.length)p=a.pop(),q=p,e.relative[p]?q=a.pop():p="",q==null&&(q=c),e.relative[p](g,q,u)}else g=a=[]}g||(g=l),g||d.error(p||k);if(o.call(g)==="[object Array]")if(w)if(c&&c.nodeType===1)for(h=0;g[h]!=null;h++)g[h]&&(g[h]===true||g[h].nodeType===1&&d.contains(c,g[h]))&&i.push(l[h]);else for(h=0;g[h]!=null;h++)g[h]&&g[h].nodeType===1&&i.push(l[h]);else i.push.apply(i,g);else f(g,i);v&&(d(v,y,i,r),d.uniqueSort(i));return i};d.uniqueSort=function(a){if(l){i=p,a.sort(l);if(i)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},d.matches=function(a,b){return d(a,null,null,b)},d.matchesSelector=function(a,b){return d(b,null,null,[a]).length>0},d.find=function(b,d,j){var c;if(!b)return[];for(var f=0,k=e.order.length;f<k;f++){var a,h=e.order[f];if(a=e.leftMatch[h].exec(b)){var i=a[1];a.splice(1,1);if(i.substr(i.length-1)!=="\\"){a[1]=(a[1]||"").replace(g,""),c=e.find[h](a,d,j);if(c!=null){b=b.replace(e.match[h],"");break}}}}c||(c=typeof d.getElementsByTagName!=="undefined"?d.getElementsByTagName("*"):[]);return{"set":c,expr:b}},d.filter=function(b,h,n,o){var a,g,p=b,i=[],f=h,s=h&&h[0]&&d.isXML(h[0]);while(b&&h.length){for(var j in e.filter)if((a=e.leftMatch[j].exec(b))!=null&&a[2]){var k,l,t=e.filter[j],q=a[1];g=false,a.splice(1,1);if(q.substr(q.length-1)==="\\")continue;f===i&&(i=[]);if(e.preFilter[j]){a=e.preFilter[j](a,f,n,i,o,s);if(a){if(a===true)continue}else g=k=true}if(a)for(var m=0;(l=f[m])!=null;m++)if(l){k=t(l,a,m,f);var r=o^!!k;n&&k!=null?r?g=true:f[m]=false:r&&(i.push(l),g=true)}if(k!==c){n||(f=i),b=b.replace(e.match[j],"");if(!g)return[];break}}if(b===p)if(g==null)d.error(b);else break;p=b}return f},d.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var e=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(c,b){var f=typeof b==="string",g=f&&!j.test(b),h=f&&!g;g&&(b=b.toLowerCase());for(var e=0,i=c.length,a;e<i;e++)if(a=c[e]){while((a=a.previousSibling)&&a.nodeType!==1);c[e]=h||a&&a.nodeName.toLowerCase()===b?a||false:a===b}h&&d.filter(b,c,true)},">":function(e,b){var c,f=typeof b==="string",a=0,g=e.length;if(f&&!j.test(b)){b=b.toLowerCase();for(;a<g;a++){c=e[a];if(c){var h=c.parentNode;e[a]=h.nodeName.toLowerCase()===b?h:false}}}else{for(;a<g;a++)c=e[a],c&&(e[a]=f?c.parentNode:c.parentNode===b);f&&d.filter(b,e,true)}},"":function(d,a,e){var b,f=n++,c=r;typeof a==="string"&&!j.test(a)&&(a=a.toLowerCase(),b=a,c=q),c("parentNode",a,f,d,b,e)},"~":function(d,a,e){var b,f=n++,c=r;typeof a==="string"&&!j.test(a)&&(a=a.toLowerCase(),b=a,c=q),c("previousSibling",a,f,d,b,e)}},find:{ID:function(c,b,d){if(typeof b.getElementById!=="undefined"&&!d){var a=b.getElementById(c[1]);return a&&a.parentNode?[a]:[]}},NAME:function(d,e){if(typeof e.getElementsByName!=="undefined"){for(var b=[],c=e.getElementsByName(d[1]),a=0,f=c.length;a<f;a++)c[a].getAttribute("name")===d[1]&&b.push(c[a]);return b.length===0?null:b}},TAG:function(b,a){if(typeof a.getElementsByTagName!=="undefined")return a.getElementsByTagName(b[1])}},preFilter:{CLASS:function(b,d,e,f,h,i){b=" "+b[1].replace(g,"")+" ";if(i)return b;for(var c=0,a;(a=d[c])!=null;c++)a&&(h^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(b)>=0)?e||f.push(a):e&&(d[c]=false));return false},ID:function(a){return a[1].replace(g,"")},TAG:function(a){return a[1].replace(g,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||d.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&d.error(a[0]);a[0]=n++;return a},ATTR:function(a,d,f,h,i,c){var b=a[1]=a[1].replace(g,"");!c&&e.attrMap[b]&&(a[1]=e.attrMap[b]),a[4]=(a[4]||a[5]||"").replace(g,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,f,g){if(a[1]==="not")if((m.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=d(a[3],null,null,b);else{var h=d.filter(a[3],b,c,true^g);c||f.push.apply(f,h);return false}else if(e.match.POS.test(a[0])||e.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,c,b){return!!d(b[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("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(b,a){return a===0},last:function(c,a,d,b){return a===b.length-1},even:function(b,a){return a%2===0},odd:function(b,a){return a%2===1},lt:function(c,a,b){return a<b[3]-0},gt:function(c,a,b){return a>b[3]-0},nth:function(c,a,b){return b[3]-0===a},eq:function(c,a,b){return b[3]-0===a}},filter:{PSEUDO:function(a,b,i,j){var c=b[1],g=e.filters[c];if(g)return g(a,i,b,j);if(c==="contains")return(a.textContent||a.innerText||d.getText([a])||"").indexOf(b[3])>=0;if(c==="not"){for(var h=b[3],f=0,k=h.length;f<k;f++)if(h[f]===a)return false;return true}d.error(c)},CHILD:function(b,c){var g=c[1],a=b;switch(g){case"only":case"first":while(a=a.previousSibling)if(a.nodeType===1)return false;if(g==="first")return true;a=b;case"last":while(a=a.nextSibling)if(a.nodeType===1)return false;return true;case"nth":var d=c[2],h=c[3];if(d===1&&h===0)return true;var i=c[0],e=b.parentNode;if(e&&(e.sizcache!==i||!b.nodeIndex)){var j=0;for(a=e.firstChild;a;a=a.nextSibling)a.nodeType===1&&(a.nodeIndex=++j);e.sizcache=i}var f=b.nodeIndex-h;return d===0?f===0:f%d===0&&f/d>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(f,g){var d=g[1],h=e.attrHandle[d]?e.attrHandle[d](f):f[d]!=null?f[d]:f.getAttribute(d),b=h+"",c=g[2],a=g[4];return h==null?c==="!=":c==="="?b===a:c==="*="?b.indexOf(a)>=0:c==="~="?(" "+b+" ").indexOf(a)>=0:a?c==="!="?b!==a:c==="^="?b.indexOf(a)===0:c==="$="?b.substr(b.length-a.length)===a:c==="|="?b===a||b.substr(0,a.length+1)===a+"-":false:b&&h!==false},POS:function(c,a,d,f){var g=a[2],b=e.setFilters[g];if(b)return b(c,d,a,f)}}},t=e.match.POS,u=function(b,a){return"\\"+(+a+1)};for(var k in e.match)e.match[k]=new RegExp(e.match[k].source+/(?![^\[]*\])(?![^\(]*\))/.source),e.leftMatch[k]=new RegExp(/(^(?:.|\r|\n)*?)/.source+e.match[k].source.replace(/\\(\d+)/g,u));var f=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(b.documentElement.childNodes,0)[0].nodeType}catch(v){f=function(a,d){var b=0,c=d||[];if(o.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var e=a.length;b<e;b++)c.push(a[b]);else for(;a[b];b++)c.push(a[b]);return c}}var l,h;b.documentElement.compareDocumentPosition?l=function(a,b){if(a===b){i=true;return 0}return!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(l=function(e,f){var g,l,c=[],d=[],j=e.parentNode,k=f.parentNode,b=j;if(e===f){i=true;return 0}if(j===k)return h(e,f);if(!j)return-1;if(!k)return 1;while(b)c.unshift(b),b=b.parentNode;b=k;while(b)d.unshift(b),b=b.parentNode;g=c.length,l=d.length;for(var a=0;a<g&&a<l;a++)if(c[a]!==d[a])return h(c[a],d[a]);return a===g?h(e,d[a],-1):h(c[a],f,1)},h=function(b,c,d){if(b===c)return d;var a=b.nextSibling;while(a){if(a===c)return-1;a=a.nextSibling}return 1}),d.getText=function(e){for(var b="",a,c=0;e[c];c++)a=e[c],a.nodeType===3||a.nodeType===4?b+=a.nodeValue:a.nodeType!==8&&(b+=d.getText(a.childNodes));return b},function(){var a=b.createElement("div"),f="script"+ +new Date,d=b.documentElement;a.innerHTML="<a name='"+f+"'/>",d.insertBefore(a,d.firstChild),b.getElementById(f)&&(e.find.ID=function(b,d,e){if(typeof d.getElementById!=="undefined"&&!e){var a=d.getElementById(b[1]);return a?a.id===b[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===b[1]?[a]:c:[]}},e.filter.ID=function(a,c){var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===c}),d.removeChild(a),d=a=null}(),function(){var a=b.createElement("div");a.appendChild(b.createComment("")),a.getElementsByTagName("*").length>0&&(e.find.TAG=function(c,e){var a=e.getElementsByTagName(c[1]);if(c[1]==="*"){for(var d=[],b=0;a[b];b++)a[b].nodeType===1&&d.push(a[b]);a=d}return a}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(e.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),b.querySelectorAll&&function(){var c=d,a=b.createElement("div"),h="__sizzle__";a.innerHTML="<p class='TEST'></p>";if(!a.querySelectorAll||a.querySelectorAll(".TEST").length!==0){d=function(j,a,g,n){a=a||b;if(!n&&!d.isXML(a)){var i=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(j);if(i&&(a.nodeType===1||a.nodeType===9)){if(i[1])return f(a.getElementsByTagName(j),g);if(i[2]&&e.find.CLASS&&a.getElementsByClassName)return f(a.getElementsByClassName(i[2]),g)}if(a.nodeType===9){if(j==="body"&&a.body)return f([a.body],g);if(i&&i[3]){var k=a.getElementById(i[3]);if(!k||!k.parentNode)return f([],g);if(k.id===i[3])return f([k],g)}try{return f(a.querySelectorAll(j),g)}catch(r){}}else if(a.nodeType===1&&a.nodeName.toLowerCase()!=="object"){var q=a,m=a.getAttribute("id"),l=m||h,o=a.parentNode,p=/^\s*[+~]/.test(j);m?l=l.replace(/'/g,"\\$&"):a.setAttribute("id",l),p&&o&&(a=a.parentNode);try{if(!p||o)return f(a.querySelectorAll("[id='"+l+"'] "+j),g)}catch(s){}finally{m||q.removeAttribute("id")}}}return c(j,a,g,n)};for(var g in c)d[g]=c[g];a=null}}(),function(){var a=b.documentElement,c=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,f=false;try{c.call(b.documentElement,"[test!='']:sizzle")}catch(g){f=true}c&&(d.matchesSelector=function(b,a){a=a.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!d.isXML(b))try{if(f||!e.match.PSEUDO.test(a)&&!/!=/.test(a))return c.call(b,a)}catch(g){}return d(a,null,null,[b]).length>0})}(),function(){var a=b.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";if(a.getElementsByClassName("e").length===1)return;e.order.splice(1,0,"CLASS"),e.find.CLASS=function(b,a,c){if(typeof a.getElementsByClassName!=="undefined"&&!c)return a.getElementsByClassName(b[1])},a=null}}(),b.documentElement.contains?d.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):true)}:b.documentElement.compareDocumentPosition?d.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:d.contains=function(){return false},d.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":false};var s=function(a,b){var f,g=[],h="",i=b.nodeType?[b]:b;while(f=e.match.PSEUDO.exec(a))h+=f[0],a=a.replace(e.match.PSEUDO,"");a=e.relative[a]?a+"*":a;for(var c=0,j=i.length;c<j;c++)d(a,i[c],g);return d.filter(h,g)};a.find=d,a.expr=d.selectors,a.expr[":"]=a.expr.filters,a.unique=d.uniqueSort,a.text=d.getText,a.isXMLDoc=d.isXML,a.contains=d.contains}();var Qb=/Until$/,Rb=/^(?:parents|prevUntil|prevAll)/,Sb=/,/,Tb=/^.[^:#\[\.,]*$/,Wb=Array.prototype.slice,Yb=a.expr.match.POS,ac={children:true,contents:true,next:true,prev:true};a.fn.extend({find:function(g){for(var b=this.pushStack("","find",g),e=0,c=0,h=this.length;c<h;c++){e=b.length,a.find(g,this[c],b);if(c>0)for(var d=e;d<b.length;d++)for(var f=0;f<e;f++)if(b[f]===b[d]){b.splice(d--,1);break}}return b},has:function(c){var b=a(c);return this.filter(function(){for(var c=0,d=b.length;c<d;c++)if(a.contains(this,b[c]))return true})},not:function(a){return this.pushStack(bb(this,a,false),"not",a)},filter:function(a){return this.pushStack(bb(this,a,true),"filter",a)},is:function(b){return!!b&&a.filter(b,this).length>0},closest:function(d,g){var e=[],f,h,b=this[0];if(a.isArray(d)){var i,c,j={},k=1;if(b&&d.length){for(f=0,h=d.length;f<h;f++)c=d[f],j[c]||(j[c]=a.expr.match.POS.test(c)?a(c,g||this.context):c);while(b&&b.ownerDocument&&b!==g){for(c in j)i=j[c],(i.jquery?i.index(b)>-1:a(b).is(i))&&e.push({selector:c,elem:b,level:k});b=b.parentNode,k++}}return e}var l=Yb.test(d)?a(d,g||this.context):null;for(f=0,h=this.length;f<h;f++){b=this[f];while(b){if(l?l.index(b)>-1:a.find.matchesSelector(b,d)){e.push(b);break}b=b.parentNode;if(!b||!b.ownerDocument||b===g)break}}e=e.length>1?a.unique(e):e;return this.pushStack(e,"closest",d)},index:function(b){return!b||typeof b==="string"?a.inArray(this[0],b?a(b):this.parent().children()):a.inArray(b.jquery?b[0]:b,this)},add:function(b,e){var d=typeof b==="string"?a(b,e):a.makeArray(b),c=a.merge(this.get(),d);return this.pushStack(Z(d[0])||Z(c[0])?c:a.unique(c))},andSelf:function(){return this.add(this.prevObject)}}),a.each({parent:function(b){var a=b.parentNode;return a&&a.nodeType!==11?a:null},parents:function(b){return a.dir(b,"parentNode")},parentsUntil:function(b,d,c){return a.dir(b,"parentNode",c)},next:function(b){return a.nth(b,2,"nextSibling")},prev:function(b){return a.nth(b,2,"previousSibling")},nextAll:function(b){return a.dir(b,"nextSibling")},prevAll:function(b){return a.dir(b,"previousSibling")},nextUntil:function(b,d,c){return a.dir(b,"nextSibling",c)},prevUntil:function(b,d,c){return a.dir(b,"previousSibling",c)},siblings:function(b){return a.sibling(b.parentNode.firstChild,b)},children:function(b){return a.sibling(b.firstChild)},contents:function(b){return a.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:a.makeArray(b.childNodes)}},function(b,c){a.fn[b]=function(f,e){var d=a.map(this,c,f),g=Wb.call(arguments);Qb.test(b)||(e=f),e&&typeof e==="string"&&(d=a.filter(e,d)),d=this.length>1&&!ac[b]?a.unique(d):d,(this.length>1||Sb.test(e))&&Rb.test(b)&&(d=d.reverse());return this.pushStack(d,b,g.join(","))}}),a.extend({filter:function(b,c,d){d&&(b=":not("+b+")");return c.length===1?a.find.matchesSelector(c[0],b)?[c[0]]:[]:a.find.matches(b,c)},dir:function(g,d,e){var f=[],b=g[d];while(b&&b.nodeType!==9&&(e===c||b.nodeType!==1||!a(b).is(e)))b.nodeType===1&&f.push(b),b=b[d];return f},nth:function(a,b,c){b=b||1;for(var d=0;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,c){for(var b=[];a;a=a.nextSibling)a.nodeType===1&&a!==c&&b.push(a);return b}});var cc=/ jQuery\d+="(?:\d+|null)"/g,C=/^\s+/,cb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,db=/<([\w:]+)/,gc=/<tbody/i,ic=/<|&#?\w+;/,eb=/<(?:script|object|embed|option|style)/i,fb=/checked\s*(?:[^=]|=\s*.checked.)/i,e={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,"",""]};e.optgroup=e.option,e.tbody=e.tfoot=e.colgroup=e.caption=e.thead,e.th=e.td,a.support.htmlSerialize||(e._default=[1,"div<div>","</div>"]),a.fn.extend({text:function(d){return a.isFunction(d)?this.each(function(c){var b=a(this);b.text(d.call(this,c,b.text()))}):typeof d!=="object"&&d!==c?this.empty().append((this[0]&&this[0].ownerDocument||b).createTextNode(d)):a.text(this)},wrapAll:function(b){if(a.isFunction(b))return this.each(function(c){a(this).wrapAll(b.call(this,c))});if(this[0]){var c=a(b,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]),c.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(b){return a.isFunction(b)?this.each(function(c){a(this).wrapInner(b.call(this,c))}):this.each(function(){var c=a(this),d=c.contents();d.length?d.wrapAll(b):c.append(b)})},wrap:function(b){return this.each(function(){a(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){a.nodeName(this,"body")||a(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var b=a(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,a(arguments[0]).toArray());return b}},remove:function(c,e){for(var d=0,b;(b=this[d])!=null;d++)if(!c||a.filter(c,[b]).length)!e&&b.nodeType===1&&(a.cleanData(b.getElementsByTagName("*")),a.cleanData([b])),b.parentNode&&b.parentNode.removeChild(b);return this},empty:function(){for(var c=0,b;(b=this[c])!=null;c++){b.nodeType===1&&a.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(b,c){b=b==null?false:b,c=c==null?b:c;return this.map(function(){return a.clone(this,b,c)})},html:function(b){if(b===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(cc,""):null;if(typeof b!=="string"||eb.test(b)||!a.support.leadingWhitespace&&C.test(b)||e[(db.exec(b)||["",""])[1].toLowerCase()])a.isFunction(b)?this.each(function(d){var c=a(this);c.html(b.call(this,d,c.html()))}):this.empty().append(b);else{b=b.replace(cb,"<$1></$2>");try{for(var d=0,f=this.length;d<f;d++)this[d].nodeType===1&&(a.cleanData(this[d].getElementsByTagName("*")),this[d].innerHTML=b)}catch(g){this.empty().append(b)}}return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(a.isFunction(b))return this.each(function(d){var c=a(this),e=c.html();c.replaceWith(b.call(this,d,e))});typeof b!=="string"&&(b=a(b).detach());return this.each(function(){var c=this.nextSibling,d=this.parentNode;a(this).remove(),c?a(c).before(b):a(d).append(b)})}return this.pushStack(a(a.isFunction(b)?b():b),"replaceWith",b)},detach:function(a){return this.remove(a,true)},domManip:function(f,d,k){var j,g,b,h,e=f[0],l=[];if(!a.support.checkClone&&arguments.length===3&&typeof e==="string"&&fb.test(e))return this.each(function(){a(this).domManip(f,d,k,true)});if(a.isFunction(e))return this.each(function(g){var b=a(this);f[0]=e.call(this,g,d?b.html():c),b.domManip(f,d,k)});if(this[0]){h=e&&e.parentNode,a.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length?j={fragment:h}:j=a.buildFragment(f,this,l),b=j.fragment,b.childNodes.length===1?g=b=b.firstChild:g=b.firstChild;if(g){d=d&&a.nodeName(g,"tr");for(var i=0,m=this.length,n=m-1;i<m;i++)k.call(d?jc(this[i],g):this[i],j.cacheable||m>1&&i<n?a.clone(b,true,true):b)}l.length&&a.each(l,lb)}return this}}),a.buildFragment=function(c,f,i){var d,g,e,h=f&&f[0]?f[0].ownerDocument||f[0]:b;c.length===1&&typeof c[0]==="string"&&c[0].length<512&&h===b&&c[0].charAt(0)==="<"&&!eb.test(c[0])&&(a.support.checkClone||!fb.test(c[0]))&&(g=true,e=a.fragments[c[0]],e&&e!==1&&(d=e)),d||(d=h.createDocumentFragment(),a.clean(c,h,d,i)),g&&(a.fragments[c[0]]=e?d:1);return{fragment:d,cacheable:g}},a.fragments={},a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){a.fn[b]=function(i){var f=[],d=a(i),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&d.length===1){d[c](this[0]);return this}for(var e=0,j=d.length;e<j;e++){var h=(e>0?this.clone(true):this).get();a(d[e])[c](h),f=f.concat(h)}return this.pushStack(f,b,d.selector)}}),a.extend({clone:function(c,g,h){var e=c.cloneNode(true),d,f,b;if((!a.support.noCloneEvent||!a.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!a.isXMLDoc(c)){T(c,e),d=v(c),f=v(e);for(b=0;d[b];++b)T(d[b],f[b])}if(g){ib(c,e);if(h){d=v(c),f=v(e);for(b=0;d[b];++b)ib(d[b],f[b])}}return e},clean:function(p,g,l,m){g=g||b,typeof g.createElement==="undefined"&&(g=g.ownerDocument||g[0]&&g[0].ownerDocument||b);for(var d=[],f=0,c;(c=p[f])!=null;f++){typeof c==="number"&&(c+="");if(!c)continue;if(typeof c!=="string"||ic.test(c)){if(typeof c==="string"){c=c.replace(cb,"<$1></$2>");var n=(db.exec(c)||["",""])[1].toLowerCase(),k=e[n]||e._default,q=k[0],h=g.createElement("div");h.innerHTML=k[1]+c+k[2];while(q--)h=h.lastChild;if(!a.support.tbody)for(var o=gc.test(c),j=n==="table"&&!o?h.firstChild&&h.firstChild.childNodes:k[1]==="<table>"&&!o?h.childNodes:[],i=j.length-1;i>=0;--i)a.nodeName(j[i],"tbody")&&!j[i].childNodes.length&&j[i].parentNode.removeChild(j[i]);!a.support.leadingWhitespace&&C.test(c)&&h.insertBefore(g.createTextNode(C.exec(c)[0]),h.firstChild),c=h.childNodes}}else c=g.createTextNode(c);c.nodeType?d.push(c):d=a.merge(d,c)}if(l)for(f=0;d[f];f++)!m||!a.nodeName(d[f],"script")||d[f].type&&d[f].type.toLowerCase()!=="text/javascript"?(d[f].nodeType===1&&d.splice.apply(d,[f+1,0].concat(a.makeArray(d[f].getElementsByTagName("script")))),l.appendChild(d[f])):m.push(d[f].parentNode?d[f].parentNode.removeChild(d[f]):d[f]);return d},cleanData:function(h){for(var c,d,e=a.cache,i=a.expando,j=a.event.special,k=a.support.deleteExpando,g=0,b;(b=h[g])!=null;g++){if(b.nodeName&&a.noData[b.nodeName.toLowerCase()])continue;d=b[a.expando];if(d){c=e[d]&&e[d][i];if(c&&c.events){for(var f in c.events)j[f]?a.event.remove(b,f):a.removeEvent(b,f,c.handle);c.handle&&(c.handle.elem=null)}k?delete b[a.expando]:b.removeAttribute&&b.removeAttribute(a.expando),delete e[d]}}}});var F=/alpha\([^)]*\)/i,nb=/opacity=([^)]*)/,pb=/-([a-z])/ig,qb=/([A-Z])/g,H=/^-?\d+(?:px)?$/i,sb=/^-?\d/,tb={position:"absolute",visibility:"hidden",display:"block"},ub=["Left","Right"],vb=["Top","Bottom"],k,K,n,wb=function(b,a){return a.toUpperCase()};a.fn.css=function(d,b){return arguments.length===2&&b===c?this:a.access(this,d,b,true,function(b,d,e){return e!==c?a.style(b,d,e):a.css(b,d)})},a.extend({cssHooks:{opacity:{"get":function(a,c){if(c){var b=k(a,"opacity","opacity");return b===""?"1":b}return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":a.support.cssFloat?"cssFloat":"styleFloat"},style:function(d,f,b,j){if(d&&d.nodeType!==3&&d.nodeType!==8&&d.style){var h,g=a.camelCase(f),i=d.style,e=a.cssHooks[g];f=a.cssProps[g]||g;if(b===c)return e&&"get"in e&&(h=e.get(d,false,j))!==c?h:i[f];if(typeof b==="number"&&isNaN(b)||b==null)return;typeof b==="number"&&!a.cssNumber[g]&&(b+="px");if(!e||!("set"in e)||(b=e.set(d,b))!==c)try{i[f]=b}catch(k){}}},css:function(f,d,h){var g,b=a.camelCase(d),e=a.cssHooks[b];d=a.cssProps[b]||b;return e&&"get"in e&&(g=e.get(f,true,h))!==c?g:k?k(f,d,b):void 0},swap:function(b,c,e){var d={};for(var a in c)d[a]=b.style[a],b.style[a]=c[a];e.call(b);for(a in c)b.style[a]=d[a]},camelCase:function(a){return a.replace(pb,wb)}}),a.curCSS=a.css,a.each(["height","width"],function(c,b){a.cssHooks[b]={"get":function(d,f,e){var c;if(f){d.offsetWidth!==0?c=M(d,b,e):a.swap(d,tb,function(){c=M(d,b,e)});if(c<=0){c=k(d,b,b),c==="0px"&&n&&(c=n(d,b,b));if(c!=null)return c===""||c==="auto"?"0px":c}if(c<0||c==null){c=d.style[b];return c===""||c==="auto"?"0px":c}return typeof c==="string"?c:c+"px"}},"set":function(b,a){if(!H.test(a))return a;a=parseFloat(a);if(a>=0)return a+"px"}}}),a.support.opacity||(a.cssHooks.opacity={"get":function(a,b){return nb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},"set":function(f,c){var b=f.style;b.zoom=1;var d=a.isNaN(c)?"":"alpha(opacity="+c*100+")",e=b.filter||"";b.filter=F.test(e)?e.replace(F,d):b.filter+" "+d}}),b.defaultView&&b.defaultView.getComputedStyle&&(K=function(b,h,d){var e,f,g;d=d.replace(qb,"-$1").toLowerCase();if(!(f=b.ownerDocument.defaultView))return c;if(g=f.getComputedStyle(b,null))e=g.getPropertyValue(d),e===""&&!a.contains(b.ownerDocument.documentElement,b)&&(e=a.style(b,d));return e}),b.documentElement.currentStyle&&(n=function(a,d){var f,b=a.currentStyle&&a.currentStyle[d],e=a.runtimeStyle&&a.runtimeStyle[d],c=a.style;!H.test(b)&&sb.test(b)&&(f=c.left,e&&(a.runtimeStyle.left=a.currentStyle.left),c.left=d==="fontSize"?"1em":b||0,b=c.pixelLeft+"px",c.left=f,e&&(a.runtimeStyle.left=e));return b===""?"auto":b}),k=K||n,a.expr&&a.expr.filters&&(a.expr.filters.hidden=function(b){var c=b.offsetWidth,d=b.offsetHeight;return c===0&&d===0||!a.support.reliableHiddenOffsets&&(b.style.display||a.css(b,"display"))==="none"},a.expr.filters.visible=function(b){return!a.expr.filters.hidden(b)});var xb=/%20/g,Ab=/\[\]$/,N=/\r?\n/g,Cb=/#.*$/,Db=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Fb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Gb=/(?:^file|^widget|\-extension):$/,Hb=/^(?:GET|HEAD)$/,Jb=/^\/\//,P=/\?/,Lb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,kb=/^(?:select|textarea)/i,E=/\s+/,mb=/([?&])_=[^&]*/,ob=/(^|\-)([a-z])/g,rb=function(c,a,b){return a+b.toUpperCase()},G=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,I=a.fn.load,w={},J={},f,g;try{f=b.location.href}catch(kc){f=b.createElement("a"),f.href="",f=f.href}g=G.exec(f.toLowerCase()),a.fn.extend({load:function(d,b,e){if(typeof d!=="string"&&I)return I.apply(this,arguments);if(!this.length)return this;var f=d.indexOf(" ");if(f>=0){var g=d.slice(f,d.length);d=d.slice(0,f)}var h="GET";b&&(a.isFunction(b)?(e=b,b=c):typeof b==="object"&&(b=a.param(b,a.ajaxSettings.traditional),h="POST"));var i=this;a.ajax({url:d,type:h,dataType:"html",data:b,complete:function(c,d,b){b=c.responseText,c.isResolved()&&(c.done(function(a){b=a}),i.html(g?a("<div>").append(b.replace(Lb,"")).find(g):b)),e&&i.each(e,[b,d,c])}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||kb.test(this.nodeName)||Fb.test(this.type))}).map(function(d,c){var b=a(this).val();return b==null?null:a.isArray(b)?a.map(b,function(a){return{name:c.name,value:a.replace(N,"\r\n")}}):{name:c.name,value:b.replace(N,"\r\n")}}).get()}}),a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,b){a.fn[b]=function(a){return this.bind(b,a)}}),a.each(["get","post"],function(d,b){a[b]=function(g,d,e,f){a.isFunction(d)&&(f=f||e,e=d,d=c);return a.ajax({type:b,url:g,data:d,success:e,dataType:f})}}),a.extend({getScript:function(b,d){return a.get(b,c,d,"script")},getJSON:function(b,c,d){return a.get(b,c,d,"json")},ajaxSetup:function(b,c){c?a.extend(true,b,a.ajaxSettings,c):(c=b,b=a.extend(true,a.ajaxSettings,c));for(var d in{context:1,url:1})d in c?b[d]=c[d]:d in a.ajaxSettings&&(b[d]=a.ajaxSettings[d]);return b},ajaxSettings:{url:f,isLocal:Gb.test(g[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":d.String,"text html":true,"text json":a.parseJSON,"text xml":a.parseXML}},ajaxPrefilter:L(w),ajaxTransport:L(J),ajax:function(p,i){function s(i,g,o,s){if(e!==2){e=2,x&&clearTimeout(x),k=c,v=s||"",d.readyState=i?4:0;var j,m,l,w=o?yb(b,d,o):c,p,r;if(i>=200&&i<300||i===304){if(b.ifModified){if(p=d.getResponseHeader("Last-Modified"))a.lastModified[f]=p;if(r=d.getResponseHeader("Etag"))a.etag[f]=r}if(i===304)g="notmodified",j=true;else try{m=zb(b,w),g="success",j=true}catch(z){g="parsererror",l=z}}else{l=g;if(!g||i)g="error",i<0&&(i=0)}d.status=i,d.statusText=g,j?u.resolveWith(h,[m,g,d]):u.rejectWith(h,[d,g,l]),d.statusCode(q),q=c,n&&t.trigger("ajax"+(j?"Success":"Error"),[d,b,j?m:l]),y.resolveWith(h,[d,g]),n&&(t.trigger("ajaxComplete",[d,b]),--a.active||a.event.trigger("ajaxStop"))}}typeof p==="object"&&(i=p,p=c),i=i||{};var b=a.ajaxSetup({},i),h=b.context||b,t=h!==b&&(h.nodeType||h instanceof a)?a(h):a.event,u=a.Deferred(),y=a._Deferred(),q=b.statusCode||{},f,j={},v,r,k,x,l,e=0,n,m,d={readyState:0,setRequestHeader:function(a,b){e||(j[a.toLowerCase().replace(ob,rb)]=b);return this},getAllResponseHeaders:function(){return e===2?v:null},getResponseHeader:function(b){var a;if(e===2){if(!r){r={};while(a=Db.exec(v))r[a[1].toLowerCase()]=a[2]}a=r[b.toLowerCase()]}return a===c?null:a},overrideMimeType:function(a){e||(b.mimeType=a);return this},abort:function(a){a=a||"abort",k&&k.abort(a),s(0,a);return this}};u.promise(d),d.success=d.done,d.error=d.fail,d.complete=y.done,d.statusCode=function(b){if(b){var a;if(e<2)for(a in b)q[a]=[q[a],b[a]];else a=b[d.status],d.then(a,a)}return this},b.url=((p||b.url)+"").replace(Cb,"").replace(Jb,g[1]+"//"),b.dataTypes=a.trim(b.dataType||"*").toLowerCase().split(E),b.crossDomain||(l=G.exec(b.url.toLowerCase()),b.crossDomain=l&&(l[1]!=g[1]||l[2]!=g[2]||(l[3]||(l[1]==="http:"?80:443))!=(g[3]||(g[1]==="http:"?80:443)))),b.data&&b.processData&&typeof b.data!=="string"&&(b.data=a.param(b.data,b.traditional)),o(w,b,i,d);if(e===2)return false;n=b.global,b.type=b.type.toUpperCase(),b.hasContent=!Hb.test(b.type),n&&a.active++===0&&a.event.trigger("ajaxStart");if(!b.hasContent){b.data&&(b.url+=(P.test(b.url)?"&":"?")+b.data),f=b.url;if(b.cache===false){var z=a.now(),A=b.url.replace(mb,"$1_="+z);b.url=A+(A===b.url?(P.test(b.url)?"&":"?")+"_="+z:"")}}if(b.data&&b.hasContent&&b.contentType!==false||i.contentType)j["Content-Type"]=b.contentType;b.ifModified&&(f=f||b.url,a.lastModified[f]&&(j["If-Modified-Since"]=a.lastModified[f]),a.etag[f]&&(j["If-None-Match"]=a.etag[f])),j.Accept=b.dataTypes[0]&&b.accepts[b.dataTypes[0]]?b.accepts[b.dataTypes[0]]+(b.dataTypes[0]!=="*"?", */*; q=0.01":""):b.accepts["*"];for(m in b.headers)d.setRequestHeader(m,b.headers[m]);if(b.beforeSend&&(b.beforeSend.call(h,d,b)===false||e===2)){d.abort();return false}for(m in{success:1,error:1,complete:1})d[m](b[m]);k=o(J,b,i,d);if(k){d.readyState=1,n&&t.trigger("ajaxSend",[d,b]),b.async&&b.timeout>0&&(x=setTimeout(function(){d.abort("timeout")},b.timeout));try{e=1,k.send(j,s)}catch(B){status<2?s(-1,B):a.error(B)}}else s(-1,"No Transport");return d},param:function(b,d){var e=[],f=function(c,b){b=a.isFunction(b)?b():b,e[e.length]=encodeURIComponent(c)+"="+encodeURIComponent(b)};d===c&&(d=a.ajaxSettings.traditional);if(a.isArray(b)||b.jquery&&!a.isPlainObject(b))a.each(b,function(){f(this.name,this.value)});else for(var g in b)x(g,b[g],d,f);return e.join("&").replace(xb,"+")}}),a.extend({active:0,lastModified:{},etag:{}});var Bb=a.now(),p=/(\=)\?(&|$)|()\?\?()/i;a.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return a.expando+"_"+Bb++}}),a.ajaxPrefilter("json jsonp",function(b,h,m){var i=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||h.jsonpCallback||h.jsonp!=null||b.jsonp!==false&&(p.test(b.url)||i&&p.test(b.data))){var f,c=b.jsonpCallback=a.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,j=d[c],e=b.url,g=b.data,k="$1"+c+"$2",l=function(){d[c]=j,f&&a.isFunction(j)&&d[c](f[0])};b.jsonp!==false&&(e=e.replace(p,k),b.url===e&&(i&&(g=g.replace(p,k)),b.data===g&&(e+=(/\?/.test(e)?"&":"?")+b.jsonp+"="+c))),b.url=e,b.data=g,d[c]=function(a){f=[a]},m.then(l,l),b.converters["script json"]=function(){f||a.error(c+" was not called");return f[0]},b.dataTypes[0]="json";return"script"}}),a.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(b){a.globalEval(b);return b}}}),a.ajaxPrefilter("script",function(a){a.cache===c&&(a.cache=false),a.crossDomain&&(a.type="GET",a.global=false)}),a.ajaxTransport("script",function(d){if(d.crossDomain){var a,e=b.head||b.getElementsByTagName("head")[0]||b.documentElement;return{send:function(g,f){a=b.createElement("script"),a.async="async",d.scriptCharset&&(a.charset=d.scriptCharset),a.src=d.url,a.onload=a.onreadystatechange=function(d,b){if(!a.readyState||/loaded|complete/.test(a.readyState))a.onload=a.onreadystatechange=null,e&&a.parentNode&&e.removeChild(a),a=c,b||f(200,"success")},e.insertBefore(a,e.firstChild)},abort:function(){a&&a.onload(0,1)}}}});var Eb=a.now(),h,l;a.ajaxSettings.xhr=d.ActiveXObject?function(){return!this.isLocal&&O()||Kb()}:O,l=a.ajaxSettings.xhr(),a.support.ajax=!!l,a.support.cors=l&&"withCredentials"in l,l=c,a.support.ajax&&a.ajaxTransport(function(b){if(!b.crossDomain||a.support.cors){var d;return{send:function(g,j){var e=b.xhr(),i,f;b.username?e.open(b.type,b.url,b.async,b.username,b.password):e.open(b.type,b.url,b.async);if(b.xhrFields)for(f in b.xhrFields)e[f]=b.xhrFields[f];b.mimeType&&e.overrideMimeType&&e.overrideMimeType(b.mimeType),(!b.crossDomain||b.hasContent)&&!g["X-Requested-With"]&&(g["X-Requested-With"]="XMLHttpRequest");try{for(f in g)e.setRequestHeader(f,g[f])}catch(k){}e.send(b.hasContent&&b.data||null),d=function(o,l){var f,m,n,g,k;try{if(d&&(l||e.readyState===4)){d=c,i&&(e.onreadystatechange=a.noop,delete h[i]);if(l)e.readyState!==4&&e.abort();else{f=e.status,n=e.getAllResponseHeaders(),g={},k=e.responseXML,k&&k.documentElement&&(g.xml=k),g.text=e.responseText;try{m=e.statusText}catch(p){m=""}f||!b.isLocal||b.crossDomain?f===1223&&(f=204):f=g.text?200:404}}}catch(q){l||j(-1,q)}g&&j(f,m,g,n)},b.async&&e.readyState!==4?(h||(h={},Ib()),i=Eb++,e.onreadystatechange=h[i]=d):d()},abort:function(){d&&d(0,1)}}}});var y={},jb=/^(?:toggle|show|hide)$/,Mb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,q,Q=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];a.fn.extend({show:function(e,g,h){var b,c;if(e||e===0)return this.animate(i("show",3),e,g,h);for(var d=0,f=this.length;d<f;d++)b=this[d],c=b.style.display,!a._data(b,"olddisplay")&&c==="none"&&(c=b.style.display=""),c===""&&a.css(b,"display")==="none"&&a._data(b,"olddisplay",R(b.nodeName));for(d=0;d<f;d++){b=this[d],c=b.style.display;if(c===""||c==="none")b.style.display=a._data(b,"olddisplay")||""}return this},hide:function(c,f,g){if(c||c===0)return this.animate(i("hide",3),c,f,g);for(var b=0,d=this.length;b<d;b++){var e=a.css(this[b],"display");e!=="none"&&!a._data(this[b],"olddisplay")&&a._data(this[b],"olddisplay",e)}for(b=0;b<d;b++)this[b].style.display="none";return this},_toggle:a.fn.toggle,toggle:function(b,c,e){var d=typeof b==="boolean";a.isFunction(b)&&a.isFunction(c)?this._toggle.apply(this,arguments):b==null||d?this.each(function(){var c=d?b:a(this).is(":hidden");a(this)[c?"show":"hide"]()}):this.animate(i("toggle",3),b,c,e);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(b,d,e,f){var c=a.speed(d,e,f);return a.isEmptyObject(b)?this.each(c.complete):this[c.queue===false?"each":"queue"](function(){var e=a.extend({},c),d,i=this.nodeType===1,f=i&&a(this).is(":hidden"),g=this;for(d in b){var h=a.camelCase(d);d!==h&&(b[h]=b[d],delete b[d],d=h);if(b[d]==="hide"&&f||b[d]==="show"&&!f)return e.complete.call(this);if(i&&(d==="height"||d==="width")){e.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(a.css(this,"display")==="inline"&&a.css(this,"float")==="none")if(a.support.inlineBlockNeedsLayout){var j=R(this.nodeName);j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else this.style.display="inline-block"}a.isArray(b[d])&&((e.specialEasing=e.specialEasing||{})[d]=b[d][1],b[d]=b[d][0])}e.overflow!=null&&(this.style.overflow="hidden"),e.curAnim=a.extend({},b),a.each(b,function(k,d){var h=new a.fx(g,e,k);if(jb.test(d))h[d==="toggle"?f?"show":"hide":d](b);else{var i=Mb.exec(d),c=h.cur();if(i){var j=parseFloat(i[2]),l=i[3]||(a.cssNumber[k]?"":"px");l!=="px"&&(a.style(g,k,(j||1)+l),c=(j||1)/h.cur()*c,a.style(g,k,c+l)),i[1]&&(j=(i[1]==="-="?-1:1)*j+c),h.custom(c,j,l)}else h.custom(c,d,"")}});return true})},stop:function(d,c){var b=a.timers;d&&this.queue([]),this.each(function(){for(var a=b.length-1;a>=0;a--)b[a].elem===this&&(c&&b[a](true),b.splice(a,1))}),c||this.dequeue();return this}}),a.each({slideDown:i("show",1),slideUp:i("hide",1),slideToggle:i("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(b,c){a.fn[b]=function(a,b,d){return this.animate(c,a,b,d)}}),a.extend({speed:function(c,d,e){var b=c&&typeof c==="object"?a.extend({},c):{complete:e||!e&&d||a.isFunction(c)&&c,duration:c,easing:e&&d||d&&!a.isFunction(d)&&d};b.duration=a.fx.off?0:typeof b.duration==="number"?b.duration:b.duration in a.fx.speeds?a.fx.speeds[b.duration]:a.fx.speeds._default,b.old=b.complete,b.complete=function(){b.queue!==false&&a(this).dequeue(),a.isFunction(b.old)&&b.old.call(this)};return b},easing:{linear:function(a,d,b,c){return b+c*a},swing:function(a,d,b,c){return(-Math.cos(a*Math.PI)/2+.5)*c+b}},timers:[],fx:function(b,a,c){this.options=a,this.elem=b,this.prop=c,a.orig||(a.orig={})}}),a.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(a.fx.step[this.prop]||a.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 c,b=a.css(this.elem,this.prop);return isNaN(c=parseFloat(b))?!b||b==="auto"?0:b:c},custom:function(d,e,f){function b(a){return g.step(a)}var g=this,c=a.fx;this.startTime=a.now(),this.start=d,this.end=e,this.unit=f||this.unit||(a.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,b.elem=this.elem,b()&&a.timers.push(b)&&!q&&(q=setInterval(c.tick,c.interval))},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop),this.options.show=true,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop),this.options.hide=true,this.custom(this.cur(),0)},step:function(f){var b=a.now(),c=true;if(f||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=true;for(var g in this.options.curAnim)this.options.curAnim[g]!==true&&(c=false);if(c){if(this.options.overflow!=null&&!a.support.shrinkWrapBlocks){var h=this.elem,i=this.options;a.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]})}this.options.hide&&a(this.elem).hide();if(this.options.hide||this.options.show)for(var d in this.options.curAnim)a.style(this.elem,d,this.options.orig[d]);this.options.complete.call(this.elem)}return false}var e=b-this.startTime;this.state=e/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(a.easing.swing?"swing":"linear");this.pos=a.easing[j||k](this.state,e,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return true}},a.extend(a.fx,{tick:function(){for(var b=a.timers,c=0;c<b.length;c++)b[c]()||b.splice(c--,1);b.length||a.fx.stop()},interval:13,stop:function(){clearInterval(q),q=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){a.style(b.elem,"opacity",b.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}}}),a.expr&&a.expr.filters&&(a.expr.filters.animated=function(b){return a.grep(a.timers,function(a){return b===a.elem}).length});var Nb=/^t(?:able|d|h)$/i,S=/^(?:body|html)$/i;"getBoundingClientRect"in b.documentElement?a.fn.offset=function(g){var b=this[0],c;if(g)return this.each(function(b){a.offset.setOffset(this,g,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(o){}var f=b.ownerDocument,d=f.documentElement;if(!c||!a.contains(d,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var e=f.body,h=z(f),i=d.clientTop||e.clientTop||0,j=d.clientLeft||e.clientLeft||0,k=h.pageYOffset||a.support.boxModel&&d.scrollTop||e.scrollTop,l=h.pageXOffset||a.support.boxModel&&d.scrollLeft||e.scrollLeft,m=c.top+k-i,n=c.left+l-j;return{top:m,left:n}}:a.fn.offset=function(l){var b=this[0];if(l)return this.each(function(b){a.offset.setOffset(this,l,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);a.offset.initialize();var c,i=b.offsetParent,m=b,j=b.ownerDocument,k=j.documentElement,f=j.body,h=j.defaultView,g=h?h.getComputedStyle(b,null):b.currentStyle,d=b.offsetTop,e=b.offsetLeft;while((b=b.parentNode)&&b!==f&&b!==k){if(a.offset.supportsFixedPosition&&g.position==="fixed")break;c=h?h.getComputedStyle(b,null):b.currentStyle,d-=b.scrollTop,e-=b.scrollLeft,b===i&&(d+=b.offsetTop,e+=b.offsetLeft,a.offset.doesNotAddBorder&&(!a.offset.doesAddBorderForTableAndCells||!Nb.test(b.nodeName))&&(d+=parseFloat(c.borderTopWidth)||0,e+=parseFloat(c.borderLeftWidth)||0),m=i,i=b.offsetParent),a.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(d+=parseFloat(c.borderTopWidth)||0,e+=parseFloat(c.borderLeftWidth)||0),g=c}if(g.position==="relative"||g.position==="static")d+=f.offsetTop,e+=f.offsetLeft;a.offset.supportsFixedPosition&&g.position==="fixed"&&(d+=Math.max(k.scrollTop,f.scrollTop),e+=Math.max(k.scrollLeft,f.scrollLeft));return{top:d,left:e}},a.offset={initialize:function(){var d=b.body,e=b.createElement("div"),f,c,h,g,i=parseFloat(a.css(d,"marginTop"))||0,j="<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.extend(e.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),e.innerHTML=j,d.insertBefore(e,d.firstChild),f=e.firstChild,c=f.firstChild,g=f.nextSibling.firstChild.firstChild,this.doesNotAddBorder=c.offsetTop!==5,this.doesAddBorderForTableAndCells=g.offsetTop===5,c.style.position="fixed",c.style.top="20px",this.supportsFixedPosition=c.offsetTop===20||c.offsetTop===15,c.style.position=c.style.top="",f.style.overflow="hidden",f.style.position="relative",this.subtractsBorderForOverflowNotVisible=c.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=d.offsetTop!==i,d.removeChild(e),d=e=f=c=h=g=null,a.offset.initialize=a.noop},bodyOffset:function(b){var c=b.offsetTop,d=b.offsetLeft;a.offset.initialize(),a.offset.doesNotIncludeMarginInBodyOffset&&(c+=parseFloat(a.css(b,"marginTop"))||0,d+=parseFloat(a.css(b,"marginLeft"))||0);return{top:c,left:d}},setOffset:function(c,b,n){var i=a.css(c,"position");i==="static"&&(c.style.position="relative");var e=a(c),f=e.offset(),j=a.css(c,"top"),k=a.css(c,"left"),g=i==="absolute"&&a.inArray("auto",[j,k])>-1,d={},h={},l,m;g&&(h=e.position()),l=g?h.top:parseInt(j,10)||0,m=g?h.left:parseInt(k,10)||0,a.isFunction(b)&&(b=b.call(c,n,f)),b.top!=null&&(d.top=b.top-f.top+l),b.left!=null&&(d.left=b.left-f.left+m),"using"in b?b.using.call(c,d):e.css(d)}},a.fn.extend({position:function(){if(!this[0])return null;var e=this[0],b=this.offsetParent(),c=this.offset(),d=S.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(a.css(e,"marginTop"))||0,c.left-=parseFloat(a.css(e,"marginLeft"))||0,d.top+=parseFloat(a.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(a.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var c=this.offsetParent||b.body;while(c&&!S.test(c.nodeName)&&a.css(c,"position")==="static")c=c.offsetParent;return c})}}),a.each(["Left","Top"],function(d,e){var b="scroll"+e;a.fn[b]=function(f){var g=this[0],e;if(!g)return null;if(f!==c)return this.each(function(){e=z(this),e?e.scrollTo(d?a(e).scrollLeft():f,d?f:a(e).scrollTop()):this[b]=f});e=z(g);return e?"pageXOffset"in e?e[d?"pageYOffset":"pageXOffset"]:a.support.boxModel&&e.document.documentElement[b]||e.document.body[b]:g[b]}}),a.each(["Height","Width"],function(e,b){var d=b.toLowerCase();a.fn["inner"+b]=function(){return this[0]?parseFloat(a.css(this[0],d,"padding")):null},a.fn["outer"+b]=function(b){return this[0]?parseFloat(a.css(this[0],d,b?"margin":"border")):null},a.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(a.isFunction(f))return this.each(function(c){var b=a(this);b[d](f.call(this,c,b[d]()))});if(a.isWindow(e)){var g=e.document.documentElement["client"+b];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+b]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]);if(f===c){var h=a.css(e,d),i=parseFloat(h);return a.isNaN(i)?h:i}return this.css(d,typeof f==="string"?f:f+"px")}}),d.jQuery=d.$=a})(window);(function(a){a.extend(a.fn,{validate:function(c){if(this.length){var b=a.data(this[0],"validator");if(b)return b;b=new a.validator(c,this[0]);a.data(this[0],"validator",b);if(b.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){b.cancelSubmit=true});b.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){b.submitButton=this});this.submit(function(d){function c(){if(b.settings.submitHandler){if(b.submitButton)var c=a("<input type='hidden'/>").attr("name",b.submitButton.name).val(b.submitButton.value).appendTo(b.currentForm);b.settings.submitHandler.call(b,b.currentForm);b.submitButton&&c.remove();return false}return true}b.settings.debug&&d.preventDefault();if(b.cancelSubmit){b.cancelSubmit=false;return c()}if(b.form()){if(b.pendingRequest){b.formSubmitted=true;return false}return c()}else{b.focusInvalid();return false}})}return b}else c&&c.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(a(this[0]).is("form"))return this.validate().form();else{var b=true,c=a(this[0].form).validate();this.each(function(){b&=c.element(this)});return b}},removeAttrs:function(d){var b={},c=this;a.each(d.split(/\s/),function(d,a){b[a]=c.attr(a);c.removeAttr(a)});return b},rules:function(f,c){var b=this[0];if(f){var d=a.data(b.form,"validator").settings,g=d.rules,e=a.validator.staticRules(b);switch(f){case"add":a.extend(e,a.validator.normalizeRule(c));g[b.name]=e;if(c.messages)d.messages[b.name]=a.extend(d.messages[b.name],c.messages);break;case"remove":if(!c){delete g[b.name];return e}var h={};a.each(c.split(/\s/),function(b,a){h[a]=e[a];delete e[a]});return h}}b=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(b),a.validator.classRules(b),a.validator.attributeRules(b),a.validator.staticRules(b)),b);if(b.required){d=b.required;delete b.required;b=a.extend({required:d},b)}return b}});a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+b.value)},filled:function(b){return!!a.trim(""+b.value)},unchecked:function(a){return!a.checked}});a.validator=function(b,c){this.settings=a.extend(true,{},a.validator.defaults,b);this.currentForm=c;this.init()};a.validator.format=function(c,b){if(arguments.length==1)return function(){var b=a.makeArray(arguments);b.unshift(c);return a.validator.format.apply(this,b)};if(arguments.length>2&&b.constructor!=Array)b=a.makeArray(arguments).slice(1);if(b.constructor!=Array)b=[b];a.each(b,function(a,b){c=c.replace(RegExp("\\{"+a+"\\}","g"),b)});return c};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(a)).hide()}},onfocusout:function(a){!this.checkable(a)&&(a.name in this.submitted||!this.optional(a))&&this.element(a)},onkeyup:function(a){(a.name in this.submitted||a==this.lastElement)&&this.element(a)},onclick:function(a){if(a.name in this.submitted)this.element(a);else a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function b(b){var c=a.data(this[0].form,"validator");b="on"+b.type.replace(/^validate/,"");c.settings[b]&&c.settings[b].call(c,this[0])}this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var d=this.groups={};a.each(this.settings.groups,function(b,c){a.each(c.split(/\s/),function(c,a){d[a]=b})});var c=this.settings.rules;a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)});a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",b).validateDelegate(":radio, :checkbox, select, option","click",b);this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){this.lastElement=b=this.clean(b);this.prepareElement(b);this.currentElements=a(b);var c=this.check(b);if(c)delete this.invalid[b.name];else this.invalid[b.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return c},showErrors:function(b){if(b){a.extend(this.errorMap,b);this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(b){var a=0,c;for(c in b)a++;return a},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(a){return a.element.name==b.name}).length==1&&b},elements:function(){var b=this,c={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this);return this.name in c||!b.objectLength(a(this).rules())?false:c[this.name]=true})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(b){b=this.clean(b);if(this.checkable(b))b=this.findByName(b.name).not(this.settings.ignore)[0];var d=a(b).rules(),e=false,c;for(c in d){var f={method:c,parameters:d[c]};try{var g=a.validator.methods[c].call(this,b.value.replace(/\r/g,""),b,f.parameters);if(g=="dependency-mismatch")e=true;else{e=false;if(g=="pending"){this.toHide=this.toHide.not(this.errorsFor(b));return}if(!g){this.formatAndAdd(b,f);return false}}}catch(h){this.settings.debug&&window.console&&console.log("exception occured when checking element "+b.id+", check the '"+f.method+"' method",h);throw h;}}if(!e){this.objectLength(d)&&this.successList.push(b);return true}},customMetaMessage:function(c,d){if(a.metadata){var b=this.settings.meta?a(c).metadata()[this.settings.meta]:a(c).metadata();return b&&b.messages&&b.messages[d]}},customMessage:function(b,c){var a=this.settings.messages[b];return a&&(a.constructor==String?a:a[c])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(arguments[a]!==undefined)return arguments[a]},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(b,c){var a=this.defaultMessage(b,c.method),d=/\$?\{(\d+)\}/g;if(typeof a=="function")a=a.call(this,c.parameters,b);else if(d.test(a))a=jQuery.format(a.replace(d,"{$1}"),c.parameters);this.errorList.push({message:a,element:b});this.errorMap[b.name]=a;this.submitted[b.name]=a},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parent(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight){a=0;for(b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(c,d){var b=this.errorsFor(c);if(b.length){b.removeClass().addClass(this.settings.errorClass);b.attr("generated")&&b.html(d)}else{b=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper)b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(b).length||(this.settings.errorPlacement?this.settings.errorPlacement(b,a(c)):b.insertAfter(c))}if(!d&&this.settings.success){b.text("");typeof this.settings.success=="string"?b.addClass(this.settings.success):this.settings.success(b)}this.toShow=this.toShow.add(b)},errorsFor:function(b){var c=this.idOrName(b);return this.errors().filter(function(){return a(this).attr("for")==c})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(d,a){return a.form==c&&a.name==b&&a||null})},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;case"input":if(this.checkable(b))return this.findByName(b.name).filter(":checked").length}return c.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):true},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){return!a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(c,b){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[c.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else if(!b&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={};(b=a(b).attr("class"))&&a.each(b.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])});return c},attributeRules:function(c){var b={};c=a(c);for(var d in a.validator.methods){var e=c.attr(d);if(e)b[d]=e}b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)&&delete b.maxlength;return b},metadataRules:function(b){if(!a.metadata)return{};var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(b){var c={},d=a.data(b.form,"validator");if(d.settings.rules)c=a.validator.normalizeRule(d.settings.rules[b.name])||{};return c},normalizeRules:function(b,c){a.each(b,function(e,d){if(d===false)delete b[e];else if(d.param||d.depends){var f=true;switch(typeof d.depends){case"string":f=!!a(d.depends,c.form).length;break;case"function":f=d.depends.call(c,c)}if(f)b[e]=d.param!==undefined?d.param:true;else delete b[e]}});a.each(b,function(e,d){b[e]=a.isFunction(d)?d(c):d});a.each(["minlength","maxlength","min","max"],function(){if(b[this])b[this]=Number(b[this])});a.each(["rangelength","range"],function(){if(b[this])b[this]=[Number(b[this][0]),Number(b[this][1])]});if(a.validator.autoCreateRanges){if(b.min&&b.max){b.range=[b.min,b.max];delete b.min;delete b.max}if(b.minlength&&b.maxlength){b.rangelength=[b.minlength,b.maxlength];delete b.minlength;delete b.maxlength}}b.messages&&delete b.messages;return b},normalizeRule:function(b){if(typeof b=="string"){var c={};a.each(b.split(/\s/),function(){c[this]=true});b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c;a.validator.messages[b]=d!=undefined?d:a.validator.messages[b];c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(c,b,d){if(!this.depend(d,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case"select":return(c=a(b).val())&&c.length>0;case"input":if(this.checkable(b))return this.getLength(c,b)>0;default:return a.trim(c).length>0}},remote:function(f,b,e){if(this.optional(b))return"dependency-mismatch";var d=this.previousValue(b);this.settings.messages[b.name]||(this.settings.messages[b.name]={});d.originalMessage=this.settings.messages[b.name].remote;this.settings.messages[b.name].remote=d.message;e=typeof e=="string"&&{url:e}||e;if(this.pending[b.name])return"pending";if(d.old===f)return d.valid;d.old=f;var c=this;this.startRequest(b);var g={};g[b.name]=f;a.ajax(a.extend(true,{url:e,mode:"abort",port:"validate"+b.name,dataType:"json",data:g,success:function(e){c.settings.messages[b.name].remote=d.originalMessage;var h=e===true;if(h){var g=c.formSubmitted;c.prepareElement(b);c.formSubmitted=g;c.successList.push(b);c.showErrors()}else{g={};e=e||c.defaultMessage(b,"remote");g[b.name]=d.message=a.isFunction(e)?e(f):e;c.showErrors(g)}d.valid=h;c.stopRequest(b,h)}},e));return"pending"},minlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)>=d},maxlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)<=d},rangelength:function(b,c,d){b=this.getLength(a.trim(b),c);return this.optional(c)||b>=d[0]&&b<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,c,b){return this.optional(c)||a>=b[0]&&a<=b[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(a)},url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(b,f){if(this.optional(f))return"dependency-mismatch";if(/[^0-9-]+/.test(b))return false;var e=0,a=0,c=false;b=b.replace(/\D/g,"");for(var d=b.length-1;d>=0;d--){a=b.charAt(d);a=parseInt(a,10);if(c)if((a*=2)>9)a-=9;e+=a;c=!c}return e%10==0},accept:function(b,c,a){a=typeof a=="string"?a.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(c)||b.match(RegExp(".("+a+")$","i"))},equalTo:function(c,d,b){b=a(b).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(d).valid()});return c==b.val()}}});a.format=a.validator.format})(jQuery);(function(b){var a={};if(b.ajaxPrefilter)b.ajaxPrefilter(function(c,b,d){b=c.port;if(c.mode=="abort"){a[b]&&a[b].abort();a[b]=d}});else{var c=b.ajax;b.ajax=function(d){var e=("port"in d?d:b.ajaxSettings).port;if(("mode"in d?d:b.ajaxSettings).mode=="abort"){a[e]&&a[e].abort();return a[e]=c.apply(this,arguments)}return c.apply(this,arguments)}}})(jQuery);(function(a){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&a.each({focus:"focusin",blur:"focusout"},function(c,b){function d(c){c=a.event.fix(c);c.type=b;return a.event.handle.call(this,c)}a.event.special[b]={setup:function(){this.addEventListener(c,d,true)},teardown:function(){this.removeEventListener(c,d,true)},handler:function(c){arguments[0]=a.event.fix(c);arguments[0].type=b;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(e){var c=a(e.target);if(c.is(b))return d.apply(c,arguments)})}})})(jQuery);jQuery(function(a,b){var e=a(window),h=a(document),g=a("body"),j=a("base").attr("href"),i={filters:[],callbacks:{},loadFilter:b,modal:false,closeOnEscape:true,closeOnClick:true,useKeyHandler:false,showCloseButton:true,closeButton:'<a href="#" class="nyroModalClose nyroModalCloseButton nmReposition" title="close">Close</a>',stack:false,header:b,footer:b,galleryLoop:true,galleryCounts:true,ltr:true,imageRegex:"[^.].(jpg|jpeg|png|tiff|gif|bmp)s*$",selIndicator:"nyroModalSel",swfObjectId:b,swf:{allowFullScreen:"true",allowscriptaccess:"always",wmode:"transparent"},store:{},errorMsg:"An error occured",elts:{all:b,bg:b,load:b,cont:b,hidden:b},sizes:{initW:b,initH:b,w:b,h:b,minW:b,minH:b,wMargin:b,hMargin:b},anim:{def:b,showBg:b,hideBg:b,showLoad:b,hideLoad:b,showCont:b,hideCont:b,showTrans:b,hideTrans:b,resize:b},_open:false,_bgReady:false,_opened:false,_loading:false,_animated:false,_transition:false,_nmOpener:b,_nbContentLoading:0,_scripts:"",_scriptsShown:"",saveObj:function(){this.opener.data("nmObj",this)},open:function(){this._nmOpener&&this._nmOpener._close();this.getInternal()._pushStack(this.opener);this._opened=false;this._bgReady=false;this._open=true;this._initElts();this._load();this._nbContentLoading=0;this._callAnim("showBg",a.proxy(function(){this._bgReady=true;if(this._nmOpener){this._nmOpener._bgReady=false;this._nmOpener._loading=false;this._nmOpener._animated=false;this._nmOpener._opened=false;this._nmOpener._open=false;this._nmOpener.elts.cont=this._nmOpener.elts.hidden=this._nmOpener.elts.load=this._nmOpener.elts.bg=this._nmOpener.elts.all=b;this._nmOpener.saveObj();this._nmOpener=b}this._contentLoading()},this))},resize:function(b){if(b){this.elts.hidden.append(this.elts.cont.children().first().clone());this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();this.elts.hidden.empty()}else{this.sizes.w=this.sizes.initW;this.sizes.h=this.sizes.initH}this._unreposition();this.size();this._callAnim("resize",a.proxy(function(){this._reposition()},this))},size:function(){var a=this.getInternal().fullSize.viewH-this.sizes.hMargin,b=this.getInternal().fullSize.viewW-this.sizes.wMargin;if(this.sizes.minW&&this.sizes.minW>this.sizes.w)this.sizes.w=this.sizes.minW;if(this.sizes.minH&&this.sizes.minH>this.sizes.h)this.sizes.h=this.sizes.minH;if(this.sizes.h>a||this.sizes.w>b){this.sizes.h=Math.min(this.sizes.h,a);this.sizes.w=Math.min(this.sizes.w,b)}this._callFilters("size")},getForNewLinks:function(){var c;if(this.stack){c=a.extend(true,{},this);c._nmOpener=b;c.elts.all=b}else{c=a.extend({},this);c._nmOpener=this}c.filters=[];c.opener=b;c._open=false;return c},keyHandle:function(a){this.keyEvent=a;this._callFilters("keyHandle");this.keyEvent=b;delete this.keyEvent},getInternal:function(){return c},_close:function(){this.getInternal()._removeStack(this.opener);this._opened=false;this._open=false;this._callFilters("close")},close:function(){this._close();this._callFilters("beforeClose");var a=this;this._unreposition();a._callAnim("hideCont",function(){a._callAnim("hideLoad",function(){a._callAnim("hideBg",function(){a._callFilters("afterClose");a.elts.cont.remove();a.elts.hidden.remove();a.elts.load.remove();a.elts.bg.remove();a.elts.all.remove();a.elts.cont=a.elts.hidden=a.elts.load=a.elts.bg=a.elts.all=b})})})},_initElts:function(){if(!this.stack&&this.getInternal().stack.length>1)this.elts=a(c.stack[c.stack.length-2]).data("nmObj").elts;if(!this.elts.all||this.elts.all.closest("body").length==0)this.elts.all=this.elts.bg=this.elts.cont=this.elts.hidden=this.elts.load=b;if(!this.elts.all)this.elts.all=a("<div />").appendTo(this.getInternal()._container);if(!this.elts.bg)this.elts.bg=a("<div />").hide().appendTo(this.elts.all);if(!this.elts.cont)this.elts.cont=a("<div />").hide().appendTo(this.elts.all);if(!this.elts.hidden)this.elts.hidden=a("<div />").hide().appendTo(this.elts.all);this.elts.hidden.empty();if(!this.elts.load)this.elts.load=a("<div />").hide().appendTo(this.elts.all);this._callFilters("initElts")},_error:function(){this._callFilters("error")},_setCont:function(b,c){if(c){var f=[],g=0;b=b.replace(/\r\n/gi,"nyroModalLN").replace(/<script(.|\s)*?\/script>/gi,function(a){f[g]=a;return'<pre class=nyroModalScript rel="'+g+++'"></pre>'});var e=a("<div>"+b+"</div>").find(c);if(e.length)b=e.html().replace(/<pre class="?nyroModalScript"? rel="?(.?)"?><\/pre>/gi,function(b,a){return f[a]}).replace(/nyroModalLN/gi,"\r\n");else{this._error();return}}this.elts.hidden.append(this._filterScripts(b)).prepend(this.header).append(this.footer).wrapInner('<div class="nyroModal'+ucfirst(this.loadFilter)+'" />');this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();var d=this.getInternal()._getOuter(this.elts.cont);this.sizes.hMargin=d.h.total;this.sizes.wMargin=d.w.total;this.size();this.loading=false;this._callFilters("filledContent");this._contentLoading()},_filterScripts:function(b){if(typeof b!="string")return b;this._scripts=[];this._scriptsShown=[];var f=0,h="<script",g="<\/script>",i=g.length,d,e,c;while((d=b.indexOf(h,f))>-1){e=b.indexOf(g)+i;c=a(b.substring(d,e));if(!c.attr("src")||c.attr("rel")=="forceLoad")if(c.attr("rev")=="shown")this._scriptsShown.push(c.get(0));else this._scripts.push(c.get(0));b=b.substring(0,d)+b.substr(e);f=d}return b},_hasFilter:function(c){var b=false;a.each(this.filters,function(d,a){b=b||a==c});return b},_delFilter:function(b){this.filters=a.map(this.filters,function(a){if(a!=b)return a})},_callFilters:function(b){this.getInternal()._debug(b);var c=[],d=this;a.each(this.filters,function(e,a){c[a]=d._callFilter(a,b)});this.callbacks[b]&&a.isFunction(this.callbacks[b])&&this.callbacks[b](this);return c},_callFilter:function(c,e){return d[c]&&d[c][e]&&a.isFunction(d[c][e])?d[c][e](this):b},_callAnim:function(b,d){this.getInternal()._debug(b);this._callFilters("before"+ucfirst(b));if(!this._animated){this._animated=true;if(!a.isFunction(d))d=a.noop;var c=this.anim[b]||this.anim.def||"basic";if(!f[c]||!f[c][b]||!a.isFunction(f[c][b]))c="basic";f[c][b](this,a.proxy(function(){this._animated=false;this._callFilters("after"+ucfirst(b));d()},this))}},_load:function(){this.getInternal()._debug("_load");if(!this.loading&&this.loadFilter){this.loading=true;this._callFilter(this.loadFilter,"load")}},_contentLoading:function(){if(!this._animated&&this._bgReady){if(!this._transition&&this.elts.cont.html().length>0)this._transition=true;this._nbContentLoading++;if(!this.loading){if(!this._opened){this._opened=true;if(this._transition){var c=a.proxy(function(){this._writeContent();this._callFilters("beforeShowCont");this._callAnim("hideTrans",a.proxy(function(){this._transition=false;this._callFilters("afterShowCont");this.elts.cont.append(this._scriptsShown);this._reposition()},this))},this);if(this._nbContentLoading==1){this._unreposition();this._callAnim("showTrans",c)}else c()}else this._callAnim("hideLoad",a.proxy(function(){this._writeContent();this._callAnim("showCont",a.proxy(function(){this.elts.cont.append(this._scriptsShown);this._reposition()},this))},this))}}else if(this._nbContentLoading==1){var b=this.getInternal()._getOuter(this.elts.load);this.elts.load.css({position:"fixed",top:(this.getInternal().fullSize.viewH-this.elts.load.height()-b.h.margin)/2,left:(this.getInternal().fullSize.viewW-this.elts.load.width()-b.w.margin)/2});if(this._transition){this._unreposition();this._callAnim("showTrans",a.proxy(function(){this._contentLoading()},this))}else this._callAnim("showLoad",a.proxy(function(){this._contentLoading()},this))}}},_writeContent:function(){this.elts.cont.empty().append(this.elts.hidden.contents()).append(this._scripts).append(this.showCloseButton?this.closeButton:"").css({position:"fixed",width:this.sizes.w,height:this.sizes.h,top:(this.getInternal().fullSize.viewH-this.sizes.h-this.sizes.hMargin)/2,left:(this.getInternal().fullSize.viewW-this.sizes.w-this.sizes.wMargin)/2})},_reposition:function(){var b=this.elts.cont.find(".nmReposition");if(b.length){var c=this.getInternal()._getSpaceReposition();b.each(function(){var d=a(this),b=d.offset();d.css({position:"fixed",top:b.top-c.top,left:b.left-c.left})});this.elts.cont.after(b)}this.elts.cont.css("overflow","auto");this._callFilters("afterReposition")},_unreposition:function(){this.elts.cont.css("overflow","");var a=this.elts.all.find(".nmReposition");a.length&&this.elts.cont.append(a.removeAttr("style"));this._callFilters("afterUnreposition")}},c={firstInit:true,stack:[],fullSize:{w:0,h:0,wW:0,wH:0,viewW:0,viewH:0},nyroModal:function(d,b){if(c.firstInit){c._container=a("<div />").appendTo(g);e.smartresize(a.proxy(c._resize,c));h.bind("keydown.nyroModal",a.proxy(c._keyHandler,c));c._calculateFullSize();c.firstInit=false}return this.nmInit(d,b).each(function(){c._init(a(this).data("nmObj"))})},nmInit:function(b,c){return this.each(function(){var d=a(this);if(c)d.data("nmObj",a.extend(true,{opener:d},b));else d.data("nmObj",d.data("nmObj")?a.extend(true,d.data("nmObj"),b):a.extend(true,{opener:d},i,b))})},nmCall:function(){return this.trigger("nyroModal")},nmManual:function(c,b){a("<a />",{href:c}).nyroModal(b).trigger("nyroModal")},nmData:function(b,c){this.nmManual("#",a.extend({data:b},c))},nmObj:function(b){a.extend(true,i,b)},nmInternal:function(b){a.extend(true,c,b)},nmAnims:function(b){a.extend(true,f,b)},nmFilters:function(b){a.extend(true,d,b)},nmTop:function(){return c.stack.length?a(c.stack[c.stack.length-1]).data("nmObj"):b},_debug:function(a){window.console&&window.console.log&&window.console.log(a)},_container:b,_init:function(b){b.filters=[];a.each(d,function(d,c){c.is&&a.isFunction(c.is)&&c.is(b)&&b.filters.push(d)});b._callFilters("initFilters");b._callFilters("init");b.opener.unbind("nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal").bind({"nyroModal.nyroModal":function(){b.open();return false},"nmClose.nyroModal":function(){b.close();return false},"nmResize.nyroModal":function(){b.resize();return false}})},_scrollWidth:function(){var b;if(a.browser.msie){var c=a('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo(g),d=a('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo(g);b=c.width()-d.width();c.add(d).remove()}else{var e=a("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1e3,left:-1e3}).prependTo(g).append("<div />").find("div").css({width:"100%",height:200});b=100-e.width();e.parent().remove()}return b}(),_selNyroModal:function(b){return a(b).data("nmObj")?true:false},_selNyroModalOpen:function(c){var b=a(c);return b.data("nmObj")?b.data("nmObj")._open:false},_keyHandler:function(c){var b=a.nmTop();if(b&&b.useKeyHandler)return b.keyHandle(c)},_pushStack:function(b){this.stack=a.map(this.stack,function(a){if(a!=b.get(0))return a});this.stack.push(b.get(0))},_removeStack:function(b){this.stack=a.map(this.stack,function(a){if(a!=b.get(0))return a})},_resize:function(){var b=a(":nmOpen").each(function(){a(this).data("nmObj")._unreposition()});this._calculateFullSize();b.trigger("nmResize")},_calculateFullSize:function(){this.fullSize={w:h.width(),h:h.height(),wW:e.width(),wH:e.height()};this.fullSize.viewW=Math.min(this.fullSize.w,this.fullSize.wW);this.fullSize.viewH=Math.min(this.fullSize.h,this.fullSize.wH)},_getCurCSS:function(d,c){var b=parseInt(a.curCSS(d,c,true));return isNaN(b)?0:b},_getOuter:function(b){b=b.get(0);var a={h:{margin:this._getCurCSS(b,"marginTop")+this._getCurCSS(b,"marginBottom"),border:this._getCurCSS(b,"borderTopWidth")+this._getCurCSS(b,"borderBottomWidth"),padding:this._getCurCSS(b,"paddingTop")+this._getCurCSS(b,"paddingBottom")},w:{margin:this._getCurCSS(b,"marginLeft")+this._getCurCSS(b,"marginRight"),border:this._getCurCSS(b,"borderLeftWidth")+this._getCurCSS(b,"borderRightWidth"),padding:this._getCurCSS(b,"paddingLeft")+this._getCurCSS(b,"paddingRight")}};a.h.outer=a.h.margin+a.h.border;a.w.outer=a.w.margin+a.w.border;a.h.inner=a.h.padding+a.h.border;a.w.inner=a.w.padding+a.w.border;a.h.total=a.h.outer+a.h.padding;a.w.total=a.w.outer+a.w.padding;return a},_getSpaceReposition:function(){var b=this._getOuter(g),c=a.browser.msie&&a.browser.version<8&&!(screen.height<=e.height()+23);return{top:e.scrollTop()-(!c?b.h.border/2:0),left:e.scrollLeft()-(!c?b.w.border/2:0)}},_getHash:function(a){if(typeof a=="string"){var b=a.indexOf("#");if(b>-1)return a.substring(b)}return""},_extractUrl:function(a){var d={url:b,sel:b};if(a){var e=this._getHash(a),f=this._getHash(window.location.href),g=window.location.href.substring(0,window.location.href.length-f.length),c=a.substring(0,a.length-e.length);d.sel=e;if(c!=g&&c!=j)d.url=c}return d}},f={basic:{showBg:function(b,a){b.elts.bg.css({opacity:.7}).show();a()},hideBg:function(b,a){b.elts.bg.hide();a()},showLoad:function(b,a){b.elts.load.show();a()},hideLoad:function(b,a){b.elts.load.hide();a()},showCont:function(b,a){b.elts.cont.show();a()},hideCont:function(b,a){b.elts.cont.hide();a()},showTrans:function(a,b){a.elts.cont.hide();a.elts.load.show();b()},hideTrans:function(a,b){a.elts.cont.show();a.elts.load.hide();b()},resize:function(a,b){a.elts.cont.css({width:a.sizes.w,height:a.sizes.h,top:(a.getInternal().fullSize.viewH-a.sizes.h-a.sizes.hMargin)/2,left:(a.getInternal().fullSize.viewW-a.sizes.w-a.sizes.wMargin)/2});b()}}},d={basic:{is:function(){return true},init:function(a){if(a.opener.attr("rev")=="modal")a.modal=true;if(a.modal)a.closeOnEscape=a.closeOnClick=a.showCloseButton=false;if(a.closeOnEscape)a.useKeyHandler=true},initElts:function(a){a.elts.bg.addClass("nyroModalBg");a.closeOnClick&&a.elts.bg.unbind("click.nyroModal").bind("click.nyroModal",function(b){b.preventDefault();a.close()});a.elts.cont.addClass("nyroModalCont");a.elts.hidden.addClass("nyroModalCont nyroModalHidden");a.elts.load.addClass("nyroModalCont nyroModalLoad")},error:function(a){a.elts.hidden.addClass("nyroModalError");a.elts.cont.addClass("nyroModalError");a._setCont(a.errorMsg)},beforeShowCont:function(a){a.elts.cont.find(".nyroModal").nyroModal(a.getForNewLinks(),true).end().find(".nyroModalClose").bind("click.nyroModal",function(b){b.preventDefault();a.close()})},keyHandle:function(a){if(a.keyEvent.keyCode==27&&a.closeOnEscape){a.keyEvent.preventDefault();a.close()}}},custom:{is:function(){return true}}};a.fn.extend({nm:c.nyroModal,nyroModal:c.nyroModal,nmInit:c.nmInit,nmCall:c.nmCall});a.extend({nmManual:c.nmManual,nmData:c.nmData,nmObj:c.nmObj,nmInternal:c.nmInternal,nmAnims:c.nmAnims,nmFilters:c.nmFilters,nmTop:c.nmTop});a.expr[":"].nyroModal=a.expr[":"].nm=c._selNyroModal;a.expr[":"].nmOpen=c._selNyroModalOpen});(function(c,a){var b=function(c,d,b){var a;return function(){var f=this,e=arguments;function g(){!b&&c.apply(f,e);a=null}if(a)clearTimeout(a);else b&&c.apply(f,e);a=setTimeout(g,d||100)}};jQuery.fn[a]=function(c){return c?this.bind("resize",b(c)):this.trigger(a)}})(jQuery,"smartresize");function ucfirst(a){a+="";var b=a.charAt(0).toUpperCase();return b+a.substr(1)}jQuery(function(a){a.nmAnims({fade:{showBg:function(b,a){b.elts.bg.fadeTo(250,.7,a)},hideBg:function(b,a){b.elts.bg.fadeOut(a)},showLoad:function(b,a){b.elts.load.fadeIn(a)},hideLoad:function(b,a){b.elts.load.fadeOut(a)},showCont:function(b,a){b.elts.cont.fadeIn(a)},hideCont:function(b,a){b.elts.cont.css("overflow","hidden").fadeOut(a)},showTrans:function(a,b){a.elts.load.css({position:a.elts.cont.css("position"),top:a.elts.cont.css("top"),left:a.elts.cont.css("left"),width:a.elts.cont.css("width"),height:a.elts.cont.css("height"),marginTop:a.elts.cont.css("marginTop"),marginLeft:a.elts.cont.css("marginLeft")}).fadeIn(function(){a.elts.cont.hide();b()})},hideTrans:function(a,b){a.elts.cont.css("visibility","hidden").show();a.elts.load.css("position",a.elts.cont.css("position")).animate({top:a.elts.cont.css("top"),left:a.elts.cont.css("left"),width:a.elts.cont.css("width"),height:a.elts.cont.css("height"),marginTop:a.elts.cont.css("marginTop"),marginLeft:a.elts.cont.css("marginLeft")},function(){a.elts.cont.css("visibility","");a.elts.load.fadeOut(b)})},resize:function(a,b){a.elts.cont.animate({width:a.sizes.w,height:a.sizes.h,top:(a.getInternal().fullSize.viewH-a.sizes.h-a.sizes.hMargin)/2,left:(a.getInternal().fullSize.viewW-a.sizes.w-a.sizes.wMargin)/2},b)}}});a.nmObj({anim:{def:"fade"}})});jQuery(function(a,b){a.nmFilters({title:{is:function(a){return a.opener.is("[title]")},beforeShowCont:function(b){var c=b.elts.cont.offset();b.store.title=a("<h1 />",{text:b.opener.attr("title")}).addClass("nyroModalTitle nmReposition");b.elts.cont.prepend(b.store.title)},close:function(a){if(a.store.title){a.store.title.remove();a.store.title=b;delete a.store.title}}}})});jQuery(function(b,a){b.nmFilters({gallery:{is:function(a){var b=a.opener.is("[rel]:not([rel=external], [rel=nofollow])");b&&a.galleryCounts&&!a._hasFilter("title")&&a.filters.push("title");return b},init:function(a){a.useKeyHandler=true},keyHandle:function(a){if(!a._animated&&a._opened)if(a.keyEvent.keyCode==39||a.keyEvent.keyCode==40){a.keyEvent.preventDefault();a._callFilters("galleryNext")}else if(a.keyEvent.keyCode==37||a.keyEvent.keyCode==38){a.keyEvent.preventDefault();a._callFilters("galleryPrev")}},initElts:function(a){var c=a.opener.attr("rel"),d=c.indexOf(" ");a.store.gallery=d>0?c.substr(0,d):c;a.store.galleryLinks=b('[href][rel="'+a.store.gallery+'"], [href][rel^="'+a.store.gallery+' "]');a.store.galleryIndex=a.store.galleryLinks.index(a.opener)},beforeShowCont:function(a){if(a.galleryCounts&&a.store.title&&a.store.galleryLinks.length>1){var b=a.store.title.html();a.store.title.html((b.length?b+" - ":"")+(a.store.galleryIndex+1)+"/"+a.store.galleryLinks.length)}},filledContent:function(a){var c=this._getGalleryLink(a,-1),d=a.elts.hidden.find(" > div");c&&b("<a />",{text:"previous",href:"#"}).addClass("nyroModalPrev").bind("click",function(b){b.preventDefault();a._callFilters("galleryPrev")}).appendTo(d);c=this._getGalleryLink(a,1);c&&b("<a />",{text:"next",href:"#"}).addClass("nyroModalNext").bind("click",function(b){b.preventDefault();a._callFilters("galleryNext")}).appendTo(d)},close:function(b){b.store.gallery=a;b.store.galleryLinks=a;b.store.galleryIndex=a;delete b.store.gallery;delete b.store.galleryLinks;delete b.store.galleryIndex;b.elts.cont&&b.elts.cont.find(".nyroModalNext, .nyroModalPrev").remove()},galleryNext:function(a){this._getGalleryLink(a,1).nyroModal(a.getForNewLinks(),true).click()},galleryPrev:function(a){this._getGalleryLink(a,-1).nyroModal(a.getForNewLinks(),true).click()},_getGalleryLink:function(b,d){if(b.store.gallery){if(!b.ltr)d*=-1;var c=b.store.galleryIndex+d;if(c>=0&&c<b.store.galleryLinks.length)return b.store.galleryLinks.eq(c);else if(b.galleryLoop)return b.store.galleryLinks.eq(c<0?b.store.galleryLinks.length-1:0)}return a}}})});jQuery(function(a,b){a.nmFilters({link:{is:function(a){var b=a.opener.is("[href]");if(b)a.store.link=a.getInternal()._extractUrl(a.opener.attr("href"));return b},init:function(a){a.loadFilter="link";a.opener.unbind("click.nyroModal").bind("click.nyroModal",function(b){b.preventDefault();a.opener.trigger("nyroModal")})},load:function(c){a.ajax({url:c.store.link.url,data:c.store.link.sel?[{name:c.selIndicator,value:c.store.link.sel.substring(1)}]:b,success:function(a){c._setCont(a,c.store.link.sel)},error:function(){c._error()}})}}})});jQuery(function(a){a.nmFilters({dom:{is:function(a){return a._hasFilter("link")&&!a.store.link.url&&a.store.link.sel},init:function(a){a.loadFilter="dom"},load:function(b){b.store.domEl=a(b.store.link.sel);if(b.store.domEl.length)b._setCont(b.store.domEl.contents());else b._error()},close:function(a){a.store.domEl&&a.elts.cont&&a.store.domEl.append(a.elts.cont.find(".nyroModalDom").contents())}}})});jQuery(function(a){a.nmFilters({data:{is:function(b){var a=b.data?true:false;a&&b._delFilter("dom");return a},init:function(a){a.loadFilter="data"},load:function(a){a._setCont(a.data)}}})});jQuery(function(a){a.nmFilters({image:{is:function(a){return new RegExp(a.imageRegex,"i").test(a.opener.attr("href"))},init:function(a){a.loadFilter="image"},load:function(b){var c=b.opener.attr("href");a("<img />").load(function(){b.elts.cont.addClass("nyroModalImg");b.elts.hidden.addClass("nyroModalImg");b._setCont(this)}).error(function(){b._error()}).attr("src",c)},size:function(a){if(a.sizes.w!=a.sizes.initW||a.sizes.h!=a.sizes.initH){var b=Math.min(a.sizes.w/a.sizes.initW,a.sizes.h/a.sizes.initH);a.sizes.w=a.sizes.initW*b;a.sizes.h=a.sizes.initH*b}var c=a.loading?a.elts.hidden.find("img"):a.elts.cont.find("img");c.attr({width:a.sizes.w,height:a.sizes.h})},close:function(a){if(a.elts.cont){a.elts.cont.removeClass("nyroModalImg");a.elts.hidden.removeClass("nyroModalImg")}}}})});jQuery(function(a){a.nmFilters({swf:{idCounter:1,is:function(a){return a._hasFilter("link")&&a.opener.is('[href$=".swf"]')},init:function(a){a.loadFilter="swf"},load:function(b){if(!b.swfObjectId)b.swfObjectId="nyroModalSwf-"+this.idCounter++;var e=b.store.link.url,c='<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+b.swfObjectId+'" width="'+b.sizes.w+'" height="'+b.sizes.h+'"><param name="movie" value="'+e+'"></param>',d="";a.each(b.swf,function(a,b){c+='<param name="'+a+'" value="'+b+'"></param>';d+=" "+a+'="'+b+'"'});c+='<embed src="'+e+'" type="application/x-shockwave-flash" width="'+b.sizes.w+'" height="'+b.sizes.h+'"'+d+"></embed></object></div>";b._setCont(c)}}})});jQuery(function(a){a.nmFilters({form:{is:function(a){var b=a.opener.is("form");if(b)a.store.form=a.getInternal()._extractUrl(a.opener.attr("action"));return b},init:function(a){a.loadFilter="form";a.opener.unbind("submit.nyroModal").bind("submit.nyroModal",function(b){b.preventDefault();a.opener.trigger("nyroModal")})},load:function(b){var c=b.opener.serializeArray();b.store.form.sel&&c.push({name:b.selIndicator,value:b.store.form.sel.substring(1)});a.ajax({url:b.store.form.url,data:c,type:b.opener.attr("method")?b.opener.attr("method"):"get",success:function(a){b._setCont(a,b.store.form.sel)},error:function(){b._error()}})}}})});jQuery(function(b,a){b.nmFilters({formFile:{is:function(a){var b=a.opener.is('form[enctype="multipart/form-data"]');if(b){a._delFilter("form");if(!a.store.form)a.store.form=a.getInternal()._extractUrl(a.opener.attr("action"))}return b},init:function(a){a.loadFilter="formFile";a.store.formFileLoading=false;a.opener.unbind("submit.nyroModal").bind("submit.nyroModal",function(b){if(!a.store.formFileIframe){b.preventDefault();a.opener.trigger("nyroModal")}else a.store.formFileLoading=true})},initElts:function(c){var d;if(c.store.form.sel)d=b("<input />",{type:"hidden",name:c.selIndicator,value:c.store.form.sel.substring(1)}).appendTo(c.opener);function e(){if(d){d.remove();d=a;delete d}c.store.formFileIframe.attr("src","about:blank").remove();c.store.formFileIframe=a;delete c.store.formFileIframe}c.store.formFileIframe=b('<iframe name="nyroModalFormFile" src="javascript:\'\';" id="nyromodal-iframe-'+ +new Date+'"></iframe>').hide().load(function(){if(c.store.formFileLoading){c.store.formFileLoading=false;var a=c.store.formFileIframe.unbind("load error").contents().find("body").not("script[src]");if(a&&a.html()&&a.html().length){e();c._setCont(a.html(),c.store.form.sel)}else{var b=0;fct=function(){b++;var a=c.store.formFileIframe.unbind("load error").contents().find("body").not("script[src]");if(a&&a.html()&&a.html().length){c._setCont(a.html(),c.store.form.sel);e()}else if(b<5)setTimeout(fct,25);else{e();c._error()}};setTimeout(fct,25)}}}).error(function(){e();c._error()});c.elts.all.append(c.store.formFileIframe);c.opener.attr("target","nyroModalFormFile").submit()},close:function(b){b.store.formFileLoading=false;if(b.store.formFileIframe){b.store.formFileIframe.remove();b.store.formFileIframe=a;delete b.store.formFileIframe}}}})});jQuery(function(a,b){a.nmFilters({iframe:{is:function(a){var c=a.opener.attr("target")||"",d=a.opener.attr("rel")||"",b=a.opener.get(0);return!a._hasFilter("image")&&(c.toLowerCase()=="_blank"||d.toLowerCase().indexOf("external")>-1||b.hostname&&b.hostname.replace(/:\d*$/,"")!=window.location.hostname.replace(/:\d*$/,""))},init:function(a){a.loadFilter="iframe"},load:function(b){b.store.iframe=a('<iframe src="javascript:\'\';" id="nyromodal-iframe-'+ +new Date+'"></iframe>');b._setCont(b.store.iframe)},afterShowCont:function(a){a.store.iframe.attr("src",a.opener.attr("href"))},close:function(a){if(a.store.iframe){a.store.iframe.remove();a.store.iframe=b;delete a.store.iframe}}}})});jQuery(function(a,b){a.nmFilters({iframeForm:{is:function(a){var b=a._hasFilter("iframe")&&a.opener.is("form");if(b){a._delFilter("iframe");a._delFilter("form")}return b},init:function(a){a.loadFilter="iframeForm";a.store.iframeFormLoading=false;a.store.iframeFormOrgTarget=a.opener.attr("target");a.opener.unbind("submit.nyroModal").bind("submit.nyroModal",function(b){if(!a.store.iframeFormIframe){b.preventDefault();a.opener.trigger("nyroModal")}else a.store.iframeFormLoading=true})},load:function(b){b.store.iframeFormIframe=a('<iframe name="nyroModalIframeForm" src="javascript:\'\';" id="nyromodal-iframe-'+ +new Date+'"></iframe>');b._setCont(b.store.iframeFormIframe)},afterShowCont:function(a){a.opener.attr("target","nyroModalIframeForm").submit()},close:function(a){a.store.iframeFormOrgTarget?a.opener.attr("target",a.store.iframeFormOrgTarget):a.opener.removeAttr("target");delete a.store.formFileLoading;delete a.store.iframeFormOrgTarget;if(a.store.iframeFormIframe){a.store.iframeFormIframe.remove();a.store.iframeFormIframe=b;delete a.store.iframeFormIframe}}}})});jQuery(function(a){a.nmFilters({embedly:{is:function(a){var c=/http:\/\/(.*youtube\.com\/watch.*|.*\.youtube\.com\/v\/.*|youtu\.be\/.*|.*\.youtube\.com\/user\/.*|.*\.youtube\.com\/.*#.*\/.*|m\.youtube\.com\/watch.*|m\.youtube\.com\/index.*|.*\.youtube\.com\/profile.*|.*justin\.tv\/.*|.*justin\.tv\/.*\/b\/.*|.*justin\.tv\/.*\/w\/.*|www\.ustream\.tv\/recorded\/.*|www\.ustream\.tv\/channel\/.*|www\.ustream\.tv\/.*|qik\.com\/video\/.*|qik\.com\/.*|qik\.ly\/.*|.*revision3\.com\/.*|.*\.dailymotion\.com\/video\/.*|.*\.dailymotion\.com\/.*\/video\/.*|www\.collegehumor\.com\/video:.*|.*twitvid\.com\/.*|www\.break\.com\/.*\/.*|vids\.myspace\.com\/index\.cfm\?fuseaction=vids\.individual&videoid.*|www\.myspace\.com\/index\.cfm\?fuseaction=.*&videoid.*|www\.metacafe\.com\/watch\/.*|www\.metacafe\.com\/w\/.*|blip\.tv\/file\/.*|.*\.blip\.tv\/file\/.*|video\.google\.com\/videoplay\?.*|.*revver\.com\/video\/.*|video\.yahoo\.com\/watch\/.*\/.*|video\.yahoo\.com\/network\/.*|.*viddler\.com\/explore\/.*\/videos\/.*|liveleak\.com\/view\?.*|www\.liveleak\.com\/view\?.*|animoto\.com\/play\/.*|dotsub\.com\/view\/.*|www\.overstream\.net\/view\.php\?oid=.*|www\.livestream\.com\/.*|www\.worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|teachertube\.com\/viewVideo\.php.*|www\.teachertube\.com\/viewVideo\.php.*|www1\.teachertube\.com\/viewVideo\.php.*|www2\.teachertube\.com\/viewVideo\.php.*|bambuser\.com\/v\/.*|bambuser\.com\/channel\/.*|bambuser\.com\/channel\/.*\/broadcast\/.*|www\.schooltube\.com\/video\/.*\/.*|bigthink\.com\/ideas\/.*|bigthink\.com\/series\/.*|sendables\.jibjab\.com\/view\/.*|sendables\.jibjab\.com\/originals\/.*|www\.xtranormal\.com\/watch\/.*|dipdive\.com\/media\/.*|dipdive\.com\/member\/.*\/media\/.*|dipdive\.com\/v\/.*|.*\.dipdive\.com\/media\/.*|.*\.dipdive\.com\/v\/.*|.*yfrog\..*\/.*|tweetphoto\.com\/.*|www\.flickr\.com\/photos\/.*|flic\.kr\/.*|twitpic\.com\/.*|www\.twitpic\.com\/.*|twitpic\.com\/photos\/.*|www\.twitpic\.com\/photos\/.*|.*imgur\.com\/.*|.*\.posterous\.com\/.*|post\.ly\/.*|twitgoo\.com\/.*|i.*\.photobucket\.com\/albums\/.*|s.*\.photobucket\.com\/albums\/.*|phodroid\.com\/.*\/.*\/.*|www\.mobypicture\.com\/user\/.*\/view\/.*|moby\.to\/.*|xkcd\.com\/.*|www\.xkcd\.com\/.*|imgs\.xkcd\.com\/.*|www\.asofterworld\.com\/index\.php\?id=.*|www\.asofterworld\.com\/.*\.jpg|asofterworld\.com\/.*\.jpg|www\.qwantz\.com\/index\.php\?comic=.*|23hq\.com\/.*\/photo\/.*|www\.23hq\.com\/.*\/photo\/.*|.*dribbble\.com\/shots\/.*|drbl\.in\/.*|.*\.smugmug\.com\/.*|.*\.smugmug\.com\/.*#.*|emberapp\.com\/.*\/images\/.*|emberapp\.com\/.*\/images\/.*\/sizes\/.*|emberapp\.com\/.*\/collections\/.*\/.*|emberapp\.com\/.*\/categories\/.*\/.*\/.*|embr\.it\/.*|picasaweb\.google\.com.*\/.*\/.*#.*|picasaweb\.google\.com.*\/lh\/photo\/.*|picasaweb\.google\.com.*\/.*\/.*|dailybooth\.com\/.*\/.*|brizzly\.com\/pic\/.*|pics\.brizzly\.com\/.*\.jpg|img\.ly\/.*|www\.tinypic\.com\/view\.php.*|tinypic\.com\/view\.php.*|www\.tinypic\.com\/player\.php.*|tinypic\.com\/player\.php.*|www\.tinypic\.com\/r\/.*\/.*|tinypic\.com\/r\/.*\/.*|.*\.tinypic\.com\/.*\.jpg|.*\.tinypic\.com\/.*\.png|meadd\.com\/.*\/.*|meadd\.com\/.*|.*\.deviantart\.com\/art\/.*|.*\.deviantart\.com\/gallery\/.*|.*\.deviantart\.com\/#\/.*|fav\.me\/.*|.*\.deviantart\.com|.*\.deviantart\.com\/gallery|.*\.deviantart\.com\/.*\/.*\.jpg|.*\.deviantart\.com\/.*\/.*\.gif|.*\.deviantart\.net\/.*\/.*\.jpg|.*\.deviantart\.net\/.*\/.*\.gif|plixi\.com\/p\/.*|plixi\.com\/profile\/home\/.*|plixi\.com\/.*|www\.fotopedia\.com\/.*\/.*|fotopedia\.com\/.*\/.*|photozou\.jp\/photo\/show\/.*\/.*|photozou\.jp\/photo\/photo_only\/.*\/.*|instagr\.am\/p\/.*|skitch\.com\/.*\/.*\/.*|img\.skitch\.com\/.*|https:\/\/skitch\.com\/.*\/.*\/.*|https:\/\/img\.skitch\.com\/.*|share\.ovi\.com\/media\/.*\/.*|www\.questionablecontent\.net\/|questionablecontent\.net\/|www\.questionablecontent\.net\/view\.php.*|questionablecontent\.net\/view\.php.*|questionablecontent\.net\/comics\/.*\.png|www\.questionablecontent\.net\/comics\/.*\.png|picplz\.com\/user\/.*\/pic\/.*\/|twitrpix\.com\/.*|.*\.twitrpix\.com\/.*|www\.someecards\.com\/.*\/.*|someecards\.com\/.*\/.*|some\.ly\/.*|www\.some\.ly\/.*|pikchur\.com\/.*|achewood\.com\/.*|www\.achewood\.com\/.*|achewood\.com\/index\.php.*|www\.achewood\.com\/index\.php.*|www\.whitehouse\.gov\/photos-and-video\/video\/.*|www\.whitehouse\.gov\/video\/.*|wh\.gov\/photos-and-video\/video\/.*|wh\.gov\/video\/.*|www\.hulu\.com\/watch.*|www\.hulu\.com\/w\/.*|hulu\.com\/watch.*|hulu\.com\/w\/.*|.*crackle\.com\/c\/.*|www\.fancast\.com\/.*\/videos|www\.funnyordie\.com\/videos\/.*|www\.funnyordie\.com\/m\/.*|funnyordie\.com\/videos\/.*|funnyordie\.com\/m\/.*|www\.vimeo\.com\/groups\/.*\/videos\/.*|www\.vimeo\.com\/.*|vimeo\.com\/m\/#\/featured\/.*|vimeo\.com\/groups\/.*\/videos\/.*|vimeo\.com\/.*|vimeo\.com\/m\/#\/featured\/.*|www\.ted\.com\/talks\/.*\.html.*|www\.ted\.com\/talks\/lang\/.*\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/lang\/.*\/.*\.html.*|.*nfb\.ca\/film\/.*|www\.thedailyshow\.com\/watch\/.*|www\.thedailyshow\.com\/full-episodes\/.*|www\.thedailyshow\.com\/collection\/.*\/.*\/.*|movies\.yahoo\.com\/movie\/.*\/video\/.*|movies\.yahoo\.com\/movie\/.*\/trailer|movies\.yahoo\.com\/movie\/.*\/video|www\.colbertnation\.com\/the-colbert-report-collections\/.*|www\.colbertnation\.com\/full-episodes\/.*|www\.colbertnation\.com\/the-colbert-report-videos\/.*|www\.comedycentral\.com\/videos\/index\.jhtml\?.*|www\.theonion\.com\/video\/.*|theonion\.com\/video\/.*|wordpress\.tv\/.*\/.*\/.*\/.*\/|www\.traileraddict\.com\/trailer\/.*|www\.traileraddict\.com\/clip\/.*|www\.traileraddict\.com\/poster\/.*|www\.escapistmagazine\.com\/videos\/.*|www\.trailerspy\.com\/trailer\/.*\/.*|www\.trailerspy\.com\/trailer\/.*|www\.trailerspy\.com\/view_video\.php.*|www\.atom\.com\/.*\/.*\/|fora\.tv\/.*\/.*\/.*\/.*|www\.spike\.com\/video\/.*|www\.gametrailers\.com\/video\/.*|gametrailers\.com\/video\/.*|www\.koldcast\.tv\/video\/.*|www\.koldcast\.tv\/#video:.*|techcrunch\.tv\/watch.*|techcrunch\.tv\/.*\/watch.*|mixergy\.com\/.*|video\.pbs\.org\/video\/.*|www\.zapiks\.com\/.*|tv\.digg\.com\/diggnation\/.*|tv\.digg\.com\/diggreel\/.*|tv\.digg\.com\/diggdialogg\/.*|www\.trutv\.com\/video\/.*|www\.nzonscreen\.com\/title\/.*|nzonscreen\.com\/title\/.*|app\.wistia\.com\/embed\/medias\/.*|https:\/\/app\.wistia\.com\/embed\/medias\/.*|www\.godtube\.com\/featured\/video\/.*|godtube\.com\/featured\/video\/.*|www\.godtube\.com\/watch\/.*|godtube\.com\/watch\/.*|www\.tangle\.com\/view_video.*|mediamatters\.org\/mmtv\/.*|www\.clikthrough\.com\/theater\/video\/.*|soundcloud\.com\/.*|soundcloud\.com\/.*\/.*|soundcloud\.com\/.*\/sets\/.*|soundcloud\.com\/groups\/.*|snd\.sc\/.*|www\.last\.fm\/music\/.*|www\.last\.fm\/music\/+videos\/.*|www\.last\.fm\/music\/+images\/.*|www\.last\.fm\/music\/.*\/_\/.*|www\.last\.fm\/music\/.*\/.*|www\.mixcloud\.com\/.*\/.*\/|www\.radionomy\.com\/.*\/radio\/.*|radionomy\.com\/.*\/radio\/.*|www\.entertonement\.com\/clips\/.*|www\.rdio\.com\/#\/artist\/.*\/album\/.*|www\.rdio\.com\/artist\/.*\/album\/.*|www\.zero-inch\.com\/.*|.*\.bandcamp\.com\/|.*\.bandcamp\.com\/track\/.*|.*\.bandcamp\.com\/album\/.*|freemusicarchive\.org\/music\/.*|www\.freemusicarchive\.org\/music\/.*|freemusicarchive\.org\/curator\/.*|www\.freemusicarchive\.org\/curator\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/templates\/story\/story\.php.*|huffduffer\.com\/.*\/.*|www\.audioboo\.fm\/boos\/.*|audioboo\.fm\/boos\/.*|boo\.fm\/b.*|www\.xiami\.com\/song\/.*|xiami\.com\/song\/.*|espn\.go\.com\/video\/clip.*|espn\.go\.com\/.*\/story.*|abcnews\.com\/.*\/video\/.*|abcnews\.com\/video\/playerIndex.*|washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.boston\.com\/video.*|boston\.com\/video.*|www\.facebook\.com\/photo\.php.*|www\.facebook\.com\/video\/video\.php.*|www\.facebook\.com\/v\/.*|cnbc\.com\/id\/.*\?.*video.*|www\.cnbc\.com\/id\/.*\?.*video.*|cnbc\.com\/id\/.*\/play\/1\/video\/.*|www\.cnbc\.com\/id\/.*\/play\/1\/video\/.*|cbsnews\.com\/video\/watch\/.*|www\.google\.com\/buzz\/.*\/.*\/.*|www\.google\.com\/buzz\/.*|www\.google\.com\/profiles\/.*|google\.com\/buzz\/.*\/.*\/.*|google\.com\/buzz\/.*|google\.com\/profiles\/.*|www\.cnn\.com\/video\/.*|edition\.cnn\.com\/video\/.*|money\.cnn\.com\/video\/.*|today\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/ns\/.*|today\.msnbc\.msn\.com\/id\/.*\/ns\/.*|multimedia\.foxsports\.com\/m\/video\/.*\/.*|msn\.foxsports\.com\/video.*|www\.globalpost\.com\/video\/.*|www\.globalpost\.com\/dispatch\/.*|.*amazon\..*\/gp\/product\/.*|.*amazon\..*\/.*\/dp\/.*|.*amazon\..*\/dp\/.*|.*amazon\..*\/o\/ASIN\/.*|.*amazon\..*\/gp\/offer-listing\/.*|.*amazon\..*\/.*\/ASIN\/.*|.*amazon\..*\/gp\/product\/images\/.*|www\.amzn\.com\/.*|amzn\.com\/.*|www\.shopstyle\.com\/browse.*|www\.shopstyle\.com\/action\/apiVisitRetailer.*|www\.shopstyle\.com\/action\/viewLook.*|gist\.github\.com\/.*|twitter\.com\/.*\/status\/.*|twitter\.com\/.*\/statuses\/.*|mobile\.twitter\.com\/.*\/status\/.*|mobile\.twitter\.com\/.*\/statuses\/.*|www\.crunchbase\.com\/.*\/.*|crunchbase\.com\/.*\/.*|www\.slideshare\.net\/.*\/.*|www\.slideshare\.net\/mobile\/.*\/.*|.*\.scribd\.com\/doc\/.*|screenr\.com\/.*|polldaddy\.com\/community\/poll\/.*|polldaddy\.com\/poll\/.*|answers\.polldaddy\.com\/poll\/.*|www\.5min\.com\/Video\/.*|www\.howcast\.com\/videos\/.*|www\.screencast\.com\/.*\/media\/.*|screencast\.com\/.*\/media\/.*|www\.screencast\.com\/t\/.*|screencast\.com\/t\/.*|issuu\.com\/.*\/docs\/.*|www\.kickstarter\.com\/projects\/.*\/.*|www\.scrapblog\.com\/viewer\/viewer\.aspx.*|ping\.fm\/p\/.*|chart\.ly\/.*|maps\.google\.com\/maps\?.*|maps\.google\.com\/\?.*|maps\.google\.com\/maps\/ms\?.*|.*\.craigslist\.org\/.*\/.*|my\.opera\.com\/.*\/albums\/show\.dml\?id=.*|my\.opera\.com\/.*\/albums\/showpic\.dml\?album=.*&picture=.*|tumblr\.com\/.*|.*\.tumblr\.com\/post\/.*|www\.polleverywhere\.com\/polls\/.*|www\.polleverywhere\.com\/multiple_choice_polls\/.*|www\.polleverywhere\.com\/free_text_polls\/.*|www\.quantcast\.com\/wd:.*|www\.quantcast\.com\/.*|siteanalytics\.compete\.com\/.*|statsheet\.com\/statplot\/charts\/.*\/.*\/.*\/.*|statsheet\.com\/statplot\/charts\/e\/.*|statsheet\.com\/.*\/teams\/.*\/.*|statsheet\.com\/tools\/chartlets\?chart=.*|.*\.status\.net\/notice\/.*|identi\.ca\/notice\/.*|brainbird\.net\/notice\/.*|shitmydadsays\.com\/notice\/.*|www\.studivz\.net\/Profile\/.*|www\.studivz\.net\/l\/.*|www\.studivz\.net\/Groups\/Overview\/.*|www\.studivz\.net\/Gadgets\/Info\/.*|www\.studivz\.net\/Gadgets\/Install\/.*|www\.studivz\.net\/.*|www\.meinvz\.net\/Profile\/.*|www\.meinvz\.net\/l\/.*|www\.meinvz\.net\/Groups\/Overview\/.*|www\.meinvz\.net\/Gadgets\/Info\/.*|www\.meinvz\.net\/Gadgets\/Install\/.*|www\.meinvz\.net\/.*|www\.schuelervz\.net\/Profile\/.*|www\.schuelervz\.net\/l\/.*|www\.schuelervz\.net\/Groups\/Overview\/.*|www\.schuelervz\.net\/Gadgets\/Info\/.*|www\.schuelervz\.net\/Gadgets\/Install\/.*|www\.schuelervz\.net\/.*|myloc\.me\/.*|pastebin\.com\/.*|pastie\.org\/.*|www\.pastie\.org\/.*|redux\.com\/stream\/item\/.*\/.*|redux\.com\/f\/.*\/.*|www\.redux\.com\/stream\/item\/.*\/.*|www\.redux\.com\/f\/.*\/.*|cl\.ly\/.*|cl\.ly\/.*\/content|speakerdeck\.com\/u\/.*\/p\/.*|www\.kiva\.org\/lend\/.*|www\.timetoast\.com\/timelines\/.*|storify\.com\/.*\/.*|.*meetup\.com\/.*|meetu\.ps\/.*|www\.dailymile\.com\/people\/.*\/entries\/.*|.*\.kinomap\.com\/.*|www\.metacdn\.com\/api\/users\/.*\/content\/.*|www\.metacdn\.com\/api\/users\/.*\/media\/.*|prezi\.com\/.*\/.*|.*\.uservoice\.com\/.*\/suggestions\/.*)/i,b=a._hasFilter("link")&&a.opener.attr("href")&&a.opener.attr("href").match(c)!==null;b&&a._delFilter("iframe");return b},init:function(a){a.loadFilter="embedly";a.store.embedly={}},load:function(b){a.ajax({url:"http://api.embed.ly/1/oembed",dataType:"jsonp",data:"wmode=transparent&url="+b.opener.attr("href"),success:function(c){if(c.type=="error")b._error();else if(c.type=="photo"){b.filters.push("image");a("<img />").load(function(){b.elts.cont.addClass("nyroModalImg");b.elts.hidden.addClass("nyroModalImg");b._setCont(this)}).error(function(){b._error()}).attr("src",c.url)}else{b.store.embedly.w=c.width;b.store.embedly.h=c.height;b._setCont("<div>"+c.html+"</div>")}}})},size:function(a){if(a.store.embedly.w&&!a.sizes.h){a.sizes.w=a.store.embedly.w;a.sizes.h=a.store.embedly.h}}}})});(function(a){var b=function(j,p){var b=a.extend({},a.fn.nivoSlider.defaults,p),d={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:false,paused:false,stop:false},c=a(j);c.data("nivo:vars",d);c.css("position","relative");c.addClass("nivoSlider");var e=c.children();e.each(function(){var b=a(this),g="";if(!b.is("img")){if(b.is("a")){b.addClass("nivo-imageLink");g=b}b=b.find("img:first")}var f=b.width();if(f==0)f=b.attr("width");var e=b.height();if(e==0)e=b.attr("height");f>c.width()&&c.width(f);e>c.height()&&c.height(e);g!=""&&g.css("display","none");b.css("display","none");d.totalSlides++});if(b.startSlide>0){if(b.startSlide>=d.totalSlides)b.startSlide=d.totalSlides-1;d.currentSlide=b.startSlide}if(a(e[d.currentSlide]).is("img"))d.currentImage=a(e[d.currentSlide]);else d.currentImage=a(e[d.currentSlide]).find("img:first");a(e[d.currentSlide]).is("a")&&a(e[d.currentSlide]).css("display","block");c.css("background",'url("'+d.currentImage.attr("src")+'") no-repeat');c.append(a('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:b.captionOpacity}));var m=function(f){var b=a(".nivo-caption",c);if(d.currentImage.attr("title")!=""){var e=d.currentImage.attr("title");if(e.substr(0,1)=="#")e=a(e).html();if(b.css("display")=="block")b.find("p").fadeOut(f.animSpeed,function(){a(this).html(e);a(this).fadeIn(f.animSpeed)});else b.find("p").html(e);b.fadeIn(f.animSpeed)}else b.fadeOut(f.animSpeed)};m(b);var f=0;if(!b.manualAdvance&&e.length>1)f=setInterval(function(){g(c,e,b,false)},b.pauseTime);if(b.directionNav){c.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+b.prevText+'</a><a class="nivo-nextNav">'+b.nextText+"</a></div>");if(b.directionNavHide){a(".nivo-directionNav",c).hide();c.hover(function(){a(".nivo-directionNav",c).show()},function(){a(".nivo-directionNav",c).hide()})}a("a.nivo-prevNav",c).live("click",function(){if(d.running)return false;clearInterval(f);f="";d.currentSlide-=2;g(c,e,b,"prev")});a("a.nivo-nextNav",c).live("click",function(){if(d.running)return false;clearInterval(f);f="";g(c,e,b,"next")})}if(b.controlNav){var l=a('<div class="nivo-controlNav"></div>');c.append(l);for(var i=0;i<e.length;i++)if(b.controlNavThumbs){var k=e.eq(i);if(!k.is("img"))k=k.find("img:first");if(b.controlNavThumbsFromRel)l.append('<a class="nivo-control" rel="'+i+'"><img src="'+k.attr("rel")+'" alt="" /></a>');else l.append('<a class="nivo-control" rel="'+i+'"><img src="'+k.attr("src").replace(b.controlNavThumbsSearch,b.controlNavThumbsReplace)+'" alt="" /></a>')}else l.append('<a class="nivo-control" rel="'+i+'">'+(i+1)+"</a>");a(".nivo-controlNav a:eq("+d.currentSlide+")",c).addClass("active");a(".nivo-controlNav a",c).live("click",function(){if(d.running)return false;if(a(this).hasClass("active"))return false;clearInterval(f);f="";c.css("background",'url("'+d.currentImage.attr("src")+'") no-repeat');d.currentSlide=a(this).attr("rel")-1;g(c,e,b,"control")})}b.keyboardNav&&a(window).keypress(function(a){if(a.keyCode=="37"){if(d.running)return false;clearInterval(f);f="";d.currentSlide-=2;g(c,e,b,"prev")}if(a.keyCode=="39"){if(d.running)return false;clearInterval(f);f="";g(c,e,b,"next")}});b.pauseOnHover&&c.hover(function(){d.paused=true;clearInterval(f);f=""},function(){d.paused=false;if(f==""&&!b.manualAdvance)f=setInterval(function(){g(c,e,b,false)},b.pauseTime)});c.bind("nivo:animFinished",function(){d.running=false;a(e).each(function(){a(this).is("a")&&a(this).css("display","none")});a(e[d.currentSlide]).is("a")&&a(e[d.currentSlide]).css("display","block");if(f==""&&!d.paused&&!b.manualAdvance)f=setInterval(function(){g(c,e,b,false)},b.pauseTime);b.afterChange.call(this)});var h=function(d,e,f){for(var c=0;c<e.slices;c++){var b=Math.round(d.width()/e.slices);if(c==e.slices-1)d.append(a('<div class="nivo-slice"></div>').css({left:b*c+"px",width:d.width()-b*c+"px",height:"0px",opacity:"0",background:'url("'+f.currentImage.attr("src")+'") no-repeat -'+(b+c*b-b)+"px 0%"}));else d.append(a('<div class="nivo-slice"></div>').css({left:b*c+"px",width:b+"px",height:"0px",opacity:"0",background:'url("'+f.currentImage.attr("src")+'") no-repeat -'+(b+c*b-b)+"px 0%"}))}},n=function(g,f,h){for(var c=Math.round(g.width()/f.boxCols),b=Math.round(g.height()/f.boxRows),e=0;e<f.boxRows;e++)for(var d=0;d<f.boxCols;d++)if(d==f.boxCols-1)g.append(a('<div class="nivo-box"></div>').css({opacity:0,left:c*d+"px",top:b*e+"px",width:g.width()-c*d+"px",height:b+"px",background:'url("'+h.currentImage.attr("src")+'") no-repeat -'+(c+d*c-c)+"px -"+(b+e*b-b)+"px"}));else g.append(a('<div class="nivo-box"></div>').css({opacity:0,left:c*d+"px",top:b*e+"px",width:c+"px",height:b+"px",background:'url("'+h.currentImage.attr("src")+'") no-repeat -'+(c+d*c-c)+"px -"+(b+e*b-b)+"px"}))},g=function(d,u,b,r){var c=d.data("nivo:vars");c&&c.currentSlide==c.totalSlides-1&&b.lastSlide.call(this);if((!c||c.stop)&&!r)return false;b.beforeChange.call(this);if(!r)d.css("background",'url("'+c.currentImage.attr("src")+'") no-repeat');else{r=="prev"&&d.css("background",'url("'+c.currentImage.attr("src")+'") no-repeat');r=="next"&&d.css("background",'url("'+c.currentImage.attr("src")+'") no-repeat')}c.currentSlide++;if(c.currentSlide==c.totalSlides){c.currentSlide=0;b.slideshowEnd.call(this)}if(c.currentSlide<0)c.currentSlide=c.totalSlides-1;if(a(u[c.currentSlide]).is("img"))c.currentImage=a(u[c.currentSlide]);else c.currentImage=a(u[c.currentSlide]).find("img:first");if(b.controlNav){a(".nivo-controlNav a",d).removeClass("active");a(".nivo-controlNav a:eq("+c.currentSlide+")",d).addClass("active")}m(b);a(".nivo-slice",d).remove();a(".nivo-box",d).remove();if(b.effect=="random"){var p=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"];c.randAnim=p[Math.floor(Math.random()*(p.length+1))];if(c.randAnim==undefined)c.randAnim="fade"}if(b.effect.indexOf(",")!=-1){var p=b.effect.split(",");c.randAnim=p[Math.floor(Math.random()*p.length)];if(c.randAnim==undefined)c.randAnim="fade"}c.running=true;if(b.effect=="sliceDown"||b.effect=="sliceDownRight"||c.randAnim=="sliceDownRight"||b.effect=="sliceDownLeft"||c.randAnim=="sliceDownLeft"){h(d,b,c);var e=0,f=0,i=a(".nivo-slice",d);if(b.effect=="sliceDownLeft"||c.randAnim=="sliceDownLeft")i=a(".nivo-slice",d)._reverse();i.each(function(){var c=a(this);c.css({top:"0px"});if(f==b.slices-1)setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},b.animSpeed,"",function(){d.trigger("nivo:animFinished")})},100+e);else setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},b.animSpeed)},100+e);e+=50;f++})}else if(b.effect=="sliceUp"||b.effect=="sliceUpRight"||c.randAnim=="sliceUpRight"||b.effect=="sliceUpLeft"||c.randAnim=="sliceUpLeft"){h(d,b,c);var e=0,f=0,i=a(".nivo-slice",d);if(b.effect=="sliceUpLeft"||c.randAnim=="sliceUpLeft")i=a(".nivo-slice",d)._reverse();i.each(function(){var c=a(this);c.css({bottom:"0px"});if(f==b.slices-1)setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},b.animSpeed,"",function(){d.trigger("nivo:animFinished")})},100+e);else setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},b.animSpeed)},100+e);e+=50;f++})}else if(b.effect=="sliceUpDown"||b.effect=="sliceUpDownRight"||c.randAnim=="sliceUpDown"||b.effect=="sliceUpDownLeft"||c.randAnim=="sliceUpDownLeft"){h(d,b,c);var e=0,f=0,x=0,i=a(".nivo-slice",d);if(b.effect=="sliceUpDownLeft"||c.randAnim=="sliceUpDownLeft")i=a(".nivo-slice",d)._reverse();i.each(function(){var c=a(this);if(f==0){c.css("top","0px");f++}else{c.css("bottom","0px");f=0}if(x==b.slices-1)setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},b.animSpeed,"",function(){d.trigger("nivo:animFinished")})},100+e);else setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},b.animSpeed)},100+e);e+=50;x++})}else if(b.effect=="fold"||c.randAnim=="fold"){h(d,b,c);var e=0,f=0;a(".nivo-slice",d).each(function(){var c=a(this),g=c.width();c.css({top:"0px",height:"100%",width:"0px"});if(f==b.slices-1)setTimeout(function(){c.animate({width:g,opacity:"1.0"},b.animSpeed,"",function(){d.trigger("nivo:animFinished")})},100+e);else setTimeout(function(){c.animate({width:g,opacity:"1.0"},b.animSpeed)},100+e);e+=50;f++})}else if(b.effect=="fade"||c.randAnim=="fade"){h(d,b,c);var g=a(".nivo-slice:first",d);g.css({height:"100%",width:d.width()+"px"});g.animate({opacity:"1.0"},b.animSpeed*2,"",function(){d.trigger("nivo:animFinished")})}else if(b.effect=="slideInRight"||c.randAnim=="slideInRight"){h(d,b,c);var g=a(".nivo-slice:first",d);g.css({height:"100%",width:"0px",opacity:"1"});g.animate({width:d.width()+"px"},b.animSpeed*2,"",function(){d.trigger("nivo:animFinished")})}else if(b.effect=="slideInLeft"||c.randAnim=="slideInLeft"){h(d,b,c);var g=a(".nivo-slice:first",d);g.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"});g.animate({width:d.width()+"px"},b.animSpeed*2,"",function(){g.css({left:"0px",right:""});d.trigger("nivo:animFinished")})}else if(b.effect=="boxRandom"||c.randAnim=="boxRandom"){n(d,b,c);var w=b.boxCols*b.boxRows,f=0,e=0,s=q(a(".nivo-box",d));s.each(function(){var c=a(this);if(f==w-1)setTimeout(function(){c.animate({opacity:"1"},b.animSpeed,"",function(){d.trigger("nivo:animFinished")})},100+e);else setTimeout(function(){c.animate({opacity:"1"},b.animSpeed)},100+e);e+=20;f++})}else if(b.effect=="boxRain"||c.randAnim=="boxRain"||b.effect=="boxRainReverse"||c.randAnim=="boxRainReverse"||b.effect=="boxRainGrow"||c.randAnim=="boxRainGrow"||b.effect=="boxRainGrowReverse"||c.randAnim=="boxRainGrowReverse"){n(d,b,c);var w=b.boxCols*b.boxRows,f=0,e=0,l=0,k=0,j=[];j[l]=[];var s=a(".nivo-box",d);if(b.effect=="boxRainReverse"||c.randAnim=="boxRainReverse"||b.effect=="boxRainGrowReverse"||c.randAnim=="boxRainGrowReverse")s=a(".nivo-box",d)._reverse();s.each(function(){j[l][k]=a(this);k++;if(k==b.boxCols){l++;k=0;j[l]=[]}});for(var t=0;t<b.boxCols*2;t++){for(var o=t,v=0;v<b.boxRows;v++){if(o>=0&&o<b.boxCols){(function(l,k,f,m,i){var e=a(j[l][k]),h=e.width(),g=e.height();(b.effect=="boxRainGrow"||c.randAnim=="boxRainGrow"||b.effect=="boxRainGrowReverse"||c.randAnim=="boxRainGrowReverse")&&e.width(0).height(0);if(m==i-1)setTimeout(function(){e.animate({opacity:"1",width:h,height:g},b.animSpeed/1.3,"",function(){d.trigger("nivo:animFinished")})},100+f);else setTimeout(function(){e.animate({opacity:"1",width:h,height:g},b.animSpeed/1.3)},100+f)})(v,o,e,f,w);f++}o--}e+=100}}},q=function(a){for(var c,d,b=a.length;b;c=parseInt(Math.random()*b),d=a[--b],a[b]=a[c],a[c]=d);return a},o=function(a){this.console&&typeof console.log!="undefined"&&console.log(a)};this.stop=function(){if(!a(j).data("nivo:vars").stop){a(j).data("nivo:vars").stop=true;o("Stop Slider")}};this.start=function(){if(a(j).data("nivo:vars").stop){a(j).data("nivo:vars").stop=false;o("Start Slider")}};b.afterLoad.call(this);return this};a.fn.nivoSlider=function(c){return this.each(function(){var d=a(this);if(d.data("nivoslider"))return d.data("nivoslider");var e=new b(this,c);d.data("nivoslider",e)})};a.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:.8,prevText:"Prev",nextText:"Next",beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};a.fn._reverse=[].reverse})(jQuery);$(function(){$(".nyroModal").nyroModal()});(function(a){a.fn.list_ticker=function(b){var c={speed:4e3,effect:"slide"},b=a.extend(c,b);return this.each(function(){var d=a(this),c=d.children();c.not(":first").hide();setInterval(function(){c=d.children();c.not(":first").hide();var a=c.eq(0),e=c.eq(1);if(b.effect=="slide"){a.slideUp();e.slideDown(function(){a.remove().appendTo(d)})}else b.effect=="fade"&&a.fadeOut(function(){d.css("height",e.height());e.fadeIn();a.remove().appendTo(d)})},b.speed)})}})(jQuery);(function(a){a.fn.shuffle=function(){return this.each(function(){var b=a(this).children().clone(true);return b.length?a(this).html(a.shuffle(b)):this})};a.shuffle=function(a){for(var c,d,b=a.length;b;c=parseInt(Math.random()*b),d=a[--b],a[b]=a[c],a[c]=d);return a}})(jQuery);$(document).ready(function(){$("#ticker").shuffle();$("#ticker").list_ticker({speed:2e3,effect:"fade"})});$(document).ready(function(){$("#contactform").validate({rules:{name:"required",email:{required:true,email:true},phone:"required",company:"required",comments:"required"},messages:{name:"Please enter your name",email:"Please enter a valid email address",phone:"Please enter your phone number",company:"Please enter the name of your company",comments:"Please enter your comments"}})});$(window).load(function(){$("#slider").nivoSlider({effect:"fold",pauseTime:5e3,pauseOnHover:false,boxCols:8,boxRows:4})})
