(function(d,c){function P(){if(!a.isReady){try{b.documentElement.doScroll("left")}catch(c){setTimeout(P,1);return}a.ready()}}function sb(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 C(d,e,f,h,g,i){var j=d.length;if(typeof e==="object"){for(var b in e)C(d,b,e[b],h,g,f);return d}if(f!==c){h=!i&&h&&a.isFunction(f);for(b=0;b<j;b++)g(d[b],e,h?f.call(d[b],b,g(d[b],e)):f,i);return d}return j?g(d[0],e):null}function g(){return (new Date).getTime()}function D(){return false}function E(){return true}function R(c,d,b){b[0].type=c;return a.event.handle.apply(d,b)}function S(c){var l,j=[],f=[],m=arguments,b,d,k,g,e,i,h=a.extend({},a.data(this,"events").live);if(!(c.button&&c.type==="click")){for(g in h){d=h[g];if(d.live===c.type||d.altLive&&a.inArray(c.type,d.altLive)>-1){b=d.data;b.beforeFilter&&b.beforeFilter[c.type]&&!b.beforeFilter[c.type](c)||f.push(d.selector)}else delete h[g]}b=a(c.target).closest(f,c.currentTarget);e=0;for(i=b.length;e<i;e++)for(g in h){d=h[g];k=b[e].elem;f=null;if(b[e].selector===d.selector){if(d.live==="mouseenter"||d.live==="mouseleave")f=a(c.relatedTarget).closest(d.selector)[0];(!f||f!==k)&&j.push({elem:k,fn:d})}}e=0;for(i=j.length;e<i;e++){b=j[e];c.currentTarget=b.elem;c.data=b.fn.data;if(b.fn.apply(b.elem,m)===false){l=false;break}}return l}}function T(a,b){return "live."+(a?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&")}function U(a){return !a||!a.parentNode||a.parentNode.nodeType===11}function V(b,d){var c=0;d.each(function(){if(this.nodeName===(b[c]&&b[c].nodeName)){var d=a.data(b[c++]),f=a.data(this,d);if(d=d&&d.events){delete f.handle;f.events={};for(var e in d)for(var g in d[e])a.event.add(this,e,d[e][g],d[e][g].data)}}})}function W(c,d,h){var e,g,f;if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&c[0].indexOf("<option")<0&&(a.support.checkClone||!X.test(c[0]))){g=true;if(f=a.fragments[c[0]])if(f!==1)e=f}if(!e){d=d&&d[0]?d[0].ownerDocument||d[0]:b;e=d.createDocumentFragment();a.clean(c,d,e,h)}if(g)a.fragments[c[0]]=f?e:1;return {fragment:e,cacheable:g}}function h(c,d){var b={};a.each(Y.concat.apply([],Y.slice(0,d)),function(){b[this]=c});return b}function Z(a){return "scrollTo" in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var a=function(b,c){return new a.fn.init(b,c)},ub=d.jQuery,wb=d.$,b=d.document,n,yb=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ab=/^.[^:#\[\.,]*$/,Cb=/\S/,Eb=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Gb=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,k=navigator.userAgent,ab=false,l=[],i,B=Object.prototype.toString,r=Object.prototype.hasOwnProperty,s=Array.prototype.push,m=Array.prototype.slice,bb=Array.prototype.indexOf;a.fn=a.prototype={init:function(d,e){var f,g;if(!d)return this;if(d.nodeType){this.context=this[0]=d;this.length=1;return this}if(typeof d==="string")if((f=yb.exec(d))&&(f[1]||!e))if(f[1]){g=e?e.ownerDocument||e:b;if(d=Gb.exec(d))if(a.isPlainObject(e)){d=[b.createElement(d[1])];a.fn.attr.call(d,e,true)}else d=[g.createElement(d[1])];else{d=W([f[1]],[g]);d=(d.cacheable?d.fragment.cloneNode(true):d.fragment).childNodes}}else{if(e=b.getElementById(f[2])){if(e.id!==f[2])return n.find(d);this.length=1;this[0]=e}this.context=b;this.selector=d;return this}else if(!e&&/^\w+$/.test(d)){this.selector=d;this.context=b;d=b.getElementsByTagName(d)}else return !e||e.jquery?(e||n).find(d):a(e).find(d);else if(a.isFunction(d))return n.ready(d);if(d.selector!==c){this.selector=d.selector;this.context=d.context}return a.isArray(d)?this.setArray(d):a.makeArray(d,this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return m.call(this,0)},"get":function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(b,c,d){b=a(b||null);b.prevObject=this;b.context=this.context;if(c==="find")b.selector=this.selector+(this.selector?" ":"")+d;else if(c)b.selector=this.selector+"."+c+"("+d+")";return b},setArray:function(a){this.length=0;s.apply(this,a);return this},each:function(b,c){return a.each(this,b,c)},ready:function(c){a.bindReady();if(a.isReady)c.call(b,a);else l&&l.push(c);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(m.apply(this,arguments),"slice",m.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||a(null)},push:s,sort:[].sort,splice:[].splice};a.fn.init.prototype=a.fn;a.extend=a.fn.extend=function(){var b=arguments[0]||{},f=1,j=arguments.length,i=false,h,g,e,d;if(typeof b==="boolean"){i=b;b=arguments[1]||{};f=2}if(typeof b!=="object"&&!a.isFunction(b))b={};if(j===f){b=this;--f}for(;f<j;f++)if((h=arguments[f])!=null)for(g in h){e=b[g];d=h[g];if(b!==d)if(i&&d&&(a.isPlainObject(d)||a.isArray(d))){e=e&&(a.isPlainObject(e)||a.isArray(e))?e:a.isArray(d)?[]:{};b[g]=a.extend(i,e,d)}else if(d!==c)b[g]=d}return b};a.extend({noConflict:function(b){d.$=wb;if(b)d.jQuery=ub;return a},isReady:false,ready:function(){if(!a.isReady){if(!b.body)return setTimeout(a.ready,13);a.isReady=true;if(l){for(var c,d=0;c=l[d++];)c.call(b,a);l=null}a.fn.triggerHandler&&a(b).triggerHandler("ready")}},bindReady:function(){if(!ab){ab=true;if(b.readyState==="complete")return a.ready();if(b.addEventListener){b.addEventListener("DOMContentLoaded",i,false);d.addEventListener("load",a.ready,false)}else if(b.attachEvent){b.attachEvent("onreadystatechange",i);d.attachEvent("onload",a.ready);var c=false;try{c=d.frameElement==null}catch(e){}b.documentElement.doScroll&&c&&P()}}},isFunction:function(a){return B.call(a)==="[object Function]"},isArray:function(a){return B.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||B.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!r.call(a,"constructor")&&!r.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===c||r.call(a,b)},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;if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d.JSON&&d.JSON.parse?d.JSON.parse(b):new Function("return "+b)();else a.error("Invalid JSON: "+b)},noop:function(){},globalEval:function(d){if(d&&Cb.test(d)){var e=b.getElementsByTagName("head")[0]||b.documentElement,c=b.createElement("script");c.type="text/javascript";if(a.support.scriptEval)c.appendChild(b.createTextNode(d));else c.text=d;e.insertBefore(c,e.firstChild);e.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(b,g,d){var e,f=0,h=b.length,i=h===c||a.isFunction(b);if(d){if(i){for(e in b)if(g.apply(b[e],d)===false)break}else for(;f<h;)if(g.apply(b[f++],d)===false)break}else if(i){for(e in b)if(g.call(b[e],e,b[e])===false)break}else for(d=b[0];f<h&&g.call(d,f,d)!==false;d=b[++f]);return b},trim:function(a){return (a||"").replace(Eb,"")},makeArray:function(b,c){c=c||[];if(b!=null)b.length==null||typeof b==="string"||a.isFunction(b)||typeof b!=="function"&&b.setInterval?s.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 for(;b[d]!==c;)a[e++]=b[d++];a.length=e;return a},grep:function(b,d,e){for(var c=[],a=0,f=b.length;a<f;a++)!e!==!d(b[a],a)&&c.push(b[a]);return c},map:function(d,e,f){for(var a=[],c,b=0,g=d.length;b<g;b++){c=e(d[b],b,f);if(c!=null)a[a.length]=c}return a.concat.apply([],a)},guid:1,proxy:function(d,b,e){if(arguments.length===2)if(typeof b==="string"){e=d;d=e[b];b=c}else if(b&&!a.isFunction(b)){e=b;b=c}if(!b&&d)b=function(){return d.apply(e||this,arguments)};if(d)b.guid=d.guid=d.guid||b.guid||a.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return {browser:a[1]||"",version:a[2]||"0"}},browser:{}});k=a.uaMatch(k);if(k.browser){a.browser[k.browser]=true;a.browser.version=k.version}if(a.browser.webkit)a.browser.safari=true;if(bb)a.inArray=function(a,b){return bb.call(b,a)};n=a(b);if(b.addEventListener)i=function(){b.removeEventListener("DOMContentLoaded",i,false);a.ready()};else if(b.attachEvent)i=function(){if(b.readyState==="complete"){b.detachEvent("onreadystatechange",i);a.ready()}};(function(){a.support={};var e=b.documentElement,h=b.createElement("script"),c=b.createElement("div"),j="script"+g();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 i=c.getElementsByTagName("*"),f=c.getElementsByTagName("a")[0];if(!(!i||!i.length||!f)){a.support={leadingWhitespace:c.firstChild.nodeType===3,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:c.getElementsByTagName("input")[0].value==="on",optSelected:b.createElement("select").appendChild(b.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};h.type="text/javascript";try{h.appendChild(b.createTextNode("window."+j+"=1;"))}catch(l){}e.insertBefore(h,e.firstChild);if(d[j]){a.support.scriptEval=true;delete d[j]}e.removeChild(h);if(c.attachEvent&&c.fireEvent){c.attachEvent("onclick",function k(){a.support.noCloneEvent=false;c.detachEvent("onclick",k)});c.cloneNode(true).fireEvent("onclick")}c=b.createElement("div");c.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";e=b.createDocumentFragment();e.appendChild(c.firstChild);a.support.checkClone=e.cloneNode(true).cloneNode(true).lastChild.checked;a(function(){var c=b.createElement("div");c.style.width=c.style.paddingLeft="1px";b.body.appendChild(c);a.boxModel=a.support.boxModel=c.offsetWidth===2;b.body.removeChild(c).style.display="none"});e=function(a){var d=b.createElement("div");a="on"+a;var c=a in d;if(!c){d.setAttribute(a,"return;");c=typeof d[a]==="function"}return c};a.support.submitBubbles=e("submit");a.support.changeBubbles=e("change");e=h=c=i=f=null}})();a.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var f="jQuery"+g(),Ib=0,cb={},Kb={};a.extend({cache:{},expando:f,noData:{embed:true,object:true,applet:true},data:function(g,h,i){if(!(g.nodeName&&a.noData[g.nodeName.toLowerCase()])){g=g==d?cb:g;var e=g[f],b=a.cache;if(!h&&!e)return null;e||(e=++Ib);if(typeof h==="object"){g[f]=e;b=b[e]=a.extend(true,{},h)}else b=b[e]?b[e]:typeof i==="undefined"?Kb:(b[e]={});if(i!==c){g[f]=e;b[h]=i}return typeof h==="string"?b[h]:b}},removeData:function(b,e){if(!(b.nodeName&&a.noData[b.nodeName.toLowerCase()])){b=b==d?cb:b;var g=b[f],h=a.cache,c=h[g];if(e){if(c){delete c[e];a.isEmptyObject(c)&&a.removeData(b)}}else{try{delete b[f]}catch(i){b.removeAttribute&&b.removeAttribute(f)}delete h[g]}}}});a.fn.extend({data:function(d,f){if(typeof d==="undefined"&&this.length)return a.data(this[0]);else if(typeof d==="object")return this.each(function(){a.data(this,d)});var b=d.split(".");b[1]=b[1]?"."+b[1]:"";if(f===c){var e=this.triggerHandler("getData"+b[1]+"!",[b[0]]);if(e===c&&this.length)e=a.data(this[0],d);return e===c&&b[1]?this.data(b[0]):e}else return this.trigger("setData"+b[1]+"!",[b[0],f]).each(function(){a.data(this,d,f)})},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||[];if(!b||a.isArray(d))b=a.data(e,c,a.makeArray(d));else b.push(d);return b}},dequeue:function(d,b){b=b||"fx";var e=a.queue(d,b),c=e.shift();if(c==="inprogress")c=e.shift();if(c){b==="fx"&&e.unshift("inprogress");c.call(d,function(){a.dequeue(d,b)})}}});a.fn.extend({queue:function(b,d){if(typeof b!=="string"){d=b;b="fx"}if(d===c)return a.queue(this[0],b);return 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 db=/[\n\t]/g,t=/\s+/,Mb=/\r/g,Ob=/href|src|style/,Qb=/(button|input)/i,Rb=/(button|input|object|select|textarea)/i,fb=/^(a|area)$/i,eb=/radio|checkbox/;a.fn.extend({attr:function(b,c){return C(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(t),f=0,g=this.length;f<g;f++){var c=this[f];if(c.nodeType===1)if(c.className){for(var h=" "+c.className+" ",d=0,i=e.length;d<i;d++)if(h.indexOf(" "+e[d]+" ")<0)c.className+=" "+e[d]}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(t),f=0,i=this.length;f<i;f++){var d=this[f];if(d.nodeType===1&&d.className)if(b){for(var e=(" "+d.className+" ").replace(db," "),g=0,j=h.length;g<j;g++)e=e.replace(" "+h[g]+" "," ");d.className=e.substring(1,e.length-1)}else d.className=""}return this},toggleClass:function(b,c){var d=typeof b,e=typeof c==="boolean";if(a.isFunction(b))return this.each(function(e){var d=a(this);d.toggleClass(b.call(this,e,d.attr("class"),c),c)});return this.each(function(){if(d==="string")for(var f,i=0,h=a(this),g=c,j=b.split(t);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(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if((" "+this[b].className+" ").replace(db," ").indexOf(a)>-1)return true;return false},val:function(d){if(d===c){var b=this[0];if(b){if(a.nodeName(b,"option"))return (b.attributes.value||{}).specified?b.value:b.text;if(a.nodeName(b,"select")){var e=b.selectedIndex,h=[],g=b.options;b=b.type==="select-one";if(e<0)return null;var f=b?e:0;for(e=b?e+1:g.length;f<e;f++){var i=g[f];if(i.selected){d=a(i).val();if(b)return d;h.push(d)}}return h}if(eb.test(b.type)&&!a.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return (b.value||"").replace(Mb,"")}return c}var j=a.isFunction(d);return this.each(function(f){var c=a(this),b=d;if(this.nodeType===1){if(j)b=d.call(this,f,c.val());if(typeof b==="number")b+="";if(a.isArray(b)&&eb.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});if(!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,f){if(!b||b.nodeType===3||b.nodeType===8)return c;if(f&&d in a.attrFn)return a(b)[d](e);f=b.nodeType!==1||!a.isXMLDoc(b);var g=e!==c;d=f&&a.props[d]||d;if(b.nodeType===1){var h=Ob.test(d);if(d in b&&f&&!h){if(g){d==="type"&&Qb.test(b.nodeName)&&b.parentNode&&a.error("type property can't be changed");b[d]=e}if(a.nodeName(b,"form")&&b.getAttributeNode(d))return b.getAttributeNode(d).nodeValue;if(d==="tabIndex")return (d=b.getAttributeNode("tabIndex"))&&d.specified?d.value:Rb.test(b.nodeName)||fb.test(b.nodeName)&&b.href?0:c;return b[d]}if(!a.support.style&&f&&d==="style"){if(g)b.style.cssText=""+e;return b.style.cssText}g&&b.setAttribute(d,""+e);b=!a.support.hrefNormalized&&f&&h?b.getAttribute(d,2):b.getAttribute(d);return b===null?c:b}return a.style(b,d,e)}});var gb=function(a){return a.replace(/[^\w\s\.\|`]/g,function(a){return "\\"+a})};a.event={add:function(b,l,e,h){if(!(b.nodeType===3||b.nodeType===8)){if(b.setInterval&&b!==d&&!b.frameElement)b=d;if(!e.guid)e.guid=a.guid++;if(h!==c){e=a.proxy(e);e.data=h}var n=a.data(b,"events")||a.data(b,"events",{}),i=a.data(b,"handle"),m;if(!i){m=function(){return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(m.elem,arguments):c};i=a.data(b,"handle",m)}if(i){i.elem=b;l=l.split(/\s+/);for(var g,o=0;g=l[o++];){var f=g.split(".");g=f.shift();if(o>1){e=a.proxy(e);if(h!==c)e.data=h}e.type=f.slice(0).sort().join(".");var j=n[g],k=this.special[g]||{};if(!j){j=n[g]={};if(!k.setup||k.setup.call(b,h,f,e)===false)if(b.addEventListener)b.addEventListener(g,i,false);else b.attachEvent&&b.attachEvent("on"+g,i)}if(k.add)if((f=k.add.call(b,e,h,f,j))&&a.isFunction(f)){f.guid=f.guid||e.guid;f.data=f.data||e.data;f.type=f.type||e.type;e=f}j[e.guid]=e;this.global[g]=true}b=null}}},global:{},remove:function(d,e,j){if(!(d.nodeType===3||d.nodeType===8)){var f=a.data(d,"events"),g,b,m;if(f){if(e===c||typeof e==="string"&&e.charAt(0)===".")for(b in f)this.remove(d,b+(e||""));else{if(e.type){j=e.handler;e=e.type}e=e.split(/\s+/);for(var o=0;b=e[o++];){var h=b.split(".");b=h.shift();var n=!h.length,l=a.map(h.slice(0).sort(),gb);l=new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.)?")+"(\\.|$)");var k=this.special[b]||{};if(f[b]){if(j){m=f[b][j.guid];delete f[b][j.guid]}else for(var i in f[b])if(n||l.test(f[b][i].type))delete f[b][i];k.remove&&k.remove.call(d,h,m);for(g in f[b])break;if(!g){if(!k.teardown||k.teardown.call(d,h)===false)if(d.removeEventListener)d.removeEventListener(b,a.data(d,"handle"),false);else d.detachEvent&&d.detachEvent("on"+b,a.data(d,"handle"));g=null;delete f[b]}}}}for(g in f)break;if(!g){if(i=a.data(d,"handle"))i.elem=null;a.removeData(d,"events");a.removeData(d,"handle")}}}},trigger:function(d,g,b,h){var e=d.type||d;if(!h){d=typeof d==="object"?d[f]?d:a.extend(a.Event(e),d):a.Event(e);if(e.indexOf("!")>=0){d.type=e=e.slice(0,-1);d.exclusive=true}if(!b){d.stopPropagation();this.global[e]&&a.each(a.cache,function(){this.events&&this.events[e]&&a.event.trigger(d,g,this.handle.elem)})}if(!b||b.nodeType===3||b.nodeType===8)return c;d.result=c;d.target=b;g=a.makeArray(g);g.unshift(d)}d.currentTarget=b;(h=a.data(b,"handle"))&&h.apply(b,g);h=b.parentNode||b.ownerDocument;try{if(!(b&&b.nodeName&&a.noData[b.nodeName.toLowerCase()]))if(b["on"+e]&&b["on"+e].apply(b,g)===false)d.result=false}catch(j){}if(!d.isPropagationStopped()&&h)a.event.trigger(d,g,h,true);else if(!d.isDefaultPrevented()){b=d.target;var i;if(!(a.nodeName(b,"a")&&e==="click")&&!(b&&b.nodeName&&a.noData[b.nodeName.toLowerCase()])){try{if(b[e]){if(i=b["on"+e])b["on"+e]=null;this.triggered=true;b[e]()}}catch(j){}if(i)b["on"+e]=i;this.triggered=false}}},handle:function(b){var g,f;b=arguments[0]=a.event.fix(b||d.event);b.currentTarget=this;f=b.type.split(".");b.type=f.shift();g=!f.length&&!b.exclusive;var i=new RegExp("(^|\\.)"+f.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");f=(a.data(this,"events")||{})[b.type];for(var h in f){var e=f[h];if(g||i.test(e.type)){b.handler=e;b.data=e.data;e=e.apply(this,arguments);if(e!==c){b.result=e;if(e===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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(d){if(d[f])return d;var e=d;d=a.Event(e);for(var g=this.props.length,h;g;){h=this.props[--g];d[h]=e[h]}if(!d.target)d.target=d.srcElement||b;if(d.target.nodeType===3)d.target=d.target.parentNode;if(!d.relatedTarget&&d.fromElement)d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement;if(d.pageX==null&&d.clientX!=null){e=b.documentElement;g=b.body;d.pageX=d.clientX+(e&&e.scrollLeft||g&&g.scrollLeft||0)-(e&&e.clientLeft||g&&g.clientLeft||0);d.pageY=d.clientY+(e&&e.scrollTop||g&&g.scrollTop||0)-(e&&e.clientTop||g&&g.clientTop||0)}if(!d.which&&(d.charCode||d.charCode===0?d.charCode:d.keyCode))d.which=d.charCode||d.keyCode;if(!d.metaKey&&d.ctrlKey)d.metaKey=d.ctrlKey;if(!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(c,b){a.extend(c,b||{});c.guid+=b.selector+b.live;b.liveProxy=c;a.event.add(this,b.live,S,b)},remove:function(b){if(b.length){var c=0,d=new RegExp("(^|\\.)"+b[0]+"(\\.|$)");a.each(a.data(this,"events").live||{},function(){d.test(this.type)&&c++});c<1&&a.event.remove(this,b[0],S)}},special:{}},beforeunload:{setup:function(b,c,a){if(this.setInterval)this.onbeforeunload=a;return false},teardown:function(b,a){if(this.onbeforeunload===a)this.onbeforeunload=null}}}};a.Event=function(b){if(!this.preventDefault)return new a.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=g();this[f]=true};a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=E;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E;this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var F=function(c){for(var b=c.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){c.type=c.data;a.event.handle.apply(this,arguments)}},G=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?G:F,b)},teardown:function(b){a.event.remove(this,c,b&&b.selector?G:F)}}});if(!a.support.submitBubbles)a.event.special.submit={setup:function(c,d,b){if(this.nodeName.toLowerCase()!=="form"){a.event.add(this,"click.specialSubmit."+b.guid,function(d){var b=d.target,c=b.type;if((c==="submit"||c==="image")&&a(b).closest("form").length)return R("submit",this,arguments)});a.event.add(this,"keypress.specialSubmit."+b.guid,function(c){var b=c.target,d=b.type;if((d==="text"||d==="password")&&a(b).closest("form").length&&c.keyCode===13)return R("submit",this,arguments)})}else return false},remove:function(c,b){a.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));a.event.remove(this,"keypress.specialSubmit"+(b?"."+b.guid:""))}};if(!a.support.changeBubbles){var u=/textarea|input|select/i;function H(b){var d=b.type,c=b.value;if(d==="radio"||d==="checkbox")c=b.checked;else if(d==="select-multiple")c=b.selectedIndex>-1?a.map(b.options,function(a){return a.selected}).join("-"):"";else if(b.nodeName.toLowerCase()==="select")c=b.selectedIndex;return c}function v(d,g){var b=d.target,f,e;if(!(!u.test(b.nodeName)||b.readOnly)){f=a.data(b,"_change_data");e=H(b);(d.type!=="focusout"||b.type!=="radio")&&a.data(b,"_change_data",e);if(!(f===c||e===f))if(f!=null||e){d.type="change";return a.event.trigger(d,g,b)}}}a.event.special.change={filters:{focusout:v,click:function(a){var b=a.target,c=b.type;if(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")return v.call(this,a)},keydown:function(a){var c=a.target,b=c.type;if(a.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(b==="checkbox"||b==="radio")||b==="select-multiple")return v.call(this,a)},beforeactivate:function(b){b=b.target;b.nodeName.toLowerCase()==="input"&&b.type==="radio"&&a.data(b,"_change_data",H(b))}},setup:function(d,e,c){for(var b in o)a.event.add(this,b+".specialChange."+c.guid,o[b]);return u.test(this.nodeName)},remove:function(d,b){for(var c in o)a.event.remove(this,c+".specialChange"+(b?"."+b.guid:""),o[c]);return u.test(this.nodeName)}};var o=a.event.special.change.filters}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(d,f,e){if(typeof d==="object"){for(var g in d)this[b](g,f,d[g],e);return this}if(a.isFunction(f)){e=f;f=c}var h=b==="one"?a.proxy(e,function(b){a(this).unbind(b,h);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e):this.each(function(){a.event.add(this,d,h,f)})}});a.fn.extend({unbind:function(b,d){if(typeof b==="object"&&!b.preventDefault){for(var c in b)this.unbind(c,b[c]);return this}return this.each(function(){a.event.remove(this,b,d)})},trigger:function(b,c){return this.each(function(){a.event.trigger(b,c,this)})},triggerHandler:function(b,c){if(this[0]){b=a.Event(b);b.preventDefault();b.stopPropagation();a.event.trigger(b,c,this[0]);return b.result}},toggle:function(b){for(var c=arguments,d=1;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)}});a.each(["live","die"],function(d,b){a.fn[b]=function(e,g,f){var d,h=0;if(a.isFunction(g)){f=g;g=c}for(e=(e||"").split(/\s+/);(d=e[h++])!=null;){d=d==="focus"?"focusin":d==="blur"?"focusout":d==="hover"?e.push("mouseleave")&&"mouseenter":d;b==="live"?a(this.context).bind(T(d,this.selector),{data:g,selector:this.selector,live:d},f):a(this.context).unbind(T(d,this.selector),f?{guid:f.guid+this.selector+d}:null)}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){return a?this.bind(b,a):this.trigger(b)};if(a.attrFn)a.attrFn[b]=true});d.attachEvent&&!d.addEventListener&&d.attachEvent("onunload",function(){for(var b in a.cache)if(a.cache[b].handle)try{a.event.remove(a.cache[b].handle.elem)}catch(c){}});(function(){function k(d){for(var b="",a,c=0;d[c];c++){a=d[c];if(a.nodeType===3||a.nodeType===4)b+=a.nodeValue;else if(a.nodeType!==8)b+=k(a.childNodes)}return b}function o(e,g,f,c,b,h){b=0;for(var i=c.length;b<i;b++){var a=c[b];if(a){a=a[e];for(var d=false;a;){if(a.sizcache===f){d=c[a.sizset];break}if(a.nodeType===1&&!h){a.sizcache=f;a.sizset=b}if(a.nodeName.toLowerCase()===g){d=a;break}a=a[e]}c[b]=d}}}function p(g,f,h,c,b,i){b=0;for(var j=c.length;b<j;b++){var a=c[b];if(a){a=a[g];for(var d=false;a;){if(a.sizcache===h){d=c[a.sizset];break}if(a.nodeType===1){if(!i){a.sizcache=h;a.sizset=b}if(typeof f!=="string"){if(a===f){d=true;break}}else if(e.filter(f,[a]).length>0){d=a;break}}a=a[g]}c[b]=d}}}var m=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,l=0,r=Object.prototype.toString,f=false,s=true;[0,0].sort(function(){s=false;return 0});var e=function(c,h,k,p){k=k||[];var x=h=h||b;if(h.nodeType!==1&&h.nodeType!==9)return [];if(!c||typeof c!=="string")return k;for(var a=[],f,l,j,u,v=true,s=i(h),w=c;(m.exec(""),f=m.exec(w))!==null;){w=f[3];a.push(f[1]);if(f[2]){u=f[3];break}}if(a.length>1&&t.exec(c))if(a.length===2&&d.relative[a[0]])l=n(a[0]+a[1],h);else for(l=d.relative[a[0]]?[h]:e(a.shift(),h);a.length;){c=a.shift();if(d.relative[c])c+=a.shift();l=n(c,l)}else{if(!p&&a.length>1&&h.nodeType===9&&!s&&d.match.ID.test(a[0])&&!d.match.ID.test(a[a.length-1])){f=e.find(a.shift(),h,s);h=f.expr?e.filter(f.expr,f.set)[0]:f.set[0]}if(h){f=p?{expr:a.pop(),"set":g(p)}:e.find(a.pop(),a.length===1&&(a[0]==="~"||a[0]==="+")&&h.parentNode?h.parentNode:h,s);l=f.expr?e.filter(f.expr,f.set):f.set;if(a.length>0)j=g(l);else v=false;for(;a.length;){var o=a.pop();f=o;if(d.relative[o])f=a.pop();else o="";if(f==null)f=h;d.relative[o](j,f,s)}}else j=[]}j||(j=l);j||e.error(o||c);if(r.call(j)==="[object Array]")if(v)if(h&&h.nodeType===1)for(c=0;j[c]!=null;c++)j[c]&&(j[c]===true||j[c].nodeType===1&&q(h,j[c]))&&k.push(l[c]);else for(c=0;j[c]!=null;c++)j[c]&&j[c].nodeType===1&&k.push(l[c]);else k.push.apply(k,j);else g(j,k);if(u){e(u,x,k,p);e.uniqueSort(k)}return k};e.uniqueSort=function(a){if(h){f=s;a.sort(h);if(f)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a};e.matches=function(a,b){return e(a,null,null,b)};e.find=function(b,g,i){var c,a;if(!b)return [];for(var e=0,j=d.order.length;e<j;e++){var f=d.order[e];if(a=d.leftMatch[f].exec(b)){var h=a[1];a.splice(1,1);if(h.substr(h.length-1)!=="\\"){a[1]=(a[1]||"").replace(/\\/g,"");c=d.find[f](a,g,i);if(c!=null){b=b.replace(d.match[f],"");break}}}}c||(c=g.getElementsByTagName("*"));return {"set":c,expr:b}};e.filter=function(b,j,o,q){for(var r=b,m=[],g=j,a,h,t=j&&j[0]&&i(j[0]);b&&j.length;){for(var k in d.filter)if((a=d.leftMatch[k].exec(b))!=null&&a[2]){var s=d.filter[k],l,f;f=a[1];h=false;a.splice(1,1);if(f.substr(f.length-1)!=="\\"){if(g===m)m=[];if(d.preFilter[k])if(a=d.preFilter[k](a,g,o,m,q,t)){if(a===true)continue}else h=l=true;if(a)for(var n=0;(f=g[n])!=null;n++)if(f){l=s(f,a,n,g);var p=q^!!l;if(o&&l!=null)if(p)h=true;else g[n]=false;else if(p){m.push(f);h=true}}if(l!==c){o||(g=m);b=b.replace(d.match[k],"");if(!h)return [];break}}}if(b===r)if(h==null)e.error(b);else break;r=b}return g};e.error=function(a){throw"Syntax error, unrecognized expression: "+a};var d=e.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")}},relative:{"+":function(f,b){var d=typeof b==="string",c=d&&!/\W/.test(b);d=d&&!c;if(c)b=b.toLowerCase();c=0;for(var g=f.length,a;c<g;c++)if(a=f[c]){for(;(a=a.previousSibling)&&a.nodeType!==1;);f[c]=d||a&&a.nodeName.toLowerCase()===b?a||false:a===b}d&&e.filter(b,f,true)},">":function(b,c){var d=typeof c==="string";if(d&&!/\W/.test(c)){c=c.toLowerCase();for(var a=0,g=b.length;a<g;a++){var f=b[a];if(f){d=f.parentNode;b[a]=d.nodeName.toLowerCase()===c?d:false}}}else{a=0;for(g=b.length;a<g;a++)if(f=b[a])b[a]=d?f.parentNode:f.parentNode===c;d&&e.filter(c,b,true)}},"":function(c,a,d){var e=l++,b=p;if(typeof a==="string"&&!/\W/.test(a)){var f=a=a.toLowerCase();b=o}b("parentNode",a,e,c,f,d)},"~":function(c,a,d){var e=l++,b=p;if(typeof a==="string"&&!/\W/.test(a)){var f=a=a.toLowerCase();b=o}b("previousSibling",a,e,c,f,d)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return (a=b.getElementById(a[1]))?[a]:[]},NAME:function(d,a){if(typeof a.getElementsByName!=="undefined"){var c=[];a=a.getElementsByName(d[1]);for(var b=0,e=a.length;b<e;b++)a[b].getAttribute("name")===d[1]&&c.push(a[b]);return c.length===0?null:c}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(c,d,e,f,g,a){c=" "+c[1].replace(/\\/g,"")+" ";if(a)return c;a=0;for(var b;(b=d[a])!=null;a++)if(b)if(g^(b.className&&(" "+b.className+" ").replace(/[\t\n]/g," ").indexOf(c)>=0))e||f.push(b);else if(e)d[a]=false;return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},CHILD:function(a){if(a[1]==="nth"){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}a[0]=l++;return a},ATTR:function(a,b,e,f,g,c){b=a[1].replace(/\\/g,"");if(!c&&d.attrMap[b])a[1]=d.attrMap[b];if(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]=e(a[3],null,null,b);else{a=e.filter(a[3],b,c,true^g);c||f.push.apply(f,a);return false}else if(d.match.POS.test(a[0])||d.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){return a.selected===true},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,c,b){return !!e(b[3],a).length},header:function(a){return /h\d/i.test(a.nodeName)},text:function(a){return "text"===a.type},radio:function(a){return "radio"===a.type},checkbox:function(a){return "checkbox"===a.type},file:function(a){return "file"===a.type},password:function(a){return "password"===a.type},submit:function(a){return "submit"===a.type},image:function(a){return "image"===a.type},reset:function(a){return "reset"===a.type},button:function(a){return "button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return /input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(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(b,a,c,g){var f=a[1],h=d.filters[f];if(h)return h(b,c,a,g);else if(f==="contains")return (b.textContent||b.innerText||k([b])||"").indexOf(a[3])>=0;else if(f==="not"){a=a[3];c=0;for(g=a.length;c<g;c++)if(a[c]===b)return false;return true}else e.error("Syntax error, unrecognized expression: "+f)},CHILD:function(b,c){var d=c[1],a=b;switch(d){case "only":case "first":for(;a=a.previousSibling;)if(a.nodeType===1)return false;if(d==="first")return true;a=b;case "last":for(;a=a.nextSibling;)if(a.nodeType===1)return false;return true;case "nth":d=c[2];var f=c[3];if(d===1&&f===0)return true;c=c[0];var e=b.parentNode;if(e&&(e.sizcache!==c||!b.nodeIndex)){var g=0;for(a=e.firstChild;a;a=a.nextSibling)if(a.nodeType===1)a.nodeIndex=++g;e.sizcache=c}b=b.nodeIndex-f;return d===0?b===0:b%d===0&&b/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(c,b){var a=b[1];c=d.attrHandle[a]?d.attrHandle[a](c):c[a]!=null?c[a]:c.getAttribute(a);a=c+"";var e=b[2];b=b[4];return c==null?e==="!=":e==="="?a===b:e==="*="?a.indexOf(b)>=0:e==="~="?(" "+a+" ").indexOf(b)>=0:!b?a&&c!==false:e==="!="?a!==b:e==="^="?a.indexOf(b)===0:e==="$="?a.substr(a.length-b.length)===b:e==="|="?a===b||a.substr(0,b.length+1)===b+"-":false},POS:function(c,a,e,f){var b=d.setFilters[a[2]];if(b)return b(c,e,a,f)}}},t=d.match.POS;for(var j in d.match){d.match[j]=new RegExp(d.match[j].source+/(?![^\[]*\])(?![^\(]*\))/.source);d.leftMatch[j]=new RegExp(/(^(?:.|\r|\n)*?)/.source+d.match[j].source.replace(/\\(\d+)/g,function(b,a){return "\\"+(a-0+1)}))}var g=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)}catch(u){g=function(a,c){c=c||[];if(r.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var b=0,d=a.length;b<d;b++)c.push(a[b]);else for(b=0;a[b];b++)c.push(a[b]);return c}}var h;if(b.documentElement.compareDocumentPosition)h=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b)f=true;return a.compareDocumentPosition?-1:1}a=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(a===0)f=true;return a};else if("sourceIndex" in b.documentElement)h=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b)f=true;return a.sourceIndex?-1:1}a=a.sourceIndex-b.sourceIndex;if(a===0)f=true;return a};else if(b.createRange)h=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b)f=true;return a.ownerDocument?-1:1}var c=a.ownerDocument.createRange(),d=b.ownerDocument.createRange();c.setStart(a,0);c.setEnd(a,0);d.setStart(b,0);d.setEnd(b,0);a=c.compareBoundaryPoints(Range.START_TO_END,d);if(a===0)f=true;return a};(function(){var a=b.createElement("div"),f="script"+(new Date).getTime();a.innerHTML="<a name='"+f+"'/>";var e=b.documentElement;e.insertBefore(a,e.firstChild);if(b.getElementById(f)){d.find.ID=function(b,a,d){if(typeof a.getElementById!=="undefined"&&!d)return (a=a.getElementById(b[1]))?a.id===b[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===b[1]?[a]:c:[]};d.filter.ID=function(a,c){var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===c}}e.removeChild(a);e=a=null})();(function(){var a=b.createElement("div");a.appendChild(b.createComment(""));if(a.getElementsByTagName("*").length>0)d.find.TAG=function(b,a){a=a.getElementsByTagName(b[1]);if(b[1]==="*"){b=[];for(var c=0;a[c];c++)a[c].nodeType===1&&b.push(a[c]);a=b}return a};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")d.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();b.querySelectorAll&&function(){var c=e,a=b.createElement("div");a.innerHTML="<p class='TEST'></p>";if(!(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0)){e=function(d,a,e,f){a=a||b;if(!f&&a.nodeType===9&&!i(a))try{return g(a.querySelectorAll(d),e)}catch(h){}return c(d,a,e,f)};for(var d in c)e[d]=c[d];a=null}}();(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){d.order.splice(1,0,"CLASS");d.find.CLASS=function(b,a,c){if(typeof a.getElementsByClassName!=="undefined"&&!c)return a.getElementsByClassName(b[1])};a=null}}})();var q=b.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)},i=function(a){return (a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false},n=function(a,b){var f=[],g="",c;for(b=b.nodeType?[b]:b;c=d.match.PSEUDO.exec(a);){g+=c[0];a=a.replace(d.match.PSEUDO,"")}a=d.relative[a]?a+"*":a;c=0;for(var h=b.length;c<h;c++)e(a,b[c],f);return e.filter(g,f)};a.find=e;a.expr=e.selectors;a.expr[":"]=a.expr.filters;a.unique=e.uniqueSort;a.getText=k;a.isXMLDoc=i;a.contains=q})();var hb=/Until$/,ib=/^(?:parents|prevUntil|prevAll)/,jb=/,/;m=Array.prototype.slice;var I=function(c,b,d){if(a.isFunction(b))return a.grep(c,function(a,c){return !!b.call(a,c,a)===d});else if(b.nodeType)return a.grep(c,function(a){return a===b===d});else if(typeof b==="string"){var e=a.grep(c,function(a){return a.nodeType===1});if(Ab.test(b))return a.filter(b,e,!d);else b=a.filter(b,e)}return a.grep(c,function(c){return a.inArray(c,b)>=0===d})};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(I(this,a,false),"not",a)},filter:function(a){return this.pushStack(I(this,a,true),"filter",a)},is:function(b){return !!b&&a.filter(b,this).length>0},closest:function(e,g){if(a.isArray(e)){var h=[],c=this[0],d,f={},b;if(c&&e.length){d=0;for(var j=e.length;d<j;d++){b=e[d];f[b]||(f[b]=a.expr.match.POS.test(b)?a(b,g||this.context):b)}for(;c&&c.ownerDocument&&c!==g;){for(b in f){d=f[b];if(d.jquery?d.index(c)>-1:a(c).is(d)){h.push({selector:b,elem:c});delete f[b]}}c=c.parentNode}}return h}var i=a.expr.match.POS.test(e)?a(e,g||this.context):null;return this.map(function(c,b){for(;b&&b.ownerDocument&&b!==g;){if(i?i.index(b)>-1:a(b).is(e))return b;b=b.parentNode}return null})},index:function(b){if(!b||typeof b==="string")return a.inArray(this[0],b?a(b):this.parent().children());return a.inArray(b.jquery?b[0]:b,this)},add:function(b,c){b=typeof b==="string"?a(b,c||this.context):a.makeArray(b);c=a.merge(this.get(),b);return this.pushStack(U(b[0])||U(c[0])?c:a.unique(c))},andSelf:function(){return this.add(this.prevObject)}});a.each({parent:function(a){return (a=a.parentNode)&&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);hb.test(b)||(e=f);if(e&&typeof e==="string")d=a.filter(e,d);d=this.length>1?a.unique(d):d;if((this.length>1||jb.test(e))&&ib.test(b))d=d.reverse();return this.pushStack(d,b,m.call(arguments).join(","))}});a.extend({filter:function(b,c,d){if(d)b=":not("+b+")";return a.find.matches(b,c)},dir:function(b,d,e){var f=[];for(b=b[d];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 J=/ jQuery\d+="(?:\d+|null)"/g,p=/^\s+/,K=/(<([\w:]+)[^>]*?)\/>/g,kb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,L=/<([\w:]+)/,lb=/<tbody/i,mb=/<|&\w+;/,X=/checked\s*(?:[^=]|=\s*.checked.)/i,M=function(b,c,a){return kb.test(a)?b:c+"></"+a+">"},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;if(!a.support.htmlSerialize)e._default=[1,"div<div>","</div>"];a.fn.extend({text:function(d){if(a.isFunction(d))return this.each(function(c){var b=a(this);b.text(d.call(this,c,b.text()))});if(typeof d!=="object"&&d!==c)return this.empty().append((this[0]&&this[0].ownerDocument||b).createTextNode(d));return a.getText(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(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(b){if(a.isFunction(b))return this.each(function(c){a(this).wrapInner(b.call(this,c))});return 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)});else 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)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,a(arguments[0]).toArray());return b}},clone:function(c){var b=this.map(function(){if(!a.support.noCloneEvent&&!a.isXMLDoc(this)){var b=this.outerHTML,c=this.ownerDocument;if(!b){b=c.createElement("div");b.appendChild(this.cloneNode(true));b=b.innerHTML}return a.clean([b.replace(J,"").replace(p,"")],c)[0]}else return this.cloneNode(true)});if(c===true){V(this,b);V(this.find("*"),b.find("*"))}return b},html:function(b){if(b===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(J,""):null;else if(typeof b==="string"&&!/<script/i.test(b)&&(a.support.leadingWhitespace||!p.test(b))&&!e[(L.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(K,M);try{for(var d=0,f=this.length;d<f;d++)if(this[d].nodeType===1){a.cleanData(this[d].getElementsByTagName("*"));this[d].innerHTML=b}}catch(g){this.empty().append(b)}}else a.isFunction(b)?this.each(function(d){var c=a(this),e=c.html();c.empty().append(function(){return b.call(this,d,e)})}):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))});else 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)})}else return this.pushStack(a(a.isFunction(b)?b():b),"replaceWith",b)},detach:function(a){return this.remove(a,true)},domManip:function(b,d,h){function k(b){return a.nodeName(b,"table")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}var e,i,g=b[0],j=[];if(!a.support.checkClone&&arguments.length===3&&typeof g==="string"&&X.test(g))return this.each(function(){a(this).domManip(b,d,h,true)});if(a.isFunction(g))return this.each(function(f){var e=a(this);b[0]=g.call(this,f,d?e.html():c);e.domManip(b,d,h)});if(this[0]){e=b[0]&&b[0].parentNode&&b[0].parentNode.nodeType===11?{fragment:b[0].parentNode}:W(b,this,j);if(i=e.fragment.firstChild){d=d&&a.nodeName(i,"tr");for(var f=0,l=this.length;f<l;f++)h.call(d?k(this[f],i):this[f],e.cacheable||this.length>1||f>0?e.fragment.cloneNode(true):e.fragment)}j&&a.each(j,sb)}return this}});a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){a.fn[b]=function(d){var f=[];d=a(d);for(var e=0,h=d.length;e<h;e++){var g=(e>0?this.clone(true):this).get();a.fn[c].apply(a(d[e]),g);f=f.concat(g)}return this.pushStack(f,b,d.selector)}});a.each({remove:function(b,c){if(!b||a.filter(b,[this]).length){if(!c&&this.nodeType===1){a.cleanData(this.getElementsByTagName("*"));a.cleanData([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&a.cleanData(this.getElementsByTagName("*"));this.firstChild;)this.removeChild(this.firstChild)}},function(b,c){a.fn[b]=function(){return this.each(c,arguments)}});a.extend({clean:function(d,f,g,h){f=f||b;if(typeof f.createElement==="undefined")f=f.ownerDocument||f[0]&&f[0].ownerDocument||b;var c=[];a.each(d,function(g,b){if(typeof b==="number")b+="";if(b){if(typeof b==="string"&&!mb.test(b))b=f.createTextNode(b);else if(typeof b==="string"){b=b.replace(K,M);var h=(L.exec(b)||["",""])[1].toLowerCase(),d=e[h]||e._default,i=d[0];g=f.createElement("div");for(g.innerHTML=d[1]+b+d[2];i--;)g=g.lastChild;if(!a.support.tbody){i=lb.test(b);h=h==="table"&&!i?g.firstChild&&g.firstChild.childNodes:d[1]==="<table>"&&!i?g.childNodes:[];for(d=h.length-1;d>=0;--d)a.nodeName(h[d],"tbody")&&!h[d].childNodes.length&&h[d].parentNode.removeChild(h[d])}!a.support.leadingWhitespace&&p.test(b)&&g.insertBefore(f.createTextNode(p.exec(b)[0]),g.firstChild);b=a.makeArray(g.childNodes)}if(b.nodeType)c.push(b);else c=a.merge(c,b)}});if(g)for(d=0;c[d];d++)if(h&&a.nodeName(c[d],"script")&&(!c[d].type||c[d].type.toLowerCase()==="text/javascript"))h.push(c[d].parentNode?c[d].parentNode.removeChild(c[d]):c[d]);else{c[d].nodeType===1&&c.splice.apply(c,[d+1,0].concat(a.makeArray(c[d].getElementsByTagName("script"))));g.appendChild(c[d])}return c},cleanData:function(d){for(var c=0,b;(b=d[c])!=null;c++){a.event.remove(b);a.removeData(b)}}});var nb=/z-?index|font-?weight|opacity|zoom|line-?height/i,N=/alpha\([^)]*\)/,O=/opacity=([^)]*)/,w=/float/i,x=/-([a-z])/ig,ob=/([A-Z])/g,pb=/^-?\d+(?:px)?$/i,qb=/^-?\d/,rb={position:"absolute",visibility:"hidden",display:"block"},tb=["Left","Right"],vb=["Top","Bottom"],xb=b.defaultView&&b.defaultView.getComputedStyle,Q=a.support.cssFloat?"cssFloat":"styleFloat",y=function(b,a){return a.toUpperCase()};a.fn.css=function(b,d){return C(this,b,d,true,function(e,d,b){if(b===c)return a.curCSS(e,d);if(typeof b==="number"&&!nb.test(d))b+="px";a.style(e,d,b)})};a.extend({style:function(d,b,f){if(!d||d.nodeType===3||d.nodeType===8)return c;if((b==="width"||b==="height")&&parseFloat(f)<0)f=c;var e=d.style||d,g=f!==c;if(!a.support.opacity&&b==="opacity"){if(g){e.zoom=1;b=parseInt(f,10)+""==="NaN"?"":"alpha(opacity="+f*100+")";d=e.filter||a.curCSS(d,"filter")||"";e.filter=N.test(d)?d.replace(N,b):b}return e.filter&&e.filter.indexOf("opacity=")>=0?parseFloat(O.exec(e.filter)[1])/100+"":""}if(w.test(b))b=Q;b=b.replace(x,y);if(g)e[b]=f;return e[b]},css:function(b,c,g,e){if(c==="width"||c==="height"){var d,h=c==="width"?tb:vb;function f(){d=c==="width"?b.offsetWidth:b.offsetHeight;e!=="border"&&a.each(h,function(){e||(d-=parseFloat(a.curCSS(b,"padding"+this,true))||0);if(e==="margin")d+=parseFloat(a.curCSS(b,"margin"+this,true))||0;else d-=parseFloat(a.curCSS(b,"border"+this+"Width",true))||0})}b.offsetWidth!==0?f():a.swap(b,rb,f);return Math.max(0,Math.round(d))}return a.curCSS(b,c,g)},curCSS:function(c,b,f){var d,e=c.style;if(!a.support.opacity&&b==="opacity"&&c.currentStyle){d=O.test(c.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return d===""?"1":d}if(w.test(b))b=Q;if(!f&&e&&e[b])d=e[b];else if(xb){if(w.test(b))b="float";b=b.replace(ob,"-$1").toLowerCase();e=c.ownerDocument.defaultView;if(!e)return null;if(c=e.getComputedStyle(c,null))d=c.getPropertyValue(b);if(b==="opacity"&&d==="")d="1"}else if(c.currentStyle){f=b.replace(x,y);d=c.currentStyle[b]||c.currentStyle[f];if(!pb.test(d)&&qb.test(d)){b=e.left;var g=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;e.left=f==="fontSize"?"1em":d||0;d=e.pixelLeft+"px";e.left=b;c.runtimeStyle.left=g}}return d},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]}});if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(b){var c=b.offsetWidth,d=b.offsetHeight,e=b.nodeName.toLowerCase()==="tr";return c===0&&d===0&&!e?true:c>0&&d>0&&!e?false:a.curCSS(b,"display")==="none"};a.expr.filters.visible=function(b){return !a.expr.filters.hidden(b)}}var zb=g(),Bb=/<script(.|\s)*?\/script>/gi,Db=/select|textarea/i,Fb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,j=/=\?(&|$)/,z=/\?/,Hb=/(\?|&)_=.*?(&|$)/,Jb=/^(\w+:)?\/\/([^\/?#]+)/,Lb=/%20/g;a.fn.extend({_load:a.fn.load,load:function(b,c,e){if(typeof b!=="string")return this._load(b);else if(!this.length)return this;var d=b.indexOf(" ");if(d>=0){var f=b.slice(d,b.length);b=b.slice(0,d)}d="GET";if(c)if(a.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=a.param(c,a.ajaxSettings.traditional);d="POST"}var g=this;a.ajax({url:b,type:d,dataType:"html",data:c,complete:function(b,c){(c==="success"||c==="notmodified")&&g.html(f?a("<div />").append(b.responseText.replace(Bb,"")).find(f):b.responseText);e&&g.each(e,[b.responseText,c,b])}});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||Db.test(this.nodeName)||Fb.test(this.type))}).map(function(b,c){b=a(this).val();return b==null?null:a.isArray(b)?a.map(b,function(a){return {name:c.name,value:a}}):{name:c.name,value:b}}).get()}});a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,b){a.fn[b]=function(a){return this.bind(b,a)}});a.extend({"get":function(e,b,c,d){if(a.isFunction(b)){d=d||c;c=b;b=null}return a.ajax({type:"GET",url:e,data:b,success:c,dataType:d})},getScript:function(b,c){return a.get(b,null,c,"script")},getJSON:function(b,c,d){return a.get(b,c,d,"json")},post:function(e,b,c,d){if(a.isFunction(b)){d=d||c;c=b;b={}}return a.ajax({type:"POST",url:e,data:b,success:c,dataType:d})},ajaxSetup:function(b){a.extend(a.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:d.XMLHttpRequest&&(d.location.protocol!=="file:"||!d.ActiveXObject)?function(){return new d.XMLHttpRequest}:function(){try{return new d.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(o){function r(){e.success&&e.success.call(v,u,m,f);e.global&&s("ajaxSuccess",[f,e])}function p(){e.complete&&e.complete.call(v,f,m);e.global&&s("ajaxComplete",[f,e]);e.global&&!--a.active&&a.event.trigger("ajaxStop")}function s(c,b){(e.context?a(e.context):a.event).trigger(c,b)}var e=a.extend(true,{},a.ajaxSettings,o),i,m,u,v=o&&o.context||e,k=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=a.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(k==="GET")j.test(e.url)||(e.url+=(z.test(e.url)?"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!j.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&j.test(e.data)||j.test(e.url))){i=e.jsonpCallback||"jsonp"+zb++;if(e.data)e.data=(e.data+"").replace(j,"="+i+"$1");e.url=e.url.replace(j,"="+i+"$1");e.dataType="script";d[i]=d[i]||function(a){u=a;r();p();d[i]=c;try{delete d[i]}catch(b){}n&&n.removeChild(h)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===false&&k==="GET"){var l=g(),x=e.url.replace(Hb,"$1_="+l+"$2");e.url=x+(x===e.url?(z.test(e.url)?"&":"?")+"_="+l:"")}if(e.data&&k==="GET")e.url+=(z.test(e.url)?"&":"?")+e.data;e.global&&!a.active++&&a.event.trigger("ajaxStart");l=(l=Jb.exec(e.url))&&(l[1]&&l[1]!==location.protocol||l[2]!==location.host);if(e.dataType==="script"&&k==="GET"&&l){var n=b.getElementsByTagName("head")[0]||b.documentElement,h=b.createElement("script");h.src=e.url;if(e.scriptCharset)h.charset=e.scriptCharset;if(!i){var w=false;h.onload=h.onreadystatechange=function(){if(!w&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){w=true;r();p();h.onload=h.onreadystatechange=null;n&&h.parentNode&&n.removeChild(h)}}}n.insertBefore(h,n.firstChild);return c}var q=false,f=e.xhr();if(f){e.username?f.open(k,e.url,e.async,e.username,e.password):f.open(k,e.url,e.async);try{(e.data||o&&o.contentType)&&f.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){a.lastModified[e.url]&&f.setRequestHeader("If-Modified-Since",a.lastModified[e.url]);a.etag[e.url]&&f.setRequestHeader("If-None-Match",a.etag[e.url])}l||f.setRequestHeader("X-Requested-With","XMLHttpRequest");f.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(A){}if(e.beforeSend&&e.beforeSend.call(v,f,e)===false){e.global&&!--a.active&&a.event.trigger("ajaxStop");f.abort();return false}e.global&&s("ajaxSend",[f,e]);var t=f.onreadystatechange=function(b){if(!f||f.readyState===0||b==="abort"){q||p();q=true;if(f)f.onreadystatechange=a.noop}else if(!q&&f&&(f.readyState===4||b==="timeout")){q=true;f.onreadystatechange=a.noop;m=b==="timeout"?"timeout":!a.httpSuccess(f)?"error":e.ifModified&&a.httpNotModified(f,e.url)?"notmodified":"success";var c;if(m==="success")try{u=a.httpData(f,e.dataType,e)}catch(d){m="parsererror";c=d}if(m==="success"||m==="notmodified")i||r();else a.handleError(e,f,m,c);p();b==="timeout"&&f.abort();if(e.async)f=null}};try{var y=f.abort;f.abort=function(){f&&y.call(f);t("abort")}}catch(A){}e.async&&e.timeout>0&&setTimeout(function(){f&&!q&&t("timeout")},e.timeout);try{f.send(k==="POST"||k==="PUT"||k==="DELETE"?e.data:null)}catch(A){a.handleError(e,f,null,A);p()}e.async||t();return f}},handleError:function(b,c,e,d){b.error&&b.error.call(b.context||b,c,e,d);b.global&&(b.context?a(b.context):a.event).trigger("ajaxError",[c,b,d])},active:0,httpSuccess:function(a){try{return !a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(b,c){var d=b.getResponseHeader("Last-Modified"),e=b.getResponseHeader("Etag");if(d)a.lastModified[c]=d;if(e)a.etag[c]=e;return b.status===304||b.status===0},httpData:function(b,c,d){var e=b.getResponseHeader("content-type")||"",f=c==="xml"||!c&&e.indexOf("xml")>=0;b=f?b.responseXML:b.responseText;f&&b.documentElement.nodeName==="parsererror"&&a.error("parsererror");if(d&&d.dataFilter)b=d.dataFilter(b,c);if(typeof b==="string")if(c==="json"||!c&&e.indexOf("json")>=0)b=a.parseJSON(b);else(c==="script"||!c&&e.indexOf("javascript")>=0)&&a.globalEval(b);return b},param:function(b,d){function e(c,b){if(a.isArray(b))a.each(b,function(f,b){d?g(c,b):e(c+"["+(typeof b==="object"||a.isArray(b)?f:"")+"]",b)});else!d&&b!=null&&typeof b==="object"?a.each(b,function(b,a){e(c+"["+b+"]",a)}):g(c,b)}function g(c,b){b=a.isFunction(b)?b():b;f[f.length]=encodeURIComponent(c)+"="+encodeURIComponent(b)}var f=[];if(d===c)d=a.ajaxSettings.traditional;if(a.isArray(b)||b.jquery)a.each(b,function(){g(this.name,this.value)});else for(var h in b)e(h,b[h]);return f.join("&").replace(Lb,"+")}});var A={},Nb=/toggle|show|hide/,Pb=/^([+-]=)?([\d+-.]+)(.*)$/,q,Y=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];a.fn.extend({show:function(b,e){if(b||b===0)return this.animate(h("show",3),b,e);else{b=0;for(e=this.length;b<e;b++){var c=a.data(this[b],"olddisplay");this[b].style.display=c||"";if(a.css(this[b],"display")==="none"){c=this[b].nodeName;var d;if(A[c])d=A[c];else{var f=a("<"+c+" />").appendTo("body");d=f.css("display");if(d==="none")d="block";f.remove();A[c]=d}a.data(this[b],"olddisplay",d)}}b=0;for(e=this.length;b<e;b++)this[b].style.display=a.data(this[b],"olddisplay")||"";return this}},hide:function(b,c){if(b||b===0)return this.animate(h("hide",3),b,c);else{b=0;for(c=this.length;b<c;b++){var d=a.data(this[b],"olddisplay");!d&&d!=="none"&&a.data(this[b],"olddisplay",a.css(this[b],"display"))}b=0;for(c=this.length;b<c;b++)this[b].style.display="none";return this}},_toggle:a.fn.toggle,toggle:function(b,c){var d=typeof b==="boolean";if(a.isFunction(b)&&a.isFunction(c))this._toggle.apply(this,arguments);else b==null||d?this.each(function(){var c=d?b:a(this).is(":hidden");a(this)[c?"show":"hide"]()}):this.animate(h("toggle",3),b,c);return this},fadeTo:function(a,b,c){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c)},animate:function(b,d,e,f){var c=a.speed(d,e,f);if(a.isEmptyObject(b))return this.each(c.complete);return this[c.queue===false?"each":"queue"](function(){var e=a.extend({},c),d,g=this.nodeType===1&&a(this).is(":hidden"),h=this;for(d in b){var f=d.replace(x,y);if(d!==f){b[f]=b[d];delete b[d];d=f}if(b[d]==="hide"&&g||b[d]==="show"&&!g)return e.complete.call(this);if((d==="height"||d==="width")&&this.style){e.display=a.css(this,"display");e.overflow=this.style.overflow}if(a.isArray(b[d])){(e.specialEasing=e.specialEasing||{})[d]=b[d][1];b[d]=b[d][0]}}if(e.overflow!=null)this.style.overflow="hidden";e.curAnim=a.extend({},b);a.each(b,function(k,c){var f=new a.fx(h,e,k);if(Nb.test(c))f[c==="toggle"?g?"show":"hide":c](b);else{var i=Pb.exec(c),d=f.cur(true)||0;if(i){c=parseFloat(i[2]);var j=i[3]||"px";if(j!=="px"){h.style[k]=(c||1)+j;d=(c||1)/f.cur(true)*d;h.style[k]=d+j}if(i[1])c=(i[1]==="-="?-1:1)*c+d;f.custom(d,c,j)}else f.custom(d,c,"")}});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--)if(b[a].elem===this){c&&b[a](true);b.splice(a,1)}});c||this.dequeue();return this}});a.each({slideDown:h("show",1),slideUp:h("hide",1),slideToggle:h("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){a.fn[b]=function(a,b){return this.animate(c,a,b)}});a.extend({speed:function(c,d,e){var b=c&&typeof c==="object"?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: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;if(!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);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return (b=parseFloat(a.css(this.elem,this.prop,b)))&&b>-1e4?b:parseFloat(a.curCSS(this.elem,this.prop))||0},custom:function(c,d,e){function b(a){return f.step(a)}this.startTime=g();this.start=c;this.end=d;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;b.elem=this.elem;if(b()&&a.timers.push(b)&&!q)q=setInterval(a.fx.tick,13)},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(b){var d=g(),e=true;if(b||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)e=false;if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;b=a.data(this.elem,"olddisplay");this.elem.style.display=b?b:this.options.display;if(a.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&a(this.elem).hide();if(this.options.hide||this.options.show)for(var c in this.options.curAnim)a.style(this.elem,c,this.options.orig[c]);this.options.complete.call(this.elem)}return false}else{c=d-this.startTime;this.state=c/this.options.duration;b=this.options.easing||(a.easing.swing?"swing":"linear");this.pos=a.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,c,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()},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){if(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;else a.elem[a.prop]=a.now}}});if(a.expr&&a.expr.filters)a.expr.filters.animated=function(b){return a.grep(a.timers,function(a){return b===a.elem}).length};a.fn.offset="getBoundingClientRect" in b.documentElement?function(d){var b=this[0];if(d)return this.each(function(b){a.offset.setOffset(this,d,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);var e=b.getBoundingClientRect(),c=b.ownerDocument;b=c.body;c=c.documentElement;return {top:e.top+(self.pageYOffset||a.support.boxModel&&c.scrollTop||b.scrollTop)-(c.clientTop||b.clientTop||0),left:e.left+(self.pageXOffset||a.support.boxModel&&c.scrollLeft||b.scrollLeft)-(c.clientLeft||b.clientLeft||0)}}:function(k){var b=this[0];if(k)return this.each(function(b){a.offset.setOffset(this,k,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);a.offset.initialize();var i=b.offsetParent,d=b,c=b.ownerDocument,e,j=c.documentElement,h=c.body;d=(c=c.defaultView)?c.getComputedStyle(b,null):b.currentStyle;for(var g=b.offsetTop,f=b.offsetLeft;(b=b.parentNode)&&b!==h&&b!==j;){if(a.offset.supportsFixedPosition&&d.position==="fixed")break;e=c?c.getComputedStyle(b,null):b.currentStyle;g-=b.scrollTop;f-=b.scrollLeft;if(b===i){g+=b.offsetTop;f+=b.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){g+=parseFloat(e.borderTopWidth)||0;f+=parseFloat(e.borderLeftWidth)||0}d=i;i=b.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&e.overflow!=="visible"){g+=parseFloat(e.borderTopWidth)||0;f+=parseFloat(e.borderLeftWidth)||0}d=e}if(d.position==="relative"||d.position==="static"){g+=h.offsetTop;f+=h.offsetLeft}if(a.offset.supportsFixedPosition&&d.position==="fixed"){g+=Math.max(j.scrollTop,h.scrollTop);f+=Math.max(j.scrollLeft,h.scrollLeft)}return {top:g,left:f}};a.offset={initialize:function(){var d=b.body,e=b.createElement("div"),f,c,g,h=parseFloat(a.curCSS(d,"marginTop",true))||0;a.extend(e.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});e.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";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!==h;d.removeChild(e);a.offset.initialize=a.noop},bodyOffset:function(b){var c=b.offsetTop,d=b.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(a.curCSS(b,"marginTop",true))||0;d+=parseFloat(a.curCSS(b,"marginLeft",true))||0}return {top:c,left:d}},setOffset:function(b,c,d){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var f=a(b),e=f.offset(),g=parseInt(a.curCSS(b,"top",true),10)||0,h=parseInt(a.curCSS(b,"left",true),10)||0;if(a.isFunction(c))c=c.call(b,d,e);d={top:c.top-e.top+g,left:c.left-e.left+h};"using" in c?c.using.call(b,d):f.css(d)}};a.fn.extend({position:function(){if(!this[0])return null;var e=this[0],b=this.offsetParent(),c=this.offset(),d=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(a.curCSS(e,"marginTop",true))||0;c.left-=parseFloat(a.curCSS(e,"marginLeft",true))||0;d.top+=parseFloat(a.curCSS(b[0],"borderTopWidth",true))||0;d.left+=parseFloat(a.curCSS(b[0],"borderLeftWidth",true))||0;return {top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||b.body;c&&!/^body|html$/i.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(){if(e=Z(this))e.scrollTo(!d?f:a(e).scrollLeft(),d?f:a(e).scrollTop());else this[b]=f});else return (e=Z(g))?"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]?a.css(this[0],d,false,"padding"):null};a.fn["outer"+b]=function(b){return this[0]?a.css(this[0],d,false,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]()))});return "scrollTo" in e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===c?a.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});d.jQuery=d.$=a})(window);(function(a){a.tools=a.tools||{};a.tools.tabs={version:"1.0.4",conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",api:false,rotate:false},addEffect:function(a,b){c[a]=b}};var c={"default":function(b,a){this.getPanes().hide().eq(b).show();a.call()},fade:function(e,d){var b=this.getConf(),c=b.fadeOutSpeed,a=this.getPanes();if(c)a.fadeOut(c);else a.hide();a.eq(e).fadeIn(b.fadeInSpeed,d)},slide:function(b,a){this.getPanes().slideUp(200);this.getPanes().eq(b).slideDown(400,a)},ajax:function(b,a){this.getPanes().eq(0).load(this.getTabs().eq(b).attr("href"),a)}},b;a.tools.tabs.addEffect("horizontal",function(d,c){if(!b)b=this.getPanes().eq(0).width();this.getCurrentPane().animate({width:0},function(){a(this).hide()});this.getPanes().eq(d).animate({width:b},function(){a(this).show();c.call()})});function d(e,h,d){var b=this,g=a(this),f;a.each(d,function(c,b){a.isFunction(b)&&g.bind(c,b)});a.extend(this,{click:function(h,i){var l=b.getCurrentPane(),j=e.eq(h);if(typeof h=="string"&&h.replace("#","")){j=e.filter("[href*="+h.replace("#","")+"]");h=Math.max(e.index(j),0)}if(d.rotate){var k=e.length-1;if(h<0)return b.click(k,i);if(h>k)return b.click(0,i)}if(!j.length){if(f>=0)return b;h=d.initialIndex;j=e.eq(h)}if(h===f)return b;i=i||a.Event();i.type="onBeforeClick";g.trigger(i,[h]);if(i.isDefaultPrevented())return;c[d.effect].call(b,h,function(){i.type="onClick";g.trigger(i,[h])});i.type="onStart";g.trigger(i,[h]);if(i.isDefaultPrevented())return;f=h;e.removeClass(d.current);j.addClass(d.current);return b},getConf:function(){return d},getTabs:function(){return e},getPanes:function(){return h},getCurrentPane:function(){return h.eq(f)},getCurrentTab:function(){return e.eq(f)},getIndex:function(){return f},next:function(){return b.click(f+1)},prev:function(){return b.click(f-1)},bind:function(a,c){g.bind(a,c);return b},onBeforeClick:function(a){return this.bind("onBeforeClick",a)},onClick:function(a){return this.bind("onClick",a)},unbind:function(a){g.unbind(a);return b}});e.each(function(c){a(this).bind(d.event,function(a){b.click(c,a);return false})});if(location.hash)b.click(location.hash);else(d.initialIndex===0||d.initialIndex>0)&&b.click(d.initialIndex);h.find("a[href^=#]").click(function(c){b.click(a(this).attr("href"),c)})}a.fn.tabs=function(e,b){var c=this.eq(typeof b=="number"?b:0).data("tabs");if(c)return c;if(a.isFunction(b))b={onBeforeClick:b};var g=a.extend({},a.tools.tabs.conf),f=this.length;b=a.extend(g,b);this.each(function(){var g=a(this),h=g.find(b.tabs);if(!h.length)h=g.children();var i=e.jquery?e:g.children(e);if(!i.length)i=f==1?a(e):g.parent().find(e);c=new d(h,i,b);g.data("tabs",c)});return b.api?c:this}})(jQuery);(function(a){var c=[];a.tools=a.tools||{};a.tools.tooltip={version:"1.1.2",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(a,d,c){b[a]=[d,c]}};var b={toggle:[function(c){var d=this.getConf(),a=this.getTip(),b=d.opacity;b<1&&a.css({opacity:b});a.show();c.call()},function(a){this.getTip().hide();a.call()}],fade:[function(a){this.getTip().fadeIn(this.getConf().fadeInSpeed,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};function d(e,d){var g=this,i=a(this);e.data("tooltip",g);var f=e.next();if(d.tip){f=a(d.tip);if(f.length>1){f=e.nextAll(d.tip).eq(0);if(!f.length)f=e.parent().nextAll(d.tip).eq(0)}}function n(){var c=d.relative?e.position().top:e.offset().top,b=d.relative?e.position().left:e.offset().left,a=d.position[0];c-=f.outerHeight()-d.offset[0];b+=e.outerWidth()+d.offset[1];var g=f.outerHeight()+e.outerHeight();if(a=="center")c+=g/2;if(a=="bottom")c+=g;a=d.position[1];var h=f.outerWidth()+e.outerWidth();if(a=="center")b-=h/2;if(a=="left")b-=h;return {top:c,left:b}}var j=e.is(":input"),o=j&&e.is(":checkbox, :radio, select, :button"),m=e.attr("type"),h=d.events[m]||d.events[j?o?"widget":"input":"def"];h=h.split(/,\s*/);if(h.length!=2)throw"Tooltip: bad events configuration for "+m;e.bind(h[0],function(b){d.oneInstance&&a.each(c,function(){this.hide()});var e=f.data("trigger");e&&e[0]!=this&&f.hide().stop(true,true);b.target=this;g.show(b);h=d.events.tooltip.split(/,\s*/);f.bind(h[0],function(){g.show(b)});h[1]&&f.bind(h[1],function(){g.hide(b)})});e.bind(h[1],function(a){g.hide(a)});!a.browser.msie&&!j&&!d.predelay&&e.mousemove(function(){!g.isShown()&&e.triggerHandler("mouseover")});d.opacity<1&&f.css("opacity",d.opacity);var l=0,k=e.attr("title");if(k&&d.cancelDefault){e.removeAttr("title");e.data("title",k)}a.extend(g,{show:function(c){if(c)e=a(c.target);clearTimeout(f.data("timer"));if(f.is(":animated")||f.is(":visible"))return g;function h(){f.data("trigger",e);var h=n(c);d.tip&&k&&f.html(e.data("title"));c=c||a.Event();c.type="onBeforeShow";i.trigger(c,[h]);if(c.isDefaultPrevented())return g;h=n(c);f.css({position:"absolute",top:h.top,left:h.left});var j=b[d.effect];if(!j)throw'Nonexistent effect "'+d.effect+'"';j[0].call(g,function(){c.type="onShow";i.trigger(c)})}if(d.predelay){clearTimeout(l);l=setTimeout(h,d.predelay)}else h();return g},hide:function(c){clearTimeout(f.data("timer"));clearTimeout(l);if(!f.is(":visible"))return;function e(){c=c||a.Event();c.type="onBeforeHide";i.trigger(c);if(c.isDefaultPrevented())return;b[d.effect][1].call(g,function(){c.type="onHide";i.trigger(c)})}if(d.delay&&c)f.data("timer",setTimeout(e,d.delay));else e();return g},isShown:function(){return f.is(":visible, :animated")},getConf:function(){return d},getTip:function(){return f},getTrigger:function(){return e},bind:function(a,b){i.bind(a,b);return g},onHide:function(a){return this.bind("onHide",a)},onBeforeShow:function(a){return this.bind("onBeforeShow",a)},onShow:function(a){return this.bind("onShow",a)},onBeforeHide:function(a){return this.bind("onBeforeHide",a)},unbind:function(a){i.unbind(a);return g}});a.each(d,function(c,b){a.isFunction(b)&&g.bind(c,b)})}a.prototype.tooltip=function(b){var e=this.eq(typeof b=="number"?b:0).data("tooltip");if(e)return e;var f=a.extend(true,{},a.tools.tooltip.conf);if(a.isFunction(b))b={onBeforeShow:b};else if(typeof b=="string")b={tip:b};b=a.extend(true,f,b);if(typeof b.position=="string")b.position=b.position.split(/,?\s/);if(b.lazy!==false&&(b.lazy===true||this.length>20))this.one("mouseover",function(f){e=new d(a(this),b);e.show(f);c.push(e)});else this.each(function(){e=new d(a(this),b);c.push(e)});return b.api?e:this}})(jQuery);(function(a){a.tools=a.tools||{};a.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var b;function c(j,d){var c=this,g=a(this),m=!d.vertical,h=j.children(),e=0,f;if(!b)b=c;a.each(d,function(c,b){a.isFunction(b)&&g.bind(c,b)});if(h.length>1)h=a(d.items,j);function i(b){var c=a(b);return d.globalNav?c:j.parent().find(b)}j.data("finder",i);var n=i(d.prev),k=i(d.next),o=i(d.prevPage),l=i(d.nextPage);a.extend(c,{getIndex:function(){return e},getClickIndex:function(){var a=c.getItems();return a.index(a.filter("."+d.activeClass))},getConf:function(){return d},getSize:function(){return c.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/d.size)},getPageIndex:function(){return Math.ceil(e/d.size)},getNaviButtons:function(){return n.add(k).add(o).add(l)},getRoot:function(){return j},getItemWrap:function(){return h},getItems:function(){return h.children(d.item)},getVisibleItems:function(){return c.getItems().slice(e,e+d.size)},seekTo:function(f,i,p){if(f<0)f=0;if(e===f)return c;if(a.isFunction(i))p=i;if(f>c.getSize()-d.size)return d.loop?c.begin():this.end();var q=c.getItems().eq(f);if(!q.length)return c;var j=a.Event("onBeforeSeek");g.trigger(j,[f]);if(j.isDefaultPrevented())return c;if(i===undefined||a.isFunction(i))i=d.speed;function r(){p&&p.call(c,f);g.trigger("onSeek",[f])}if(m)h.animate({left:-q.position().left},i,d.easing,r);else h.animate({top:-q.position().top},i,d.easing,r);b=c;e=f;j=a.Event("onStart");g.trigger(j,[f]);if(j.isDefaultPrevented())return c;n.add(o).toggleClass(d.disabledClass,f===0);k.add(l).toggleClass(d.disabledClass,f>=c.getSize()-d.size);return c},move:function(a,c,b){f=a>0;return this.seekTo(e+a,c,b)},next:function(b,a){return this.move(1,b,a)},prev:function(b,a){return this.move(-1,b,a)},movePage:function(b,h,g){f=b>0;var c=d.size*b,a=e%d.size;if(a>0)c+=b>0?-a:d.size-a;return this.move(c,h,g)},prevPage:function(b,a){return this.movePage(-1,b,a)},nextPage:function(b,a){return this.movePage(1,b,a)},setPage:function(b,c,a){return this.seekTo(b*d.size,c,a)},begin:function(b,a){f=false;return this.seekTo(0,b,a)},end:function(e,b){f=true;var a=this.getSize()-d.size;return a>0?this.seekTo(a,e,b):c},reload:function(){g.trigger("onReload");return c},focus:function(){b=c;return c},click:function(a){var i=c.getItems().eq(a),b=d.activeClass,g=d.size;if(a<0||a>=c.getSize())return c;if(g==1){if(d.loop)return c.next();if(a===0||a==c.getSize()-1)f=f===undefined?true:!f;return f===false?c.prev():c.next()}if(g==2){if(a==e)a--;c.getItems().removeClass(b);i.addClass(b);return c.seekTo(a,time,fn)}if(!i.hasClass(b)){c.getItems().removeClass(b);i.addClass(b);var j=Math.floor(g/2),h=a-j;if(h>c.getSize()-g)h=c.getSize()-g;if(h!==a)return c.seekTo(h)}return c},bind:function(a,b){g.bind(a,b);return c},unbind:function(a){g.unbind(a);return c}});a.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(b,a){c[a]=function(b){return c.bind(a,b)}});n.addClass(d.disabledClass).click(function(){c.prev()});k.click(function(){c.next()});l.click(function(){c.nextPage()});c.getSize()<d.size&&k.add(l).addClass(d.disabledClass);o.addClass(d.disabledClass).click(function(){c.prevPage()});var p=d.hoverClass,q="keydown."+Math.random().toString().substring(10);c.onReload(function(){p&&c.getItems().hover(function(){a(this).addClass(p)},function(){a(this).removeClass(p)});d.clickable&&c.getItems().each(function(b){a(this).unbind("click.scrollable").bind("click.scrollable",function(d){if(a(d.target).is("a"))return;return c.click(b)})});if(d.keyboard)a(document).unbind(q).bind(q,function(a){if(a.altKey||a.ctrlKey)return;if(d.keyboard!="static"&&b!=c)return;var e=d.keyboardSteps;if(m&&(a.keyCode==37||a.keyCode==39)){c.move(a.keyCode==37?-e:e);return a.preventDefault()}if(!m&&(a.keyCode==38||a.keyCode==40)){c.move(a.keyCode==38?-e:e);return a.preventDefault()}return true});else a(document).unbind(q)});c.reload()}a.fn.scrollable=function(b){var d=this.eq(typeof b=="number"?b:0).data("scrollable");if(d)return d;var e=a.extend({},a.tools.scrollable.conf);b=a.extend(e,b);b.keyboardSteps=b.keyboardSteps||b.size;this.each(function(){d=new c(a(this),b);a(this).data("scrollable",d)});return b.api?d:this}})(jQuery);(function(a){var b=a.tools.scrollable;b.plugins=b.plugins||{};b.plugins.circular={version:"0.5.1",conf:{api:false,clonedClass:"cloned"}};a.fn.circular=function(e){var c=a.extend({},b.plugins.circular.conf),d;a.extend(c,e);this.each(function(){var e=a(this).scrollable(),g=e.getItems(),b=e.getConf(),h=e.getItemWrap(),f=0;if(e)d=e;if(g.length<b.size)return false;g.slice(0,b.size).each(function(b){a(this).clone().appendTo(h).click(function(){e.click(g.length+b)}).addClass(c.clonedClass)});var l=a.makeArray(g.slice(-b.size)).reverse();a(l).each(function(b){a(this).clone().prependTo(h).click(function(){e.click(-b-1)}).addClass(c.clonedClass)});var i=h.children(b.item),j=b.hoverClass;j&&i.hover(function(){a(this).addClass(j)},function(){a(this).removeClass(j)});function k(c){var a=i.eq(c);if(b.vertical)h.css({top:-a.position().top});else h.css({left:-a.position().left})}k(b.size);a.extend(e,{move:function(d,m,j,l){var a=f+d+b.size,h=a>e.getSize()-b.size;if(a<=0||h){var c=f+b.size+(h?-g.length:g.length);k(c);a=c+d}l&&i.removeClass(b.activeClass).eq(a+Math.floor(b.size/2)).addClass(b.activeClass);if(a===f+b.size)return self;return e.seekTo(a,m,j)},begin:function(c,a){return this.seekTo(b.size,c,a)},end:function(b,a){return this.seekTo(g.length,b,a)},click:function(c,e,d){if(!b.clickable)return self;if(b.size==1)return this.next();var a=c-f,g=b.activeClass;a-=Math.floor(b.size/2);return this.move(a,e,d,true)},getIndex:function(){return f},setPage:function(c,d,a){return this.seekTo(c*b.size+b.size,d,a)},getPageAmount:function(){return Math.ceil(g.length/b.size)},getPageIndex:function(){if(f<0)return this.getPageAmount()-1;if(f>=g.length)return 0;var a=(f+b.size)/b.size-1;return a},getVisibleItems:function(){var a=f+b.size;return i.slice(a,a+b.size)}});e.onStart(function(c,a){f=a-b.size;return false});e.getNaviButtons().removeClass(b.disabledClass)});return c.api?d:this}})(jQuery);(function(a){var b=a.tools.scrollable;b.plugins=b.plugins||{};b.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3e3,autopause:true,steps:1,api:false}};a.fn.autoscroll=function(d){if(typeof d=="number")d={interval:d};var c=a.extend({},b.plugins.autoscroll.conf),e;a.extend(c,d);this.each(function(){var b=a(this).scrollable();if(b)e=b;var d,g,f=true;b.play=function(){if(d)return;f=false;d=setInterval(function(){b.move(c.steps)},c.interval);b.move(c.steps)};b.pause=function(){d=clearInterval(d)};b.stop=function(){b.pause();f=true};c.autopause&&b.getRoot().add(b.getNaviButtons()).hover(function(){b.pause();clearInterval(g)},function(){if(!f)g=setTimeout(b.play,c.interval)});c.autoplay&&setTimeout(b.play,c.interval)});return c.api?e:this}})(jQuery);(function(a){var b=a.tools.scrollable;b.plugins=b.plugins||{};b.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};a.fn.navigator=function(c){var e=a.extend({},b.plugins.navigator.conf),d;if(typeof c=="string")c={navi:c};c=a.extend(e,c);this.each(function(){var b=a(this).scrollable(),i=b.getRoot(),e=i.data("finder").call(null,c.navi),f=null,j=b.getNaviButtons();if(b)d=b;b.getNaviButtons=function(){return j.add(e)};function h(){if(!e.children().length||e.data("navi")==b){e.empty();e.data("navi",b);for(var d=0;d<b.getPageAmount();d++)e.append(a("<"+(c.naviItem||"a")+"/>"));f=e.children().each(function(d){var e=a(this);e.click(function(a){b.setPage(d);return a.preventDefault()});c.indexed&&e.text(d);c.idPrefix&&e.attr("id",c.idPrefix+d)})}else{f=c.naviItem?e.find(c.naviItem):e.children();f.each(function(c){var d=a(this);d.click(function(a){b.setPage(c);return a.preventDefault()})})}f.eq(0).addClass(c.activeClass)}b.onStart(function(){var a=c.activeClass;f.removeClass(a).eq(b.getPageIndex()).addClass(a)});b.onReload(function(){h()});h();var g=f.filter("[href="+location.hash+"]");g.length&&b.move(f.index(g))});return c.api?d:this}})(jQuery);(function(a){a.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};a.event.special.wheel={setup:function(){a.event.add(this,d,c,{})},teardown:function(){a.event.remove(this,d,c)}};var d=!a.browser.mozilla?"mousewheel":"DOMMouseScroll"+(a.browser.version<"1.9"?" mousemove":"");function c(b){switch(b.type){case "mousemove":return a.extend(b.data,{clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY});case "DOMMouseScroll":a.extend(b,b.data);b.delta=-b.detail/3;break;case "mousewheel":b.delta=b.wheelDelta/120}b.type="wheel";return a.event.handle.call(this,b,b.delta)}var b=a.tools.scrollable;b.plugins=b.plugins||{};b.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};a.fn.mousewheel=function(c){var e=a.extend({},b.plugins.mousewheel.conf),d;if(typeof c=="number")c={speed:c};c=a.extend(e,c);this.each(function(){var b=a(this).scrollable();if(b)d=b;b.getRoot().wheel(function(d,a){b.move(a<0?1:-1,c.speed||50);return false})});return c.api?d:this}})(jQuery);(function(a){a.tools=a.tools||{};a.tools.overlay={version:"1.1.2",addEffect:function(a,b,d){c[a]=[b,d]},conf:{top:"10%",left:"center",absolute:false,speed:"normal",closeSpeed:"fast",effect:"default",close:null,oneInstance:true,closeOnClick:true,closeOnEsc:true,api:false,expose:null,target:null}};var c={};a.tools.overlay.addEffect("default",function(a){this.getOverlay().fadeIn(this.getConf().speed,a)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});var b=[];function d(h,d){var e=this,g=a(this),j=a(window),i,f,k,m=d.expose&&a.tools.expose.version,l=d.target||h.attr("rel");f=l?a(l):null||h;if(!f.length)throw"Could not find Overlay: "+l;h&&h.index(f)==-1&&h.click(function(a){e.load(a);return a.preventDefault()});a.each(d,function(c,b){a.isFunction(b)&&g.bind(c,b)});a.extend(e,{load:function(h){if(e.isOpened())return e;var n=c[d.effect];if(!n)throw'Overlay: cannot find effect : "'+d.effect+'"';d.oneInstance&&a.each(b,function(){this.close(h)});h=h||a.Event();h.type="onBeforeLoad";g.trigger(h);if(h.isDefaultPrevented())return e;k=true;m&&f.expose().load(h);var i=d.top,l=d.left,o=f.outerWidth({margin:true}),p=f.outerHeight({margin:true});if(typeof i=="string")i=i=="center"?Math.max((j.height()-p)/2,0):parseInt(i,10)/100*j.height();if(l=="center")l=Math.max((j.width()-o)/2,0);if(!d.absolute){i+=j.scrollTop();l+=j.scrollLeft()}f.css({top:i,left:l,position:"absolute"});h.type="onStart";g.trigger(h);n[0].call(e,function(){if(k){h.type="onLoad";g.trigger(h)}});d.closeOnClick&&a(document).bind("click.overlay",function(c){if(!e.isOpened())return;var d=a(c.target);if(d.parents(f).length>1)return;a.each(b,function(){this.close(c)})});d.closeOnEsc&&a(document).unbind("keydown.overlay").bind("keydown.overlay",function(c){c.keyCode==27&&a.each(b,function(){this.close(c)})});return e},close:function(f){if(!e.isOpened())return e;f=f||a.Event();f.type="onBeforeClose";g.trigger(f);if(f.isDefaultPrevented())return;k=false;c[d.effect][1].call(e,function(){f.type="onClose";g.trigger(f)});var h=true;a.each(b,function(){if(this.isOpened())h=false});h&&a(document).unbind("click.overlay").unbind("keydown.overlay");return e},getContent:function(){return f},getOverlay:function(){return f},getTrigger:function(){return h},getClosers:function(){return i},isOpened:function(){return k},getConf:function(){return d},bind:function(a,b){g.bind(a,b);return e},unbind:function(a){g.unbind(a);return e}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(b,a){e[a]=function(b){return e.bind(a,b)}});if(m){if(typeof d.expose=="string")d.expose={color:d.expose};a.extend(d.expose,{api:true,closeOnClick:d.closeOnClick,closeOnEsc:false});var n=f.expose(d.expose);n.onBeforeClose(function(a){e.close(a)});e.onClose(function(a){n.close(a)})}i=f.find(d.close||".close");if(!i.length&&!d.close){i=a('<div class="close"></div>');f.prepend(i)}i.click(function(a){e.close(a)})}a.fn.overlay=function(c){var e=this.eq(typeof c=="number"?c:0).data("overlay");if(e)return e;if(a.isFunction(c))c={onBeforeLoad:c};var f=a.extend({},a.tools.overlay.conf);c=a.extend(true,f,c);this.each(function(){e=new d(a(this),c);b.push(e);a(this).data("overlay",e)});return c.api?e:this}})(jQuery);(function(a){var b=a.tools.overlay;b.plugins=b.plugins||{};b.plugins.gallery={version:"1.0.0",conf:{imgId:"img",next:".next",prev:".prev",info:".info",progress:".progress",disabledClass:"disabled",activeClass:"active",opacity:.8,speed:"slow",template:"<strong>${title}</strong> <span>Image ${index} of ${total}</span>",autohide:true,preload:true,api:false}};a.fn.gallery=function(r){var c=a.extend({},b.plugins.gallery.conf),m;a.extend(c,r);m=this.overlay();var f=this,d=m.getOverlay(),k=d.find(c.next),j=d.find(c.prev),h=d.find(c.info),n=d.find(c.progress),g=j.add(k).add(h).css({opacity:c.opacity}),l=m.getClosers(),e;function p(m){n.fadeIn();g.hide();l.hide();var i=m.attr("href"),b=new Image;b.onload=function(){n.fadeOut();var o=a("#"+c.imgId,d);if(!o.length){o=a("<img/>").attr("id",c.imgId).css("visibility","hidden");d.prepend(o)}o.attr("src",i).css("visibility","hidden");var q=b.width,r=(a(window).width()-q)/2;e=f.index(f.filter("[href="+i+"]"));f.removeClass(c.activeClass).eq(e).addClass(c.activeClass);var p=c.disabledClass;g.removeClass(p);e===0&&j.addClass(p);e==f.length-1&&k.addClass(p);var s=c.template.replace("${title}",m.attr("title")||m.data("title")).replace("${index}",e+1).replace("${total}",f.length),t=parseInt(h.css("paddingLeft"),10)+parseInt(h.css("paddingRight"),10);h.html(s).css({width:q-t});d.animate({width:q,height:b.height,left:r},c.speed,function(){o.hide().css("visibility","visible").fadeIn(function(){if(!c.autohide){g.fadeIn();l.show()}})})};b.onerror=function(){d.fadeIn().html("Cannot find image "+i)};b.src=i;c.preload&&f.filter(":eq("+(e-1)+"), :eq("+(e+1)+")").each(function(){var b=new Image;b.src=a(this).attr("href")})}function o(a,b){a.click(function(){if(a.hasClass(c.disabledClass))return;var d=f.eq(i=e+(b?1:-1));d.length&&p(d)})}o(k,true);o(j);a(document).keydown(function(a){if(!d.is(":visible")||a.altKey||a.ctrlKey)return;if(a.keyCode==37||a.keyCode==39){var b=a.keyCode==37?j:k;b.click();return a.preventDefault()}return true});function q(){if(!d.is(":animated")){g.show();l.show()}}c.autohide&&d.hover(q,function(){g.fadeOut();l.hide()}).mousemove(q);var s;this.each(function(){var d=a(this),b=a(this).overlay(),e=b;b.onBeforeLoad(function(){p(d)});b.onClose(function(){f.removeClass(c.activeClass)})});return c.api?s:this}})(jQuery);(function(a){var b=a.tools.overlay;b.effects=b.effects||{};b.effects.apple={version:"1.0.1"};a.extend(b.conf,{start:{absolute:true,top:null,left:null},fadeInSpeed:"fast",zIndex:9999});function c(a){var b=a.offset();return [b.top+a.height()/2,b.left+a.width()/2]}var e=function(m){var b=this.getOverlay(),d=this.getConf(),k=this.getTrigger(),n=this,l=b.outerWidth({margin:true}),e=b.data("img");if(!e){var f=b.css("backgroundImage");if(!f)throw"background-image CSS property not set for overlay";f=f.substring(f.indexOf("(")+1,f.indexOf(")")).replace(/\"/g,"");b.css("backgroundImage","none");e=a('<img src="'+f+'"/>');e.css({border:0,position:"absolute",display:"none"}).width(l);a("body").append(e);b.data("img",e)}var g=a(window),i=d.start.top||Math.round(g.height()/2),h=d.start.left||Math.round(g.width()/2);if(k){var j=c(k);i=j[0];h=j[1]}if(!d.start.absolute){i+=g.scrollTop();h+=g.scrollLeft()}e.css({top:i,left:h,width:0,zIndex:d.zIndex}).show();e.animate({top:b.css("top"),left:b.css("left"),width:l},d.speed,function(){b.css("zIndex",d.zIndex+1).fadeIn(d.fadeInSpeed,function(){if(n.isOpened()&&!a(this).index(b))m.call();else b.hide()})})},d=function(h){var d=this.getOverlay(),a=this.getConf(),b=this.getTrigger(),g=a.start.top,f=a.start.left;d.hide();if(b){var e=c(b);g=e[0];f=e[1]}d.data("img").animate({top:g,left:f,width:0},a.closeSpeed,h)};b.addEffect("apple",e,d)})(jQuery);(function(a){a.tools=a.tools||{};a.tools.expose={version:"1.0.5",conf:{maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:.8,color:"#456",api:false}};function b(){if(a.browser.msie){var c=a(document).height(),b=a(window).height();return [window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c-b<20?b:c]}return [a(window).width(),a(document).height()]}function c(h,d){var e=this,f=a(this),c=null,g=false,i=0;a.each(d,function(c,b){a.isFunction(b)&&f.bind(c,b)});a(window).resize(function(){e.fit()});a.extend(this,{getMask:function(){return c},getExposed:function(){return h},getConf:function(){return d},isLoaded:function(){return g},load:function(j){if(g)return e;i=h.eq(0).css("zIndex");if(d.maskId)c=a("#"+d.maskId);if(!c||!c.length){var l=b();c=a("<div/>").css({position:"absolute",top:0,left:0,width:l[0],height:l[1],display:"none",opacity:0,zIndex:d.zIndex});d.maskId&&c.attr("id",d.maskId);a("body").append(c);var k=c.css("backgroundColor");(!k||k=="transparent"||k=="rgba(0, 0, 0, 0)")&&c.css("backgroundColor",d.color);d.closeOnEsc&&a(document).bind("keydown.unexpose",function(a){a.keyCode==27&&e.close()});d.closeOnClick&&c.bind("click.unexpose",function(a){e.close(a)})}j=j||a.Event();j.type="onBeforeLoad";f.trigger(j);if(j.isDefaultPrevented())return e;a.each(h,function(){var b=a(this);!/relative|absolute|fixed/i.test(b.css("position"))&&b.css("position","relative")});h.css({zIndex:Math.max(d.zIndex+1,i=="auto"?0:i)});var m=c.height();!this.isLoaded()&&c.css({opacity:0,display:"block"}).fadeTo(d.loadSpeed,d.opacity,function(){c.height()!=m&&c.css("height",m);j.type="onLoad";f.trigger(j)});g=true;return e},close:function(b){if(!g)return e;b=b||a.Event();b.type="onBeforeClose";f.trigger(b);if(b.isDefaultPrevented())return e;c.fadeOut(d.closeSpeed,function(){b.type="onClose";f.trigger(b);h.css({zIndex:a.browser.msie?i:null})});g=false;return e},fit:function(){if(c){var a=b();c.css({width:a[0],height:a[1]})}},bind:function(a,b){f.bind(a,b);return e},unbind:function(a){f.unbind(a);return e}});a.each("onBeforeLoad,onLoad,onBeforeClose,onClose".split(","),function(b,a){e[a]=function(b){return e.bind(a,b)}})}a.fn.expose=function(b){var d=this.eq(typeof b=="number"?b:0).data("expose");if(d)return d;if(typeof b=="string")b={color:b};var e=a.extend({},a.tools.expose.conf);b=a.extend(e,b);this.each(function(){d=new c(a(this),b);a(this).data("expose",d)});return b.api?d:this}})(jQuery);(function(){function m(a){console.log("$f.fireEvent",[].slice.call(a))}function e(a){if(!a||typeof a!="object")return a;var c=new a.constructor;for(var b in a)if(a.hasOwnProperty(b))c[b]=e(a[b]);return c}function a(a,e){if(!a)return;var b,c=0,f=a.length;if(f===undefined){for(b in a)if(e.call(a[b],b,a[b])===false)break}else for(var d=a[0];c<f&&e.call(d,c,d)!==false;d=a[++c]);return a}function j(a){return document.getElementById(a)}function b(b,c,d){if(typeof c!="object")return b;b&&c&&a(c,function(c,a){if(!d||typeof a!="function")b[c]=a});return b}function n(b){var c=b.indexOf(".");if(c!=-1){var f=b.substring(0,c)||"*",e=b.substring(c+1,b.length),d=[];a(document.getElementsByTagName(f),function(){this.className&&this.className.indexOf(e)!=-1&&d.push(this)});return d}}function l(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function d(b,a,c){b[a]=b[a]||[];b[a].push(c)}function f(){return "_"+(""+Math.random()).substring(2,10)}var i=function(g,h,e){var c=this,i={},j={};c.index=h;if(typeof g=="string")g={url:g};b(this,g,true);a("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var a="on"+this;if(a.indexOf("*")!=-1){a=a.substring(0,a.length-1);var b="onBefore"+a.substring(2);c[b]=function(a){d(j,b,a);return c}}c[a]=function(b){d(j,a,b);return c};if(h==-1){if(c[b])e[b]=c[b];if(c[a])e[a]=c[a]}});b(this,{onCuepoint:function(a,d){if(arguments.length==1){i.embedded=[null,a];return c}if(typeof a=="number")a=[a];var b=f();i[b]=[a,d];e.isLoaded()&&e._api().fp_addCuepoints(a,h,b);return c},update:function(a){b(c,a);e.isLoaded()&&e._api().fp_updateClip(a,h);var d=e.getConfig(),f=h==-1?d.clip:d.playlist[h];b(f,a,true)},_fireEvent:function(g,f,k,d){if(g=="onLoad"){a(i,function(b,a){a[0]&&e._api().fp_addCuepoints(a[0],h,b)});return false}d=d||c;if(g=="onCuepoint"){var m=i[f];if(m)return m[1].call(e,d,k)}if(f&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(g)!=-1){b(d,f);if(f.metaData)if(!d.duration)d.duration=f.metaData.duration;else d.fullDuration=f.metaData.duration}var l=true;a(j[g],function(){l=this.call(e,d,f,k)});return l}});if(g.onCuepoint){var k=g.onCuepoint;c.onCuepoint.apply(c,typeof k=="function"?[k]:k);delete g.onCuepoint}a(g,function(a,b){if(typeof b=="function"){d(j,a,b);delete g[a]}});if(h==-1)e.onCuepoint=this.onCuepoint},g=function(d,h,e,i){var g={},c=this,j=false;i&&b(g,i);a(h,function(a,b){if(typeof b=="function"){g[a]=b;delete h[a]}});b(this,{animate:function(b,a,i){if(!b)return c;if(typeof a=="function"){i=a;a=500}if(typeof b=="string"){var k=b;b={};b[k]=a;a=500}if(i){var j=f();g[j]=i}if(a===undefined)a=500;h=e._api().fp_animate(d,b,a,j);return c},css:function(a,g){if(g!==undefined){var f={};f[a]=g;a=f}h=e._api().fp_css(d,a);b(c,h);return c},show:function(){this.display="block";e._api().fp_showPlugin(d);return c},hide:function(){this.display="none";e._api().fp_hidePlugin(d);return c},toggle:function(){this.display=e._api().fp_togglePlugin(d);return c},fadeTo:function(i,a,b){if(typeof a=="function"){b=a;a=500}if(b){var h=f();g[h]=b}this.display=e._api().fp_fadeTo(d,i,a,h);this.opacity=i;return c},fadeIn:function(b,a){return c.fadeTo(1,b,a)},fadeOut:function(b,a){return c.fadeTo(0,b,a)},getName:function(){return d},getPlayer:function(){return e},_fireEvent:function(f,k){if(f=="onUpdate"){var h=e._api().fp_getPlugin(d);if(!h)return;b(c,h);delete c.methods;if(!j){a(h.methods,function(){var a=""+this;c[a]=function(){var f=[].slice.call(arguments),b=e._api().fp_invoke(d,a,f);return b==="undefined"||b===undefined?c:b}});j=true}}var i=g[f];if(i){i.apply(c,k);if(f.substring(0,1)=="_")delete g[f]}}})};function h(n,p,k){var h=this,o=null,u,t,q=[],r={},s={},v,x,w,A,y,B;b(h,{id:function(){return v},isLoaded:function(){return o!==null},getParent:function(){return n},hide:function(a){if(a)n.style.height="0px";if(o)o.style.height="0px";return h},show:function(){n.style.height=B+"px";if(o)o.style.height=y+"px";return h},isHidden:function(){return o&&parseInt(o.style.height,10)===0},load:function(b){if(!o&&h._fireEvent("onBeforeLoad")!==false){a(c,function(){this.unload()});u=n.innerHTML;if(u&&!flashembed.isSupported(p.version))n.innerHTML="";flashembed(n,p,{config:k});if(b){b.cached=true;d(s,"onLoad",b)}}return h},unload:function(){if(u.replace(/\s/g,"")!==""){if(h._fireEvent("onBeforeUnload")===false)return h;try{if(o){o.fp_close();h._fireEvent("onUnload")}}catch(a){}o=null;n.innerHTML=u}return h},getClip:function(a){if(a===undefined)a=A;return q[a]},getCommonClip:function(){return t},getPlaylist:function(){return q},getPlugin:function(a){var b=r[a];if(!b&&h.isLoaded()){var c=h._api().fp_getPlugin(a);if(c){b=new g(a,c,h);r[a]=b}}return b},getScreen:function(){return h.getPlugin("screen")},getControls:function(){return h.getPlugin("controls")},getConfig:function(a){return a?e(k):k},getFlashParams:function(){return p},loadPlugin:function(b,j,a,c){if(typeof a=="function"){c=a;a={}}var e=c?f():"_";h._api().fp_loadPlugin(b,j,a,e);var d={};d[e]=c;var i=new g(b,null,h,d);r[b]=i;return i},getState:function(){return o?o.fp_getState():-1},play:function(a,c){function b(){if(a!==undefined)h._api().fp_play(a,c);else h._api().fp_play()}if(o)b();else h.load(function(){b()});return h},getVersion:function(){var b="flowplayer.js 3.1.4";if(o){var a=o.fp_getVersion();a.push(b);return a}return b},_api:function(){if(!o)throw"Flowplayer "+h.id()+" not loaded when calling an API method";return o},setClip:function(a){h.setPlaylist([a]);return h},getIndex:function(){return w}});a("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var a="on"+this;if(a.indexOf("*")!=-1){a=a.substring(0,a.length-1);var b="onBefore"+a.substring(2);h[b]=function(a){d(s,b,a);return h}}h[a]=function(b){d(s,a,b);return h}});a("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed".split(","),function(){var a=this;h[a]=function(c,d){if(!o)return h;var b=null;if(c!==undefined&&d!==undefined)b=o["fp_"+a](c,d);else b=c===undefined?o["fp_"+a]():o["fp_"+a](c);return b==="undefined"||b===undefined?h:b}});h._fireEvent=function(e){if(typeof e=="string")e=[e];var c=e[0],b=e[1],d=e[2],p=e[3],f=0;k.debug&&m(e);if(!o&&c=="onLoad"&&b=="player"){o=o||j(x);y=o.clientHeight;a(q,function(){this._fireEvent("onLoad")});a(r,function(b,a){a._fireEvent("onUpdate")});t._fireEvent("onLoad")}if(c=="onLoad"&&b!="player")return;if(c=="onError")if(typeof b=="string"||typeof b=="number"&&typeof d=="number"){b=d;d=p}if(c=="onContextMenu"){a(k.contextMenu[b],function(b,a){a.call(h)});return}if(c=="onPluginEvent"){var u=b.name||b,n=r[u];if(n){n._fireEvent("onUpdate",b);n._fireEvent(d,e.slice(3))}return}if(c=="onPlaylistReplace"){q=[];var v=0;a(b,function(){q.push(new i(this,v++,h))})}if(c=="onClipAdd"){if(b.isInStream)return;b=new i(b,d,h);q.splice(d,0,b);for(f=d+1;f<q.length;f++)q[f].index++}var g=true;if(typeof b=="number"&&b<q.length){A=b;var l=q[b];if(l)g=l._fireEvent(c,d,p);if(!l||g!==false)g=t._fireEvent(c,d,p,l)}a(s[c],function(){g=this.call(h,b,d);this.cached&&s[c].splice(f,1);if(g===false)return false;f++});return g};function z(){if($f(n)){$f(n).getParent().innerHTML="";w=$f(n).getIndex();c[w]=h}else{c.push(h);w=c.length-1}B=parseInt(n.style.height,10)||n.clientHeight;if(typeof p=="string")p={src:p};v=n.id||"fp"+f();x=p.id||v+"_api";p.id=x;k.playerId=v;if(typeof k=="string")k={clip:{url:k}};if(typeof k.clip=="string")k.clip={url:k.clip};k.clip=k.clip||{};if(n.getAttribute("href",2)&&!k.clip.url)k.clip.url=n.getAttribute("href",2);t=new i(k.clip,-1,h);k.playlist=k.playlist||[k.clip];var b=0;a(k.playlist,function(){var c=this;if(typeof c=="object"&&c.length)c={url:""+c};a(k.clip,function(b,a){if(a!==undefined&&c[b]===undefined&&typeof a!="function")c[b]=a});k.playlist[b]=c;c=new i(c,b,h);q.push(c);b++});a(k,function(a,b){if(typeof b=="function"){if(t[a])t[a](b);else d(s,a,b);delete k[a]}});a(k.plugins,function(a,b){if(b)r[a]=new g(a,b,h)});if(!k.plugins||k.plugins.controls===undefined)r.controls=new g("controls",null,h);r.canvas=new g("canvas",null,h);p.bgcolor=p.bgcolor||"#000000";p.version=p.version||[9,0];p.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function e(a){!h.isLoaded()&&h._fireEvent("onBeforeClick")!==false&&h.load();return l(a)}u=n.innerHTML;if(u.replace(/\s/g,"")!=="")if(n.addEventListener)n.addEventListener("click",e,false);else n.attachEvent&&n.attachEvent("onclick",e);else{n.addEventListener&&n.addEventListener("click",l,false);h.load()}}if(typeof n=="string")flashembed.domReady(function(){var a=j(n);if(!a)throw"Flowplayer cannot access element: "+n;else{n=a;z()}});else z()}var c=[];function k(b){this.length=b.length;this.each=function(c){a(b,c)};this.size=function(){return b.length}}window.flowplayer=window.$f=function(){var d=null,b=arguments[0];if(!arguments.length){a(c,function(){if(this.isLoaded()){d=this;return false}});return d||c[0]}if(arguments.length==1)if(typeof b=="number")return c[b];else{if(b=="*")return new k(c);a(c,function(){if(this.id()==b.id||this.id()==b||this.getParent()==b){d=this;return false}});return d}if(arguments.length>1){var g=arguments[1],f=arguments.length==3?arguments[2]:{};if(typeof b=="string")if(b.indexOf(".")!=-1){var l=[];a(n(b),function(){l.push(new h(this,e(g),e(f)))});return new k(l)}else{var i=j(b);return new h(i!==null?i:b,g,f)}else if(b)return new h(b,g,f)}return null};b(window.$f,{fireEvent:function(){var a=[].slice.call(arguments),b=$f(a[0]);return b?b._fireEvent(a.slice(1)):null},addPlugin:function(a,b){h.prototype[a]=b;return $f},each:a,extend:b});if(typeof jQuery=="function")jQuery.prototype.flowplayer=function(c,b){if(!arguments.length||typeof arguments[0]=="number"){var a=[];this.each(function(){var b=$f(this);b&&a.push(b)});return arguments.length?a[arguments[0]]:new k(a)}return this.each(function(){$f(this,e(c),b?e(b):{})})}})();(function(){var e=typeof jQuery=="function",f={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:f}}function j(){if(a.done)return false;var b=document;if(b&&b.getElementsByTagName&&b.getElementById&&b.body){clearInterval(a.timer);a.timer=null;for(var c=0;c<a.ready.length;c++)a.ready[c].call();a.ready=null;a.done=true}}var a=e?jQuery:function(b){if(a.done)return b();if(a.timer)a.ready.push(b);else{a.ready=[b];a.timer=setInterval(j,13)}};function b(b,a){if(a)for(key in a)if(a.hasOwnProperty(key))b[key]=a[key];return b}function d(a){switch(i(a)){case "string":a=a.replace(new RegExp('(["\\\\])',"g"),"\\$1");a=a.replace(/^\s?(\d+)%/,"$1pct");return '"'+a+'"';case "array":return "["+g(a,function(a){return d(a)}).join(",")+"]";case "function":return '"function()"';case "object":var c=[];for(var b in a)a.hasOwnProperty(b)&&c.push('"'+b+'":'+d(a[b]));return "{"+c.join(",")+"}"}return String(a).replace(/\s/g," ").replace(/\'/g,'"')}function i(a){if(a===null||a===undefined)return false;var b=typeof a;return b=="object"&&a.push?"array":b}window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});function g(a,d){var c=[];for(var b in a)if(a.hasOwnProperty(b))c[b]=d(a[b]);return c}function c(j,e){var a=b({},j),i=document.all,c='<object width="'+a.width+'" height="'+a.height+'"';if(i&&!a.id)a.id="_"+(""+Math.random()).substring(9);if(a.id)c+=' id="'+a.id+'"';if(a.cachebusting)a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random();if(a.w3c||!i)c+=' data="'+a.src+'" type="application/x-shockwave-flash"';else c+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';c+=">";if(a.w3c||i)c+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;for(var h in a)if(a[h]!==null)c+='<param name="'+h+'" value="'+a[h]+'" />';var g="";if(e){for(var f in e)if(e[f]!==null)g+=f+"="+(typeof e[f]=="object"?d(e[f]):e[f])+"&";g=g.substring(0,g.length-1);c+='<param name="flashvars" value=\''+g+"' />"}c+="</object>";return c}function h(d,a,e){var g=flashembed.getVersion();b(this,{getContainer:function(){return d},getConf:function(){return a},getVersion:function(){return g},getFlashvars:function(){return e},getApi:function(){return d.firstChild},getHTML:function(){return c(a,e)}});var f=a.version,j=a.expressInstall,i=!f||flashembed.isSupported(f);if(i){a.onFail=a.version=a.expressInstall=null;d.innerHTML=c(a,e)}else if(f&&j&&flashembed.isSupported([6,65])){b(a,{src:j});e={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};d.innerHTML=c(a,e)}else if(d.innerHTML.replace(/\s/g,"")===""){d.innerHTML="<h2>Flash version "+f+" or greater is required</h2><h3>"+(g[0]>0?"Your version is "+g:"You have no flash plugin installed")+"</h3>"+(d.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(d.tagName=="A")d.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!i&&a.onFail){var h=a.onFail.call(this);if(typeof h=="string")d.innerHTML=h}if(document.all)window[a.id]=document.getElementById(a.id)}window.flashembed=function(c,d,e){if(typeof c=="string"){var g=document.getElementById(c);if(g)c=g;else{a(function(){flashembed(c,d,e)});return}}if(!c)return;if(typeof d=="string")d={src:d};var i=b({},f);b(i,d);return new h(c,i,e)};b(window.flashembed,{getVersion:function(){var b=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var a=navigator.plugins["Shockwave Flash"].description;if(typeof a!="undefined"){a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var d=parseInt(a.replace(/^(.*)\..*$/,"$1"),10),e=/r/.test(a)?parseInt(a.replace(/^.*r(.*)$/,"$1"),10):0;b=[d,e]}}else if(window.ActiveXObject){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=[6,0];c.AllowScriptAccess="always"}catch(g){if(b[0]==6)return b}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(g){}}if(typeof c=="object"){a=c.GetVariable("$version");if(typeof a!="undefined"){a=a.replace(/^\S+\s+(.*)$/,"$1").split(",");b=[parseInt(a[0],10),parseInt(a[2],10)]}}}return b},isSupported:function(a){var b=flashembed.getVersion(),c=b[0]>a[0]||b[0]==a[0]&&b[1]>=a[1];return c},domReady:a,asString:d,getHTML:c});if(e)jQuery.fn.flashembed=function(a,c){var b=null;this.each(function(){b=flashembed(this,a,c)});return a.api===false?this:b}})();(function(){function m(a){console.log("$f.fireEvent",[].slice.call(a))}function e(a){if(!a||typeof a!="object")return a;var c=new a.constructor;for(var b in a)if(a.hasOwnProperty(b))c[b]=e(a[b]);return c}function a(a,e){if(!a)return;var b,c=0,f=a.length;if(f===undefined){for(b in a)if(e.call(a[b],b,a[b])===false)break}else for(var d=a[0];c<f&&e.call(d,c,d)!==false;d=a[++c]);return a}function j(a){return document.getElementById(a)}function b(b,c,d){if(typeof c!="object")return b;b&&c&&a(c,function(c,a){if(!d||typeof a!="function")b[c]=a});return b}function n(b){var c=b.indexOf(".");if(c!=-1){var f=b.substring(0,c)||"*",e=b.substring(c+1,b.length),d=[];a(document.getElementsByTagName(f),function(){this.className&&this.className.indexOf(e)!=-1&&d.push(this)});return d}}function l(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function d(b,a,c){b[a]=b[a]||[];b[a].push(c)}function f(){return "_"+(""+Math.random()).substring(2,10)}var i=function(g,h,e){var c=this,i={},j={};c.index=h;if(typeof g=="string")g={url:g};b(this,g,true);a("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var a="on"+this;if(a.indexOf("*")!=-1){a=a.substring(0,a.length-1);var b="onBefore"+a.substring(2);c[b]=function(a){d(j,b,a);return c}}c[a]=function(b){d(j,a,b);return c};if(h==-1){if(c[b])e[b]=c[b];if(c[a])e[a]=c[a]}});b(this,{onCuepoint:function(a,d){if(arguments.length==1){i.embedded=[null,a];return c}if(typeof a=="number")a=[a];var b=f();i[b]=[a,d];e.isLoaded()&&e._api().fp_addCuepoints(a,h,b);return c},update:function(a){b(c,a);e.isLoaded()&&e._api().fp_updateClip(a,h);var d=e.getConfig(),f=h==-1?d.clip:d.playlist[h];b(f,a,true)},_fireEvent:function(g,f,k,d){if(g=="onLoad"){a(i,function(b,a){a[0]&&e._api().fp_addCuepoints(a[0],h,b)});return false}d=d||c;if(g=="onCuepoint"){var m=i[f];if(m)return m[1].call(e,d,k)}if(f&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(g)!=-1){b(d,f);if(f.metaData)if(!d.duration)d.duration=f.metaData.duration;else d.fullDuration=f.metaData.duration}var l=true;a(j[g],function(){l=this.call(e,d,f,k)});return l}});if(g.onCuepoint){var k=g.onCuepoint;c.onCuepoint.apply(c,typeof k=="function"?[k]:k);delete g.onCuepoint}a(g,function(a,b){if(typeof b=="function"){d(j,a,b);delete g[a]}});if(h==-1)e.onCuepoint=this.onCuepoint},g=function(d,h,e,i){var g={},c=this,j=false;i&&b(g,i);a(h,function(a,b){if(typeof b=="function"){g[a]=b;delete h[a]}});b(this,{animate:function(b,a,i){if(!b)return c;if(typeof a=="function"){i=a;a=500}if(typeof b=="string"){var k=b;b={};b[k]=a;a=500}if(i){var j=f();g[j]=i}if(a===undefined)a=500;h=e._api().fp_animate(d,b,a,j);return c},css:function(a,g){if(g!==undefined){var f={};f[a]=g;a=f}h=e._api().fp_css(d,a);b(c,h);return c},show:function(){this.display="block";e._api().fp_showPlugin(d);return c},hide:function(){this.display="none";e._api().fp_hidePlugin(d);return c},toggle:function(){this.display=e._api().fp_togglePlugin(d);return c},fadeTo:function(i,a,b){if(typeof a=="function"){b=a;a=500}if(b){var h=f();g[h]=b}this.display=e._api().fp_fadeTo(d,i,a,h);this.opacity=i;return c},fadeIn:function(b,a){return c.fadeTo(1,b,a)},fadeOut:function(b,a){return c.fadeTo(0,b,a)},getName:function(){return d},getPlayer:function(){return e},_fireEvent:function(f,k){if(f=="onUpdate"){var h=e._api().fp_getPlugin(d);if(!h)return;b(c,h);delete c.methods;if(!j){a(h.methods,function(){var a=""+this;c[a]=function(){var f=[].slice.call(arguments),b=e._api().fp_invoke(d,a,f);return b==="undefined"||b===undefined?c:b}});j=true}}var i=g[f];if(i){i.apply(c,k);if(f.substring(0,1)=="_")delete g[f]}}})};function h(n,p,k){var h=this,o=null,u,t,q=[],r={},s={},v,x,w,A,y,B;b(h,{id:function(){return v},isLoaded:function(){return o!==null},getParent:function(){return n},hide:function(a){if(a)n.style.height="0px";if(o)o.style.height="0px";return h},show:function(){n.style.height=B+"px";if(o)o.style.height=y+"px";return h},isHidden:function(){return o&&parseInt(o.style.height,10)===0},load:function(b){if(!o&&h._fireEvent("onBeforeLoad")!==false){a(c,function(){this.unload()});u=n.innerHTML;if(u&&!flashembed.isSupported(p.version))n.innerHTML="";flashembed(n,p,{config:k});if(b){b.cached=true;d(s,"onLoad",b)}}return h},unload:function(){if(u.replace(/\s/g,"")!==""){if(h._fireEvent("onBeforeUnload")===false)return h;try{if(o){o.fp_close();h._fireEvent("onUnload")}}catch(a){}o=null;n.innerHTML=u}return h},getClip:function(a){if(a===undefined)a=A;return q[a]},getCommonClip:function(){return t},getPlaylist:function(){return q},getPlugin:function(a){var b=r[a];if(!b&&h.isLoaded()){var c=h._api().fp_getPlugin(a);if(c){b=new g(a,c,h);r[a]=b}}return b},getScreen:function(){return h.getPlugin("screen")},getControls:function(){return h.getPlugin("controls")},getConfig:function(a){return a?e(k):k},getFlashParams:function(){return p},loadPlugin:function(b,j,a,c){if(typeof a=="function"){c=a;a={}}var e=c?f():"_";h._api().fp_loadPlugin(b,j,a,e);var d={};d[e]=c;var i=new g(b,null,h,d);r[b]=i;return i},getState:function(){return o?o.fp_getState():-1},play:function(a,c){function b(){if(a!==undefined)h._api().fp_play(a,c);else h._api().fp_play()}if(o)b();else h.load(function(){b()});return h},getVersion:function(){var b="flowplayer.js 3.1.4";if(o){var a=o.fp_getVersion();a.push(b);return a}return b},_api:function(){if(!o)throw"Flowplayer "+h.id()+" not loaded when calling an API method";return o},setClip:function(a){h.setPlaylist([a]);return h},getIndex:function(){return w}});a("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var a="on"+this;if(a.indexOf("*")!=-1){a=a.substring(0,a.length-1);var b="onBefore"+a.substring(2);h[b]=function(a){d(s,b,a);return h}}h[a]=function(b){d(s,a,b);return h}});a("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed".split(","),function(){var a=this;h[a]=function(c,d){if(!o)return h;var b=null;if(c!==undefined&&d!==undefined)b=o["fp_"+a](c,d);else b=c===undefined?o["fp_"+a]():o["fp_"+a](c);return b==="undefined"||b===undefined?h:b}});h._fireEvent=function(e){if(typeof e=="string")e=[e];var c=e[0],b=e[1],d=e[2],p=e[3],f=0;k.debug&&m(e);if(!o&&c=="onLoad"&&b=="player"){o=o||j(x);y=o.clientHeight;a(q,function(){this._fireEvent("onLoad")});a(r,function(b,a){a._fireEvent("onUpdate")});t._fireEvent("onLoad")}if(c=="onLoad"&&b!="player")return;if(c=="onError")if(typeof b=="string"||typeof b=="number"&&typeof d=="number"){b=d;d=p}if(c=="onContextMenu"){a(k.contextMenu[b],function(b,a){a.call(h)});return}if(c=="onPluginEvent"){var u=b.name||b,n=r[u];if(n){n._fireEvent("onUpdate",b);n._fireEvent(d,e.slice(3))}return}if(c=="onPlaylistReplace"){q=[];var v=0;a(b,function(){q.push(new i(this,v++,h))})}if(c=="onClipAdd"){if(b.isInStream)return;b=new i(b,d,h);q.splice(d,0,b);for(f=d+1;f<q.length;f++)q[f].index++}var g=true;if(typeof b=="number"&&b<q.length){A=b;var l=q[b];if(l)g=l._fireEvent(c,d,p);if(!l||g!==false)g=t._fireEvent(c,d,p,l)}a(s[c],function(){g=this.call(h,b,d);this.cached&&s[c].splice(f,1);if(g===false)return false;f++});return g};function z(){if($f(n)){$f(n).getParent().innerHTML="";w=$f(n).getIndex();c[w]=h}else{c.push(h);w=c.length-1}B=parseInt(n.style.height,10)||n.clientHeight;if(typeof p=="string")p={src:p};v=n.id||"fp"+f();x=p.id||v+"_api";p.id=x;k.playerId=v;if(typeof k=="string")k={clip:{url:k}};if(typeof k.clip=="string")k.clip={url:k.clip};k.clip=k.clip||{};if(n.getAttribute("href",2)&&!k.clip.url)k.clip.url=n.getAttribute("href",2);t=new i(k.clip,-1,h);k.playlist=k.playlist||[k.clip];var b=0;a(k.playlist,function(){var c=this;if(typeof c=="object"&&c.length)c={url:""+c};a(k.clip,function(b,a){if(a!==undefined&&c[b]===undefined&&typeof a!="function")c[b]=a});k.playlist[b]=c;c=new i(c,b,h);q.push(c);b++});a(k,function(a,b){if(typeof b=="function"){if(t[a])t[a](b);else d(s,a,b);delete k[a]}});a(k.plugins,function(a,b){if(b)r[a]=new g(a,b,h)});if(!k.plugins||k.plugins.controls===undefined)r.controls=new g("controls",null,h);r.canvas=new g("canvas",null,h);p.bgcolor=p.bgcolor||"#000000";p.version=p.version||[9,0];p.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function e(a){!h.isLoaded()&&h._fireEvent("onBeforeClick")!==false&&h.load();return l(a)}u=n.innerHTML;if(u.replace(/\s/g,"")!=="")if(n.addEventListener)n.addEventListener("click",e,false);else n.attachEvent&&n.attachEvent("onclick",e);else{n.addEventListener&&n.addEventListener("click",l,false);h.load()}}if(typeof n=="string")flashembed.domReady(function(){var a=j(n);if(!a)throw"Flowplayer cannot access element: "+n;else{n=a;z()}});else z()}var c=[];function k(b){this.length=b.length;this.each=function(c){a(b,c)};this.size=function(){return b.length}}window.flowplayer=window.$f=function(){var d=null,b=arguments[0];if(!arguments.length){a(c,function(){if(this.isLoaded()){d=this;return false}});return d||c[0]}if(arguments.length==1)if(typeof b=="number")return c[b];else{if(b=="*")return new k(c);a(c,function(){if(this.id()==b.id||this.id()==b||this.getParent()==b){d=this;return false}});return d}if(arguments.length>1){var g=arguments[1],f=arguments.length==3?arguments[2]:{};if(typeof b=="string")if(b.indexOf(".")!=-1){var l=[];a(n(b),function(){l.push(new h(this,e(g),e(f)))});return new k(l)}else{var i=j(b);return new h(i!==null?i:b,g,f)}else if(b)return new h(b,g,f)}return null};b(window.$f,{fireEvent:function(){var a=[].slice.call(arguments),b=$f(a[0]);return b?b._fireEvent(a.slice(1)):null},addPlugin:function(a,b){h.prototype[a]=b;return $f},each:a,extend:b});if(typeof jQuery=="function")jQuery.prototype.flowplayer=function(c,b){if(!arguments.length||typeof arguments[0]=="number"){var a=[];this.each(function(){var b=$f(this);b&&a.push(b)});return arguments.length?a[arguments[0]]:new k(a)}return this.each(function(){$f(this,e(c),b?e(b):{})})}})();(function(){var e=typeof jQuery=="function",f={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:f}}function j(){if(a.done)return false;var b=document;if(b&&b.getElementsByTagName&&b.getElementById&&b.body){clearInterval(a.timer);a.timer=null;for(var c=0;c<a.ready.length;c++)a.ready[c].call();a.ready=null;a.done=true}}var a=e?jQuery:function(b){if(a.done)return b();if(a.timer)a.ready.push(b);else{a.ready=[b];a.timer=setInterval(j,13)}};function b(b,a){if(a)for(key in a)if(a.hasOwnProperty(key))b[key]=a[key];return b}function d(a){switch(i(a)){case "string":a=a.replace(new RegExp('(["\\\\])',"g"),"\\$1");a=a.replace(/^\s?(\d+)%/,"$1pct");return '"'+a+'"';case "array":return "["+g(a,function(a){return d(a)}).join(",")+"]";case "function":return '"function()"';case "object":var c=[];for(var b in a)a.hasOwnProperty(b)&&c.push('"'+b+'":'+d(a[b]));return "{"+c.join(",")+"}"}return String(a).replace(/\s/g," ").replace(/\'/g,'"')}function i(a){if(a===null||a===undefined)return false;var b=typeof a;return b=="object"&&a.push?"array":b}window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});function g(a,d){var c=[];for(var b in a)if(a.hasOwnProperty(b))c[b]=d(a[b]);return c}function c(j,e){var a=b({},j),i=document.all,c='<object width="'+a.width+'" height="'+a.height+'"';if(i&&!a.id)a.id="_"+(""+Math.random()).substring(9);if(a.id)c+=' id="'+a.id+'"';if(a.cachebusting)a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random();if(a.w3c||!i)c+=' data="'+a.src+'" type="application/x-shockwave-flash"';else c+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';c+=">";if(a.w3c||i)c+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;for(var h in a)if(a[h]!==null)c+='<param name="'+h+'" value="'+a[h]+'" />';var g="";if(e){for(var f in e)if(e[f]!==null)g+=f+"="+(typeof e[f]=="object"?d(e[f]):e[f])+"&";g=g.substring(0,g.length-1);c+='<param name="flashvars" value=\''+g+"' />"}c+="</object>";return c}function h(d,a,e){var g=flashembed.getVersion();b(this,{getContainer:function(){return d},getConf:function(){return a},getVersion:function(){return g},getFlashvars:function(){return e},getApi:function(){return d.firstChild},getHTML:function(){return c(a,e)}});var f=a.version,j=a.expressInstall,i=!f||flashembed.isSupported(f);if(i){a.onFail=a.version=a.expressInstall=null;d.innerHTML=c(a,e)}else if(f&&j&&flashembed.isSupported([6,65])){b(a,{src:j});e={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};d.innerHTML=c(a,e)}else if(d.innerHTML.replace(/\s/g,"")===""){d.innerHTML="<h2>Flash version "+f+" or greater is required</h2><h3>"+(g[0]>0?"Your version is "+g:"You have no flash plugin installed")+"</h3>"+(d.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(d.tagName=="A")d.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!i&&a.onFail){var h=a.onFail.call(this);if(typeof h=="string")d.innerHTML=h}if(document.all)window[a.id]=document.getElementById(a.id)}window.flashembed=function(c,d,e){if(typeof c=="string"){var g=document.getElementById(c);if(g)c=g;else{a(function(){flashembed(c,d,e)});return}}if(!c)return;if(typeof d=="string")d={src:d};var i=b({},f);b(i,d);return new h(c,i,e)};b(window.flashembed,{getVersion:function(){var b=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var a=navigator.plugins["Shockwave Flash"].description;if(typeof a!="undefined"){a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var d=parseInt(a.replace(/^(.*)\..*$/,"$1"),10),e=/r/.test(a)?parseInt(a.replace(/^.*r(.*)$/,"$1"),10):0;b=[d,e]}}else if(window.ActiveXObject){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=[6,0];c.AllowScriptAccess="always"}catch(g){if(b[0]==6)return b}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(g){}}if(typeof c=="object"){a=c.GetVariable("$version");if(typeof a!="undefined"){a=a.replace(/^\S+\s+(.*)$/,"$1").split(",");b=[parseInt(a[0],10),parseInt(a[2],10)]}}}return b},isSupported:function(a){var b=flashembed.getVersion(),c=b[0]>a[0]||b[0]==a[0]&&b[1]>=a[1];return c},domReady:a,asString:d,getHTML:c});if(e)jQuery.fn.flashembed=function(a,c){var b=null;this.each(function(){b=flashembed(this,a,c)});return a.api===false?this:b}})();(function(a){var b=a.tools.overlay;b.plugins=b.plugins||{};b.plugins.zakgallery={version:"1.0.0",conf:{imgId:"img",next:".next",prev:".prev",thumbs:".thumbs",thumbslist:".thumbslist",thumbsbutton:"#thumbsbutton",play:".play",info:".info",progress:".progress",disabledClass:"disabled",activeClass:"active",opacity:.8,speed:"slow",template:"<strong>${title}</strong> <span>Image ${index} of ${total}</span>",autohide:true,preload:true,api:false}};a.fn.zakgallery=function(z){var c=a.extend({},b.plugins.zakgallery.conf),t;a.extend(c,z);t=this.overlay();var d=this,e=t.getOverlay(),r=e.find(c.next),s=e.find(c.prev),o=e.find(c.thumbs),y=a(c.thumbsbutton),g=e.find(c.thumbslist),m=e.find(c.play),q=e.find(c.info),w=e.find(c.progress),h=s.add(r).add(q).css({opacity:c.opacity}),p=t.getClosers(),f,l="image",j=-1;function k(j){g.hide();w.fadeIn();h.hide();p.hide();var i=j.attr("href"),b=new Image;b.onload=function(){w.fadeOut();var g=a("#"+c.imgId,e);if(!g.length){g=a("<img/>").attr("id",c.imgId).css("visibility","hidden");e.prepend(g)}g.attr("src",i).css("visibility","hidden");var k=b.width,m=(a(window).width()-k)/2;f=d.index(d.filter("[href="+i+"]"));d.removeClass(c.activeClass).eq(f).addClass(c.activeClass);var l=c.disabledClass;h.removeClass(l);f===0&&s.addClass(l);f==d.length-1&&r.addClass(l);var o=c.template.replace("${title}",j.attr("title")||j.data("title")).replace("${index}",f+1).replace("${total}",d.length),n=parseInt(q.css("paddingLeft"),10)+parseInt(q.css("paddingRight"),10);q.html(o).css({width:k-n});e.animate({width:k,height:b.height,left:m},c.speed,function(){g.hide().css("visibility","visible").fadeIn(function(){if(!c.autohide){h.fadeIn();p.show()}})})};b.onerror=function(){e.fadeIn().html("Bild nicht gefunden "+i)};b.src=i;c.preload&&d.filter(":eq("+(f-1)+"), :eq("+(f+1)+")").each(function(){var b=new Image;b.src=a(this).attr("href")})}function v(a,b){a.click(function(){if(a.hasClass(c.disabledClass))return;var e=d.eq(i=f+(b?1:-1));e.length&&k(e);n()})}v(r,true);v(s);m.click(function(){if(j==-1){k(d.eq(f+1));j=setInterval(function(){if(f+1>=d.length)f=-1;k(d.eq(f+1));if(f+2<d.length){var a=new Image;a.src=d.eq(f+2).attr("href")}},7e3);a(this).attr("class","stop");a(this).attr("title","Slideshow stop")}else n()});function n(){if(j!=-1){clearInterval(j);m.attr("class","play");a(this).attr("title","Slideshow start");j=-1}}function u(){n();var f=a("#"+c.imgId,e);f.fadeOut();h.fadeOut();if(g.children().size()==0){g.html("");for(i=0;i<d.length;i++){g.append('<span class="thumbnail"><img no="'+i+'" id="el_'+i+'" src="'+d.eq(i).attr("thumb")+(d.eq(i).attr("thumb").indexOf("?")>0?"&":"?")+'height=111" /></span>');var m=g.find("#el_"+i);m.click(function(b){l="images";k(d.eq(a(this).attr("no")));g.hide();b.preventDefault()})}}else g.show();var b=(a(window).width()-740)/2,j=(a(window).height()-600)/2;e.animate({width:740,height:600,left:b,top:j},c.speed,function(){g.fadeIn()})}o.click(function(){l="thumbnails";u()});y.click(function(){l="thumbnails";t.load()});m.hide();o.hide();a(document).keydown(function(a){if(!e.is(":visible")||a.altKey||a.ctrlKey)return;if(a.keyCode==37||a.keyCode==39){var b=a.keyCode==37?s:r;b.click();return a.preventDefault()}return true});function x(){if(!e.is(":animated")){p.show();if(g.css("display")=="none"){h.show();if(d.length>5){m.show();o.show()}}}}c.autohide&&e.hover(x,function(){h.fadeOut();p.hide();o.hide();m.hide()}).mousemove(x);var A;this.each(function(){var f=a(this),b=a(this).overlay(),i=b;b.onBeforeLoad(function(){a(".hidebanner").hide();n();if(l=="thumbnails"){a("#"+c.imgId,e).hide();h.hide();u()}else{g.hide();k(f)}});b.onClose(function(){a(".hidebanner").show();n();l="image";g.hide();d.removeClass(c.activeClass)})});return c.api?A:this}})(jQuery);(function(a){var b=a.tools.overlay;b.plugins=b.plugins||{};b.plugins.zakvotinggallery={version:"1.0.0",conf:{imgId:"img",next:".next",prev:".prev",thumbs:".thumbs",thumbslist:".thumbslist",thumbsbutton:"#thumbsbutton",votingbutton:"#imagevoting",play:".play",info:".info",progress:".progress",disabledClass:"disabled",activeClass:"active",opacity:.8,speed:"slow",template:"<strong>${title}</strong> <span>Image ${index} of ${total}</span>",autohide:true,preload:true,api:false}};a.fn.zakvotinggallery=function(C){var c=a.extend({},b.plugins.zakvotinggallery.conf),u;a.extend(c,C);u=this.overlay();var d=this,e=u.getOverlay(),s=e.find(c.next),t=e.find(c.prev),p=e.find(c.thumbs),A=a(c.thumbsbutton),B=a(c.votingbutton),g=e.find(c.thumbslist),o=e.find(c.play),r=e.find(c.info),x=e.find(c.progress),j=t.add(s).add(r).css({opacity:c.opacity}),q=u.getClosers(),f,n="image",l=-1,h=true,z=a("ul.bildervotingliste").attr("bildervotingID");B.click(function(){k();h=false;a("#voting-image-active").hide();a("#voting-image-process").show();a.post("/Abstimmung/Abstimmen/"+z,{bildervotingbildID:d.eq(f).attr("votingID")},function(b){a("#voting-image-active").show();a("#voting-image-process").hide();if(b.success)a("#voting-result").css("color","#1A8F37");else a("#voting-result").css("color","#ff0000");a("#voting-result").html(b.message).fadeIn(1e3,function(){a(this).fadeOut(3e3)});h=true})});function m(i){a("#voting-result").hide();g.hide();x.fadeIn();j.hide();q.hide();var h=i.attr("href"),b=new Image;b.onload=function(){x.fadeOut();var g=a("#"+c.imgId,e);if(!g.length){g=a("<img/>").attr("id",c.imgId).css("visibility","hidden");e.prepend(g)}g.attr("src",h).css("visibility","hidden");var k=b.width,m=(a(window).width()-k)/2;f=d.index(d.filter("[href="+h+"]"));d.removeClass(c.activeClass).eq(f).addClass(c.activeClass);var l=c.disabledClass;j.removeClass(l);f===0&&t.addClass(l);f==d.length-1&&s.addClass(l);var o=c.template.replace("${title}",i.attr("title")||i.data("title")).replace("${index}",f+1).replace("${total}",d.length),n=parseInt(r.css("paddingLeft"),10)+parseInt(r.css("paddingRight"),10);r.css({width:k-n});e.animate({width:k,height:b.height,left:m},c.speed,function(){g.hide().css("visibility","visible").fadeIn(function(){if(!c.autohide){j.fadeIn();q.show()}})})};b.onerror=function(){e.fadeIn().html("Bild nicht gefunden "+h)};b.src=h;c.preload&&d.filter(":eq("+(f-1)+"), :eq("+(f+1)+")").each(function(){var b=new Image;b.src=a(this).attr("href")})}function w(a,b){a.click(function(){if(!h)return;if(a.hasClass(c.disabledClass))return;var e=d.eq(i=f+(b?1:-1));e.length&&m(e);k()})}w(s,true);w(t);o.click(function(){if(!h)return;if(l==-1){m(d.eq(f+1));l=setInterval(function(){if(f+1>=d.length)f=-1;m(d.eq(f+1));if(f+2<d.length){var a=new Image;a.src=d.eq(f+2).attr("href")}},7e3);a(this).attr("class","stop");a(this).attr("title","Slideshow stop")}else k()});function k(){if(l!=-1){clearInterval(l);o.attr("class","play");a(this).attr("title","Slideshow start");l=-1}}function v(){k();var f=a("#"+c.imgId,e);f.fadeOut();j.fadeOut();if(g.children().size()==0){g.html("");for(i=0;i<d.length;i++){g.append('<span class="thumbnail"><img no="'+i+'" id="el_'+i+'" src="'+d.eq(i).attr("thumb")+(d.eq(i).attr("thumb").indexOf("?")>0?"&":"?")+'height=111" /></span>');var l=g.find("#el_"+i);l.click(function(b){n="images";m(d.eq(a(this).attr("no")));g.hide();b.preventDefault()})}}else g.show();var b=(a(window).width()-740)/2,h=(a(window).height()-600)/2;e.animate({width:740,height:600,left:b,top:h},c.speed,function(){g.fadeIn()})}p.click(function(){if(!h)return;n="thumbnails";v()});A.click(function(){if(!h)return;n="thumbnails";u.load()});o.hide();p.hide();a(document).keydown(function(a){if(!e.is(":visible")||a.altKey||a.ctrlKey)return;if(!h)return;if(a.keyCode==37||a.keyCode==39){var b=a.keyCode==37?t:s;b.click();return a.preventDefault()}return true});function y(){if(!e.is(":animated")){q.show();if(g.css("display")=="none"){j.show();if(d.length>5){o.show();p.show()}}}}c.autohide&&e.hover(y,function(){j.fadeOut();q.hide();p.hide();o.hide()}).mousemove(y);var D;this.each(function(){var f=a(this),b=a(this).overlay(),h=b;b.onBeforeLoad(function(){a(".hidebanner").hide();k();if(n=="thumbnails"){a("#"+c.imgId,e).hide();j.hide();v()}else{g.hide();m(f)}});b.onClose(function(){a(".hidebanner").show();k();n="image";g.hide();d.removeClass(c.activeClass)})});return c.api?D:this}})(jQuery);$(document).ready(function(){$(function(){if($("ul.bildervotingliste li").length>0){$("body").append('<div class="simple_overlay" id="gallery" style="display:none;"><a class="play" title="Slideshow ablaufen lassen"></a><a class="thumbs" title="Liste mit Thumbnails anzeigen"></a><a class="prev">zurück</a><a class="next">weiter</a><div class="info"></div><div class="thumbslist"></div><img class="progress" src="/content/images/loading.gif" /></div>');var a='<div id="imagevoting" style="cursor:pointer;line-height:20px;"><img id="voting-image-process" style="display:none;vertical-align:middle;" src="/Content/images/icons/vote_yes_animated.gif" alt="Abstimmung in Arbeit" /> ';a+='<img id="voting-image-inactive" style="display:none;vertical-align:middle;" src="/Content/images/icons/vote_yes_disabled.png" alt="Abstimmung für dieses Bild nicht mehr möglich" /> ';a+='<img id="voting-image-active" style="vertical-align:middle;" src="/Content/images/icons/vote_yes.png" alt="Für dieses Bild abstimmen" /> Für dieses Bild abstimmen';a+='<span style="font-weight:bold;display:none;margin-left:20px;" id="voting-result"></span></div> ';$("#gallery .info").append(a);$("ul.bildervotingliste a").overlay({target:"#gallery",expose:"#222"}).zakvotinggallery({template:"<strong>${title}</strong> <span>Bild ${index} von ${total}</span>",thumbsbutton:"#thumbsbutton",preload:true})}})});(function(a){var b=function(a){if(!a)var a=window.event;a.cancelBubble=true;a.stopPropagation&&a.stopPropagation()};a.fn.checkbox=function(e){try{document.execCommand("BackgroundImageCache",false,true)}catch(f){}var c={cls:"jquery-checkbox",empty:"empty.png"};c=a.extend(c,e||{});var d=function(b){var e=b.checked,d=b.disabled,c=a(b);b.stateInterval&&clearInterval(b.stateInterval);b.stateInterval=setInterval(function(){b.disabled!=d&&c.trigger((d=!!b.disabled)?"disable":"enable");b.checked!=e&&c.trigger((e=!!b.checked)?"check":"uncheck")},10);return c};return this.each(function(){var g=this,f=d(g);f.css({position:"absolute",zIndex:-1,visibility:"hidden"}).after(g.wrapper);var e=false;if(f.attr("id")){e=a("label[for="+f.attr("id")+"]");if(!e.length)e=false}if(!e){e=f.closest?f.closest("label"):f.parents("label:eq(0)");if(!e.length)e=false}if(e){e.hover(function(){e.addClass(c.cls+"-hover")},function(){e.removeClass(c.cls+"-hover")});e.click(function(a){f.trigger("click",[a]);b(a);return false});e.addClass(c.cls)}f.bind("click",function(){if(!a(this).attr("checked"))e.addClass(c.cls+"-checked");else e.removeClass(c.cls+"-checked")});f.attr("checked")&&e.addClass(c.cls+"-checked")})}})(jQuery);(function(a){a.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(b,a){this.defaults.type=b;this.defaults.name=a},"get":function(d,j){var b=a.extend({},this.defaults,j);if(!b.single.length)b.single="metadata";var c=a.data(d,b.single);if(c)return c;c="{}";var k=function(a){if(typeof a!="string")return a;if(a.indexOf("{")<0)a=eval("("+a+")")},f=function(a){if(typeof a!="string")return a;a=eval("("+a+")");return a};if(b.type=="html5"){var e={};a(d.attributes).each(function(){var a=this.nodeName;if(a.match(/^data-/))a=a.replace(/^data-/,"");else return true;e[a]=f(this.nodeValue)})}else{if(b.type=="class"){var i=b.cre.exec(d.className);if(i)c=i[1]}else if(b.type=="elem"){if(!d.getElementsByTagName)return;var h=d.getElementsByTagName(b.name);if(h.length)c=a.trim(h[0].innerHTML)}else if(d.getAttribute!=undefined){var g=d.getAttribute(b.name);if(g)c=g}e=f(c.indexOf("{")<0?"{"+c+"}":c)}a.data(d,b.single,e);return e}}});a.fn.metadata=function(b){return a.metadata.get(this[0],b)}})(jQuery);(function(a){a.extend(a.fn,{validate:function(c){if(!this.length){c&&c.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}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){b.settings.debug&&d.preventDefault();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}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},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 c={},b=this;a.each(d.split(/\s/),function(d,a){c[a]=b.attr(a);b.removeAttr(a)});return c},rules:function(i,e){var b=this[0];if(i){var f=a.data(b.form,"validator").settings,g=f.rules,d=a.validator.staticRules(b);switch(i){case "add":a.extend(d,a.validator.normalizeRule(e));g[b.name]=d;if(e.messages)f.messages[b.name]=a.extend(f.messages[b.name],e.messages);break;case "remove":if(!e){delete g[b.name];return d}var h={};a.each(e.split(/\s/),function(b,a){h[a]=d[a];delete d[a]});return h}}var c=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(b),a.validator.classRules(b),a.validator.attributeRules(b),a.validator.staticRules(b)),b);if(c.required){var j=c.required;delete c.required;c=a.extend({required:j},c)}return c}});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({},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(new 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.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){a.name in this.submitted&&this.element(a)},highlight:function(d,b,c){a(d).addClass(b).removeClass(c)},unhighlight:function(d,b,c){a(d).removeClass(b).addClass(c)}},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).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",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(){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(c,b){a.each(b.split(/\s/),function(b,a){d[a]=c})});var c=this.settings.rules;a.each(c,function(d,b){c[d]=a.validator.normalizeRule(b)});function b(c){var b=a.data(this[0].form,"validator");b.settings["on"+c.type]&&b.settings["on"+c.type].call(b,this[0])}a(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",b).delegate("click",":radio, :checkbox",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){b=this.clean(b);this.lastElement=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;for(var 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()}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 c=this,b={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!c.objectLength(a(this).rules()))return false;b[this.name]=true;return 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.formSubmitted=false;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)[0];var e=a(b).rules(),c=false;for(method in e){var f={method:method,parameters:e[method]};try{var d=a.validator.methods[method].call(this,b.value.replace(/\r/g,""),b,f.parameters);if(d=="dependency-mismatch"){c=true;continue}c=false;if(d=="pending"){this.toHide=this.toHide.not(this.errorsFor(b));return}if(!d){this.formatAndAdd(b,f);return false}}catch(g){this.settings.debug&&window.console&&console.log("exception occured when checking element "+b.id+", check the '"+f.method+"' method");throw g}}if(c)return;this.objectLength(e)&&this.successList.push(b);return true},customMetaMessage:function(c,d){if(!a.metadata)return;var b=this.settings.meta?a(c).metadata()[this.settings.meta]:a(c).metadata();return b&&b.messages&&b.messages[d]},customMessage:function(c,b){var a=this.settings.messages[c];return a&&(a.constructor==String?a:a[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(arguments[a]!==undefined)return arguments[a];return undefined},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);if(typeof a=="function")a=a.call(this,c.parameters,b);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(var a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(var a=0,c=this.validElements();c[a];a++)this.settings.unhighlight.call(this,c[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();if(!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(a){return this.errors().filter("[for='"+this.idOrName(a)+"']")},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(c,b){return !!a(c,b.form).length},"function":function(b,a){return b(a)}},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();else!b&&this.pendingRequest==0&&this.formSubmitted&&a(this.currentForm).triggerHandler("invalid-form",[this])},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",previous={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(d){var c={},b=a(d).attr("class");b&&a.each(b.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])});return c},attributeRules:function(e){var b={},d=a(e);for(method in a.validator.methods){var c=d.attr(method);if(c)b[method]=c}if(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(c){var d={},b=a.data(c.form,"validator");if(b.settings.rules)d=a.validator.normalizeRule(b.settings.rules[c.name])||{};return d},normalizeRules:function(b,c){a.each(b,function(f,d){if(d===false){delete b[f];return}if(d.param||d.depends){var e=true;switch(typeof d.depends){case "string":e=!!a(d.depends,c.form).length;break;case "function":e=d.depends.call(c,c)}if(e)b[f]=d.param!==undefined?d.param:true;else delete b[f]}});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}}if(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||a.validator.messages[b];c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(d,b,e){if(!this.depend(e,b))return "dependency-mismatch";switch(b.nodeName.toLowerCase()){case "select":var c=a("option:selected",b);return c.length>0&&(b.type=="select-multiple"||(a.browser.msie&&!c[0].attributes["value"].specified?c[0].text:c[0].value).length>0);case "input":if(this.checkable(b))return this.getLength(d,b)>0;default:return a.trim(d).length>0}},remote:function(f,b,e){if(this.optional(b))return "dependency-mismatch";var d=this.previousValue(b);if(!this.settings.messages[b.name])this.settings.messages[b.name]={};this.settings.messages[b.name].remote=typeof d.message=="function"?d.message(f):d.message;e=typeof e=="string"&&{url:e}||e;if(d.old!==f){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){var a=e===true;if(a){var g=c.formSubmitted;c.prepareElement(b);c.formSubmitted=g;c.successList.push(b);c.showErrors()}else{var f={};f[b.name]=d.message=e||c.defaultMessage(b,"remote");c.showErrors(f)}d.valid=a;c.stopRequest(b,a)}},e));return "pending"}else if(this.pending[b.name])return "pending";return d.valid},minlength:function(d,b,c){return this.optional(b)||this.getLength(a.trim(d),b)>=c},maxlength:function(d,b,c){return this.optional(b)||this.getLength(a.trim(d),b)<=c},rangelength:function(e,b,d){var c=this.getLength(a.trim(e),b);return this.optional(b)||c>=d[0]&&c<=d[1]},min:function(c,a,b){return this.optional(a)||c>=b},max:function(c,a,b){return this.optional(a)||c<=b},range:function(b,c,a){return this.optional(c)||b>=a[0]&&b<=a[1]},email:function(b,a){return this.optional(a)||/^((([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(b)},url:function(b,a){return this.optional(a)||/^(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(b)},date:function(b,a){return this.optional(a)||!/Invalid|NaN/.test(new Date(b))},dateISO:function(b,a){return this.optional(a)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(b)},dateDE:function(b,a){return this.optional(a)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(b)},number:function(b,a){return this.optional(a)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(b)},numberDE:function(b,a){return this.optional(a)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(b)},digits:function(b,a){return this.optional(a)||/^\d+$/.test(b)},creditcard:function(a,e){if(this.optional(e))return "dependency-mismatch";if(/[^0-9-]+/.test(a))return false;var d=0,b=0,c=false;a=a.replace(/\D/g,"");for(n=a.length-1;n>=0;n--){var f=a.charAt(n),b=parseInt(f,10);if(c)if((b*=2)>9)b-=9;d+=b;c=!c}return d%10==0},accept:function(c,b,a){a=typeof a=="string"?a.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||c.match(new RegExp(".("+a+")$","i"))},equalTo:function(c,d,b){return c==a(b).val()}}});a.format=a.validator.format})(jQuery);(function(a){var c=a.ajax,b={};a.ajax=function(d){d=a.extend(d,a.extend({},a.ajaxSettings,d));var e=d.port;if(d.mode=="abort"){b[e]&&b[e].abort();return b[e]=c.apply(this,arguments)}return c.apply(this,arguments)}})(jQuery);(function(a){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){if(a.browser.msie)return false;this.addEventListener(c,a.event.special[b].handler,true)},teardown:function(){if(a.browser.msie)return false;this.removeEventListener(c,a.event.special[b].handler,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,{delegate:function(d,b,c){return this.bind(d,function(e){var d=a(e.target);if(d.is(b))return c.apply(d,arguments)})},triggerEvent:function(b,c){return this.triggerHandler(b,[a.event.fix({type:b,target:c})])}})})(jQuery);var xVal=xVal||{};xVal.Plugins=xVal.Plugins||{};xVal.Messages=xVal.Messages||{};xVal.AttachValidator=function(a,b,d,c){if(c!=null)this.Plugins[c].AttachValidator(a,b,d);else for(var e in this.Plugins){this.Plugins[e].AttachValidator(a,b,d);return}};(function(a){xVal.Plugins["jquery.validate"]={AttachValidator:function(c,d,e){var b=this;b._ensureCustomFunctionsRegistered();a(function(){b._ensureValidationSummaryContainerExistsIfRequired(e);for(var g=0;g<d.Fields.length;g++){var m=d.Fields[g].FieldName,i=d.Fields[g].FieldRules,o=b._makeAspNetMvcHtmlHelperID((c?c+".":"")+m),j=document.getElementById(o);if(j)for(var h=0;h<i.length;h++){var f=i[h];if(f!=null){var n=f.RuleName,k=f.RuleParameters,l=typeof f.Message=="undefined"?null:f.Message;b._attachRuleToDOMElement(n,k,l,a(j),c,e)}}}})},_makeAspNetMvcHtmlHelperID:function(a){return a.replace(/\./g,"_")},_attachRuleToDOMElement:function(p,d,b,e,h,c){var f=e.parents("form");f.length!=1&&alert("Error: Element "+e.attr("id")+" is not in a form");this._ensureFormIsMarkedForValidation(a(f[0]),c);this._associateNearbyValidationMessageSpanWithElement(e);var c={};switch(p){case "Required":c.required=true;c.messages={required:b||xVal.Messages.Required};break;case "Range":if(d.Type=="string"){c.xVal_stringRange=[d.Min,d.Max];if(b!=null)c.messages={xVal_stringRange:a.format(b)}}else if(d.Type=="datetime"){var m,l;if(typeof d.MinYear!="undefined")m=new Date(d.MinYear,d.MinMonth-1,d.MinDay,d.MinHour,d.MinMinute,d.MinSecond);if(typeof d.MaxYear!="undefined")l=new Date(d.MaxYear,d.MaxMonth-1,d.MaxDay,d.MaxHour,d.MaxMinute,d.MaxSecond);c.xVal_dateRange=[m,l];if(b!=null)c.messages={xVal_dateRange:a.format(b)}}else if(typeof d.Min=="undefined"){c.max=d.Max;b=b||xVal.Messages.Range_Numeric_Max;if(b!=null)c.messages={max:a.format(b)}}else if(typeof d.Max=="undefined"){c.min=d.Min;b=b||xVal.Messages.Range_Numeric_Min;if(b!=null)c.messages={min:a.format(b)}}else{c.range=[d.Min,d.Max];b=b||xVal.Messages.Range_Numeric_MinMax;if(b!=null)c.messages={range:a.format(b)}}break;case "StringLength":if(typeof d.MinLength=="undefined"){c.maxlength=d.MaxLength;b=b||xVal.Messages.StringLength_Max;if(b!=null)c.messages={maxlength:a.format(b)}}else if(typeof d.MaxLength=="undefined"){c.minlength=d.MinLength;b=b||xVal.Messages.StringLength_Min;if(b!=null)c.messages={minlength:a.format(b)}}else{c.rangelength=[d.MinLength,d.MaxLength];b=b||xVal.Messages.StringLength_MinMax;if(b!=null)c.messages={rangelength:a.format(b)}}break;case "DataType":switch(d.Type){case "EmailAddress":c.email=true;c.messages={email:b||xVal.Messages.DataType_EmailAddress};break;case "Integer":c.xVal_regex=["^\\-?\\d+$",""];c.messages={xVal_regex:b||xVal.Messages.DataType_Integer||"Please enter a whole number."};break;case "Decimal":c.number=true;c.messages={number:b||xVal.Messages.DataType_Decimal};break;case "Date":c.date=true;c.messages={date:b||xVal.Messages.DataType_Date};break;case "DateTime":c.xVal_regex=["^\\d{1,2}/\\d{1,2}/(\\d{2}|\\d{4})\\s+\\d{1,2}\\:\\d{2}(\\:\\d{2})?$",""];c.messages={xVal_regex:b||xVal.Messages.DataType_DateTime||"Please enter a valid date and time."};break;case "Currency":c.xVal_regex=["^\\D?\\s?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(.[0-9][0-9])?$",""];c.messages={xVal_regex:b||xVal.Messages.DataType_Currency||"Please enter a currency value."};break;case "CreditCardLuhn":c.xVal_creditCardLuhn=true;if(b!=null)c.messages={xVal_creditCardLuhn:b}}break;case "RegEx":c.xVal_regex=[d.Pattern,d.Options];if(b!=null)c.messages={xVal_regex:b};break;case "Comparison":var n=this._makeAspNetMvcHtmlHelperID((h?h+".":"")+d.PropertyToCompare),i=document.getElementById(n);if(i!=null){c.xVal_comparison=[d.PropertyToCompare,i,d.ComparisonOperator];if(b!=null)c.messages={xVal_comparison:b}}break;case "Remote":var j={};f.find("input[name], textarea[name], select[name]").each(function(){var b=this;j[b.name]=function(){return a(b).val()}});c.remote={url:d.url,data:j,type:"post"};break;case "Custom":var k=this._parseAsFunctionWithWarnings(d.Function);if(k!=null){var g=this._registerCustomValidationFunction(k),o=d.Parameters=="null"?null:eval("("+d.Parameters+")");c[g]=o||true;c.messages=[];c.messages[g]=b}}e.rules("add",c)},_parseAsFunctionWithWarnings:function(a){var b;try{b=eval("("+a+")")}catch(c){alert("Custom rule error: Could not find or could not parse the function '"+a+"'");return null}if(typeof b!="function"){alert("Custom rule error: The JavaScript object '"+a+"' is not a function.");return null}return b},_associateNearbyValidationMessageSpanWithElement:function(c){var b=c.nextAll("span.field-validation-error");b.length>0&&a(b[0]).attr("generated","true").attr("htmlfor",c.attr("id"))},_ensureFormIsMarkedForValidation:function(d,b){if(!d.data("isMarkedForValidation")){d.data("isMarkedForValidation",true);var c={errorClass:"field-validation-error",errorElement:"span",highlight:function(b){a(b).addClass("input-validation-error")},unhighlight:function(b){a(b).removeClass("input-validation-error")}};if(b.ValidationSummary){c.wrapper="li";c.errorLabelContainer="#"+b.ValidationSummary.ElementID+" ul:first"}var e=d.validate(c);b.ValidationSummary&&this._modifyJQueryValidationElementHidingBehaviourToSupportValidationSummary(e,b)}},_registerCustomValidationFunction:function(b){jQuery.validator.xValCustomFunctionCount=(jQuery.validator.xValCustomFunctionCount||0)+1;var a="xVal_customFunction_"+jQuery.validator.xValCustomFunctionCount;jQuery.validator.addMethod(a,function(d,a,c){if(this.optional(a))return true;return b(d,a,c)});return a},_ensureCustomFunctionsRegistered:function(){if(!jQuery.validator.xValFunctionsRegistered){jQuery.validator.xValFunctionsRegistered=true;jQuery.validator.addMethod("xVal_stringRange",function(b,c,a){if(this.optional(c))return true;if(a[0]!=null)if(b<a[0])return false;if(a[1]!=null)if(b>a[1])return false;return true},function(b){if(b[0]!=null&&b[1]!=null)return a.format(xVal.Messages.Range_String_MinMax||"Please enter a value alphabetically between '{0}' and '{1}'.",b[0],b[1]);else if(b[0]!=null)return a.format(xVal.Messages.Range_String_Min||"Please enter a value not alphabetically before '{0}'.",b[0]);else return a.format(xVal.Messages.Range_String_Max||"Please enter a value not alphabetically after '{0}'.",b[1])});jQuery.validator.addMethod("xVal_dateRange",function(d,c,b){if(this.optional(c))return true;var a=Date.parse(d);if(isNaN(a))return false;else a=new Date(a);if(b[0]!=null)if(a<b[0])return false;if(b[1]!=null)if(a>b[1])return false;return true},function(b,d){if(isNaN(Date.parse(d.value)))return xVal.Messages.DataType_Date||"Please enter a valid date in yyyy/mm/dd format.";var c=function(a){var b=a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate();if(a.getHours()+a.getMinutes()+a.getSeconds()!=0)b+=" "+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds();return b.replace(/\b(\d)\b/g,"0$1")};if(b[0]!=null&&b[1]!=null)return a.format(xVal.Messages.Range_DateTime_MinMax||"Please enter a date between {0} and {1}.",c(b[0]),c(b[1]));else if(b[0]!=null)return a.format(xVal.Messages.Range_DateTime_Min||"Please enter a date no earlier than {0}.",c(b[0]));else return a.format(xVal.Messages.Range_DateTime_Max||"Please enter a date no later than {0}.",c(b[1]))});jQuery.validator.addMethod("xVal_regex",function(f,b,a){if(this.optional(b))return true;var d=a[0],c=a[1],e=new RegExp(d,c);return e.test(f)},function(){return xVal.Messages.Regex||"This value is invalid."});jQuery.validator.addMethod("xVal_creditCardLuhn",function(a,d){if(this.optional(d))return true;a=a.replace(/\D/g,"");if(a=="")return false;for(var c=0,b=a.length-2;b>=0;b-=2)c+=Array(0,2,4,6,8,1,3,5,7,9)[parseInt(a.charAt(b),10)];for(var b=a.length-1;b>=0;b-=2)c+=parseInt(a.charAt(b),10);return c%10==0},function(){return xVal.Messages.DataType_CreditCardLuhn||"Please enter a valid credit card number."});jQuery.validator.addMethod("xVal_comparison",function(c,e,b){if(this.optional(e))return true;var a=b[1],d=b[2];switch(d){case "Equals":return c==a.value;case "DoesNotEqual":return c!=a.value}return true},function(c){var b=c[0],d=c[2];switch(d){case "Equals":return a.format(xVal.Messages.Comparison_Equals||"This value must be the same as {0}.",b);case "DoesNotEqual":return a.format(xVal.Messages.Comparison_DoesNotEqual||"This value must be different from {0}.",b)}});a.expr[":"].displayableValidationSummaryMessage=function(c){var b=a(c).find("span:first");if(b.length==0)return true;return !(b.css("display")==="none")&&!b.is(":empty")}}},_ensureValidationSummaryContainerExistsIfRequired:function(b){if(b.ValidationSummary){var c=a("#"+b.ValidationSummary.ElementID);c.length==0&&alert('Cannot find validation summary element "'+b.ValidationSummary.ElementID+"\". Make sure you've put an element with this ID into your HTML document.");!c.is(":has(ul)")&&c.append(a("<span class='validation-summary-errors' />").text(b.ValidationSummary.HeaderMessage)).append(a("<ul />")).hide()}},_modifyJQueryValidationElementHidingBehaviourToSupportValidationSummary:function(b,c){var d=b.hideErrors,e=b.showErrors;b.hideErrors=function(){this.toHide=this.toHide.not("ul");d.apply(this,arguments);a("#"+c.ValidationSummary.ElementID+":not(:has(li:displayableValidationSummaryMessage))").hide()};b.showErrors=function(){e.apply(this,arguments);a("#"+c.ValidationSummary.ElementID+":has(li:displayableValidationSummaryMessage)").show()}}}})(jQuery);(function(a){var b=a.scrollTo=function(b,d,c){a(window).scrollTo(b,d,c)};b.defaults={axis:"xy",duration:parseFloat(a.fn.jquery)>=1.3?0:1};b.window=function(){return a(window)._scrollable()};a.fn._scrollable=function(){return this.map(function(){var b=this,d=!b.nodeName||a.inArray(b.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!d)return b;var c=(b.contentWindow||b).document||b.ownerDocument||b;return a.browser.safari||c.compatMode=="BackCompat"?c.body:c.documentElement})};a.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function")d={onAfter:d};if(f=="max")f=9e9;d=a.extend({},b.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue)e/=2;d.offset=c(d.offset);d.over=c(d.over);return this._scrollable().each(function(){var i=this,j=a(i),g=f,k,h={},m=j.is("html,body");switch(typeof g){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(g)){g=c(g);break}g=a(g,this);case "object":if(g.is||g.style)k=(g=a(g)).offset()}a.each(d.axis.split(""),function(q,n){var e=n=="x"?"Left":"Top",c=e.toLowerCase(),a="scroll"+e,o=i[a],p=b.max(i,n);if(k){h[a]=k[c]+(m?0:o-j.offset()[c]);if(d.margin){h[a]-=parseInt(g.css("margin"+e))||0;h[a]-=parseInt(g.css("border"+e+"Width"))||0}h[a]+=d.offset[c]||0;if(d.over[c])h[a]+=g[n=="x"?"width":"height"]()*d.over[c]}else{var f=g[c];h[a]=f.slice&&f.slice(-1)=="%"?parseFloat(f)/100*p:f}if(/^\d+$/.test(h[a]))h[a]=h[a]<=0?0:Math.min(h[a],p);if(!q&&d.queue){o!=h[a]&&l(d.onAfterFirst);delete h[a]}});l(d.onAfter);function l(a){j.animate(h,e,d.easing,a&&function(){a.call(this,f,d)})}}).end()};b.max=function(b,h){var c=h=="x"?"Width":"Height",d="scroll"+c;if(!a(b).is("html,body"))return b[d]-a(b)[c.toLowerCase()]();var e="client"+c,f=b.ownerDocument.documentElement,g=b.ownerDocument.body;return Math.max(f[d],g[d])-Math.min(f[e],g[e])};function c(a){return typeof a=="object"?a:{top:a,left:a}}})(jQuery);jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyIframeSrc:undefined,historyNeedIframe:jQuery.browser.msie&&(jQuery.browser.version<8||document.documentMode<8),historyInit:function(d,c){jQuery.historyCallback=d;if(c)jQuery.historyIframeSrc=c;var a=location.hash.replace(/\?.*$/,"");jQuery.historyCurrentHash=a;if(jQuery.historyNeedIframe){if(jQuery.historyCurrentHash=="")jQuery.historyCurrentHash="#";jQuery("body").prepend('<iframe id="jQuery_history" style="display: none;" src="javascript:false;"></iframe>');var e=jQuery("#jQuery_history")[0],b=e.contentWindow.document;b.open();b.close();b.location.hash=a}else if(jQuery.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.lastHistoryLength=history.length;jQuery.isFirst=true}a&&jQuery.historyCallback(a.replace(/^#/,""));setInterval(jQuery.historyCheck,100)},historyAddHistory:function(a){jQuery.historyBackStack.push(a);jQuery.historyForwardStack.length=0;this.isFirst=true},historyCheck:function(){if(jQuery.historyNeedIframe){var e=jQuery("#jQuery_history")[0],f=e.contentDocument||e.contentWindow.document,a=f.location.hash.replace(/\?.*$/,"");if(a!=jQuery.historyCurrentHash){location.hash=a;jQuery.historyCurrentHash=a;jQuery.historyCallback(a.replace(/^#/,""))}}else if(jQuery.browser.safari){jQuery.lastHistoryLength==history.length&&jQuery.historyBackStack.length>jQuery.lastHistoryLength&&jQuery.historyBackStack.shift();if(!jQuery.dontCheck){var b=history.length-jQuery.historyBackStack.length;jQuery.lastHistoryLength=history.length;if(b){jQuery.isFirst=false;if(b<0)for(var c=0;c<Math.abs(b);c++)jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());else for(var c=0;c<b;c++)jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());var d=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(d!=undefined){jQuery.historyCurrentHash=location.hash.replace(/\?.*$/,"");jQuery.historyCallback(d)}}else if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(location.hash){var a=location.hash;jQuery.historyCallback(location.hash.replace(/^#/,""))}else{var a="";jQuery.historyCallback("")}jQuery.isFirst=true}}}else{var a=location.hash.replace(/\?.*$/,"");if(a!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=a;jQuery.historyCallback(a.replace(/^#/,""))}}},historyLoad:function(a){var b;a=decodeURIComponent(a.replace(/\?.*$/,""));if(jQuery.browser.safari)b=a;else{b="#"+a;location.hash=b}jQuery.historyCurrentHash=b;if(jQuery.historyNeedIframe){var d=jQuery("#jQuery_history")[0],c=d.contentWindow.document;c.open();c.close();c.location.hash=b;jQuery.lastHistoryLength=history.length;jQuery.historyCallback(a)}else if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(a);var e=function(){jQuery.dontCheck=false};window.setTimeout(e,200);jQuery.historyCallback(a);location.hash=b}else jQuery.historyCallback(a)}});(function(a){a.fn.extend({kommentar:function(b){var c={animatePadding:60,defaultPadding:10,evenColor:"#ccc",oddColor:"#eee"},b=a.extend(c,b);return this.each(function(){var k=b,d=a(this),e="";a("#overlay").length==0&&d.append("<div style='display:none;' id='overlay' class='simple_overlay'></div>");var g=a("#overlay"),c=null;h(d.find(".commentreply"));i(d.find(".commentnew"));function h(b){b.click(function(b){a("#commentform").remove();a(this).parent().parent().parent().append('<div id="commentform"></div>');c=a("#commentform");e=a(this).attr("artikelID");a.get("/kommentar/neuinline?artikelID="+e+"&pkommentarID="+a(this).attr("pkommentarID")+"&c="+Math.random(),function(a){f(a)});b.preventDefault()})}function i(b){b.click(function(b){a("#commentform").remove();a(this).parent().append('<div id="commentform"></div>');c=a("#commentform");e=a(this).attr("artikelID");a.get("/kommentar/neuinline?artikelID="+e+"&c="+Math.random(),function(a){f(a)});b.preventDefault()})}function j(){a.get("/kommentar/ThreadInline?artikelID="+e+"&c="+Math.random(),function(b){d.html(b);h(d.find(".commentreply"));i(d.find(".commentnew"));a.scrollTo(d,800)})}function f(b){c.html(b);a.scrollTo(c,800);c.find("form").submit(function(){a.post("/kommentar/neu",a(this).serialize()+"&isinline=true",function(a){if(a.indexOf("SUCCESS")>0){api=g.overlay({oneInstance:true,expose:"#222222",api:true,onClose:function(){c.remove();c=null;j()}});g.html(a);g.find(".submit").click(function(){api.close()});api.load()}else f(a)});return false})}})}})})(jQuery);DateInput=function(a){function b(d,c){if(typeof c!="object")c={};a.extend(this,b.DEFAULT_OPTS,c);this.input=a(d);this.bindMethodsToObj("show","hide","hideIfClickOutside","keydownHandler","selectDate");this.build();this.selectDate();this.hide()}b.DEFAULT_OPTS={month_names:["January","February","March","April","May","June","July","August","September","October","November","December"],short_month_names:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],short_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],start_of_week:1};b.prototype={build:function(){var b=a('<p class="month_nav"><span class="button prev" title="[Page-Up]">&#171;</span> <span class="month_name"></span> <span class="button next" title="[Page-Down]">&#187;</span></p>');this.monthNameSpan=a(".month_name",b);a(".prev",b).click(this.bindToObj(function(){this.moveMonthBy(-1)}));a(".next",b).click(this.bindToObj(function(){this.moveMonthBy(1)}));var c=a('<p class="year_nav"><span class="button prev" title="[Ctrl+Page-Up]">&#171;</span> <span class="year_name"></span> <span class="button next" title="[Ctrl+Page-Down]">&#187;</span></p>');this.yearNameSpan=a(".year_name",c);a(".prev",c).click(this.bindToObj(function(){this.moveMonthBy(-12)}));a(".next",c).click(this.bindToObj(function(){this.moveMonthBy(12)}));var d=a('<div class="nav"></div>').append(b,c),e="<table><thead><tr>";a(this.adjustDays(this.short_day_names)).each(function(){e+="<th>"+this+"</th>"});e+="</tr></thead><tbody></tbody></table>";this.dateSelector=this.rootLayers=a('<div class="date_selector"></div>').append(d,e).insertAfter(this.input);if(a.browser.msie&&a.browser.version<7){this.ieframe=a('<iframe class="date_selector_ieframe" frameborder="0" src="#"></iframe>').insertBefore(this.dateSelector);this.rootLayers=this.rootLayers.add(this.ieframe);a(".button",d).mouseover(function(){a(this).addClass("hover")});a(".button",d).mouseout(function(){a(this).removeClass("hover")})}this.tbody=a("tbody",this.dateSelector);this.input.change(this.bindToObj(function(){this.selectDate()}));this.selectDate()},selectMonth:function(c){var g=new Date(c.getFullYear(),c.getMonth(),1);if(!this.currentMonth||!(this.currentMonth.getFullYear()==g.getFullYear()&&this.currentMonth.getMonth()==g.getMonth())){this.currentMonth=g;for(var e=this.rangeStart(c),i=this.rangeEnd(c),h=this.daysBetween(e,i),d="",f=0;f<=h;f++){var b=new Date(e.getFullYear(),e.getMonth(),e.getDate()+f,12,0);if(this.isFirstDayOfWeek(b))d+="<tr>";if(b.getMonth()==c.getMonth())d+='<td class="selectable_day" date="'+this.dateToString(b)+'">'+b.getDate()+"</td>";else d+='<td class="unselected_month" date="'+this.dateToString(b)+'">'+b.getDate()+"</td>";if(this.isLastDayOfWeek(b))d+="</tr>"}this.tbody.empty().append(d);this.monthNameSpan.empty().append(this.monthName(c));this.yearNameSpan.empty().append(this.currentMonth.getFullYear());a(".selectable_day",this.tbody).click(this.bindToObj(function(b){this.changeInput(a(b.target).attr("date"))}));a("td[date="+this.dateToString(new Date)+"]",this.tbody).addClass("today");a("td.selectable_day",this.tbody).mouseover(function(){a(this).addClass("hover")});a("td.selectable_day",this.tbody).mouseout(function(){a(this).removeClass("hover")})}a(".selected",this.tbody).removeClass("selected");a("td[date="+this.selectedDateString+"]",this.tbody).addClass("selected")},selectDate:function(a){if(typeof a=="undefined")a=this.stringToDate(this.input.val());if(!a)a=new Date;this.selectedDate=a;this.selectedDateString=this.dateToString(this.selectedDate);this.selectMonth(this.selectedDate)},changeInput:function(a){this.input.val(a).change();this.hide()},show:function(){this.rootLayers.css("display","block");a([window,document.body]).click(this.hideIfClickOutside);this.input.unbind("focus",this.show);a(document.body).keydown(this.keydownHandler);this.setPosition()},hide:function(){this.rootLayers.css("display","none");a([window,document.body]).unbind("click",this.hideIfClickOutside);this.input.focus(this.show);a(document.body).unbind("keydown",this.keydownHandler)},hideIfClickOutside:function(a){a.target!=this.input[0]&&!this.insideSelector(a)&&this.hide()},insideSelector:function(b){var a=this.dateSelector.position();a.right=a.left+this.dateSelector.outerWidth();a.bottom=a.top+this.dateSelector.outerHeight();return b.pageY<a.bottom&&b.pageY>a.top&&b.pageX<a.right&&b.pageX>a.left},keydownHandler:function(a){switch(a.keyCode){case 9:case 27:this.hide();return;break;case 13:this.changeInput(this.selectedDateString);break;case 33:this.moveDateMonthBy(a.ctrlKey?-12:-1);break;case 34:this.moveDateMonthBy(a.ctrlKey?12:1);break;case 38:this.moveDateBy(-7);break;case 40:this.moveDateBy(7);break;case 37:this.moveDateBy(-1);break;case 39:this.moveDateBy(1);break;default:return}a.preventDefault()},stringToDate:function(b){var a;if(a=b.match(/^(\d{1,2}) ([^\s]+) (\d{4,4})$/))return new Date(a[3],this.shortMonthNum(a[2]),a[1],12,0);else return null},dateToString:function(a){return a.getDate()+" "+this.short_month_names[a.getMonth()]+" "+a.getFullYear()},setPosition:function(){var a=this.input.offset();this.rootLayers.css({top:a.top+this.input.outerHeight(),left:a.left});this.ieframe&&this.ieframe.css({width:this.dateSelector.outerWidth(),height:this.dateSelector.outerHeight()})},moveDateBy:function(b){var a=new Date(this.selectedDate.getFullYear(),this.selectedDate.getMonth(),this.selectedDate.getDate()+b);this.selectDate(a)},moveDateMonthBy:function(b){var a=new Date(this.selectedDate.getFullYear(),this.selectedDate.getMonth()+b,this.selectedDate.getDate());a.getMonth()==this.selectedDate.getMonth()+b+1&&a.setDate(0);this.selectDate(a)},moveMonthBy:function(a){var b=new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()+a,this.currentMonth.getDate());this.selectMonth(b)},monthName:function(a){return this.month_names[a.getMonth()]},bindToObj:function(b){var a=this;return function(){return b.apply(a,arguments)}},bindMethodsToObj:function(){for(var a=0;a<arguments.length;a++)this[arguments[a]]=this.bindToObj(this[arguments[a]])},indexFor:function(b,c){for(var a=0;a<b.length;a++)if(c==b[a])return a},monthNum:function(a){return this.indexFor(this.month_names,a)},shortMonthNum:function(a){return this.indexFor(this.short_month_names,a)},shortDayNum:function(a){return this.indexFor(this.short_day_names,a)},daysBetween:function(b,a){b=Date.UTC(b.getFullYear(),b.getMonth(),b.getDate());a=Date.UTC(a.getFullYear(),a.getMonth(),a.getDate());return (a-b)/8.64e7},changeDayTo:function(c,a,b){var d=b*(Math.abs(a.getDay()-c-b*7)%7);return new Date(a.getFullYear(),a.getMonth(),a.getDate()+d)},rangeStart:function(a){return this.changeDayTo(this.start_of_week,new Date(a.getFullYear(),a.getMonth()),-1)},rangeEnd:function(a){return this.changeDayTo((this.start_of_week-1)%7,new Date(a.getFullYear(),a.getMonth()+1,0),1)},isFirstDayOfWeek:function(a){return a.getDay()==this.start_of_week},isLastDayOfWeek:function(a){return a.getDay()==(this.start_of_week-1)%7},adjustDays:function(c){for(var b=[],a=0;a<c.length;a++)b[a]=c[(a+this.start_of_week)%7];return b}};a.fn.date_input=function(a){return this.each(function(){new b(this,a)})};a.date_input={initialize:function(b){a("input.date_input").date_input(b)}};return b}(jQuery);jQuery.extend(DateInput.DEFAULT_OPTS,{month_names:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],short_month_names:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],short_day_names:["So","Mo","Di","Mi","Do","Fr","Sa"]});$.extend(DateInput.DEFAULT_OPTS,{stringToDate:function(b){var a;if(a=b.match(/^(\d{2,2})-(\d{2,2})-(\d{4,4})$/))return new Date(a[3],a[2]-1,a[1]);else return null},dateToString:function(c){var a=(c.getMonth()+1).toString(),b=c.getDate().toString();if(a.length==1)a="0"+a;if(b.length==1)b="0"+b;return b+"."+a+"."+c.getFullYear()}});$.browser.msie&&$.browser.version.substr(0,1)<7&&$(document).ready(function(){$("#navigation").children().hover(function(){$(this).attr("old",$(this).attr("class"));$(this).attr("class","over"+$(this).attr("old"));$("div.submenu",this).show();$("select").hide()},function(){$(this).attr("class",$(this).attr("old"));$("div.submenu",this).hide();$("select").show()})});var galleryImages=Array(),player,videoindex=0,videocount=0;function displayNextVideo(){$("#videos").children("img").eq(videoindex).fadeOut(1e3);videoindex++;if(videoindex>videocount-1)videoindex=0;$("#videos").children("img").eq(videoindex).fadeIn(1e3);videocount>1&&setTimeout("displayNextVideo()",3e3)}$(document).ready(function(){$(function(){$(".inlinecomments").kommentar();videocount=$("#videos").children().size()-1;videocount>0&&setTimeout("displayNextVideo()",300);var b=$("span.simplem"),c=/ at /,a=/ dot /g;b.each(function(){var b=$(this).text().replace(c,"@").replace(a,".");$(this).after('<a class="email" href="mailto:'+b+'" title="Öffnet Ihr eMail-Programm">Hier</a>').hover(function(){window.status="Öffnet Ihr eMail-Programm"},function(){window.status=""});$(this).remove()});var d=$("a.modallink").overlay({expose:{color:"#222222",loadSpeed:200,opacity:.9},closeOnClick:true})});$("fieldset.hide legend, fieldset.show legend").click(function(){if($(this).parent().hasClass("hide")){$(this).parent().removeClass("hide");$(this).parent().addClass("show");$(this).next().show("200")}else{$(this).parent().removeClass("show");$(this).parent().addClass("hide");$(this).next().hide("200")}});$("input, textarea").focus(function(){$(this).addClass("curFocus")});$("input, textarea").blur(function(){$(this).removeClass("curFocus")});$("#tagcheckboxes input:checkbox").checkbox({cls:"jquery-checkbox-tag"});$("#styled > input:checkbox").checkbox({cls:"jquery-checkbox"});$(".date, .dateDE").date_input();if($("a.video,a.videoimage").length>0){$("body").append('<a id="dummy"></a><div class="simple_overlay" id="video" style="width:670px;height:370px;padding:25px;" style="display:none;"><a id="player"></a></div>');player=flowplayer("player","/content/swf/flowplayer-3.1.5.swf");$("a.video,a.videoimage").each(function(){$(this).click(function(a){a.preventDefault();$("#dummy").attr("href",$(this).attr("href"));$("#dummy").overlay({api:true,target:"#video",expose:"#222222",onLoad:function(){$(".hidebanner").hide();$f().play($("#dummy").attr("href"))},onClose:function(){$(".hidebanner").show();$f().stop();$f().unload()}}).load()})})}if($("ul.gallery li").length>0){var b=$("ul.gallery").height();if(b<500)b=500;if($.browser.msie&&$.browser.version.substr(0,1)<7)b=400;if(galleryImages.length>0){for(var c="",a=0;a<galleryImages.length;a++)c+='<li><a title="'+galleryImages[a]["title"]+'" href="'+galleryImages[a]["normal"]+'" thumb="'+galleryImages[a]["thumb"]+'"><img alt="" src="/content/images/loading.gif"></a></li>';$("ul.gallery").append(c);$("ul.gallery").wrap('<div id="scrollableWrap"><div class="scrollable"></div></div>');$("div.scrollable").height(b);$("#scrollableWrap").prepend('<div class="scroll_up" title="Liste nach unten bewegen. Sie können auch über die Bilder fahren und das Mausrad benutzen!">Nach Oben<div>');$("#scrollableWrap").append('<div class="scroll_down" title="Liste nach oben bewegen. Sie können auch über die Bilder fahren und das Mausrad benutzen!">Nach Unten<div>');var d=$(".scrollable").scrollable({size:1,vertical:true,next:".scroll_down",prev:".scroll_up",onSeek:function(){var a=this.getIndex();this.getItems().each(function(b){if(b>=a&&b<a+6){var c=$(this).find("img").attr("src");c.indexOf("loading.gif")>-1&&$(this).find("img").attr("src",$(this).find("a").attr("thumb"))}})}}).autoscroll({autoplay:false,steps:3}).mousewheel({api:true});d.getItems().each(function(b){var a=d.getIndex();if(b>=a&&b<a+6){var c=$(this).find("img").attr("src");c.indexOf("loading.gif")>-1&&$(this).find("img").attr("src",$(this).find("a").attr("thumb"))}})}$("#scrollableWrap").append('<a class="galerie" id="thumbsbutton" href="#">Übersicht anzeigen</a>');$("body").append('<div class="simple_overlay" id="gallery" style="display:none;"><a class="play" title="Slideshow ablaufen lassen"></a><a class="thumbs" title="Liste mit Thumbnails anzeigen"></a><a class="prev">zurück</a><a class="next">weiter</a><div class="info"></div><div class="thumbslist"></div><img class="progress" src="/content/images/loading.gif" /></div>');$("ul.gallery a").overlay({target:"#gallery",expose:"#222"}).zakgallery({template:"<strong>${title}</strong> <span>Bild ${index} von ${total}</span>",thumbsbutton:"#thumbsbutton",preload:true})}})