(function(i,z){function L(){if(!c.isReady){try{v.documentElement.doScroll("left")}catch(a){setTimeout(L,1);return}c.ready()}}function V(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function fa(a,b,d,f,e,k){var l=a.length;if(typeof b==="object"){for(var s in b)fa(a,s,b[s],f,e,d);return a}if(d!==z){f=!k&&f&&c.isFunction(d);for(s=0;s<l;s++)e(a[s],b,f?d.call(a[s],s,e(a[s],b)):d,k);return a}return l? e(a[0],b):z}function M(){return(new Date).getTime()}function J(){return false}function Q(){return true}function C(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Y(a){var b,d=[],f=[],e=arguments,k,l,s,o,w,B;l=c.data(this,"events");if(!(a.liveFired===this||!l||!l.live||a.button&&a.type==="click")){a.liveFired=this;var N=l.live.slice(0);for(o=0;o<N.length;o++){l=N[o];l.origType.replace(r,"")===a.type?f.push(l.selector):N.splice(o--,1)}k=c(a.target).closest(f,a.currentTarget);w=0;for(B= k.length;w<B;w++)for(o=0;o<N.length;o++){l=N[o];if(k[w].selector===l.selector){s=k[w].elem;f=null;if(l.preType==="mouseenter"||l.preType==="mouseleave")f=c(a.relatedTarget).closest(l.selector)[0];if(!f||f!==s)d.push({elem:s,handleObj:l})}}w=0;for(B=d.length;w<B;w++){k=d[w];a.currentTarget=k.elem;a.data=k.handleObj.data;a.handleObj=k.handleObj;if(k.handleObj.origHandler.apply(k.elem,e)===false){b=false;break}}return b}}function ga(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g, "&")}function za(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var k in f)for(var l in f[k])c.event.add(this,k,f[k][l],f[k][l].data)}}})}function ta(a,b,d){var f,e,k;b=b&&b[0]?b[0].ownerDocument||b[0]:v;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===v&&!Sa.test(a[0])&&(c.support.checkClone||!Ta.test(a[0]))){e=true;if(k=c.fragments[a[0]])if(k!==1)f=k}if(!f){f=b.createDocumentFragment(); c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=k?f:1;return{fragment:f,cacheable:e}}function ja(a,b){var d={};c.each(Ua.concat.apply([],Ua.slice(0,b)),function(){d[this]=a});return d}function va(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},U=i.jQuery,oa=i.$,v=i.document,R,da=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Da=/^.[^:#\[\.,]*$/,j=/\S/,H=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,F=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,G=navigator.userAgent, aa=false,ha=[],ba,wa=Object.prototype.toString,ka=Object.prototype.hasOwnProperty,la=Array.prototype.push,ma=Array.prototype.slice,pa=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f,e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=v;this[0]=v.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=da.exec(a))&&(d[1]||!b))if(d[1]){e=b?b.ownerDocument||b:v;if(f=F.exec(a))if(c.isPlainObject(b)){a= [v.createElement(f[1])];c.fn.attr.call(a,b,true)}else a=[e.createElement(f[1])];else{f=ta([d[1]],[e]);a=(f.cacheable?f.fragment.cloneNode(true):f.fragment).childNodes}return c.merge(this,a)}else{if(f=v.getElementById(d[2])){if(f.id!==d[2])return R.find(a);this.length=1;this[0]=f}this.context=v;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=v;a=v.getElementsByTagName(a);return c.merge(this,a)}else return!b||b.jquery?(b||R).find(a):c(b).find(a);else if(c.isFunction(a))return R.ready(a); if(a.selector!==z){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ma.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?la.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b==="find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+ "."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(v,c);else ha&&ha.push(a);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(ma.apply(this,arguments),"slice",ma.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject|| c(null)},push:la,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,k,l,s;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(k in e){l=a[k];s=e[k];if(a!==s)if(f&&s&&(c.isPlainObject(s)||c.isArray(s))){l=l&&(c.isPlainObject(l)||c.isArray(l))?l:c.isArray(s)?[]:{};a[k]=c.extend(f,l,s)}else if(s!==z)a[k]= s}return a};c.extend({noConflict:function(a){i.$=oa;if(a)i.jQuery=U;return c},isReady:false,ready:function(){if(!c.isReady){if(!v.body)return setTimeout(c.ready,13);c.isReady=true;if(ha){for(var a,b=0;a=ha[b++];)a.call(v,c);ha=null}c.fn.triggerHandler&&c(v).triggerHandler("ready")}},bindReady:function(){if(!aa){aa=true;if(v.readyState==="complete")return c.ready();if(v.addEventListener){v.addEventListener("DOMContentLoaded",ba,false);i.addEventListener("load",c.ready,false)}else if(v.attachEvent){v.attachEvent("onreadystatechange", ba);i.attachEvent("onload",c.ready);var a=false;try{a=i.frameElement==null}catch(b){}v.documentElement.doScroll&&a&&L()}}},isFunction:function(a){return wa.call(a)==="[object Function]"},isArray:function(a){return wa.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||wa.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!ka.call(a,"constructor")&&!ka.call(a.constructor.prototype,"isPrototypeOf"))return false;for(var b in a);return b===z||ka.call(a,b)}, isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return i.JSON&&i.JSON.parse?i.JSON.parse(a):(new Function("return "+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&& j.test(a)){var b=v.getElementsByTagName("head")[0]||v.documentElement,d=v.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(v.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,k=a.length,l=k===z||c.isFunction(a);if(d)if(l)for(f in a){if(b.apply(a[f],d)===false)break}else for(;e<k;){if(b.apply(a[e++],d)===false)break}else if(l)for(f in a){if(b.call(a[f], f,a[f])===false)break}else for(d=a[0];e<k&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(H,"")},makeArray:function(a,b){var d=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?la.call(d,a):c.merge(d,a);return d},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e= b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==z;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,k=a.length;e<k;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,k=0,l=a.length;k<l;k++){e=b(a[k],k,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=z}else if(b&&!c.isFunction(b)){d=b;b=z}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid= a.guid=a.guid||b.guid||c.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:{}});G=c.uaMatch(G);if(G.browser){c.browser[G.browser]=true;c.browser.version=G.version}if(c.browser.webkit)c.browser.safari=true;if(pa)c.inArray=function(a,b){return pa.call(b,a)};R=c(v);if(v.addEventListener)ba= function(){v.removeEventListener("DOMContentLoaded",ba,false);c.ready()};else if(v.attachEvent)ba=function(){if(v.readyState==="complete"){v.detachEvent("onreadystatechange",ba);c.ready()}};(function(){c.support={};var a=v.documentElement,b=v.createElement("script"),d=v.createElement("div"),f="script"+M();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=d.getElementsByTagName("*"),k=d.getElementsByTagName("a")[0]; if(!(!e||!e.length||!k)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")),hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55$/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:v.createElement("select").appendChild(v.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(v.createElement("div"))).parentNode=== null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(v.createTextNode("window."+f+"=1;"))}catch(l){}a.insertBefore(b,a.firstChild);if(i[f]){c.support.scriptEval=true;delete i[f]}try{delete b.test}catch(s){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function o(){c.support.noCloneEvent=false;d.detachEvent("onclick",o)});d.cloneNode(true).fireEvent("onclick")}d=v.createElement("div"); d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=v.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var o=v.createElement("div");o.style.width=o.style.paddingLeft="1px";v.body.appendChild(o);c.boxModel=c.support.boxModel=o.offsetWidth===2;v.body.removeChild(o).style.display="none"});a=function(o){var w=v.createElement("div");o="on"+o;var B=o in w;if(!B){w.setAttribute(o,"return;");B=typeof w[o]=== "function"}return B};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=k=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ia="jQuery"+M(),xa=0,ya={};c.extend({cache:{},expando:ia,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a= a==i?ya:a;var f=a[ia],e=c.cache;if(!f&&typeof b==="string"&&d===z)return null;f||(f=++xa);if(typeof b==="object"){a[ia]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[ia]=f;e[f]={}}a=e[f];if(d!==z)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==i?ya:a;var d=a[ia],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];else a.removeAttribute&&a.removeAttribute(c.expando); delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===z){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===z&&this.length)f=c.data(this[0],a);return f===z&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this, a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===z)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this, a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var ua=/[\n\t]/g,qa=/\s+/,X=/\r/g,Aa=/href|src|style/,ca=/(button|input)/i,g=/(button|input|object|select|textarea)/i,t=/^(a|area)$/i,u=/radio|checkbox/;c.fn.extend({attr:function(a, b){return fa(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(w){var B=c(this);B.addClass(a.call(this,w,B.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(qa),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var k=" "+e.className+" ",l=e.className,s=0,o=b.length;s<o;s++)if(k.indexOf(" "+b[s]+" ")< 0)l+=" "+b[s];e.className=c.trim(l)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var w=c(this);w.removeClass(a.call(this,o,w.attr("class")))});if(a&&typeof a==="string"||a===z)for(var b=(a||"").split(qa),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var k=(" "+e.className+" ").replace(ua," "),l=0,s=b.length;l<s;l++)k=k.replace(" "+b[l]+" "," ");e.className=c.trim(k)}else e.className=""}return this},toggleClass:function(a, b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var k=c(this);k.toggleClass(a.call(this,e,k.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,k=0,l=c(this),s=b,o=a.split(qa);e=o[k++];){s=f?s:!l.hasClass(e);l[s?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a= " "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(ua," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===z){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var k=b?d:0;for(d=b?d+1:e.length;k<d;k++){var l=e[k];if(l.selected){a=c(l).val();if(b)return a;f.push(a)}}return f}if(u.test(b.type)&& !c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(X,"")}return z}var s=c.isFunction(a);return this.each(function(o){var w=c(this),B=a;if(this.nodeType===1){if(s)B=a.call(this,o,w.val());if(typeof B==="number")B+="";if(c.isArray(B)&&u.test(this.type))this.checked=c.inArray(w.val(),B)>=0;else if(c.nodeName(this,"select")){var N=c.makeArray(B);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),N)>=0});if(!N.length)this.selectedIndex= -1}else this.value=B}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return z;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==z;b=f&&c.props[b]||b;if(a.nodeType===1){var k=Aa.test(b);if(b in a&&f&&!k){if(e){b==="type"&&ca.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue; if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:g.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:z;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?z:a}return c.style(a,b,d)}});var r=/\.(.*)$/,n=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType=== 3||a.nodeType===8)){if(a.setInterval&&a!==i&&!a.frameElement)a=i;var e,k;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(k=c.data(a)){var l=k.events=k.events||{},s=k.handle;if(!s)k.handle=s=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(s.elem,arguments):z};s.elem=a;b=b.split(" ");for(var o,w=0,B;o=b[w++];){k=e?c.extend({},e):{handler:d,data:f};if(o.indexOf(".")>-1){B=o.split(".");o=B.shift();k.namespace=B.slice(0).sort().join(".")}else{B=[];k.namespace= ""}k.type=o;k.guid=d.guid;var N=l[o],S=c.event.special[o]||{};if(!N){N=l[o]=[];if(!S.setup||S.setup.call(a,f,B,s)===false)if(a.addEventListener)a.addEventListener(o,s,false);else a.attachEvent&&a.attachEvent("on"+o,s)}if(S.add){S.add.call(a,k);if(!k.handler.guid)k.handler.guid=d.guid}N.push(k);c.event.global[o]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,k=0,l,s,o,w,B,N,S=c.data(a),Z=S&&S.events;if(S&&Z){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b=== "string"&&b.charAt(0)==="."){b=b||"";for(e in Z)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[k++];){w=e;l=e.indexOf(".")<0;s=[];if(!l){s=e.split(".");e=s.shift();o=RegExp("(^|\\.)"+c.map(s.slice(0).sort(),n).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(B=Z[e])if(d){w=c.event.special[e]||{};for(W=f||0;W<B.length;W++){N=B[W];if(d.guid===N.guid){if(l||o.test(N.namespace)){f==null&&B.splice(W--,1);w.remove&&w.remove.call(a,N)}if(f!=null)break}}if(B.length===0||f!=null&&B.length===1){if(!w.teardown||w.teardown.call(a, s)===false)A(a,e,S.handle);delete Z[e]}}else for(var W=0;W<B.length;W++){N=B[W];if(l||o.test(N.namespace)){c.event.remove(a,w,N.handler,W);B.splice(W--,1)}}}if(c.isEmptyObject(Z)){if(b=S.handle)b.elem=null;delete S.events;delete S.handle;c.isEmptyObject(S)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[ia]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache, function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return z;a.result=z;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(k){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var l, s=c.nodeName(f,"a")&&e==="click",o=c.event.special[e]||{};if((!o._default||o._default.call(d,a)===false)&&!s&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(l=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(w){}if(l)f["on"+e]=l;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||i.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){d=a.type.split(".");a.type=d.shift();f=RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+ "(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var k=d.length;e<k;e++){var l=d[e];if(b||f.test(l.namespace)){a.handler=l.handler;a.data=l.data;a.handleObj=l;l=l.handler.apply(this,arguments);if(l!==z){a.result=l;if(l===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.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(a){if(a[ia])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||v;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=v.documentElement;d=v.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop|| d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==z)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:Y}))},remove:function(a){var b=true,d=a.origType.replace(r,"");c.each(c.data(this, "events").live||[],function(){if(d===this.origType.replace(r,""))return b=false});b&&c.event.remove(this,a.origType,Y)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var A=v.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent= a;this.type=a.type}else this.type=a;this.timeStamp=M();this[ia]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Q;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Q;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Q;this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J, isImmediatePropagationStopped:J};var O=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},T=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?T:O,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?T:O)}}});if(!c.support.submitBubbles)c.event.special.submit= {setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return C("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return C("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var ea= /textarea|input|select/i,K,Ga=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},La=function(a,b){var d=a.target,f,e;if(!(!ea.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Ga(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",e);if(!(f===z||e===f))if(f!=null|| e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:La,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return La.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return La.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",Ga(a))}},setup:function(){if(this.type=== "file")return false;for(var a in K)c.event.add(this,a+".specialChange",K[a]);return ea.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ea.test(this.nodeName)}};K=c.event.special.change.filters}v.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}}); c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var k in d)this[b](k,f,d[k],e);return this}if(c.isFunction(f)){e=f;f=z}var l=b==="one"?c.proxy(e,function(o){c(this).unbind(o,l);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{k=0;for(var s=this.length;k<s;k++)c.event.add(this[k],d,l,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f= this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]); return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Va={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,k){var l,s=0,o,w,B=k||this.selector,N=k?this:c(this.context);if(c.isFunction(f)){e=f;f=z}for(d=(d||"").split(" ");(l= d[s++])!=null;){k=r.exec(l);o="";if(k){o=k[0];l=l.replace(r,"")}if(l==="hover")d.push("mouseenter"+o,"mouseleave"+o);else{w=l;if(l==="focus"||l==="blur"){d.push(Va[l]+o);l+=o}else l=(Va[l]||l)+o;b==="live"?N.each(function(){c.event.add(this,ga(l,B),{data:f,selector:B,handler:e,origType:l,origHandler:e,preType:w})}):N.unbind(ga(l,B),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "), function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});i.attachEvent&&!i.addEventListener&&i.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(h){for(var m="",p,q=0;h[q];q++){p=h[q];if(p.nodeType===3||p.nodeType===4)m+=p.nodeValue;else if(p.nodeType!==8)m+=a(p.childNodes)}return m}function b(h,m,p,q,y,x){y=0;for(var E=q.length;y<E;y++){var D=q[y]; if(D){D=D[h];for(var P=false;D;){if(D.sizcache===p){P=q[D.sizset];break}if(D.nodeType===1&&!x){D.sizcache=p;D.sizset=y}if(D.nodeName.toLowerCase()===m){P=D;break}D=D[h]}q[y]=P}}}function d(h,m,p,q,y,x){y=0;for(var E=q.length;y<E;y++){var D=q[y];if(D){D=D[h];for(var P=false;D;){if(D.sizcache===p){P=q[D.sizset];break}if(D.nodeType===1){if(!x){D.sizcache=p;D.sizset=y}if(typeof m!=="string"){if(D===m){P=true;break}}else if(o.filter(m,[D]).length>0){P=D;break}}D=D[h]}q[y]=P}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, e=0,k=Object.prototype.toString,l=false,s=true;[0,0].sort(function(){s=false;return 0});var o=function(h,m,p,q){p=p||[];var y=m=m||v;if(m.nodeType!==1&&m.nodeType!==9)return[];if(!h||typeof h!=="string")return p;for(var x=[],E,D,P,Ha,Ba=true,Ea=I(m),Ca=h;(f.exec(""),E=f.exec(Ca))!==null;){Ca=E[3];x.push(E[1]);if(E[2]){Ha=E[3];break}}if(x.length>1&&B.exec(h))if(x.length===2&&w.relative[x[0]])D=Ma(x[0]+x[1],m);else for(D=w.relative[x[0]]?[m]:o(x.shift(),m);x.length;){h=x.shift();if(w.relative[h])h+= x.shift();D=Ma(h,D)}else{if(!q&&x.length>1&&m.nodeType===9&&!Ea&&w.match.ID.test(x[0])&&!w.match.ID.test(x[x.length-1])){E=o.find(x.shift(),m,Ea);m=E.expr?o.filter(E.expr,E.set)[0]:E.set[0]}if(m){E=q?{expr:x.pop(),set:S(q)}:o.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&m.parentNode?m.parentNode:m,Ea);D=E.expr?o.filter(E.expr,E.set):E.set;if(x.length>0)P=S(D);else Ba=false;for(;x.length;){var ra=x.pop();E=ra;if(w.relative[ra])E=x.pop();else ra="";if(E==null)E=m;w.relative[ra](P,E,Ea)}}else P= []}P||(P=D);P||o.error(ra||h);if(k.call(P)==="[object Array]")if(Ba)if(m&&m.nodeType===1)for(h=0;P[h]!=null;h++){if(P[h]&&(P[h]===true||P[h].nodeType===1&&na(m,P[h])))p.push(D[h])}else for(h=0;P[h]!=null;h++)P[h]&&P[h].nodeType===1&&p.push(D[h]);else p.push.apply(p,P);else S(P,p);if(Ha){o(Ha,y,p,q);o.uniqueSort(p)}return p};o.uniqueSort=function(h){if(W){l=s;h.sort(W);if(l)for(var m=1;m<h.length;m++)h[m]===h[m-1]&&h.splice(m--,1)}return h};o.matches=function(h,m){return o(h,null,null,m)};o.find=function(h, m,p){var q,y;if(!h)return[];for(var x=0,E=w.order.length;x<E;x++){var D=w.order[x];if(y=w.leftMatch[D].exec(h)){var P=y[1];y.splice(1,1);if(P.substr(P.length-1)!=="\\"){y[1]=(y[1]||"").replace(/\\/g,"");q=w.find[D](y,m,p);if(q!=null){h=h.replace(w.match[D],"");break}}}}q||(q=m.getElementsByTagName("*"));return{set:q,expr:h}};o.filter=function(h,m,p,q){for(var y=h,x=[],E=m,D,P,Ha=m&&m[0]&&I(m[0]);h&&m.length;){for(var Ba in w.filter)if((D=w.leftMatch[Ba].exec(h))!=null&&D[2]){var Ea=w.filter[Ba],Ca, ra;ra=D[1];P=false;D.splice(1,1);if(ra.substr(ra.length-1)!=="\\"){if(E===x)x=[];if(w.preFilter[Ba])if(D=w.preFilter[Ba](D,E,p,x,q,Ha)){if(D===true)continue}else P=Ca=true;if(D)for(var Ia=0;(ra=E[Ia])!=null;Ia++)if(ra){Ca=Ea(ra,D,Ia,E);var Wa=q^!!Ca;if(p&&Ca!=null)if(Wa)P=true;else E[Ia]=false;else if(Wa){x.push(ra);P=true}}if(Ca!==z){p||(E=x);h=h.replace(w.match[Ba],"");if(!P)return[];break}}}if(h===y)if(P==null)o.error(h);else break;y=h}return E};o.error=function(h){throw"Syntax error, unrecognized expression: "+ h;};var w=o.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(h){return h.getAttribute("href")}},relative:{"+":function(h,m){var p=typeof m==="string",q=p&&!/\W/.test(m);p=p&&!q;if(q)m=m.toLowerCase();q=0;for(var y=h.length,x;q<y;q++)if(x=h[q]){for(;(x=x.previousSibling)&&x.nodeType!==1;);h[q]=p||x&&x.nodeName.toLowerCase()===m?x||false:x===m}p&&o.filter(m,h,true)},">":function(h,m){var p=typeof m==="string";if(p&&!/\W/.test(m)){m=m.toLowerCase();for(var q=0,y=h.length;q<y;q++){var x= h[q];if(x){p=x.parentNode;h[q]=p.nodeName.toLowerCase()===m?p:false}}}else{q=0;for(y=h.length;q<y;q++)if(x=h[q])h[q]=p?x.parentNode:x.parentNode===m;p&&o.filter(m,h,true)}},"":function(h,m,p){var q=e++,y=d;if(typeof m==="string"&&!/\W/.test(m)){var x=m=m.toLowerCase();y=b}y("parentNode",m,q,h,x,p)},"~":function(h,m,p){var q=e++,y=d;if(typeof m==="string"&&!/\W/.test(m)){var x=m=m.toLowerCase();y=b}y("previousSibling",m,q,h,x,p)}},find:{ID:function(h,m,p){if(typeof m.getElementById!=="undefined"&& !p)return(h=m.getElementById(h[1]))?[h]:[]},NAME:function(h,m){if(typeof m.getElementsByName!=="undefined"){for(var p=[],q=m.getElementsByName(h[1]),y=0,x=q.length;y<x;y++)q[y].getAttribute("name")===h[1]&&p.push(q[y]);return p.length===0?null:p}},TAG:function(h,m){return m.getElementsByTagName(h[1])}},preFilter:{CLASS:function(h,m,p,q,y,x){h=" "+h[1].replace(/\\/g,"")+" ";if(x)return h;x=0;for(var E;(E=m[x])!=null;x++)if(E)if(y^(E.className&&(" "+E.className+" ").replace(/[\t\n]/g," ").indexOf(h)>= 0))p||q.push(E);else if(p)m[x]=false;return false},ID:function(h){return h[1].replace(/\\/g,"")},TAG:function(h){return h[1].toLowerCase()},CHILD:function(h){if(h[1]==="nth"){var m=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(h[2]==="even"&&"2n"||h[2]==="odd"&&"2n+1"||!/\D/.test(h[2])&&"0n+"+h[2]||h[2]);h[2]=m[1]+(m[2]||1)-0;h[3]=m[3]-0}h[0]=e++;return h},ATTR:function(h,m,p,q,y,x){m=h[1].replace(/\\/g,"");if(!x&&w.attrMap[m])h[1]=w.attrMap[m];if(h[2]==="~=")h[4]=" "+h[4]+" ";return h},PSEUDO:function(h,m,p,q, y){if(h[1]==="not")if((f.exec(h[3])||"").length>1||/^\w/.test(h[3]))h[3]=o(h[3],null,null,m);else{h=o.filter(h[3],m,p,true^y);p||q.push.apply(q,h);return false}else if(w.match.POS.test(h[0])||w.match.CHILD.test(h[0]))return true;return h},POS:function(h){h.unshift(true);return h}},filters:{enabled:function(h){return h.disabled===false&&h.type!=="hidden"},disabled:function(h){return h.disabled===true},checked:function(h){return h.checked===true},selected:function(h){return h.selected===true},parent:function(h){return!!h.firstChild}, empty:function(h){return!h.firstChild},has:function(h,m,p){return!!o(p[3],h).length},header:function(h){return/h\d/i.test(h.nodeName)},text:function(h){return"text"===h.type},radio:function(h){return"radio"===h.type},checkbox:function(h){return"checkbox"===h.type},file:function(h){return"file"===h.type},password:function(h){return"password"===h.type},submit:function(h){return"submit"===h.type},image:function(h){return"image"===h.type},reset:function(h){return"reset"===h.type},button:function(h){return"button"=== h.type||h.nodeName.toLowerCase()==="button"},input:function(h){return/input|select|textarea|button/i.test(h.nodeName)}},setFilters:{first:function(h,m){return m===0},last:function(h,m,p,q){return m===q.length-1},even:function(h,m){return m%2===0},odd:function(h,m){return m%2===1},lt:function(h,m,p){return m<p[3]-0},gt:function(h,m,p){return m>p[3]-0},nth:function(h,m,p){return p[3]-0===m},eq:function(h,m,p){return p[3]-0===m}},filter:{PSEUDO:function(h,m,p,q){var y=m[1],x=w.filters[y];if(x)return x(h, p,m,q);else if(y==="contains")return(h.textContent||h.innerText||a([h])||"").indexOf(m[3])>=0;else if(y==="not"){m=m[3];p=0;for(q=m.length;p<q;p++)if(m[p]===h)return false;return true}else o.error("Syntax error, unrecognized expression: "+y)},CHILD:function(h,m){var p=m[1],q=h;switch(p){case "only":case "first":for(;q=q.previousSibling;)if(q.nodeType===1)return false;if(p==="first")return true;q=h;case "last":for(;q=q.nextSibling;)if(q.nodeType===1)return false;return true;case "nth":p=m[2];var y= m[3];if(p===1&&y===0)return true;var x=m[0],E=h.parentNode;if(E&&(E.sizcache!==x||!h.nodeIndex)){var D=0;for(q=E.firstChild;q;q=q.nextSibling)if(q.nodeType===1)q.nodeIndex=++D;E.sizcache=x}q=h.nodeIndex-y;return p===0?q===0:q%p===0&&q/p>=0}},ID:function(h,m){return h.nodeType===1&&h.getAttribute("id")===m},TAG:function(h,m){return m==="*"&&h.nodeType===1||h.nodeName.toLowerCase()===m},CLASS:function(h,m){return(" "+(h.className||h.getAttribute("class"))+" ").indexOf(m)>-1},ATTR:function(h,m){var p= m[1];p=w.attrHandle[p]?w.attrHandle[p](h):h[p]!=null?h[p]:h.getAttribute(p);var q=p+"",y=m[2],x=m[4];return p==null?y==="!=":y==="="?q===x:y==="*="?q.indexOf(x)>=0:y==="~="?(" "+q+" ").indexOf(x)>=0:!x?q&&p!==false:y==="!="?q!==x:y==="^="?q.indexOf(x)===0:y==="$="?q.substr(q.length-x.length)===x:y==="|="?q===x||q.substr(0,x.length+1)===x+"-":false},POS:function(h,m,p,q){var y=w.setFilters[m[2]];if(y)return y(h,p,m,q)}}},B=w.match.POS,N;for(N in w.match){w.match[N]=RegExp(w.match[N].source+/(?![^\[]*\])(?![^\(]*\))/.source); w.leftMatch[N]=RegExp(/(^(?:.|\r|\n)*?)/.source+w.match[N].source.replace(/\\(\d+)/g,function(h,m){return"\\"+(m-0+1)}))}var S=function(h,m){h=Array.prototype.slice.call(h,0);if(m){m.push.apply(m,h);return m}return h};try{Array.prototype.slice.call(v.documentElement.childNodes,0)}catch(Z){S=function(h,m){var p=m||[];if(k.call(h)==="[object Array]")Array.prototype.push.apply(p,h);else if(typeof h.length==="number")for(var q=0,y=h.length;q<y;q++)p.push(h[q]);else for(q=0;h[q];q++)p.push(h[q]);return p}}var W; if(v.documentElement.compareDocumentPosition)W=function(h,m){if(!h.compareDocumentPosition||!m.compareDocumentPosition){if(h==m)l=true;return h.compareDocumentPosition?-1:1}var p=h.compareDocumentPosition(m)&4?-1:h===m?0:1;if(p===0)l=true;return p};else if("sourceIndex"in v.documentElement)W=function(h,m){if(!h.sourceIndex||!m.sourceIndex){if(h==m)l=true;return h.sourceIndex?-1:1}var p=h.sourceIndex-m.sourceIndex;if(p===0)l=true;return p};else if(v.createRange)W=function(h,m){if(!h.ownerDocument|| !m.ownerDocument){if(h==m)l=true;return h.ownerDocument?-1:1}var p=h.ownerDocument.createRange(),q=m.ownerDocument.createRange();p.setStart(h,0);p.setEnd(h,0);q.setStart(m,0);q.setEnd(m,0);p=p.compareBoundaryPoints(Range.START_TO_END,q);if(p===0)l=true;return p};(function(){var h=v.createElement("div"),m="script"+(new Date).getTime();h.innerHTML="<a name='"+m+"'/>";var p=v.documentElement;p.insertBefore(h,p.firstChild);if(v.getElementById(m)){w.find.ID=function(q,y,x){if(typeof y.getElementById!== "undefined"&&!x)return(y=y.getElementById(q[1]))?y.id===q[1]||typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id").nodeValue===q[1]?[y]:z:[]};w.filter.ID=function(q,y){var x=typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id");return q.nodeType===1&&x&&x.nodeValue===y}}p.removeChild(h);p=h=null})();(function(){var h=v.createElement("div");h.appendChild(v.createComment(""));if(h.getElementsByTagName("*").length>0)w.find.TAG=function(m,p){var q=p.getElementsByTagName(m[1]); if(m[1]==="*"){for(var y=[],x=0;q[x];x++)q[x].nodeType===1&&y.push(q[x]);q=y}return q};h.innerHTML="<a href='#'></a>";if(h.firstChild&&typeof h.firstChild.getAttribute!=="undefined"&&h.firstChild.getAttribute("href")!=="#")w.attrHandle.href=function(m){return m.getAttribute("href",2)};h=null})();v.querySelectorAll&&function(){var h=o,m=v.createElement("div");m.innerHTML="<p class='TEST'></p>";if(!(m.querySelectorAll&&m.querySelectorAll(".TEST").length===0)){o=function(q,y,x,E){y=y||v;if(!E&&y.nodeType=== 9&&!I(y))try{return S(y.querySelectorAll(q),x)}catch(D){}return h(q,y,x,E)};for(var p in h)o[p]=h[p];m=null}}();(function(){var h=v.createElement("div");h.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!h.getElementsByClassName||h.getElementsByClassName("e").length===0)){h.lastChild.className="e";if(h.getElementsByClassName("e").length!==1){w.order.splice(1,0,"CLASS");w.find.CLASS=function(m,p,q){if(typeof p.getElementsByClassName!=="undefined"&&!q)return p.getElementsByClassName(m[1])}; h=null}}})();var na=v.compareDocumentPosition?function(h,m){return!!(h.compareDocumentPosition(m)&16)}:function(h,m){return h!==m&&(h.contains?h.contains(m):true)},I=function(h){return(h=(h?h.ownerDocument||h:0).documentElement)?h.nodeName!=="HTML":false},Ma=function(h,m){for(var p=[],q="",y,x=m.nodeType?[m]:m;y=w.match.PSEUDO.exec(h);){q+=y[0];h=h.replace(w.match.PSEUDO,"")}h=w.relative[h]?h+"*":h;y=0;for(var E=x.length;y<E;y++)o(h,x[y],p);return o.filter(q,p)};c.find=o;c.expr=o.selectors;c.expr[":"]= c.expr.filters;c.unique=o.uniqueSort;c.text=a;c.isXMLDoc=I;c.contains=na})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,gb=/,/;ma=Array.prototype.slice;var Xa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,k){return!!b.call(e,k,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Da.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e, b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;c.find(a,this[f],b);if(f>0)for(var k=d;k<b.length;k++)for(var l=0;l<d;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Xa(this,a,false),"not",a)},filter:function(a){return this.pushStack(Xa(this,a,true),"filter", a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,k={},l;if(f&&a.length){e=0;for(var s=a.length;e<s;e++){l=a[e];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;f&&f.ownerDocument&&f!==b;){for(l in k){e=k[l];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:l,elem:f});delete k[l]}}f=f.parentNode}}return d}var o=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(w,B){for(;B&&B.ownerDocument&& B!==b;){if(o?o.index(B)>-1:c(B).is(a))return B;B=B.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context):c.makeArray(a),f=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!f[0]||!f[0].parentNode||f[0].parentNode.nodeType===11?f:c.unique(f))},andSelf:function(){return this.add(this.prevObject)}}); c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling", d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,ma.call(arguments).join(","))}}); c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===z||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ya=/ jQuery\d+="(?:\d+|null)"/g,Ja=/^\s+/,Za=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i, $a=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,Sa=/<script|<object|<embed|<option|<style/i,Ta=/checked\s*(?:[^=]|=\s*.checked.)/i,ab=function(a,b,d){return hb.test(d)?a:b+"></"+d+">"},sa={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, "",""]};sa.optgroup=sa.option;sa.tbody=sa.tfoot=sa.colgroup=sa.caption=sa.thead;sa.th=sa.td;if(!c.support.htmlSerialize)sa._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==z)return this.empty().append((this[0]&&this[0].ownerDocument||v).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this, d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})}, unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(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(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a= c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*")); c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ya,"").replace(/=([^="'>\s]+\/)>/g, '="$1">').replace(Ja,"")],f)[0]}else return this.cloneNode(true)});if(a===true){za(this,b);za(this.find("*"),b.find("*"))}return b},html:function(a){if(a===z)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ya,""):null;else if(typeof a==="string"&&!Sa.test(a)&&(c.support.leadingWhitespace||!Ja.test(a))&&!sa[($a.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Za,ab);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML= a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var k=c(this),l=k.html();k.empty().append(function(){return a.call(this,e,l)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a): c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var f,e,k=a[0],l=[],s;if(!c.support.checkClone&&arguments.length===3&&typeof k==="string"&&Ta.test(k))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(k))return this.each(function(w){var B=c(this);a[0]=k.call(this,w,b?B.html():z);B.domManip(a,b,d)});if(this[0]){f=k&&k.parentNode;f=c.support.parentNode&&f&&f.nodeType=== 11&&f.childNodes.length===this.length?{fragment:f}:ta(a,this,l);s=f.fragment;if(e=s.childNodes.length===1?s=s.firstChild:s.firstChild){b=b&&c.nodeName(e,"tr");e=0;for(var o=this.length;e<o;e++)d.call(b?c.nodeName(this[e],"table")?this[e].getElementsByTagName("tbody")[0]||this[e].appendChild(this[e].ownerDocument.createElement("tbody")):this[e]:this[e],e>0||f.cacheable||this.length>1?s.cloneNode(true):s)}l.length&&c.each(l,V)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend", insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{e=0;for(var k=d.length;e<k;e++){var l=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),l);f=f.concat(l)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||v;if(typeof b.createElement==="undefined")b=b.ownerDocument|| b[0]&&b[0].ownerDocument||v;for(var e=[],k=0,l;(l=a[k])!=null;k++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!jb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Za,ab);var s=($a.exec(l)||["",""])[1].toLowerCase(),o=sa[s]||sa._default,w=o[0],B=b.createElement("div");for(B.innerHTML=o[1]+l+o[2];w--;)B=B.lastChild;if(!c.support.tbody){w=ib.test(l);s=s==="table"&&!w?B.firstChild&&B.firstChild.childNodes:o[1]==="<table>"&&!w?B.childNodes:[];for(o=s.length-1;o>=0;--o)c.nodeName(s[o], "tbody")&&!s[o].childNodes.length&&s[o].parentNode.removeChild(s[o])}!c.support.leadingWhitespace&&Ja.test(l)&&B.insertBefore(b.createTextNode(Ja.exec(l)[0]),B.firstChild);l=B.childNodes}if(l.nodeType)e.push(l);else e=c.merge(e,l)}}if(d)for(k=0;e[k];k++)if(f&&c.nodeName(e[k],"script")&&(!e[k].type||e[k].type.toLowerCase()==="text/javascript"))f.push(e[k].parentNode?e[k].parentNode.removeChild(e[k]):e[k]);else{e[k].nodeType===1&&e.splice.apply(e,[k+1,0].concat(c.makeArray(e[k].getElementsByTagName("script")))); d.appendChild(e[k])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,k=c.support.deleteExpando,l=0,s;(s=a[l])!=null;l++)if(d=s[c.expando]){b=f[d];if(b.events)for(var o in b.events)e[o]?c.event.remove(s,o):A(s,o,b.handle);if(k)delete s[c.expando];else s.removeAttribute&&s.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,bb=/alpha\([^)]*\)/,cb=/opacity=([^)]*)/,Na=/float/i,Oa=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb= /^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=v.defaultView&&v.defaultView.getComputedStyle,db=c.support.cssFloat?"cssFloat":"styleFloat",Pa=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return fa(this,a,b,true,function(d,f,e){if(e===z)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return z;if((b==="width"||b==="height")&& parseFloat(d)<0)d=z;var f=a.style||a,e=d!==z;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=bb.test(a)?a.replace(bb,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(cb.exec(f.filter)[1])/100+"":""}if(Na.test(b))b=db;b=b.replace(Oa,Pa);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,k=b==="width"?pb:qb;d=function(){e=b==="width"?a.offsetWidth: a.offsetHeight;f!=="border"&&c.each(k,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?d():c.swap(a,ob,d);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=cb.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f=== ""?"1":f}if(Na.test(b))b=db;if(!d&&e&&e[b])f=e[b];else if(rb){if(Na.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(Oa,Pa);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var k=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left= b;a.runtimeStyle.left=k}}return f},swap:function(a,b,d){var f={},e;for(e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=M(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i, Fa=/=\?(&|$)/,Qa=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var k=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(l,s){if(s==="success"||s=== "notmodified")k.html(e?c("<div />").append(l.responseText.replace(tb,"")).find(e):l.responseText);d&&k.each(d,[l.responseText,s,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d, function(f){return{name:b.name,value:f}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f= f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:i.XMLHttpRequest&&(i.location.protocol!=="file:"||!i.ActiveXObject)?function(){return new i.XMLHttpRequest}:function(){try{return new i.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(a){function b(){e.success&&e.success.call(o,s,l,I);e.global&&f("ajaxSuccess",[I,e])}function d(){e.complete&&e.complete.call(o,I,l);e.global&&f("ajaxComplete",[I,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(y,x){(e.context?c(e.context):c.event).trigger(y,x)}var e=c.extend(true,{},c.ajaxSettings,a),k,l,s,o=a&&a.context|| e,w=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(w==="GET")Fa.test(e.url)||(e.url+=(Qa.test(e.url)?"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!Fa.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&Fa.test(e.data)||Fa.test(e.url))){k=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(Fa,"="+k+"$1");e.url=e.url.replace(Fa, "="+k+"$1");e.dataType="script";i[k]=i[k]||function(y){s=y;b();d();i[k]=z;try{delete i[k]}catch(x){}S&&S.removeChild(Z)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===false&&w==="GET"){var B=M(),N=e.url.replace(wb,"$1_="+B+"$2");e.url=N+(N===e.url?(Qa.test(e.url)?"&":"?")+"_="+B:"")}if(e.data&&w==="GET")e.url+=(Qa.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");B=(B=xb.exec(e.url))&&(B[1]&&B[1]!==location.protocol||B[2]!==location.host);if(e.dataType=== "script"&&w==="GET"&&B){var S=v.getElementsByTagName("head")[0]||v.documentElement,Z=v.createElement("script");Z.src=e.url;if(e.scriptCharset)Z.charset=e.scriptCharset;if(!k){var W=false;Z.onload=Z.onreadystatechange=function(){if(!W&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){W=true;b();d();Z.onload=Z.onreadystatechange=null;S&&Z.parentNode&&S.removeChild(Z)}}}S.insertBefore(Z,S.firstChild);return z}var na=false,I=e.xhr();if(I){e.username?I.open(w,e.url,e.async, e.username,e.password):I.open(w,e.url,e.async);try{if(e.data||a&&a.contentType)I.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&I.setRequestHeader("If-Modified-Since",c.lastModified[e.url]);c.etag[e.url]&&I.setRequestHeader("If-None-Match",c.etag[e.url])}B||I.setRequestHeader("X-Requested-With","XMLHttpRequest");I.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(Ma){}if(e.beforeSend&&e.beforeSend.call(o, I,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");I.abort();return false}e.global&&f("ajaxSend",[I,e]);var h=I.onreadystatechange=function(y){if(!I||I.readyState===0||y==="abort"){na||d();na=true;if(I)I.onreadystatechange=c.noop}else if(!na&&I&&(I.readyState===4||y==="timeout")){na=true;I.onreadystatechange=c.noop;l=y==="timeout"?"timeout":!c.httpSuccess(I)?"error":e.ifModified&&c.httpNotModified(I,e.url)?"notmodified":"success";var x;if(l==="success")try{s=c.httpData(I,e.dataType, e)}catch(E){l="parsererror";x=E}if(l==="success"||l==="notmodified")k||b();else c.handleError(e,I,l,x);d();y==="timeout"&&I.abort();if(e.async)I=null}};try{var m=I.abort;I.abort=function(){I&&m.call(I);h("abort")}}catch(p){}e.async&&e.timeout>0&&setTimeout(function(){I&&!na&&h("timeout")},e.timeout);try{I.send(w==="POST"||w==="PUT"||w==="DELETE"?e.data:null)}catch(q){c.handleError(e,I,null,q);d()}e.async||h();return I}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context? c(a.context):c.event).trigger("ajaxError",[b,a,f])},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(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&& f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(l,s){if(c.isArray(s))c.each(s,function(o,w){b||/\[\]$/.test(l)?f(l,w):d(l+"["+(typeof w==="object"||c.isArray(w)?o:"")+"]",w)});else!b&&s!=null&&typeof s=== "object"?c.each(s,function(o,w){d(l+"["+o+"]",w)}):f(l,s)}function f(l,s){s=c.isFunction(s)?s():s;e[e.length]=encodeURIComponent(l)+"="+encodeURIComponent(s)}var e=[];if(b===z)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var k in a)d(k,a[k]);return e.join("&").replace(yb,"+")}});var Ra={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,Ka,Ua=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft", "marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(ja("show",3),a,b);else{for(var d=0,f=this.length;d<f;d++){var e=c.data(this[d],"olddisplay");this[d].style.display=e||"";if(c.css(this[d],"display")==="none"){e=this[d].nodeName;var k;if(Ra[e])k=Ra[e];else{var l=c("<"+e+" />").appendTo("body");k=l.css("display");if(k==="none")k="block";l.remove();Ra[e]=k}c.data(this[d],"olddisplay",k)}}d=0;for(f=this.length;d<f;d++)this[d].style.display= c.data(this[d],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(ja("hide",3),a,b);else{for(var d=0,f=this.length;d<f;d++){var e=c.data(this[d],"olddisplay");!e&&e!=="none"&&c.data(this[d],"olddisplay",c.css(this[d],"display"))}d=0;for(f=this.length;d<f;d++)this[d].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f= d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(ja("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var k=c.extend({},e),l,s=this.nodeType===1&&c(this).is(":hidden"),o=this;for(l in a){var w=l.replace(Oa,Pa);if(l!==w){a[w]=a[l];delete a[l]; l=w}if(a[l]==="hide"&&s||a[l]==="show"&&!s)return k.complete.call(this);if((l==="height"||l==="width")&&this.style){k.display=c.css(this,"display");k.overflow=this.style.overflow}if(c.isArray(a[l])){(k.specialEasing=k.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]}}if(k.overflow!=null)this.style.overflow="hidden";k.curAnim=c.extend({},a);c.each(a,function(B,N){var S=new c.fx(o,k,B);if(Ab.test(N))S[N==="toggle"?s?"show":"hide":N](a);else{var Z=Bb.exec(N),W=S.cur(true)||0;if(Z){var na=parseFloat(Z[2]), I=Z[3]||"px";if(I!=="px"){o.style[B]=(na||1)+I;W=(na||1)/S.cur(true)*W;o.style[B]=W+I}if(Z[1])na=(Z[1]==="-="?-1:1)*na+W;S.custom(W,na,I)}else S.custom(W,N,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:ja("show",1),slideUp:ja("hide",1),slideToggle:ja("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a, b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration==="number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b, d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop]; return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-1E4?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(k){return e.step(k)}this.startTime=M();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!Ka)Ka=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop=== "height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=M(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow; a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&& this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Ka);Ka=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.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(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in v.documentElement?function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument; b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(w){c.offset.setOffset(this,a,w)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b.ownerDocument,e, k=f.documentElement,l=f.body;e=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var s=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==l&&b!==k;){if(c.offset.supportsFixedPosition&&e.position==="fixed")break;e=f?f.getComputedStyle(b,null):b.currentStyle;s-=b.scrollTop;o-=b.scrollLeft;if(b===d){s+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){s+=parseFloat(e.borderTopWidth)||0;o+=parseFloat(e.borderLeftWidth)|| 0}d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&e.overflow!=="visible"){s+=parseFloat(e.borderTopWidth)||0;o+=parseFloat(e.borderLeftWidth)||0}e=e}if(e.position==="relative"||e.position==="static"){s+=l.offsetTop;o+=l.offsetLeft}if(c.offset.supportsFixedPosition&&e.position==="fixed"){s+=Math.max(k.scrollTop,l.scrollTop);o+=Math.max(k.scrollLeft,l.scrollLeft)}return{top:s,left:o}};c.offset={initialize:function(){var a=v.body,b=v.createElement("div"),d,f,e,k=parseFloat(c.curCSS(a, "marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild; e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b= a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),k=parseInt(c.curCSS(a,"top",true),10)||0,l=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,d,e);d={top:b.top-e.top+k,left:b.left-e.left+l};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a= this.offsetParent||v.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],k;if(!e)return null;if(f!==z)return this.each(function(){if(k=va(this))k.scrollTo(!a?f:c(k).scrollLeft(),a?f:c(k).scrollTop());else this[d]=f});else return(k=va(e))?"pageXOffset"in k?k[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&k.document.documentElement[d]||k.document.body[d]:e[d]}}); c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(k){var l=c(this);l[d](f.call(this,k,l[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===z?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});i.jQuery=i.$=c})(window);$(document).ready(function(){function i(){var V=$("#flash"),fa=$(window).height(),M=V.height(),J=0;if(V.length!=0){J=fa-M-170;$("#calendario_scroll,#news_scroll").css("height",J+"px");window.fleXenv.fleXcrollInit()}}function z(){testolibero_height=$(window).height()-510;$("#testolibero_scroll").css("height",testolibero_height+"px");window.fleXenv.fleXcrollInit()}document.getElementsByTagName("html")[0].style.visibility="";$("html").hide().fadeIn(500);if($("#flash").length!=0){i();$(window).resize(function(){i()})}if($("#testolibero_scroll").length!= 0){z();$(window).resize(function(){z()})}if($("#testolibero_scroll_catalogo").length!=0){z();$(window).resize(function(){z()})}if($("#sottoprodotti flexcroll").length!=0){z();$(window).resize(function(){z()})};var L=$("#firstpane p.active");if(L.length==1){L=L.next();L.attr("class")=="menu_body"&&L.css("display","block")}}); window.fleXenv={fleXcrollInit:function(){this.addTrggr(window,"load",this.globalInit)},fleXcrollMain:function(i){function z(g){if(!g)g=R.event;var t=g.clientX;g=g.clientY;var u=t+j.xScrld,r=g+j.yScrld;j.mOnXEdge=u<j.mTBox[0]||u>j.mTBox[1]?1:0;j.mOnYEdge=r<j.mTBox[2]||r>j.mTBox[3]?1:0;j.xAw=t-j.inMposX;j.yAw=g-j.inMposY;j.sXdir=j.xAw>40?1:j.xAw<-40?-1:0;j.sYdir=j.yAw>40?1:j.yAw<-40?-1:0;if((j.sXdir!=0||j.sYdir!=0)&&!j.tSelectFunc)j.tSelectFunc=R.setInterval(function(){if(j.sXdir==0&&j.sYdir==0){R.clearInterval(j.tSelectFunc); j.tSelectFunc=false}else{V();if(j.mOnXEdge==1||j.mOnYEdge==1)i.contentScroll(j.sXdir*j.mOnXEdge+"s",j.sYdir*j.mOnYEdge+"s",true)}},45)}function L(){fleXenv.remTrggr(v,"mousemove",z);j.tSelectFunc&&R.clearInterval(j.tSelectFunc);j.tSelectFunc=false;j.barClickRetard&&R.clearTimeout(j.barClickRetard);j.barClickScroll&&R.clearInterval(j.barClickScroll)}function V(){j.xScrld=R.pageXOffset?R.pageXOffset:v.documentElement&&v.documentElement.scrollLeft?v.documentElement.scrollLeft:0;j.yScrld=R.pageYOffset? R.pageYOffset:v.documentElement&&v.documentElement.scrollTop?v.documentElement.scrollTop:0}function fa(g,t){var u=g.toString();g=parseFloat(u);return parseInt(u.match(/p$/)?g*j.cntRSize[t]*0.9:u.match(/s$/)?g*j.cntRSize[t]*0.1:g)}function M(g){g=g.split("-");var t=g[0],u;for(u=1;parT=g[u];u++)t+=parT.charAt(0).toUpperCase()+parT.substr(1);return t}function J(g,t){if(R.getComputedStyle)return R.getComputedStyle(g,null).getPropertyValue(t);if(g.currentStyle)return g.currentStyle[M(t)];return false} function Q(g,t,u,r){for(var n=[],A=0;A<r.length;A++){n[A]=M(r[A]);t.style[n[A]]=J(g,r[A],n[A]);if(u)g.style[n[A]]=u}}function C(g,t){var u=v.createElement("div");u.id=Da+"_"+g;u.className=t?g:g+" scrollgeneric";u.getSize=[function(){return u.offsetWidth},function(){return u.offsetHeight}];u.setSize=[function(r){if(r.charAt(0)=="-")r="0px";try{u.sY.width=r;} catch (ex) {}},function(r){if(r.charAt(0)=="-")r="0px";u.sY.height=r}];u.getPos=[function(){return J(u,"left")},function(){return J(u,"top")}];u.setPos=[function(r){try{u.sY.left= r;} catch(ex) {}},function(r){u.sY.top=r}];u.fHide=function(){u.sY.visibility="hidden"};u.fShow=function(r){u.sY.visibility=r?J(r,"visibility"):"visible"};u.sY=u.style;return u}function Y(g,t){g.sdv=C(t+"base");g.sFDv=C(t+"basebeg");g.ssdv=C(t+"baseend");g.sBr=C(t+"bar");g.sFBr=C(t+"barbeg");g.sSBr=C(t+"barend");G.appendChild(g.sdv);g.sdv.appendChild(g.sBr);g.sdv.appendChild(g.sFDv);g.sdv.appendChild(g.ssdv);g.sBr.appendChild(g.sFBr);g.sBr.appendChild(g.sSBr)}function ga(g,t){var u=g.sdv,r=g.sBr,n=r.indx;r.minPos= g.barPadding[0];r.ofstParent=u;r.mDv=F;r.scrlTrgt=H;r.targetSkew=0;za(g,t,true);r.doScrollPos=function(){r.curPos=Math.min(Math.max(r.curPos,0),r.maxPos);r.trgtScrll=parseInt(r.curPos/r.sRange*r.mxScroll);r.targetSkew=r.curPos==0?0:r.curPos==r.maxPos?0:r.targetSkew;r.setPos[n](r.curPos+r.minPos+"px");H.setPos[n](r.trgtScrll+r.targetSkew+"px")};r.contentScrollPos=function(){r.curPos=parseInt(r.trgtScrll*r.sRange/r.mxScroll);r.targetSkew=r.trgtScrll-parseInt(r.curPos/r.sRange*r.mxScroll);r.curPos=Math.min(Math.max(r.curPos, 0),r.maxPos);r.setPos[n](r.curPos+r.minPos+"px");r.setPos[n](r.curPos+r.minPos+"px");H.setPos[n](r.trgtScrll+"px")};j.barZ=J(r,"z-index");r.sY.zIndex=j.barZ=="auto"||j.barZ=="0"||j.barZ=="normal"?2:j.barZ;F.sY.zIndex=J(r,"z-index");r.onmousedown=function(){r.clicked=true;j.goScroll=r;r.scrollBoth=false;r.moved=false;fleXenv.addTrggr(v,"selectstart",ta);fleXenv.addTrggr(v,"mousemove",ja);fleXenv.addTrggr(v,"mouseup",va);return false};r.onmouseover=L;u.onmousedown=u.ondblclick=function(A){if(!A)A=R.event; if(!(A.target&&(A.target==g.sFBr||A.target==g.sSBr||A.target==g.sBr)))if(!(A.srcElement&&(A.srcElement==g.sFBr||A.srcElement==g.sSBr||A.srcElement==g.sBr))){var O=[];V();j.mDPosFix();U(r);O[r.indx]=(r.vertical?A.clientY+j.yScrld-r.yPos:A.clientX+j.xScrld-r.xPos)<0?j.baseAct[0]:j.baseAct[1];O[1-r.indx]=0;i.contentScroll(O[0],O[1],true);if(A.type!="dblclick"){L();j.barClickRetard=R.setTimeout(function(){j.barClickScroll=R.setInterval(function(){i.contentScroll(O[0],O[1],true)},80)},425)}return false}}; u.setVisibility=function(A){if(A){u.fShow(i);j.forcedHide[n]=J(u,"visibility")=="hidden"?true:false;j.forcedHide[n]?r.fHide():r.fShow(i);j.scroller[n]=true;oa(u,"","flexinactive")}else{u.fHide();r.fHide();j.forcedBar[n]=J(u,"visibility")!="hidden"?true:false;j.scroller[n]=false;r.curPos=0;H.setPos[n]("0px");oa(u,"flexinactive","")}F.setPos[1-n](j.forcedPos[n]&&(A||j.forcedBar[n])&&!j.forcedHide[n]?j.barSpace[1-n]-j.paddings[n*2]+"px":"-"+j.paddings[n*2]+"px")};u.onmouseclick=ta}function za(g,t,u){var r= g.sdv,n=g.sBr,A=g.sFDv,O=g.sFBr,T=g.ssdv,ea=g.sSBr,K=n.indx;r.setSize[K](G.getSize[K]()-t+"px");r.setPos[1-K](G.getSize[1-K]()-r.getSize[1-K]()+"px");j.forcedPos[K]=parseInt(r.getPos[1-K]())===0?true:false;g.padLoss=g.barPadding[0]+g.barPadding[1];g.baseProp=parseInt((r.getSize[K]()-g.padLoss)*0.75);n.aSize=Math.min(Math.max(Math.min(parseInt(j.cntRSize[K]/j.cntSize[K]*r.getSize[K]()),g.baseProp),45),g.baseProp);n.setSize[K](n.aSize+"px");n.maxPos=r.getSize[K]()-n.getSize[K]()-g.padLoss;n.curPos= Math.min(Math.max(0,n.curPos),n.maxPos);n.setPos[K](n.curPos+n.minPos+"px");n.mxScroll=F.getSize[K]()-j.cntSize[K];n.sRange=n.maxPos;A.setSize[K](r.getSize[K]()-T.getSize[K]()+"px");O.setSize[K](n.getSize[K]()-ea.getSize[K]()+"px");ea.setPos[K](n.getSize[K]()-ea.getSize[K]()+"px");T.setPos[K](r.getSize[K]()-T.getSize[K]()+"px");u||n.doScrollPos();j.fixIEDispBug()}function ta(){return false}function ja(g){if(!g)g=R.event;var t=j.goScroll,u,r;if(t!=null){!fleXenv.w3events&&!g.button&&va();r=t.scrollBoth? 2:1;for(var n=0;n<r;n++){u=n==1?t.scrlTrgt.vBar:t;if(t.clicked){if(!u.moved){j.mDPosFix();U(u);U(u.ofstParent);u.pointerOffsetY=g.clientY-u.yPos;u.pointerOffsetX=g.clientX-u.xPos;u.inCurPos=u.curPos;u.moved=true}u.curPos=u.vertical?g.clientY-u.pointerOffsetY-u.ofstParent.yPos-u.minPos:g.clientX-u.pointerOffsetX-u.ofstParent.xPos-u.minPos;if(t.scrollBoth)u.curPos+=u.curPos-u.inCurPos;u.doScrollPos()}else u.moved=false}}}function va(){if(j.goScroll!=null)j.goScroll.clicked=false;j.goScroll=null;fleXenv.remTrggr(v, "selectstart",ta);fleXenv.remTrggr(v,"mousemove",ja);fleXenv.remTrggr(v,"mouseup",va)}function c(g){if(!g)g=R.event;if(this.fleXcroll){var t,u,r=false;u=0;var n;j.mDPosFix();hElem=g.target?g.target:g.srcElement?g.srcElement:this;if(hElem.id&&hElem.id.match(/_hscroller/))r=true;if(g.wheelDelta)u=-g.wheelDelta;if(g.detail)u=g.detail;u=u<0?-1:+1;n=u<0?0:1;j.edge[1-n]=false;if(!(j.edge[n]&&!r||!j.scroller[0]&&!j.scroller[1])){if(j.scroller[1]&&!r)scrollState=i.contentScroll(false,j.wheelAct[n],true); t=!j.scroller[1]||r||j.scroller[1]&&(scrollState[1][0]==scrollState[1][1]&&u>0||scrollState[1][0]==0&&u<0);if(j.scroller[0]&&(!j.scroller[1]||r))scrollState=i.contentScroll(j.wheelAct[n],false,true);u=!j.scroller[0]||j.scroller[0]&&j.scroller[1]&&t&&!r||j.scroller[0]&&(scrollState[0][0]==scrollState[0][1]&&u>0||scrollState[0][0]==0&&u<0);j.edge[n]=t&&u&&!r?true:false;g.preventDefault&&g.preventDefault();return false}}}function U(g){var t=g,u=curtop=0,r="";if(t.offsetParent)for(;t;){u+=t.offsetLeft; curtop+=t.offsetTop;t=t.offsetParent;r+=curtop+" "}else if(t.x){u+=t.x;curtop+=t.y}g.xPos=u;g.yPos=curtop}function oa(g,t,u){if(!g.className)g.className="";var r=g.className;if(t&&!r.match(RegExp("(^|\\s)"+t+"($|\\s)")))r=r.replace(/(\S$)/,"$1 ")+t;if(u)r=r.replace(RegExp("((^|\\s)+"+u+")+($|\\s)","g"),"$2").replace(/\s$/,"");g.className=r}var v=document,R=window,da=navigator;if(v.getElementById&&v.createElement){if(typeof i=="string")i=document.getElementById(i);if(!(i==null||da.userAgent.indexOf("OmniWeb")!= -1||(da.userAgent.indexOf("AppleWebKit")!=-1||da.userAgent.indexOf("Safari")!=-1)&&!(typeof HTMLElement!="undefined"&&HTMLElement.prototype)||da.vendor=="KDE"||da.platform.indexOf("Mac")!=-1&&da.userAgent.indexOf("MSIE")!=-1))if(i.scrollUpdate)i.scrollUpdate();else{if(!i.id||i.id==""){for(da=1;document.getElementById("flex__"+da)!=null;)da++;i.id="flex__"+da}var Da=i.id;i.fleXdata={};var j=i.fleXdata;j.keyAct={_37:["-1s",0],_38:[0,"-1s"],_39:["1s",0],_40:[0,"1s"],_33:[0,"-1p"],_34:[0,"1p"],_36:[0, "-100p"],_35:[0,"+100p"]};j.wheelAct=["-2s","2s"];j.baseAct=["-2s","2s"];var H=C("contentwrapper",true),F=C("mcontentwrapper",true),G=C("scrollwrapper",true),aa=C("copyholder",true),ha=C("domfixdiv",true),ba=C("zoomdetectdiv",true),wa=false;aa.sY.border="1px solid blue";aa.fHide();i.style.overflow="hidden";ba.sY.fontSize="12px";ba.sY.height="1em";ba.sY.width="1em";ba.sY.position="absolute";ba.sY.zIndex="-999";ba.fHide();da=i.offsetHeight;var ka=i.offsetWidth;Q(i,aa,"0px",["border-left-width","border-right-width", "border-top-width","border-bottom-width"]);var la=ka-i.offsetWidth,ma=da-i.offsetHeight;ka=i.scrollTop?i.scrollTop:0;var pa=i.scrollLeft?i.scrollLeft:0,ia=document.location.href,xa=/#([^#.]*)$/;da=["textarea","input","select"];j.scroller=[];j.forcedBar=[];j.containerSize=j.cntRSize=[];j.contentSize=j.cntSize=[];j.edge=[false,false];j.reqS=[];j.barSpace=[0,0];j.forcedHide=[];j.forcedPos=[];for(j.paddings=[];i.firstChild;)H.appendChild(i.firstChild);H.appendChild(ha);i.appendChild(F);i.appendChild(aa); if(J(i,"position")!="absolute")i.style.position="relative";var ya=J(i,"text-align");i.style.textAlign="left";F.sY.width="100px";F.sY.height="100px";F.sY.top="0px";F.sY.left="0px";Q(i,aa,"0px",["padding-left","padding-top","padding-right","padding-bottom"]);var ua=i.offsetWidth,qa=i.offsetHeight,X;X=F.offsetHeight;F.sY.borderBottom="2px solid black";if(F.offsetHeight>X)wa=true;F.sY.borderBottomWidth="0px";Q(aa,i,false,["padding-left","padding-top","padding-right","padding-bottom"]);U(F);U(i);j.paddings[0]= F.yPos-i.yPos;j.paddings[2]=F.xPos-i.xPos;i.style.paddingTop=J(i,"padding-bottom");i.style.paddingLeft=J(i,"padding-right");U(F);U(i);j.paddings[1]=F.yPos-i.yPos;j.paddings[3]=F.xPos-i.xPos;i.style.paddingTop=J(aa,"padding-top");i.style.paddingLeft=J(aa,"padding-left");var Aa=j.paddings[2]+j.paddings[3],ca=j.paddings[0]+j.paddings[1];F.style.textAlign=ya;Q(i,F,false,["padding-left","padding-right","padding-top","padding-bottom"]);G.sY.width=i.offsetWidth+"px";G.sY.height=i.offsetHeight+"px";F.sY.width= ua+"px";F.sY.height=qa+"px";G.sY.position="absolute";G.sY.top="0px";G.sY.left="0px";F.appendChild(H);i.appendChild(G);G.appendChild(ba);H.sY.position="relative";F.sY.position="relative";H.sY.top="0";H.sY.width="100%";F.sY.overflow="hidden";F.sY.left="-"+j.paddings[2]+"px";F.sY.top="-"+j.paddings[0]+"px";j.zTHeight=ba.offsetHeight;j.getContentWidth=function(){for(var g=H.childNodes,t=compPad=0,u=0;u<g.length;u++)if(g[u].offsetWidth)t=Math.max(g[u].offsetWidth,t);j.cntRSize[0]=j.reqS[1]&&!j.forcedHide[1]|| j.forcedBar[1]?i.offsetWidth-j.barSpace[0]:i.offsetWidth;j.cntSize[0]=t+Aa;return j.cntSize[0]};j.getContentHeight=function(){j.cntRSize[1]=j.reqS[0]&&!j.forcedHide[0]||j.forcedBar[0]?i.offsetHeight-j.barSpace[1]:i.offsetHeight;j.cntSize[1]=H.offsetHeight+ca-2;return j.cntSize[1]};j.fixIEDispBug=function(){H.sY.display="none";H.sY.display="block"};j.setWidth=function(){if(wa){var g=j.cntRSize[0]-Aa-la;if(g<0)g=0;F.sY.width=g+"px"}else F.sY.width=j.cntRSize[0]+"px"};j.setHeight=function(){F.sY.height= wa?j.cntRSize[1]-ca-ma+"px":j.cntRSize[1]+"px"};j.createScrollBars=function(){j.getContentWidth();j.getContentHeight();G.vrt=[];var g=G.vrt;Y(g,"vscroller");g.barPadding=[parseInt(J(g.sBr,"padding-top")),parseInt(J(g.sBr,"padding-bottom"))];g.sBr.sY.padding="0px";g.sBr.curPos=0;g.sBr.vertical=true;g.sBr.indx=1;H.vBar=g.sBr;ga(g,0);j.barSpace[0]=g.sdv.offsetWidth;j.setWidth();G.hrz=[];var t=G.hrz;Y(t,"hscroller");t.barPadding=[parseInt(J(t.sBr,"padding-left")),parseInt(J(t.sBr,"padding-right"))];t.sBr.sY.padding= "0px";t.sBr.curPos=0;t.sBr.vertical=false;t.sBr.indx=0;H.hBar=t.sBr;if(R.opera)t.sBr.sY.position="relative";ga(t,0);j.barSpace[1]=t.sdv.offsetHeight;j.setHeight();G.sY.height=i.offsetHeight+"px";t.jBox=C("scrollerjogbox");G.appendChild(t.jBox);t.jBox.onmousedown=function(){t.sBr.scrollBoth=true;j.goScroll=t.sBr;t.sBr.clicked=true;t.sBr.moved=false;G.vrt.sBr.moved=false;fleXenv.addTrggr(v,"selectstart",ta);fleXenv.addTrggr(v,"mousemove",ja);fleXenv.addTrggr(v,"mouseup",va);return false}};j.goScroll= null;j.createScrollBars();H.removeChild(ha);if(!this.addChckTrggr(i,"mousewheel",c)||!this.addChckTrggr(i,"DOMMouseScroll",c))i.onmousewheel=c;this.addChckTrggr(i,"mousewheel",c);this.addChckTrggr(i,"DOMMouseScroll",c);i.setAttribute("tabIndex","0");this.addTrggr(i,"keydown",function(g){if(!i.focusProtect){if(!g)g=R.event;var t=g.keyCode;j.pkeY=t;j.mDPosFix();if(j.keyAct["_"+t]&&!window.opera){i.contentScroll(j.keyAct["_"+t][0],j.keyAct["_"+t][1],true);g.preventDefault&&g.preventDefault();return false}}}); this.addTrggr(i,"keypress",function(g){if(!i.focusProtect){if(!g)g=R.event;var t=g.keyCode;if(j.keyAct["_"+t]){i.contentScroll(j.keyAct["_"+t][0],j.keyAct["_"+t][1],true);g.preventDefault&&g.preventDefault();return false}}});this.addTrggr(i,"keyup",function(){j.pkeY=false});this.addTrggr(v,"mouseup",L);this.addTrggr(i,"mousedown",function(g){if(!g)g=R.event;var t=g.target?g.target:g.srcElement?g.srcElement:false;if(!(!t||t.className&&t.className.match(/\bscrollgeneric\b/))){j.inMposX=g.clientX;j.inMposY= g.clientY;V();U(i);L();fleXenv.addTrggr(v,"mousemove",z);j.mTBox=[i.xPos+10,i.xPos+j.cntRSize[0]-10,i.yPos+10,i.yPos+j.cntRSize[1]-10]}});i.scrollUpdate=function(g){G.fShow();if(!(G.getSize[1]()===0||G.getSize[0]()===0)){H.sY.padding="1px";var t=j.reqS[0],u=j.reqS[1],r=G.vrt,n=G.hrz,A=[];G.sY.width=i.offsetWidth-la+"px";G.sY.height=i.offsetHeight-ma+"px";A[0]=j.cntRSize[0];A[1]=j.cntRSize[1];j.reqS[0]=j.getContentWidth()>j.cntRSize[0];j.reqS[1]=j.getContentHeight()>j.cntRSize[1];A=t!=j.reqS[0]||u!= j.reqS[1]||A[0]!=j.cntRSize[0]||A[1]!=j.cntRSize[1]?true:false;r.sdv.setVisibility(j.reqS[1]);n.sdv.setVisibility(j.reqS[0]);t=j.reqS[1]||j.forcedBar[1];u=j.reqS[0]||j.forcedBar[0];j.getContentWidth();j.getContentHeight();j.setHeight();j.setWidth();!j.reqS[0]||!j.reqS[1]||j.forcedHide[0]||j.forcedHide[1]?n.jBox.fHide():n.jBox.fShow();if(t)za(r,u&&!j.forcedHide[0]?j.barSpace[1]:0);else H.sY.top="0";if(u)za(n,t&&!j.forcedHide[1]?j.barSpace[0]:0);else H.sY.left="0";A&&!g&&i.scrollUpdate(true);H.sY.padding= "0px";j.edge[0]=j.edge[1]=false}};i.commitScroll=i.contentScroll=function(g,t,u){var r=[[false,false],[false,false]],n;if((g||g===0)&&j.scroller[0]){g=fa(g,0);n=G.hrz.sBr;n.trgtScrll=u?Math.min(Math.max(n.mxScroll,n.trgtScrll-g),0):-g;n.contentScrollPos();r[0]=[-n.trgtScrll-n.targetSkew,-n.mxScroll]}if((t||t===0)&&j.scroller[1]){t=fa(t,1);n=G.vrt.sBr;n.trgtScrll=u?Math.min(Math.max(n.mxScroll,n.trgtScrll-t),0):-t;n.contentScrollPos();r[1]=[-n.trgtScrll-n.targetSkew,-n.mxScroll]}u||(j.edge[0]=j.edge[1]= false);return r};i.scrollToElement=function(g){var t;if(!(t=g==null)){a:{for(t=g;t.parentNode;){t=t.parentNode;if(t==i){t=true;break a}}t=false}t=!t}if(!t){g=g;for(curleft=curtop=0;!g.offsetHeight&&g.parentNode&&g!=H&&J(g,"display")=="inline";)g=g.parentNode;if(g.offsetParent)for(;g!=H;){curleft+=g.offsetLeft;curtop+=g.offsetTop;g=g.offsetParent}g=[curleft,curtop];i.contentScroll(g[0]+j.paddings[2],g[1]+j.paddings[0],false);i.contentScroll(0,0,true)}};Q(aa,i,"0px",["border-left-width","border-right-width", "border-top-width","border-bottom-width"]);i.removeChild(aa);i.scrollTop=0;i.scrollLeft=0;i.fleXcroll=true;oa(i,"flexcrollactive",false);i.scrollUpdate();i.contentScroll(pa,ka,true);ia.match(xa)&&i.scrollToElement(v.getElementById(ia.match(xa)[1]));j.sizeChangeDetect=R.setInterval(function(){var g=ba.offsetHeight;if(g!=j.zTHeight){i.scrollUpdate();j.zTHeight=g}},2500);j.mDPosFix=function(){F.scrollTop=0;F.scrollLeft=0;i.scrollTop=0;i.scrollLeft=0};this.addTrggr(R,"load",function(){i.fleXcroll&&i.scrollUpdate()}); this.addTrggr(R,"resize",function(){i.refreshTimeout&&R.clearTimeout(i.refreshTimeout);i.refreshTimeout=R.setTimeout(function(){i.fleXcroll&&i.scrollUpdate()},80)});for(aa=0;ha=da[aa];aa++){ha=i.getElementsByTagName(ha);for(ka=0;pa=ha[ka];ka++){fleXenv.addTrggr(pa,"focus",function(){i.focusProtect=true});fleXenv.addTrggr(pa,"blur",onblur=function(){i.focusProtect=false})}}}}},globalInit:function(){fleXenv.catchFastInit&&window.clearInterval(fleXenv.catchFastInit);var i=/#([^#.]*)$/,z=/(.*)#.*$/,L, V,fa=document.getElementsByTagName("a"),M=document.location.href;if(M.match(z))M=M.match(z)[1];for(L=0;V=fa[L];L++)if(V.href&&V.href.match(i)&&V.href.match(z)&&M===V.href.match(z)[1]){V.fleXanchor=true;fleXenv.addTrggr(V,"click",function(J){if(!J)J=window.event;for(var Q=J.srcElement?J.srcElement:this;!Q.fleXanchor&&Q.parentNode;)Q=Q.parentNode;if(Q.fleXanchor){var C=document.getElementById(Q.href.match(i)[1]),Y=false;if(C==null)C=(C=document.getElementsByName(Q.href.match(i)[1])[0])?C:null;if(C!= null){for(var ga=C;ga.parentNode;){ga=ga.parentNode;if(ga.scrollToElement){ga.scrollToElement(C);Y=ga}}if(Y){J.preventDefault&&J.preventDefault();document.location.href="#"+Q.href.match(i)[1];Y.fleXdata.mDPosFix();return false}}}})}fleXenv.initByClass();window.onfleXcrollRun&&window.onfleXcrollRun()},initByClass:function(){if(!fleXenv.initialized){fleXenv.initialized=true;for(var i=fleXenv.getByClassName(document.getElementsByTagName("body")[0],"div","flexcroll"),z=0,L;L=i[z];z++)fleXenv.fleXcrollMain(L)}}, getByClassName:function(i,z,L){if(typeof i=="string")i=document.getElementById(i);if(i==null)return false;L=RegExp("(^|\\s)"+L+"($|\\s)");var V=[],fa=0;i=i.getElementsByTagName(z);z=0;for(var M;M=i[z];z++)if(M.className&&M.className.match(L)){V[fa]=M;fa++}return V},catchFastInit:window.setInterval(function(){if(document.getElementById("flexcroll-init")!=null){fleXenv.initByClass();window.clearInterval(fleXenv.catchFastInit)}},100),addTrggr:function(i,z,L){!fleXenv.addChckTrggr(i,z,L)&&i.attachEvent&& i.attachEvent("on"+z,L)},addChckTrggr:function(i,z,L){if(i.addEventListener){i.addEventListener(z,L,false);fleXenv.w3events=true;window.addEventListener("unload",function(){fleXenv.remTrggr(i,z,L)},false);return true}else return false},remTrggr:function(i,z,L){!fleXenv.remChckTrggr(i,z,L)&&i.detachEvent&&i.detachEvent("on"+z,L)},remChckTrggr:function(i,z,L){if(i.removeEventListener){i.removeEventListener(z,L,false);return true}else return false}}; function CSBfleXcroll(i){fleXenv.fleXcrollMain(i)}window.fleXenv.fleXcrollInit();$(document).ready(function(){$("#firstpane p.menu_head").click(function(){$(this).next("div.menu_body").slideToggle(200).siblings("div.menu_body").slideUp("medium");$(this).siblings()})}); (function(i){function z(n,A){A=A==="x"?F.width():F.height();return typeof n==="string"?Math.round(n.match(/%/)?A/100*parseInt(n,10):parseInt(n,10)):n}function L(n){n=i.isFunction(n)?n.call(X):n;return g.photo||n.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function V(){for(var n in g)if(i.isFunction(g[n])&&n.substring(0,2)!=="on")g[n]=g[n].call(X);g.rel=g.rel||X.rel;g.href=g.href||X.href;g.title=g.title||X.title}function fa(n){X=n;g=i.extend({},i(X).data(M));V();if(g.rel&&g.rel!== "nofollow"){H=i(".cboxElement").filter(function(){return(i(this).data(M).rel||this.rel)===g.rel});ca=H.index(X);if(ca<0){H=H.add(X);ca=H.length-1}}else{H=i(X);ca=0}if(!t){u=t=Q;Aa=X;Aa.blur();i(document).bind("keydown.cbox_close",function(A){if(A.keyCode===27){A.preventDefault();C.close()}}).bind("keydown.cbox_arrows",function(A){if(H.length>1)if(A.keyCode===37){A.preventDefault();pa.click()}else if(A.keyCode===39){A.preventDefault();ma.click()}});g.overlayClose&&c.css({cursor:"pointer"}).one("click", C.close);i.event.trigger(za);g.onOpen&&g.onOpen.call(X);c.css({opacity:g.opacity}).show();g.w=z(g.initialWidth,"x");g.h=z(g.initialHeight,"y");C.position(0);ga&&F.bind("resize.cboxie6 scroll.cboxie6",function(){c.css({width:F.width(),height:F.height(),top:F.scrollTop(),left:F.scrollLeft()})}).trigger("scroll.cboxie6")}ka.add(pa).add(ma).add(la).add(wa).hide();ia.html(g.close).show();C.slideshow();C.load()}var M="colorbox",J="hover",Q=true,C,Y=i.browser.msie&&!i.support.opacity,ga=Y&&i.browser.version< 7,za="cbox_open",ta="cbox_load",ja="cbox_complete",va="resize.cbox_resize",c,U,oa,v,R,da,Da,j,H,F,G,aa,ha,ba,wa,ka,la,ma,pa,ia,xa,ya,ua,qa,X,Aa,ca,g,t,u,r={transition:"fade",speed:350,width:false,height:false,innerWidth:false,innerHeight:false,initialWidth:"400",initialHeight:"400",maxWidth:false,maxHeight:false,scalePhotos:Q,scrolling:Q,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:Q,current:"image {current} of {total}",previous:"previous", next:"next",close:"close",open:false,overlayClose:Q,slideshow:false,slideshowAuto:false,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false};C=i.fn.colorbox=function(n,A){var O=this;if(!O.length)if(O.selector===""){O=i("<a/>");n.open=Q}else return this;O.each(function(){var T=i.extend({},i(this).data(M)?i(this).data(M):r,n);i(this).data(M,T).addClass("cboxElement");if(A)i(this).data(M).onComplete= A});n&&n.open&&fa(O);return this};C.init=function(){function n(A){return i('<div id="cbox'+A+'"/>')}F=i(window);U=i('<div id="colorbox"/>');c=n("Overlay").hide();oa=n("Wrapper");v=n("Content").append(G=n("LoadedContent").css({width:0,height:0}),ha=n("LoadingOverlay"),ba=n("LoadingGraphic"),wa=n("Title"),ka=n("Current"),la=n("Slideshow"),ma=n("Next"),pa=n("Previous"),ia=n("Close"));oa.append(i("<div/>").append(n("TopLeft"),R=n("TopCenter"),n("TopRight")),i("<div/>").append(da=n("MiddleLeft"),v,Da= n("MiddleRight")),i("<div/>").append(n("BottomLeft"),j=n("BottomCenter"),n("BottomRight"))).children().children().css({"float":"left"});aa=i("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");i("body").prepend(c,U.append(oa,aa));if(Y){U.addClass("cboxIE");ga&&c.css("position","absolute")}v.children().bind("mouseover mouseout",function(){i(this).toggleClass(J)}).addClass(J);xa=R.height()+j.height()+v.outerHeight(Q)-v.height();ya=da.width()+Da.width()+v.outerWidth(Q)-v.width(); ua=G.outerHeight(Q);qa=G.outerWidth(Q);U.css({"padding-bottom":xa,"padding-right":ya}).hide();ma.click(C.next);pa.click(C.prev);ia.click(C.close);v.children().removeClass(J);i(".cboxElement").live("click",function(A){if(A.button!==0&&typeof A.button!=="undefined")return Q;else{fa(this);return false}})};C.position=function(n,A){function O(Ga){R[0].style.width=j[0].style.width=v[0].style.width=Ga.style.width;ba[0].style.height=ha[0].style.height=v[0].style.height=da[0].style.height=Da[0].style.height= Ga.style.height}var T;T=F.height();var ea=Math.max(T-g.h-ua-xa,0)/2+F.scrollTop(),K=Math.max(document.documentElement.clientWidth-g.w-qa-ya,0)/2+F.scrollLeft();T=U.width()===g.w+qa&&U.height()===g.h+ua?0:n;oa[0].style.width=oa[0].style.height="9999px";U.dequeue().animate({width:g.w+qa,height:g.h+ua,top:ea,left:K},{duration:T,complete:function(){O(this);u=false;oa[0].style.width=g.w+qa+ya+"px";oa[0].style.height=g.h+ua+xa+"px";A&&A()},step:function(){O(this)}})};C.resize=function(n){function A(K){C.position(K, function(){if(t){if(Y){T&&G.fadeIn(100);U[0].style.removeAttribute("filter")}if(g.iframe)G.append("<iframe id='cboxIframe'"+(g.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+g.href+"' "+(Y?"allowtransparency='true'":"")+" />");G.show();wa.show().html(g.title);if(H.length>1){ka.html(g.current.replace(/\{current\}/,ca+1).replace(/\{total\}/,H.length)).show();ma.html(g.next).show();pa.html(g.previous).show();g.slideshow&&la.show()}ha.hide();ba.hide();i.event.trigger(ja); g.onComplete&&g.onComplete.call(X);g.transition==="fade"&&U.fadeTo(ea,1,function(){Y&&U[0].style.removeAttribute("filter")});F.bind(va,function(){C.position(0)})}})}if(t){var O,T,ea=g.transition==="none"?0:g.speed;F.unbind(va);if(n){G.remove();G=i('<div id="cboxLoadedContent"/>').html(n);G.hide().appendTo(aa).css({width:function(){g.w=g.w||G.width();g.w=g.mw&&g.mw<g.w?g.mw:g.w;return g.w}(),overflow:g.scrolling?"auto":"hidden"}).css({height:function(){g.h=g.h||G.height();g.h=g.mh&&g.mh<g.h?g.mh:g.h; return g.h}()}).prependTo(v);i("#cboxPhoto").css({cssFloat:"none"});ga&&i("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("cbox_cleanup",function(){this.style.visibility="inherit"});g.transition==="fade"&&U.fadeTo(ea,0,function(){A(0)})||A(ea);if(g.preloading&&H.length>1){n=ca>0?H[ca-1]:H[H.length-1];O=ca<H.length-1?H[ca+1]:H[0];O=i(O).data(M).href||O.href;n=i(n).data(M).href||n.href;L(O)&&i("<img />").attr("src",O);L(n)&& i("<img />").attr("src",n)}}else setTimeout(function(){var K=G.wrapInner("<div style='overflow:auto'></div>").children();g.h=K.height();G.css({height:g.h});K.replaceWith(K.children());C.position(ea)},1)}};C.load=function(){var n,A,O,T=C.resize;u=Q;X=H[ca];g=i.extend({},i(X).data(M));V();i.event.trigger(ta);g.onLoad&&g.onLoad.call(X);g.h=g.height?z(g.height,"y")-ua-xa:g.innerHeight?z(g.innerHeight,"y"):false;g.w=g.width?z(g.width,"x")-qa-ya:g.innerWidth?z(g.innerWidth,"x"):false;g.mw=g.w;g.mh=g.h; if(g.maxWidth){g.mw=z(g.maxWidth,"x")-qa-ya;g.mw=g.w&&g.w<g.mw?g.w:g.mw}if(g.maxHeight){g.mh=z(g.maxHeight,"y")-ua-xa;g.mh=g.h&&g.h<g.mh?g.h:g.mh}n=g.href;ha.show();ba.show();if(g.inline){i('<div id="cboxInlineTemp" />').hide().insertBefore(i(n)[0]).bind(ta+" cbox_cleanup",function(){i(this).replaceWith(G.children())});T(i(n))}else if(g.iframe)T(" ");else if(g.html)T(g.html);else if(L(n)){A=new Image;A.onload=function(){var ea;A.onload=null;A.id="cboxPhoto";i(A).css({margin:"auto",border:"none",display:"block", cssFloat:"left"});if(g.scalePhotos){O=function(){A.height-=A.height*ea;A.width-=A.width*ea};if(g.mw&&A.width>g.mw){ea=(A.width-g.mw)/A.width;O()}if(g.mh&&A.height>g.mh){ea=(A.height-g.mh)/A.height;O()}}if(g.h)A.style.marginTop=Math.max(g.h-A.height,0)/2+"px";T(A);H.length>1&&i(A).css({cursor:"pointer"}).click(C.next);if(Y)A.style.msInterpolationMode="bicubic"};A.src=n}else i("<div />").appendTo(aa).load(n,function(ea,K){K==="success"?T(this):T(i("<p>Request unsuccessful.</p>"))})};C.next=function(){if(!u){ca= ca<H.length-1?ca+1:0;C.load()}};C.prev=function(){if(!u){ca=ca>0?ca-1:H.length-1;C.load()}};C.slideshow=function(){function n(){la.text(g.slideshowStop).bind(ja,function(){O=setTimeout(C.next,g.slideshowSpeed)}).bind(ta,function(){clearTimeout(O)}).one("click",function(){A();i(this).removeClass(J)});U.removeClass(T+"off").addClass(T+"on")}var A,O,T="cboxSlideshow_";la.bind("cbox_closed",function(){la.unbind();clearTimeout(O);U.removeClass(T+"off "+T+"on")});A=function(){clearTimeout(O);la.text(g.slideshowStart).unbind(ja+ " "+ta).one("click",function(){n();O=setTimeout(C.next,g.slideshowSpeed);i(this).removeClass(J)});U.removeClass(T+"on").addClass(T+"off")};if(g.slideshow&&H.length>1)g.slideshowAuto?n():A()};C.close=function(){i.event.trigger("cbox_cleanup");g.onCleanup&&g.onCleanup.call(X);t=false;i(document).unbind("keydown.cbox_close keydown.cbox_arrows");F.unbind(va+" resize.cboxie6 scroll.cboxie6");c.css({cursor:"auto"}).fadeOut("fast");U.stop(Q,false).fadeOut("fast",function(){i("#colorbox iframe").attr("src", "about:blank");G.remove();U.css({opacity:1});try{Aa.focus()}catch(n){}i.event.trigger("cbox_closed");g.onClosed&&g.onClosed.call(X)})};C.element=function(){return i(X)};C.settings=r;i(C.init)})(jQuery); function makeScrollable(i,z){function L(){i.width();var M=i.height(),J=z.outerHeight()+198,Q=$('<div class="sc_menu_tooltip"></div>').css("opacity",0).appendTo(i);z.find("a").removeAttr("title");z.find("img").removeAttr("alt");var C;i.mousemove(function(Y){C=Y.target;var ga=i.offset();Y=(Y.pageY-ga.top)*(J-M)/M-99;if(Y<0)Y=0;i.scrollTop(Y)});setInterval(function(){if(C){Q.text();C.nodeName=="IMG"&&$(C).parent().data("tooltipText")}},200);i.mouseleave(function(){C=false;Q.stop(true).css("opacity", 0).text("")})}i=$(i);z=$(z);z.hide();var V=$('<div class="loading">Loading...</div>').appendTo(i),fa=setInterval(function(){var M=z.find("img"),J=0;M.each(function(){this.complete&&J++});if(J==M.length){clearInterval(fa);setTimeout(function(){V.hide();i.css({overflow:"hidden"});z.slideDown("slow",function(){L()})},1E3)}},100)}$(document).ready(function(){makeScrollable("div.sc_menu_wrapper","div.sc_menu")});

