(function(){function r(b,c){c.src?d.ajax({url:c.src,async:false,dataType:"script"}):d.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function L(){return+new Date}function s(b,c){return b[0]&&parseInt(d.curCSS(b[0],c,true),10)||0}function D(){return false}function F(){return true}function M(b){var c=RegExp("(^|\\.)"+b.type+"(\\.|$)"),e=true,h=[];d.each(d.data(this,"events").live||[],function(l,q){if(c.test(q.type))(l=d(b.target).closest(q.data)[0])&&h.push({elem:l, fn:q})});h.sort(function(l,q){return d.data(l.elem,"closest")-d.data(q.elem,"closest")});d.each(h,function(){if(this.fn.call(this.elem,b,this.fn.data)===false)return e=false});return e}function I(b,c){return["live",b,c.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function ha(){if(!xa){xa=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);d.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange", function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);d.ready()}});document.documentElement.doScroll&&N==N.top&&function(){if(!d.isReady){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}d.ready()}}()}d.event.add(N,"load",d.ready)}}function S(b,c){var e={};d.each(ta.concat.apply([],ta.slice(0,c)),function(){e[this]=b});return e}var N=this,ua=N.jQuery,ka=N.$,d=N.jQuery=N.$=function(b,c){return new d.fn.init(b, c)},H=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,X=/^.[^:#\[\.,]*$/;d.fn=d.prototype={init:function(b,c){b=b||document;if(b.nodeType){this[0]=b;this.length=1;this.context=b;return this}if(typeof b==="string"){var e=H.exec(b);if(e&&(e[1]||!c))if(e[1])b=d.clean([e[1]],c);else{if((c=document.getElementById(e[3]))&&c.id!=e[3])return d().find(b);e=d(c||[]);e.context=document;e.selector=b;return e}else return d(c).find(b)}else if(d.isFunction(b))return d(document).ready(b);if(b.selector&&b.context){this.selector= b.selector;this.context=b.context}return this.setArray(d.isArray(b)?b:d.makeArray(b))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(b){return b===void 0?Array.prototype.slice.call(this):this[b]},pushStack:function(b,c,e){b=d(b);b.prevObject=this;b.context=this.context;if(c==="find")b.selector=this.selector+(this.selector?" ":"")+e;else if(c)b.selector=this.selector+"."+c+"("+e+")";return b},setArray:function(b){this.length=0;Array.prototype.push.apply(this,b);return this}, each:function(b,c){return d.each(this,b,c)},index:function(b){return d.inArray(b&&b.jquery?b[0]:b,this)},attr:function(b,c,e){var h=b;if(typeof b==="string")if(c===void 0)return this[0]&&d[e||"attr"](this[0],b);else{h={};h[b]=c}return this.each(function(l){for(b in h)d.attr(e?this.style:this,b,d.prop(this,h[b],e,l,b))})},css:function(b,c){if((b=="width"||b=="height")&&parseFloat(c)<0)c=void 0;return this.attr(b,c,"curCSS")},text:function(b){if(typeof b!=="object"&&b!=null)return this.empty().append((this[0]&& this[0].ownerDocument||document).createTextNode(b));var c="";d.each(b||this,function(){d.each(this.childNodes,function(){if(this.nodeType!=8)c+=this.nodeType!=1?this.nodeValue:d.fn.text([this])})});return c},wrapAll:function(b){if(this[0]){b=d(b,this[0].ownerDocument).clone();this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var c=this;c.firstChild;)c=c.firstChild;return c}).append(this)}return this},wrapInner:function(b){return this.each(function(){d(this).contents().wrapAll(b)})}, wrap:function(b){return this.each(function(){d(this).wrapAll(b)})},append:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.insertBefore(b,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)})},after:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, this.nextSibling)})},end:function(){return this.prevObject||d([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var c=this.pushStack([],"find",b);c.length=0;d.find(b,this[0],c);return c}else return this.pushStack(d.unique(d.map(this,function(e){return d.find(b,e)})),"find",b)},clone:function(b){var c=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var l=this.outerHTML;if(!l){l=this.ownerDocument.createElement("div");l.appendChild(this.cloneNode(true)); l=l.innerHTML}return d.clean([l.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(b===true){var e=this.find("*").andSelf(),h=0;c.find("*").andSelf().each(function(){if(this.nodeName===e[h].nodeName){var l=d.data(e[h],"events");for(var q in l)for(var u in l[q])d.event.add(this,q,l[q][u],l[q][u].data);h++}})}return c},filter:function(b){return this.pushStack(d.isFunction(b)&&d.grep(this,function(c,e){return b.call(c,e)})||d.multiFilter(b,d.grep(this, function(c){return c.nodeType===1})),"filter",b)},closest:function(b){var c=d.expr.match.POS.test(b)?d(b):null,e=0;return this.map(function(){for(var h=this;h&&h.ownerDocument;){if(c?c.index(h)>-1:d(h).is(b)){d.data(h,"closest",e);return h}h=h.parentNode;e++}})},not:function(b){if(typeof b==="string")if(X.test(b))return this.pushStack(d.multiFilter(b,this,true),"not",b);else b=d.multiFilter(b,this);var c=b.length&&b[b.length-1]!==void 0&&!b.nodeType;return this.filter(function(){return c?d.inArray(this, b)<0:this!=b})},add:function(b){return this.pushStack(d.unique(d.merge(this.get(),typeof b==="string"?d(b):d.makeArray(b))))},is:function(b){return!!b&&d.multiFilter(b,this).length>0},hasClass:function(b){return!!b&&this.is("."+b)},val:function(b){if(b===void 0){var c=this[0];if(c){if(d.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(d.nodeName(c,"select")){var e=c.selectedIndex,h=[],l=c.options;c=c.type=="select-one";if(e<0)return null;var q=c?e:0;for(e=c?e+1:l.length;q< e;q++){var u=l[q];if(u.selected){b=d(u).val();if(c)return b;h.push(b)}}return h}return(c.value||"").replace(/\r/g,"")}}else{if(typeof b==="number")b+="";return this.each(function(){if(this.nodeType==1)if(d.isArray(b)&&/radio|checkbox/.test(this.type))this.checked=d.inArray(this.value,b)>=0||d.inArray(this.name,b)>=0;else if(d.nodeName(this,"select")){var x=d.makeArray(b);d("option",this).each(function(){this.selected=d.inArray(this.value,x)>=0||d.inArray(this.text,x)>=0});if(!x.length)this.selectedIndex= -1}else this.value=b})}},html:function(b){return b===void 0?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(b)},replaceWith:function(b){return this.after(b).remove()},eq:function(b){return this.slice(b,+b+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(b){return this.pushStack(d.map(this,function(c,e){return b.call(c,e,c)}))},andSelf:function(){return this.add(this.prevObject)}, domManip:function(b,c,e){function h(T,da){return c&&d.nodeName(T,"table")&&d.nodeName(da,"tr")?T.getElementsByTagName("tbody")[0]||T.appendChild(T.ownerDocument.createElement("tbody")):T}if(this[0]){var l=(this[0].ownerDocument||this[0]).createDocumentFragment();b=d.clean(b,this[0].ownerDocument||this[0],l);var q=l.firstChild;if(q)for(var u=0,x=this.length;u1||u>0?l.cloneNode(true):l);b&&d.each(b,r)}return this}};d.fn.init.prototype=d.fn;d.extend=d.fn.extend= function(){var b=arguments[0]||{},c=1,e=arguments.length,h=false,l;if(typeof b==="boolean"){h=b;b=arguments[1]||{};c=2}if(typeof b!=="object"&&!d.isFunction(b))b={};if(e==c){b=this;--c}for(;c-1}},swap:function(b,c,e){var h={};for(var l in c){h[l]=b.style[l]; b.style[l]=c[l]}e.call(b);for(l in c)b.style[l]=h[l]},css:function(b,c,e,h){if(c=="width"||c=="height"){var l;e={position:"absolute",visibility:"hidden",display:"block"};var q=c=="width"?["Left","Right"]:["Top","Bottom"];function u(){l=c=="width"?b.offsetWidth:b.offsetHeight;h!=="border"&&d.each(q,function(){h||(l-=parseFloat(d.curCSS(b,"padding"+this,true))||0);if(h==="margin")l+=parseFloat(d.curCSS(b,"margin"+this,true))||0;else l-=parseFloat(d.curCSS(b,"border"+this+"Width",true))||0})}b.offsetWidth!== 0?u():d.swap(b,e,u);return Math.max(0,Math.round(l))}return d.curCSS(b,c,e)},curCSS:function(b,c,e){var h,l=b.style;if(c=="opacity"&&!d.support.opacity){h=d.attr(l,"opacity");return h==""?"1":h}if(c.match(/float/i))c=ia;if(!e&&l&&l[c])h=l[c];else if(wa.getComputedStyle){if(c.match(/float/i))c="float";c=c.replace(/([A-Z])/g,"-$1").toLowerCase();if(b=wa.getComputedStyle(b,null))h=b.getPropertyValue(c);if(c=="opacity"&&h=="")h="1"}else if(b.currentStyle){h=c.replace(/\-(\w)/g,function(q,u){return u.toUpperCase()}); h=b.currentStyle[c]||b.currentStyle[h];if(!/^\d+(px)?$/i.test(h)&&/^\d/.test(h)){c=l.left;e=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;l.left=h||0;h=l.pixelLeft+"px";l.left=c;b.runtimeStyle.left=e}}return h},clean:function(b,c,e){c=c||document;if(typeof c.createElement==="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||document;if(!e&&b.length===1&&typeof b[0]==="string"){var h=/^<(\w+)\s*\/?>$/.exec(b[0]);if(h)return[c.createElement(h[1])]}var l=[];h=[];var q=c.createElement("div"); d.each(b,function(u,x){if(typeof x==="number")x+="";if(x){if(typeof x==="string"){x=x.replace(/(<(\w+)[^>]*?)\/>/g,function(ba,la,ma){return ma.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?ba:la+">"});u=x.replace(/^\s+/,"").substring(0,10).toLowerCase();var T=!u.indexOf("",""]||!u.indexOf("",""]||u.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!u.indexOf("",""]||(!u.indexOf("",""]||!u.indexOf("",""]||!d.support.htmlSerialize&&[1,"div
","
"]||[0,"",""];for(q.innerHTML=T[1]+x+T[2];T[0]--;)q=q.lastChild;if(!d.support.tbody){var da=/"&&!da?q.childNodes:[];for(T=u.length-1;T>=0;--T)d.nodeName(u[T], "tbody")&&!u[T].childNodes.length&&u[T].parentNode.removeChild(u[T])}!d.support.leadingWhitespace&&/^\s/.test(x)&&q.insertBefore(c.createTextNode(x.match(/^\s*/)[0]),q.firstChild);x=d.makeArray(q.childNodes)}if(x.nodeType)l.push(x);else l=d.merge(l,x)}});if(e){for(b=0;l[b];b++)if(d.nodeName(l[b],"script")&&(!l[b].type||l[b].type.toLowerCase()==="text/javascript"))h.push(l[b].parentNode?l[b].parentNode.removeChild(l[b]):l[b]);else{l[b].nodeType===1&&l.splice.apply(l,[b+1,0].concat(d.makeArray(l[b].getElementsByTagName("script")))); e.appendChild(l[b])}return h}return l},attr:function(b,c,e){if(!(!b||b.nodeType==3||b.nodeType==8)){var h=!d.isXMLDoc(b),l=e!==void 0;c=h&&d.props[c]||c;if(b.tagName){var q=/href|src|style/.test(c);if(c in b&&h&&!q){if(l){if(c=="type"&&d.nodeName(b,"input")&&b.parentNode)throw"type property can't be changed";b[c]=e}if(d.nodeName(b,"form")&&b.getAttributeNode(c))return b.getAttributeNode(c).nodeValue;if(c=="tabIndex")return(c=b.getAttributeNode("tabIndex"))&&c.specified?c.value:b.nodeName.match(/(button|input|object|select|textarea)/i)? 0:b.nodeName.match(/^(a|area)$/i)&&b.href?0:void 0;return b[c]}if(!d.support.style&&h&&c=="style")return d.attr(b.style,"cssText",e);l&&b.setAttribute(c,""+e);b=!d.support.hrefNormalized&&h&&q?b.getAttribute(c,2):b.getAttribute(c);return b===null?void 0:b}if(!d.support.opacity&&c=="opacity"){if(l){b.zoom=1;b.filter=(b.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")}return b.filter&&b.filter.indexOf("opacity=")>=0?parseFloat(b.filter.match(/opacity=([^)]*)/)[1])/ 100+"":""}c=c.replace(/-([a-z])/ig,function(u,x){return x.toUpperCase()});if(l)b[c]=e;return b[c]}},trim:function(b){return(b||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var c=[];if(b!=null){var e=b.length;if(e==null||typeof b==="string"||d.isFunction(b)||b.setInterval)c[0]=b;else for(;e;)c[--e]=b[e]}return c},inArray:function(b,c){for(var e=0,h=c.length;e0?this.clone(true):this).get();d.fn[c].apply(d(l[q]),x);h=h.concat(x)}return this.pushStack(h,b,e)}});d.each({removeAttr:function(b){d.attr(this,b,"");this.nodeType==1&&this.removeAttribute(b)},addClass:function(b){d.className.add(this,b)},removeClass:function(b){d.className.remove(this,b)},toggleClass:function(b,c){if(typeof c!=="boolean")c=!d.className.has(this,b);d.className[c?"add":"remove"](this,b)},remove:function(b){if(!b||d.filter(b,[this]).length){d("*",this).add([this]).each(function(){d.event.remove(this); d.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(d(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(b,c){d.fn[b]=function(){return this.each(c,arguments)}});var U="jQuery"+L(),Z=0,za={};d.extend({cache:{},data:function(b,c,e){b=b==N?za:b;var h=b[U];h||(h=b[U]=++Z);if(c&&!d.cache[h])d.cache[h]={};if(e!==void 0)d.cache[h][c]=e;return c?d.cache[h][c]:h},removeData:function(b,c){b=b==N?za:b;var e=b[U];if(c){if(d.cache[e]){delete d.cache[e][c]; c="";for(c in d.cache[e])break;c||d.removeData(b)}}else{try{delete b[U]}catch(h){b.removeAttribute&&b.removeAttribute(U)}delete d.cache[e]}},queue:function(b,c,e){if(b){c=(c||"fx")+"queue";var h=d.data(b,c);if(!h||d.isArray(e))h=d.data(b,c,d.makeArray(e));else e&&h.push(e)}return h},dequeue:function(b,c){var e=d.queue(b,c),h=e.shift();if(!c||c==="fx")h=e[0];h!==void 0&&h.call(b)}});d.fn.extend({data:function(b,c){var e=b.split(".");e[1]=e[1]?"."+e[1]:"";if(c===void 0){var h=this.triggerHandler("getData"+ e[1]+"!",[e[0]]);if(h===void 0&&this.length)h=d.data(this[0],b);return h===void 0&&e[1]?this.data(e[0]):h}else return this.trigger("setData"+e[1]+"!",[e[0],c]).each(function(){d.data(this,b,c)})},removeData:function(b){return this.each(function(){d.removeData(this,b)})},queue:function(b,c){if(typeof b!=="string"){c=b;b="fx"}if(c===void 0)return d.queue(this[0],b);return this.each(function(){var e=d.queue(this,b,c);b=="fx"&&e.length==1&&e[0].call(this)})},dequeue:function(b){return this.each(function(){d.dequeue(this, b)})}});(function(){function b(g,j,m,t,y,z){y=g=="previousSibling"&&!z;for(var K=0,fa=t.length;K0){ga=J;break}}J=J[g]}t[K]=ga}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,h=0,l=Object.prototype.toString,q=function(g,j,m,t){m=m||[];j=j||document;if(j.nodeType!==1&&j.nodeType!==9)return[];if(!g||typeof g!=="string")return m;var y=[],z,K,fa,J=true;for(e.lastIndex= 0;(z=e.exec(g))!==null;){y.push(z[1]);if(z[2]){fa=RegExp.rightContext;break}}if(y.length>1&&x.exec(g))if(y.length===2&&u.relative[y[0]])z=ra(y[0]+y[1],j);else for(z=u.relative[y[0]]?[j]:q(y.shift(),j);y.length;){g=y.shift();if(u.relative[g])g+=y.shift();z=ra(g,z)}else{z=t?{expr:y.pop(),set:da(t)}:q.find(y.pop(),y.length===1&&j.parentNode?j.parentNode:j,O(j));z=q.filter(z.expr,z.set);if(y.length>0)K=da(z);else J=false;for(;y.length;){var ga=y.pop(),oa=ga;if(u.relative[ga])oa=y.pop();else ga="";if(oa== null)oa=j;u.relative[ga](K,oa,O(j))}}K||(K=z);if(!K)throw"Syntax error, unrecognized expression: "+(ga||g);if(l.call(K)==="[object Array]")if(J)if(j.nodeType===1)for(g=0;K[g]!=null;g++){if(K[g]&&(K[g]===true||K[g].nodeType===1&&ma(j,K[g])))m.push(z[g])}else for(g=0;K[g]!=null;g++)K[g]&&K[g].nodeType===1&&m.push(z[g]);else m.push.apply(m,K);else da(K,m);if(fa){q(fa,j,m,t);if(la){hasDuplicate=false;m.sort(la);if(hasDuplicate)for(g=1;g":function(g,j,m){var t=typeof j==="string";if(t&&!/\W/.test(j)){j=m?j:j.toUpperCase();m=0;for(var y=g.length;m=0))m||t.push(K);else if(m)j[z]=false;return false},ID:function(g){return g[1].replace(/\\/g, "")},TAG:function(g,j){for(var m=0;j[m]===false;m++);return j[m]&&O(j[m])?g[1]:g[1].toUpperCase()},CHILD:function(g){if(g[1]=="nth"){var j=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]=="even"&&"2n"||g[2]=="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=j[1]+(j[2]||1)-0;g[3]=j[3]-0}g[0]=h++;return g},ATTR:function(g,j,m,t,y,z){j=g[1].replace(/\\/g,"");if(!z&&u.attrMap[j])g[1]=u.attrMap[j];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,j,m,t,y){if(g[1]==="not")if(g[3].match(e).length> 1||/^\w/.test(g[3]))g[3]=q(g[3],null,null,j);else{g=q.filter(g[3],j,m,true^y);m||t.push.apply(t,g);return false}else if(u.match.POS.test(g[0])||u.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild}, has:function(g,j,m){return!!q(m[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toUpperCase()=== "BUTTON"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,j){return j===0},last:function(g,j,m,t){return j===t.length-1},even:function(g,j){return j%2===0},odd:function(g,j){return j%2===1},lt:function(g,j,m){return jm[3]-0},nth:function(g,j,m){return m[3]-0==j},eq:function(g,j,m){return m[3]-0==j}},filter:{PSEUDO:function(g,j,m,t){var y=j[1],z=u.filters[y];if(z)return z(g,m,j,t);else if(y==="contains")return(g.textContent|| g.innerText||"").indexOf(j[3])>=0;else if(y==="not"){j=j[3];m=0;for(t=j.length;m=0}},ID:function(g,j){return g.nodeType===1&&g.getAttribute("id")===j},TAG:function(g,j){return j==="*"&&g.nodeType===1||g.nodeName===j},CLASS:function(g,j){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(j)>-1},ATTR:function(g,j){var m=j[1];g=u.attrHandle[m]?u.attrHandle[m](g):g[m]!=null?g[m]:g.getAttribute(m);m=g+"";var t=j[2];j=j[4];return g==null?t==="!=":t==="="?m===j:t=== "*="?m.indexOf(j)>=0:t==="~="?(" "+m+" ").indexOf(j)>=0:!j?m&&g!==false:t==="!="?m!=j:t==="^="?m.indexOf(j)===0:t==="$="?m.substr(m.length-j.length)===j:t==="|="?m===j||m.substr(0,j.length+1)===j+"-":false},POS:function(g,j,m,t){var y=u.setFilters[j[2]];if(y)return y(g,m,j,t)}}},x=u.match.POS;for(var T in u.match)u.match[T]=RegExp(u.match[T].source+/(?![^\[]*\])(?![^\(]*\))/.source);var da=function(g,j){g=Array.prototype.slice.call(g);if(j){j.push.apply(j,g);return j}return g};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(ba){da= function(g,j){j=j||[];if(l.call(g)==="[object Array]")Array.prototype.push.apply(j,g);else if(typeof g.length==="number")for(var m=0,t=g.length;m";var m=document.documentElement;m.insertBefore(g,m.firstChild);if(document.getElementById(j)){u.find.ID=function(t,y,z){if(typeof y.getElementById!== "undefined"&&!z)return(y=y.getElementById(t[1]))?y.id===t[1]||typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id").nodeValue===t[1]?[y]:void 0:[]};u.filter.ID=function(t,y){var z=typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id");return t.nodeType===1&&z&&z.nodeValue===y}}m.removeChild(g)})();(function(){var g=document.createElement("div");g.appendChild(document.createComment(""));if(g.getElementsByTagName("*").length>0)u.find.TAG=function(j,m){m=m.getElementsByTagName(j[1]); if(j[1]==="*"){j=[];for(var t=0;m[t];t++)m[t].nodeType===1&&j.push(m[t]);m=j}return m};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")u.attrHandle.href=function(j){return j.getAttribute("href",2)}})();document.querySelectorAll&&function(){var g=q,j=document.createElement("div");j.innerHTML="

";if(!(j.querySelectorAll&&j.querySelectorAll(".TEST").length===0)){q=function(m,t,y,z){t=t||document; if(!z&&t.nodeType===9&&!O(t))try{return da(t.querySelectorAll(m),y)}catch(K){}return g(m,t,y,z)};q.find=g.find;q.filter=g.filter;q.selectors=g.selectors;q.matches=g.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var g=document.createElement("div");g.innerHTML="
";if(g.getElementsByClassName("e").length!==0){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){u.order.splice(1, 0,"CLASS");u.find.CLASS=function(j,m,t){if(typeof m.getElementsByClassName!=="undefined"&&!t)return m.getElementsByClassName(j[1])}}}}();var ma=document.compareDocumentPosition?function(g,j){return g.compareDocumentPosition(j)&16}:function(g,j){return g!==j&&(g.contains?g.contains(j):true)},O=function(g){return g.nodeType===9&&g.documentElement.nodeName!=="HTML"||!!g.ownerDocument&&O(g.ownerDocument)},ra=function(g,j){var m=[],t="",y;for(j=j.nodeType?[j]:j;y=u.match.PSEUDO.exec(g);){t+=y[0];g=g.replace(u.match.PSEUDO, "")}g=u.relative[g]?g+"*":g;y=0;for(var z=j.length;y0||g.offsetHeight>0};q.selectors.filters.animated=function(g){return d.grep(d.timers,function(j){return g===j.elem}).length};d.multiFilter=function(g,j,m){if(m)g=":not("+g+")";return q.matches(g, j)};d.dir=function(g,j){var m=[];for(g=g[j];g&&g!=document;){g.nodeType==1&&m.push(g);g=g[j]}return m};d.nth=function(g,j,m){j=j||1;for(var t=0;g;g=g[m])if(g.nodeType==1&&++t==j)break;return g};d.sibling=function(g,j){for(var m=[];g;g=g.nextSibling)g.nodeType==1&&g!=j&&m.push(g);return m}})();d.event={add:function(b,c,e,h){if(!(b.nodeType==3||b.nodeType==8)){if(b.setInterval&&b!=N)b=N;if(!e.guid)e.guid=this.guid++;if(h!==void 0){e=this.proxy(e);e.data=h}var l=d.data(b,"events")||d.data(b,"events", {}),q=d.data(b,"handle")||d.data(b,"handle",function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(arguments.callee.elem,arguments):void 0});q.elem=b;d.each(c.split(/\s+/),function(u,x){u=x.split(".");x=u.shift();e.type=u.slice().sort().join(".");var T=l[x];d.event.specialAll[x]&&d.event.specialAll[x].setup.call(b,h,u);if(!T){T=l[x]={};if(!d.event.special[x]||d.event.special[x].setup.call(b,h,u)===false)if(b.addEventListener)b.addEventListener(x,q,false);else b.attachEvent&& b.attachEvent("on"+x,q)}T[e.guid]=e;d.event.global[x]=true});b=null}},guid:1,global:{},remove:function(b,c,e){if(!(b.nodeType==3||b.nodeType==8)){var h=d.data(b,"events"),l;if(h){if(c===void 0||typeof c==="string"&&c.charAt(0)==".")for(var q in h)this.remove(b,q+(c||""));else{if(c.type){e=c.handler;c=c.type}d.each(c.split(/\s+/),function(u,x){u=x.split(".");x=u.shift();var T=RegExp("(^|\\.)"+u.slice().sort().join(".*\\.")+"(\\.|$)");if(h[x]){if(e)delete h[x][e.guid];else for(var da in h[x])T.test(h[x][da].type)&& delete h[x][da];d.event.specialAll[x]&&d.event.specialAll[x].teardown.call(b,u);for(l in h[x])break;if(!l){if(!d.event.special[x]||d.event.special[x].teardown.call(b,u)===false)if(b.removeEventListener)b.removeEventListener(x,d.data(b,"handle"),false);else b.detachEvent&&b.detachEvent("on"+x,d.data(b,"handle"));l=null;delete h[x]}}})}for(l in h)break;if(!l){if(c=d.data(b,"handle"))c.elem=null;d.removeData(b,"events");d.removeData(b,"handle")}}}},trigger:function(b,c,e,h){var l=b.type||b;if(!h){b= typeof b==="object"?b[U]?b:d.extend(d.Event(l),b):d.Event(l);if(l.indexOf("!")>=0){b.type=l=l.slice(0,-1);b.exclusive=true}if(!e){b.stopPropagation();this.global[l]&&d.each(d.cache,function(){this.events&&this.events[l]&&d.event.trigger(b,c,this.handle.elem)})}if(!e||e.nodeType==3||e.nodeType==8)return;b.result=void 0;b.target=e;c=d.makeArray(c);c.unshift(b)}b.currentTarget=e;var q=d.data(e,"handle");q&&q.apply(e,c);if((!e[l]||d.nodeName(e,"a")&&l=="click")&&e["on"+l]&&e["on"+l].apply(e,c)===false)b.result= false;if(!h&&e[l]&&!b.isDefaultPrevented()&&!(d.nodeName(e,"a")&&l=="click")){this.triggered=true;try{e[l]()}catch(u){}}this.triggered=false;if(!b.isPropagationStopped())(e=e.parentNode||e.ownerDocument)&&d.event.trigger(b,c,e,true)},handle:function(b){var c,e;b=arguments[0]=d.event.fix(b||N.event);b.currentTarget=this;e=b.type.split(".");b.type=e.shift();c=!e.length&&!b.exclusive;var h=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");e=(d.data(this,"events")||{})[b.type];for(var l in e){var q= e[l];if(c||h.test(q.type)){b.handler=q;b.data=q.data;q=q.apply(this,arguments);if(q!==void 0){b.result=q;if(q===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix:function(b){if(b[U])return b;var c=b;b=d.Event(c);for(var e=this.props.length,h;e;){h=this.props[--e];b[h]=c[h]}if(!b.target)b.target=b.srcElement||document;if(b.target.nodeType==3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){c=document.documentElement;e=document.body;b.pageX=b.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c.clientLeft||0);b.pageY=b.clientY+(c&&c.scrollTop|| e&&e.scrollTop||0)-(c.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},proxy:function(b,c){c=c||function(){return b.apply(this,arguments)};c.guid=b.guid=b.guid||c.guid||this.guid++;return c},special:{ready:{setup:ha,teardown:function(){}}},specialAll:{live:{setup:function(b,c){d.event.add(this,c[0],M)},teardown:function(b){if(b.length){var c= 0,e=RegExp("(^|\\.)"+b[0]+"(\\.|$)");d.each(d.data(this,"events").live||{},function(){e.test(this.type)&&c++});c<1&&d.event.remove(this,b[0],M)}}}}};d.Event=function(b){if(!this.preventDefault)return new d.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=L();this[U]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=F;var b=this.originalEvent;if(b){b.preventDefault&&b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped= F;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=F;this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var ya=function(b){for(var c=b.relatedTarget;c&&c!=this;)try{c=c.parentNode}catch(e){c=this}if(c!=this){b.type=b.data;d.event.handle.apply(this,arguments)}};d.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,c){d.event.special[c]= {setup:function(){d.event.add(this,b,ya,c)},teardown:function(){d.event.remove(this,b,ya)}}});d.fn.extend({bind:function(b,c,e){return b=="unload"?this.one(b,c,e):this.each(function(){d.event.add(this,b,e||c,e&&c)})},one:function(b,c,e){var h=d.event.proxy(e||c,function(l){d(this).unbind(l,h);return(e||c).apply(this,arguments)});return this.each(function(){d.event.add(this,b,h,e&&c)})},unbind:function(b,c){return this.each(function(){d.event.remove(this,b,c)})},trigger:function(b,c){return this.each(function(){d.event.trigger(b, c,this)})},triggerHandler:function(b,c){if(this[0]){b=d.Event(b);b.preventDefault();b.stopPropagation();d.event.trigger(b,c,this[0]);return b.result}},toggle:function(b){for(var c=arguments,e=1;e=0){var l=b.slice(h,b.length);b=b.slice(0, h)}h="GET";if(c)if(d.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=d.param(c);h="POST"}var q=this;d.ajax({url:b,type:h,dataType:"html",data:c,complete:function(u,x){if(x=="success"||x=="notmodified")q.html(l?d("
").append(u.responseText.replace(//g,"")).find(l):u.responseText);e&&q.each(e,[u.responseText,x,u])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements? d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(b,c){b=d(this).val();return b==null?null:d.isArray(b)?d.map(b,function(e){return{name:c.name,value:e}}):{name:c.name,value:b}}).get()}});d.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,c){d.fn[c]=function(e){return this.bind(c,e)}});var ea=L();d.extend({get:function(b, c,e,h){if(d.isFunction(c)){e=c;c=null}return d.ajax({type:"GET",url:b,data:c,success:e,dataType:h})},getScript:function(b,c){return d.get(b,null,c,"script")},getJSON:function(b,c,e){return d.get(b,c,e,"json")},post:function(b,c,e,h){if(d.isFunction(c)){e=c;c={}}return d.ajax({type:"POST",url:b,data:c,success:e,dataType:h})},ajaxSetup:function(b){d.extend(d.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true, xhr:function(){return N.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(b){function c(){b.success&&b.success(u,q);b.global&&d.event.trigger("ajaxSuccess",[O,b])}function e(){b.complete&&b.complete(O,q);b.global&&d.event.trigger("ajaxComplete",[O,b]);b.global&&!--d.active&& d.event.trigger("ajaxStop")}b=d.extend(true,b,d.extend(true,{},d.ajaxSettings,b));var h,l=/=\?(&|$)/g,q,u,x=b.type.toUpperCase();if(b.data&&b.processData&&typeof b.data!=="string")b.data=d.param(b.data);if(b.dataType=="jsonp"){if(x=="GET")b.url.match(l)||(b.url+=(b.url.match(/\?/)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!b.data.match(l))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType=="json"&&(b.data&&b.data.match(l)||b.url.match(l))){h="jsonp"+ ea++;if(b.data)b.data=(b.data+"").replace(l,"="+h+"$1");b.url=b.url.replace(l,"="+h+"$1");b.dataType="script";N[h]=function(t){u=t;c();e();N[h]=void 0;try{delete N[h]}catch(y){}da&&da.removeChild(ba)}}if(b.dataType=="script"&&b.cache==null)b.cache=false;if(b.cache===false&&x=="GET"){l=L();var T=b.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+l+"$2");b.url=T+(T==b.url?(b.url.match(/\?/)?"&":"?")+"_="+l:"")}if(b.data&&x=="GET"){b.url+=(b.url.match(/\?/)?"&":"?")+b.data;b.data=null}b.global&&!d.active++&&d.event.trigger("ajaxStart"); l=/^(\w+:)?\/\/([^\/?#]+)/.exec(b.url);if(b.dataType=="script"&&x=="GET"&&l&&(l[1]&&l[1]!=location.protocol||l[2]!=location.host)){var da=document.getElementsByTagName("head")[0],ba=document.createElement("script");ba.src=b.url;if(b.scriptCharset)ba.charset=b.scriptCharset;if(!h){var la=false;ba.onload=ba.onreadystatechange=function(){if(!la&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){la=true;c();e();ba.onload=ba.onreadystatechange=null;da.removeChild(ba)}}}da.appendChild(ba)}else{var ma= false,O=b.xhr();b.username?O.open(x,b.url,b.async,b.username,b.password):O.open(x,b.url,b.async);try{b.data&&O.setRequestHeader("Content-Type",b.contentType);if(b.ifModified)O.setRequestHeader("If-Modified-Since",d.lastModified[b.url]||"Thu, 01 Jan 1970 00:00:00 GMT");O.setRequestHeader("X-Requested-With","XMLHttpRequest");O.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*":b.accepts._default)}catch(ra){}if(b.beforeSend&&b.beforeSend(O,b)===false){b.global&& !--d.active&&d.event.trigger("ajaxStop");O.abort();return false}b.global&&d.event.trigger("ajaxSend",[O,b]);var g=function(t){if(O.readyState==0){if(j){clearInterval(j);j=null;b.global&&!--d.active&&d.event.trigger("ajaxStop")}}else if(!ma&&O&&(O.readyState==4||t=="timeout")){ma=true;if(j){clearInterval(j);j=null}q=t=="timeout"?"timeout":!d.httpSuccess(O)?"error":b.ifModified&&d.httpNotModified(O,b.url)?"notmodified":"success";if(q=="success")try{u=d.httpData(O,b.dataType,b)}catch(y){q="parsererror"}if(q== "success"){var z;try{z=O.getResponseHeader("Last-Modified")}catch(K){}if(b.ifModified&&z)d.lastModified[b.url]=z;h||c()}else d.handleError(b,O,q);e();t&&O.abort();if(b.async)O=null}};if(b.async){var j=setInterval(g,13);b.timeout>0&&setTimeout(function(){O&&!ma&&g("timeout")},b.timeout)}try{O.send(b.data)}catch(m){d.handleError(b,O,null,m)}b.async||g();return O}},handleError:function(b,c,e,h){b.error&&b.error(c,e,h);b.global&&d.event.trigger("ajaxError",[c,b,h])},active:0,httpSuccess:function(b){try{return!b.status&& location.protocol=="file:"||b.status>=200&&b.status<300||b.status==304||b.status==1223}catch(c){}return false},httpNotModified:function(b,c){try{var e=b.getResponseHeader("Last-Modified");return b.status==304||e==d.lastModified[c]}catch(h){}return false},httpData:function(b,c,e){var h=b.getResponseHeader("content-type");b=(h=c=="xml"||!c&&h&&h.indexOf("xml")>=0)?b.responseXML:b.responseText;if(h&&b.documentElement.tagName=="parsererror")throw"parsererror";if(e&&e.dataFilter)b=e.dataFilter(b,c);if(typeof b=== "string"){c=="script"&&d.globalEval(b);if(c=="json")b=N.eval("("+b+")")}return b},param:function(b){function c(l,q){e[e.length]=encodeURIComponent(l)+"="+encodeURIComponent(q)}var e=[];if(d.isArray(b)||b.jquery)d.each(b,function(){c(this.name,this.value)});else for(var h in b)d.isArray(b[h])?d.each(b[h],function(){c(h,this)}):c(h,d.isFunction(b[h])?b[h]():b[h]);return e.join("&").replace(/%20/g,"+")}});var aa={},W,ta=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft", "marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(b,c){if(b)return this.animate(S("show",3),b,c);else{b=0;for(c=this.length;b").appendTo("body");h=l.css("display");if(h==="none")h="block";l.remove();aa[e]=h}d.data(this[b],"olddisplay",h)}}b=0;for(c=this.length;b=0;h--)if(e[h].elem==this){c&&e[h](true);e.splice(h,1)}});c||this.dequeue();return this}});d.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){d.fn[b]=function(e,h){return this.animate(c,e,h)}});d.extend({speed:function(b,c,e){var h=typeof b==="object"?b:{complete:e||!e&&c||d.isFunction(b)&&b,duration:b,easing:e&&c||c&&!d.isFunction(c)&&c};h.duration=d.fx.off?0:typeof h.duration=== "number"?h.duration:d.fx.speeds[h.duration]||d.fx.speeds._default;h.old=h.complete;h.complete=function(){h.queue!==false&&d(this).dequeue();d.isFunction(h.old)&&h.old.call(this)};return h},easing:{linear:function(b,c,e,h){return e+h*b},swing:function(b,c,e,h){return(-Math.cos(b*Math.PI)/2+0.5)*h+e}},timers:[],fx:function(b,c,e){this.options=c;this.elem=b;this.prop=e;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]|| d.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(b=parseFloat(d.css(this.elem,this.prop,b)))&&b>-10000?b:parseFloat(d.curCSS(this.elem,this.prop))||0},custom:function(b,c,e){function h(q){return l.step(q)}this.startTime=L();this.start=b;this.end=c;this.unit=e||this.unit||"px";this.now=this.start; this.pos=this.state=0;var l=this;h.elem=this.elem;if(h()&&d.timers.push(h)&&!W)W=setInterval(function(){for(var q=d.timers,u=0;u=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();b=this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)b=false;if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(d.css(this.elem,"display")=="none")this.elem.style.display="block"}this.options.hide&&d(this.elem).hide(); if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.attr(this.elem.style,h,this.options.orig[h]);this.options.complete.call(this.elem)}return false}else{e=c-this.startTime;this.state=e/this.options.duration;this.pos=d.easing[this.options.easing||(d.easing.swing?"swing":"linear")](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){d.attr(b.elem.style, "opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null)b.elem.style[b.prop]=b.now+b.unit;else b.elem[b.prop]=b.now}}});d.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return d.offset.bodyOffset(this[0]);var b=this[0].getBoundingClientRect(),c=this[0].ownerDocument,e=c.body;c=c.documentElement;return{top:b.top+(self.pageYOffset||d.boxModel&&c.scrollTop||e.scrollTop)-(c.clientTop|| e.clientTop||0),left:b.left+(self.pageXOffset||d.boxModel&&c.scrollLeft||e.scrollLeft)-(c.clientLeft||e.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return d.offset.bodyOffset(this[0]);d.offset.initialized||d.offset.initialize();var b=this[0],c=b.offsetParent,e=b.ownerDocument,h,l=e.documentElement,q=e.body;e=e.defaultView;h=e.getComputedStyle(b,null);for(var u=b.offsetTop,x=b.offsetLeft;(b=b.parentNode)&&b!==q&&b!==l;){h=e.getComputedStyle(b, null);u-=b.scrollTop;x-=b.scrollLeft;if(b===c){u+=b.offsetTop;x+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName))){u+=parseInt(h.borderTopWidth,10)||0;x+=parseInt(h.borderLeftWidth,10)||0}c=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&h.overflow!=="visible"){u+=parseInt(h.borderTopWidth,10)||0;x+=parseInt(h.borderLeftWidth,10)||0}h=h}if(h.position==="relative"||h.position==="static"){u+=q.offsetTop;x+=q.offsetLeft}if(h.position=== "fixed"){u+=Math.max(l.scrollTop,q.scrollTop);x+=Math.max(l.scrollLeft,q.scrollLeft)}return{top:u,left:x}};d.offset={initialize:function(){if(!this.initialized){var b=document.body,c=document.createElement("div"),e,h,l,q=b.style.marginTop;e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(h in e)c.style[h]=e[h];c.innerHTML='
'; b.insertBefore(c,b.firstChild);e=c.firstChild;h=e.firstChild;l=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=h.offsetTop!==5;this.doesAddBorderForTableAndCells=l.offsetTop===5;e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=h.offsetTop===-5;b.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=b.offsetTop===0;b.style.marginTop=q;b.removeChild(c);this.initialized=true}},bodyOffset:function(b){d.offset.initialized||d.offset.initialize(); var c=b.offsetTop,e=b.offsetLeft;if(d.offset.doesNotIncludeMarginInBodyOffset){c+=parseInt(d.curCSS(b,"marginTop",true),10)||0;e+=parseInt(d.curCSS(b,"marginLeft",true),10)||0}return{top:c,left:e}}};d.fn.extend({position:function(){var b;if(this[0]){b=this.offsetParent();var c=this.offset(),e=/^body|html$/i.test(b[0].tagName)?{top:0,left:0}:b.offset();c.top-=s(this,"marginTop");c.left-=s(this,"marginLeft");e.top+=s(b,"borderTopWidth");e.left+=s(b,"borderLeftWidth");b={top:c.top-e.top,left:c.left- e.left}}return b},offsetParent:function(){for(var b=this[0].offsetParent||document.body;b&&!/^body|html$/i.test(b.tagName)&&d.css(b,"position")=="static";)b=b.offsetParent;return d(b)}});d.each(["Left","Top"],function(b,c){var e="scroll"+c;d.fn[e]=function(h){if(!this[0])return null;return h!==void 0?this.each(function(){this==N||this==document?N.scrollTo(!b?h:d(N).scrollLeft(),b?h:d(N).scrollTop()):(this[e]=h)}):this[0]==N||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||d.boxModel&&document.documentElement[e]|| document.body[e]:this[0][e]}});d.each(["Height","Width"],function(b,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?d.css(this[0],e,false,"padding"):null};d.fn["outer"+c]=function(l){return this[0]?d.css(this[0],e,false,l?"margin":"border"):null};var h=c.toLowerCase();d.fn[h]=function(l){return this[0]==N?document.compatMode=="CSS1Compat"&&document.documentElement["client"+c]||document.body["client"+c]:this[0]==document?Math.max(document.documentElement["client"+c],document.body["scroll"+ c],document.documentElement["scroll"+c],document.body["offset"+c],document.documentElement["offset"+c]):l===void 0?this.length?d.css(this[0],h):null:this.css(h,typeof l==="string"?l:l+"px")}})})(); jQuery.cookie=function(r,L,s){if(typeof L!="undefined"){s=s||{};if(L===null){L="";s=$.extend({},s);s.expires=-1}var D="";if(s.expires&&(typeof s.expires=="number"||s.expires.toUTCString)){if(typeof s.expires=="number"){D=new Date;D.setTime(D.getTime()+s.expires*24*60*60*1E3)}else D=s.expires;D="; expires="+D.toUTCString()}var F=s.path?"; path="+s.path:"",M=s.domain?"; domain="+s.domain:"";s=s.secure?"; secure":"";document.cookie=[r,"=",encodeURIComponent(L),D,F,M,s].join("")}else{L=null;if(document.cookie&& document.cookie!=""){s=document.cookie.split(";");for(D=0;D'),Y=qa[0];qa.css({position:"absolute",top:"-1000px", left:"-1000px"});var U={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;qa.attr("src",X.iframeSrc)}},Z=X.global;Z&&!r.active++&&r.event.trigger("ajaxStart");Z&&r.event.trigger("ajaxSend",[U,X]);if(P.beforeSend&&P.beforeSend(U,P)===false)P.global&&r.active--;else if(!U.aborted){var za=0,ya=0;if(P=H.clk){var xa=P.name;if(xa&&!P.disabled){s.extraData= s.extraData||{};s.extraData[xa]=P.value;if(P.type=="image"){s.extraData[name+".x"]=H.clk_x;s.extraData[name+".y"]=H.clk_y}}}setTimeout(function(){var ea=S.attr("target"),aa=S.attr("action");H.setAttribute("target",wa);H.getAttribute("method")!="POST"&&H.setAttribute("method","POST");H.getAttribute("action")!=X.url&&H.setAttribute("action",X.url);s.skipEncodingOverride||S.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});X.timeout&&setTimeout(function(){ya=true;ka()},X.timeout); var W=[];try{if(s.extraData)for(var ta in s.extraData)W.push(r('').appendTo(H)[0]);qa.appendTo("body");Y.attachEvent?Y.attachEvent("onload",ka):Y.addEventListener("load",ka,false);H.submit()}finally{H.setAttribute("action",aa);ea?H.setAttribute("target",ea):S.removeAttr("target");r(W).remove()}},10);var ia=50}}}if(!this.length){L("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof s=="function")s={success:s}; var F=r.trim(this.attr("action"));if(F)F=(F.match(/^([^#]+)/)||[])[1];F=F||window.location.href||"";s=r.extend({url:F,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},s||{});F={};this.trigger("form-pre-serialize",[this,s,F]);if(F.veto){L("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(s.beforeSerialize&&s.beforeSerialize(this,s)===false){L("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var M= this.formToArray(s.semantic);if(s.data){s.extraData=s.data;for(var I in s.data)if(s.data[I]instanceof Array)for(var ha in s.data[I])M.push({name:I,value:s.data[I][ha]});else M.push({name:I,value:s.data[I]})}if(s.beforeSubmit&&s.beforeSubmit(M,this,s)===false){L("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[M,this,s,F]);if(F.veto){L("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}I=r.param(M);if(s.type.toUpperCase()== "GET"){s.url+=(s.url.indexOf("?")>=0?"&":"?")+I;s.data=null}else s.data=I;var S=this,N=[];s.resetForm&&N.push(function(){S.resetForm()});s.clearForm&&N.push(function(){S.clearForm()});if(!s.dataType&&s.target){var ua=s.success||function(){};N.push(function(ka){r(s.target).html(ka).each(ua,arguments)})}else s.success&&N.push(s.success);s.success=function(ka,d){for(var H=0,X=N.length;H=37&&i<=40,p=f.shiftKey,v=f.ctrlKey,A=false,w,G,E;if(!v&&!p)return true;else if(n&&H[k[i]].enableCursorHotkey)A=k[i];else r.each(B.borderPanes.split(","),function(C,V){w=H[V];G=w.customHotkey;E=w.customHotkeyModifier;if(p&&E=="SHIFT"||v&&E=="CTRL"||v&&p)if(G&&i==(isNaN(G)||G<=9?G.toUpperCase().charCodeAt(0):G)){A=V;return false}});if(!A)return true; w=H[A];k=P[A];if(!w.enableCursorHotkey||k.isHidden||!Q[A])return true;if((k=f.target||f.srcElement)&&p&&n&&(k.tagName=="TEXTAREA"||k.tagName=="INPUT"&&(i==37||i==39)))return true;ra(A);f.stopPropagation();return f.returnValue=false}function D(f){if(this&&this.tagName)f=this;f=typeof f=="string"?Q[f]:r(f).attr("pane")?r(f):r(f).parents("div[pane]:first");if(f.length){var i=f.attr("pane"),k=P[i];k.cssSaved&&F(i);if(k.isSliding||k.isResizing||k.isClosed)k.cssSaved=false;else{var n={zIndex:B.zIndex.pane_normal+ 1},p={},v=f.css("overflow"),A=f.css("overflowX"),w=f.css("overflowY");if(v!="visible"){p.overflow=v;n.overflow="visible"}if(A&&A!="visible"&&A!="auto"){p.overflowX=A;n.overflowX="visible"}if(w&&w!="visible"&&w!="auto"){p.overflowY=A;n.overflowY="visible"}k.cssSaved=p;f.css(n);r.each(B.allPanes.split(","),function(G,E){E!=i&&F(E)})}}}function F(f){if(this&&this.tagName)f=this;f=typeof f=="string"?Q[f]:r(f).hasClass("ui-layout-pane")?r(f):r(f).parents("div[pane]:first");if(f.length){var i=f.attr("pane"); i=P[i];var k=i.cssSaved||{};!i.isSliding&&!i.isResizing&&f.css("zIndex",B.zIndex.pane_normal);f.css(k);i.cssSaved=false}}function M(f,i,k){var n=r(f);if(n.length)if(B.borderPanes.indexOf(i)==-1)alert("Error Adding Button \n\nInvalid pane: "+i);else{f=H[i].buttonClass+"-"+k;n.addClass(f+" "+f+"-"+i);return n}else alert("Error Adding Button \n\nInvalid selector: "+f);return false}function I(f,i){if(f=M(f,i,"toggle"))f.attr("title",P[i].isClosed?"Open":"Close").click(function(k){ra(i);k.stopPropagation()})} function ha(f,i){(f=M(f,i,"open"))&&f.attr("title","Open").click(function(k){j(i);k.stopPropagation()})}function S(f,i){(f=M(f,i,"close"))&&f.attr("title","Close").click(function(k){g(i);k.stopPropagation()})}function N(f,i){var k=M(f,i,"pin");if(k){var n=P[i];k.click(function(p){ka(r(this),i,n.isSliding||n.isClosed);n.isSliding||n.isClosed?j(i):g(i);p.stopPropagation()});ka(k,i,!n.isClosed&&!n.isSliding);B[i].pins.push(f)}}function ua(f,i){r.each(B[f].pins,function(k,n){ka(r(n),f,i)})}function ka(f, i,k){var n=f.attr("pin");if(!(n&&k==(n=="down"))){var p=H[i].buttonClass+"-pin",v=p+"-"+i;i=p+"-up";n=v+"-up";p=p+"-down";v=v+"-down";f.attr("pin",k?"down":"up").attr("title",k?"Un-Pin":"Pin").removeClass(k?i:p).removeClass(k?n:v).addClass(k?p:i).addClass(k?v:n)}}var d={paneClass:"ui-layout-pane",resizerClass:"ui-layout-resizer",togglerClass:"ui-layout-toggler",togglerInnerClass:"ui-layout-",buttonClass:"ui-layout-button",contentSelector:".ui-layout-content",contentIgnoreSelector:".ui-layout-ignore"}, H={name:"",scrollToBookmarkOnLoad:true,defaults:{applyDefaultStyles:false,closable:true,resizable:true,slidable:true,contentSelector:d.contentSelector,contentIgnoreSelector:d.contentIgnoreSelector,paneClass:d.paneClass,resizerClass:d.resizerClass,togglerClass:d.togglerClass,buttonClass:d.buttonClass,resizerDragOpacity:1,maskIframesOnResize:true,minSize:0,maxSize:0,spacing_open:6,spacing_closed:6,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center", togglerTip_open:"Close",togglerTip_closed:"Open",resizerTip:"Resize",sliderTip:"Slide Open",sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseout",hideTogglerOnSlide:false,togglerContent_open:"",togglerContent_closed:"",showOverflowOnHover:false,enableCursorHotkey:true,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},initClosed:false,initHidden:false},north:{paneSelector:".ui-layout-north",size:"auto",resizerCursor:"n-resize"},south:{paneSelector:".ui-layout-south", size:"auto",resizerCursor:"s-resize"},east:{paneSelector:".ui-layout-east",size:200,resizerCursor:"e-resize"},west:{paneSelector:".ui-layout-west",size:200,resizerCursor:"w-resize"},center:{paneSelector:".ui-layout-center"}},X={slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}}}, P={id:Math.floor(Math.random()*1E4),container:{},north:{},south:{},east:{},west:{},center:{}},wa={north:"south",south:"north",east:"west",west:"east"},qa=function(f){if(typeof f=="string")return true;else if(typeof f=="object")try{return f.constructor.toString().match(/string/i)!==null}catch(i){}return false},Y=function(f){return typeof f=="string"||qa(f)?r.trim(f):f},U=function(f,i){return Math.min(f,i)},Z=function(f,i){return Math.max(f,i)},za=function(f){var i={defaults:{fxSettings:{}},north:{fxSettings:{}}, south:{fxSettings:{}},east:{fxSettings:{}},west:{fxSettings:{}},center:{fxSettings:{}}};f=f||{};if(f.effects||f.defaults||f.north||f.south||f.west||f.east||f.center)i=r.extend(i,f);else r.each(f,function(k,n){a=k.split("__");i[a[1]?a[0]:"defaults"][a[1]?a[1]:a[0]]=n});return i},ya=function(f,i,k){function n(A){v=B[A];if(v.doCallback){cpPane=v.callback.split(",")[1];cpPane!=A&&cpPane!=i&&n(cpPane,true)}else{v.doCallback=true;v.callback=p}}var p=f+","+i+","+(k?1:0),v;r.each(B.borderPanes.split(","), function(A,w){if(B[w].isMoving){n(w);return false}})},xa=function(f){f=B[f];B.isLayoutBusy=false;delete f.isMoving;if(f.doCallback&&f.callback){f.doCallback=false;var i=f.callback.split(","),k=i[2]>0?true:false;if(i[0]=="open")j(i[1],k);else i[0]=="close"&&g(i[1],k);if(!f.doCallback)f.callback=null}},ia=function(f,i){if(i){var k;try{if(typeof i=="function")k=i;else if(typeof i!="string")return;else if(i.indexOf(",")>0){var n=i.split(",");k=eval(n[0]);if(typeof k=="function"&&n.length>1)return k(n[1])}else k= eval(i);if(typeof k=="function")return k(f,Q[f],r.extend({},P[f]),r.extend({},H[f]),H.name)}catch(p){}}},ea=function(f,i){var k=0,n=false,p="";if(!r.browser.msie)if(r.curCSS(f[0],"display",true)=="none"){n=true;p=r.curCSS(f[0],"visibility",true);f.css({display:"block",visibility:"hidden"})}k=parseInt(r.curCSS(f[0],i,true),10)||0;if(n){f.css({display:"none"});p&&p!="hidden"&&f.css({visibility:p})}return k},aa=function(f,i){var k;if(qa(f)){f=Y(f);k=Q[f]}else k=r(f);if(i<=0)return 0;else i>0||(i=qa(f)? b(f):k.outerWidth());return r.boxModel?i-ea(k,"paddingLeft")-ea(k,"paddingRight")-(r.curCSS(k[0],"borderLeftStyle",true)=="none"?0:ea(k,"borderLeftWidth"))-(r.curCSS(k[0],"borderRightStyle",true)=="none"?0:ea(k,"borderRightWidth")):i},W=function(f,i){var k;if(qa(f)){f=Y(f);k=Q[f]}else k=r(f);if(i<=0)return 0;else i>0||(i=qa(f)?b(f):k.outerHeight());return r.boxModel?i-ea(k,"paddingTop")-ea(k,"paddingBottom")-(r.curCSS(k[0],"borderTopStyle",true)=="none"?0:ea(k,"borderTopWidth"))-(r.curCSS(k[0],"borderBottomStyle", true)=="none"?0:ea(k,"borderBottomWidth")):i},ta=function(f,i){return B[f].dir=="horz"?W(f,i):aa(f,i)},b=function(f,i){var k=Q[f],n=H[f],p=P[f],v=i?n.spacing_open:0;n=i?n.spacing_closed:0;return!k||p.isHidden?0:p.isClosed||p.isSliding&&i?n:B[f].dir=="horz"?k.outerHeight()+v:k.outerWidth()+v},c=function(f){var i=R,k=B[f].dir,n=P[f],p=Q[wa[f]],v=H[f].spacing_open,A=H[wa[f]].spacing_open,w=!p?0:k=="horz"?p.outerHeight():p.outerWidth();p=n.minSize||0;k=Math.min(n.maxSize||9999,(k=="horz"?i.innerHeight: i.innerWidth)-v-w-A);var G,E;switch(f){case "north":G=i.offsetTop+p;E=i.offsetTop+k;break;case "west":G=i.offsetLeft+p;E=i.offsetLeft+k;break;case "south":G=i.offsetTop+i.innerHeight-k;E=i.offsetTop+i.innerHeight-p;break;case "east":G=i.offsetLeft+i.innerWidth-k;E=i.offsetLeft+i.innerWidth-p;break}r.extend(n,{minSize:p,maxSize:k,minPosition:G,maxPosition:E})},e=function(){var f={top:b("north",true),bottom:b("south",true),left:b("west",true),right:b("east",true),width:0,height:0};with(f){width=R.innerWidth- left-right;height=R.innerHeight-bottom-top;top+=R.top;bottom+=R.bottom;left+=R.left;right+=R.right}return f},h=function(f){var i={},k,n,p;r.each("Left,Right,Top,Bottom".split(","),function(){k=Y(this);n=i["border"+k]=ea(f,"border"+k+"Width");p=i["padding"+k]=ea(f,"padding"+k);i["offset"+k]=n+p;if(f==ja)i[k.toLowerCase()]=r.boxModel?p:0});i.innerWidth=i.outerWidth=f.outerWidth();i.innerHeight=i.outerHeight=f.outerHeight();if(r.boxModel){i.innerWidth-=i.offsetLeft+i.offsetRight;i.innerHeight-=i.offsetTop+ i.offsetBottom}return i},l=function(f,i,k,n){var p=window.layout=window.layout||{};p=p.timers=p.timers||{};f="layout_"+P.id+"_"+f+"_"+i;p[f]||(p[f]=setTimeout(k,n))},q=function(f,i){var k=window.layout=window.layout||{};k=k.timers=k.timers||{};f="layout_"+P.id+"_"+f+"_"+i;if(k[f]){clearTimeout(k[f]);delete k[f];return true}else return false},u=function(){try{if(ja[0].tagName=="BODY"){r("html").css({height:"100%",overflow:"hidden"});r("body").css({position:"relative",height:"100%",overflow:"hidden", margin:0,padding:0,border:"none"})}else{var f={overflow:"hidden"},i=ja.css("position"),k=ja.css("height");if(!ja.hasClass("ui-layout-pane")){if(!i||"fixed,absolute,relative".indexOf(i)<0)f.position="relative";if(!k||k=="auto")f.height="100%"}ja.css(f)}}catch(n){}R=P.container=h(ja)},x=function(){r.each(B.borderPanes.split(","),function(f,i){f=H[i];if(f.enableCursorHotkey||f.customHotkey){r(document).keydown(s);return false}})},T=function(){L=za(L);if(L.effects){r.extend(X,L.effects);delete L.effects}r.each("name,scrollToBookmarkOnLoad".split(","), function(k,n){if(L[n]!==undefined)H[n]=L[n];else if(L.defaults[n]!==undefined){H[n]=L.defaults[n];delete L.defaults[n]}});r.each("paneSelector,resizerCursor,customHotkey".split(","),function(k,n){delete L.defaults[n]});r.extend(H.defaults,L.defaults);B.center=r.extend(true,{},B.defaults,B.center);r.extend(H.center,L.center);var f=r.extend(true,{},H.defaults,L.defaults,H.center);r.each("paneClass,contentSelector,contentIgnoreSelector,applyDefaultStyles,showOverflowOnHover".split(","),function(k,n){H.center[n]= f[n]});var i=H.defaults;r.each(B.borderPanes.split(","),function(k,n){B[n]=r.extend(true,{},B.defaults,B[n]);o=H[n]=r.extend(true,{},H.defaults,H[n],L.defaults,L[n]);if(!o.paneClass)o.paneClass=d.paneClass;if(!o.resizerClass)o.resizerClass=d.resizerClass;if(!o.togglerClass)o.togglerClass=d.togglerClass;r.each(["_open","_close",""],function(p,v){var A="fxName"+v;p="fxSpeed"+v;v="fxSettings"+v;o[A]=L[n][A]||L[n].fxName||L.defaults[A]||L.defaults.fxName||o[A]||o.fxName||i[A]||i.fxName||"none";var w= o[A];if(w=="none"||!r.effects||!r.effects[w]||!X[w]&&!o[v]&&!o.fxSettings)w=o[A]="none";w=X[w]||{};A=w.all||{};w=w[n]||{};o[v]=r.extend({},A,w,i.fxSettings||{},i[v]||{},o.fxSettings,o[v],L.defaults.fxSettings,L.defaults[v]||{},L[n].fxSettings,L[n][v]||{});o[p]=L[n][p]||L[n].fxSpeed||L.defaults[p]||L.defaults.fxSpeed||o[p]||o[v].duration||o.fxSpeed||o.fxSettings.duration||i.fxSpeed||i.fxSettings.duration||w.duration||A.duration||"normal"})})},da=function(){r.each(B.allPanes.split(","),function(){var f= Y(this),i=H[f],k=P[f],n=B[f].dir,p=i.size=="auto"||isNaN(i.size)?0:i.size,v=i.minSize||1,A=i.maxSize||9999,w=i.spacing_open||0,G=i.paneSelector,E={},C;va[f]=false;if(G.substr(0,1)==="#")C=Q[f]=ja.find(G+":first");else{C=Q[f]=ja.children(G+":first");C.length||(C=Q[f]=ja.children("form:first").children(G+":first"))}if(!C.length){Q[f]=false;return true}C.attr("pane",f).addClass(i.paneClass+" "+i.paneClass+"-"+f);if(f!="center"){k.isClosed=false;k.isSliding=false;k.isResizing=false;k.isHidden=false;k.noRoom= false;B[f].pins=[]}E=r.extend({visibility:"visible",display:"block"},B.defaults.cssReq,B[f].cssReq);i.applyDefaultStyles&&r.extend(E,B.defaults.cssDef,B[f].cssDef);C.css(E);E={};switch(f){case "north":E.top=R.top;E.left=R.left;E.right=R.right;break;case "south":E.bottom=R.bottom;E.left=R.left;E.right=R.right;break;case "west":E.left=R.left;break;case "east":E.right=R.right;break;case "center":}if(n=="horz"){if(p===0||p=="auto"){C.css({height:"auto"});p=C.outerHeight()}p=Z(p,v);p=U(p,A);p=U(p,R.innerHeight- w);E.height=Z(1,W(f,p));k.size=p;k.maxSize=A;k.minSize=Z(v,p-E.height+1);C.css(E)}else if(n=="vert"){if(p===0||p=="auto"){C.css({width:"auto","float":"left"});p=C.outerWidth();C.css({"float":"none"})}p=Z(p,v);p=U(p,A);p=U(p,R.innerWidth-w);E.width=Z(1,aa(f,p));k.size=p;k.maxSize=A;k.minSize=Z(v,p-E.width+1);C.css(E);J(f,null,true)}else if(f=="center"){C.css(E);J("center",null,true)}if(i.initClosed&&i.closable){C.hide().addClass("closed");k.isClosed=true}else if(i.initHidden||i.initClosed){ma(f,true); k.isHidden=true}else C.addClass("open");i.showOverflowOnHover&&C.hover(D,F);if(i.contentSelector){k=va[f]=C.children(i.contentSelector+":first");if(!k.length){va[f]=false;return true}k.css(B.content.cssReq);i.applyDefaultStyles&&k.css(B.content.cssDef);C.css({overflow:"hidden"})}})},ba=function(){r.each(B.borderPanes.split(","),function(){var f=Y(this),i=H[f],k=P[f],n=i.resizerClass,p=i.togglerClass,v=Q[f];pa[f]=false;Aa[f]=false;if(!(!v||!i.closable&&!i.resizable)){var A=B[f].edge;v=v.is(":visible"); var w="-"+f,G=v?"-open":"-closed",E;E=pa[f]=r("");v&&i.resizable||!v&&i.slidable&&E.attr("title",i.sliderTip).css("cursor",i.sliderCursor);E.attr("id",i.paneSelector.substr(0,1)=="#"?i.paneSelector.substr(1)+"-resizer":"").attr("resizer",f).css(B.resizers.cssReq).css(A,R[A]+b(f)).addClass(n+" "+n+w+" "+n+G+" "+n+w+G).appendTo(ja);i.applyDefaultStyles&&E.css(B.resizers.cssDef);if(i.closable){n=Aa[f]=r("
");n.attr("id",i.paneSelector.substr(0,1)=="#"?i.paneSelector.substr(1)+ "-toggler":"").css(B.togglers.cssReq).attr("title",v?i.togglerTip_open:i.togglerTip_closed).click(function(C){ra(f);C.stopPropagation()}).mouseover(function(C){C.stopPropagation()}).addClass(p+" "+p+w+" "+p+G+" "+p+w+G).appendTo(E);if(i.togglerContent_open)r(""+i.togglerContent_open+"").addClass("content content-open").css("display",k.isClosed?"none":"block").appendTo(n);if(i.togglerContent_closed)r(""+i.togglerContent_closed+"").addClass("content content-closed").css("display", k.isClosed?"block":"none").appendTo(n);i.applyDefaultStyles&&n.css(B.togglers.cssDef);v||t(f,true)}}});oa("all",true)},la=function(){var f=typeof r.fn.draggable=="function",i;r.each(B.borderPanes.split(","),function(){var k=Y(this),n=H[k],p=P[k];if(!f||!Q[k]||!n.resizable){n.resizable=false;return true}var v=n.resizerClass,A=v+"-drag",w=v+"-"+k+"-drag",G=v+"-dragging",E=v+"-"+k+"-dragging",C=false,V=pa[k];p.isClosed||V.attr("title",n.resizerTip).css("cursor",n.resizerCursor);V.draggable({containment:ja[0], axis:B[k].dir=="horz"?"y":"x",delay:200,distance:1,helper:"clone",opacity:n.resizerDragOpacity,zIndex:B.zIndex.resizing,start:function(){if(false===ia(k,n.onresize_start))return false;p.isResizing=true;q(k,"closeSlider");V.addClass(A+" "+w);C=false;var ca=k=="east"||k=="south"?n.spacing_open:0;c(k);p.minPosition-=ca;p.maxPosition-=ca;i=B[k].dir=="horz"?"top":"left";r(n.maskIframesOnResize===true?"iframe":n.maskIframesOnResize).each(function(){r('
').css({background:"#fff", opacity:"0.001",zIndex:9,position:"absolute",width:this.offsetWidth+"px",height:this.offsetHeight+"px"}).css(r(this).offset()).appendTo(this.parentNode)})},drag:function(ca,na){if(!C){r(".ui-draggable-dragging").addClass(G+" "+E).children().css("visibility","hidden");C=true;p.isSliding&&Q[k].css("zIndex",B.zIndex.sliding)}if(na.position[i]p.maxPosition)na.position[i]=p.maxPosition},stop:function(ca,na){ca=na.position;var sa;V.removeClass(A+ " "+w);switch(k){case "north":sa=ca.top;break;case "west":sa=ca.left;break;case "south":sa=R.outerHeight-ca.top-V.outerHeight();break;case "east":sa=R.outerWidth-ca.left-V.outerWidth();break}fa(k,sa-R[B[k].edge]);r("div.ui-layout-mask").remove();p.isResizing=false}})})},ma=function(f,i){var k=H[f],n=P[f],p=Q[f],v=pa[f];if(!(!p||n.isHidden))if(false!==ia(f,k.onhide_start)){n.isSliding=false;v&&v.hide();if(i||n.isClosed){n.isClosed=true;n.isHidden=true;p.hide();J(B[f].dir=="horz"?"all":"center");ia(f, k.onhide_end||k.onhide)}else{n.isHiding=true;g(f,false)}}},O=function(f,i){var k=H[f],n=P[f],p=pa[f];if(Q[f]&&n.isHidden)if(false!==ia(f,k.onshow_start)){n.isSliding=false;n.isShowing=true;p&&k.spacing_open>0&&p.show();i===false?g(f,true):j(f)}},ra=function(f){var i=P[f];if(i.isHidden)O(f);else i.isClosed?j(f):g(f)},g=function(f,i,k){function n(){t(f,true);na||ia(f,w.onclose_end||w.onclose);if(na)ia(f,w.onshow_end||w.onshow);if(sa)ia(f,w.onhide_end||w.onhide);xa(f)}var p=Q[f],v=pa[f],A=Aa[f],w=H[f], G=P[f];k=!k&&!G.isClosed&&w.fxName_close!="none";var E=B[f].edge,C=w.resizerClass,V=w.togglerClass,ca="-"+f,na=G.isShowing,sa=G.isHiding;delete G.isShowing;delete G.isHiding;if(!(!p||!w.resizable&&!w.closable))if(!(!i&&G.isClosed&&!na))if(B.isLayoutBusy)ya("close",f,i);else if(!(!na&&false===ia(f,w.onclose_start))){B[f].isMoving=true;B.isLayoutBusy=true;G.isClosed=true;if(sa)G.isHidden=true;else if(na)G.isHidden=false;ua(f,false);G.isSliding||J(B[f].dir=="horz"?"all":"center");if(v){v.css(E,R[E]).removeClass(C+ "-open "+C+ca+"-open").removeClass(C+"-sliding "+C+ca+"-sliding").addClass(C+"-closed "+C+ca+"-closed");w.resizable&&v.draggable("disable").css("cursor","default").attr("title","");A&&A.removeClass(V+"-open "+V+ca+"-open").addClass(V+"-closed "+V+ca+"-closed").attr("title",w.togglerTip_closed);oa()}if(k){m(f,true);p.hide(w.fxName_close,w.fxSettings_close,w.fxSpeed_close,function(){m(f,false);G.isClosed&&n()})}else{p.hide();n()}}},j=function(f,i,k){function n(){G.isSliding||J(B[f].dir=="vert"?"center": "all");if(v){v.css(E,R[E]+b(f)).removeClass(C+sa+" "+C+ca+sa).addClass(C+na+" "+C+ca+na).addClass(!G.isSliding?"":C+Da+" "+C+ca+Da);w.resizable?v.draggable("enable").css("cursor",w.resizerCursor).attr("title",w.resizerTip):v.css("cursor","default");A&&A.removeClass(V+sa+" "+V+ca+sa).addClass(V+na+" "+V+ca+na).attr("title",w.togglerTip_open);oa("all")}ga(f);ua(f,!G.isSliding);ia(f,w.onopen_end||w.onopen);if(Ca)ia(f,w.onshow_end||w.onshow);xa(f)}var p=Q[f],v=pa[f],A=Aa[f],w=H[f],G=P[f];k=!k&&G.isClosed&& w.fxName_open!="none";var E=B[f].edge,C=w.resizerClass,V=w.togglerClass,ca="-"+f,na="-open",sa="-closed",Da="-sliding",Ca=G.isShowing;delete G.isShowing;if(!(!p||!w.resizable&&!w.closable))if(G.isClosed||G.isSliding)if(G.isHidden&&!Ca)O(f,true);else if(B.isLayoutBusy)ya("open",f,i);else if(false!==ia(f,w.onopen_start)){B[f].isMoving=true;B.isLayoutBusy=true;G.isSliding&&!i&&y(f,false);G.isClosed=false;if(Ca)G.isHidden=false;c(f);G.size>G.maxSize&&p.css(B[f].sizeType,Z(1,ta(f,G.maxSize)));t(f,false); if(k){m(f,true);p.show(w.fxName_open,w.fxSettings_open,w.fxSpeed_open,function(){m(f,false);G.isClosed||n()})}else{p.show();n()}}},m=function(f,i){var k=Q[f];if(i){k.css({zIndex:B.zIndex.animation});if(f=="south")k.css({top:R.top+R.innerHeight-k.outerHeight()});else f=="east"&&k.css({left:R.left+R.innerWidth-k.outerWidth()})}else{P[f].isSliding||k.css({zIndex:B.zIndex.pane_normal});if(f=="south")k.css({top:"auto"});else f=="east"&&k.css({left:"auto"})}},t=function(f,i){var k=H[f];f=pa[f];var n=k.slideTrigger_open; if(f&&k.slidable){if(n!="click"&&n!="dblclick"&&n!="mouseover")n="click";f[i?"bind":"unbind"](n,z).css("cursor",i?k.sliderCursor:"default").attr("title",i?k.sliderTip:"")}},y=function(f,i){function k(A){q(f,"closeSlider");A.stopPropagation()}var n=H[f].slideTrigger_close,p=Q[f],v=pa[f];P[f].isSliding=i;q(f,"closeSlider");p.css({zIndex:i?B.zIndex.sliding:B.zIndex.pane_normal});v.css({zIndex:i?B.zIndex.sliding:B.zIndex.resizer_normal});if(n!="click"&&n!="mouseout")n="mouseout";if(i){p.bind(n,K);v.bind(n, K);if(n="mouseout"){p.bind("mouseover",k);v.bind("mouseover",k)}}else{p.unbind(n);v.unbind(n);if(n="mouseout"){p.unbind("mouseover");v.unbind("mouseover");q(f,"closeSlider")}}},z=function(){var f=r(this).attr("resizer");if(P[f].isClosed){y(f,true);j(f,true)}},K=function(){function f(){y(k,false);n.isClosed||g(k)}var i=r(this),k=i.attr("pane")||i.attr("resizer");i=H[k];var n=P[k];n.isClosed||n.isResizing||(i.slideTrigger_close=="click"?f():l(k,"closeSlider",f,300))},fa=function(f,i){var k=B[f].edge, n=B[f].dir,p=H[f],v=P[f],A=Q[f],w=pa[f];c(f);v.minSize=Z(v.minSize,p.minSize);if(p.maxSize>0)v.maxSize=U(v.maxSize,p.maxSize);i=Z(i,v.minSize);i=U(i,v.maxSize);v.size=i;w.css(k,i+R[k]);A.css(B[f].sizeType,Z(1,ta(f,i)));v.isSliding||J(n=="horz"?"all":"center");oa();ga(f);ia(f,p.onresize_end||p.onresize)},J=function(f,i,k){if(!f||f=="all")f="east,west,center";var n=e();i&&r.extend(n,i);r.each(f.split(","),function(){if(Q[this]){var p=Y(this),v=H[p],A=P[p],w=Q[p],G=pa[p],E=true,C={};if(p=="center"){n= e();C=r.extend({},n);C.width=Z(1,aa(p,C.width));C.height=Z(1,W(p,C.height));E=C.width>1&&C.height>1;if(r.browser.msie&&(!r.boxModel||r.browser.version<7)){Q.north&&Q.north.css({width:aa(Q.north,R.innerWidth)});Q.south&&Q.south.css({width:aa(Q.south,R.innerWidth)})}}else{C.top=n.top;C.bottom=n.bottom;C.height=Z(1,W(p,n.height));E=C.height>1}if(E){w.css(C);if(A.noRoom){A.noRoom=false;if(A.isHidden)return;else O(p,!A.isClosed)}if(!k){ga(p);ia(p,v.onresize_end||v.onresize)}}else if(!A.noRoom){A.noRoom= true;if(!A.isHidden)if(k){w.hide();G&&G.hide()}else ma(p)}}})},ga=function(f){if(!f||f=="all")f=B.allPanes;r.each(f.split(","),function(){if(va[this]){var i=Y(this),k=H[i].contentIgnoreSelector,n=Q[i];i=va[i];var p=i[0],v=W(n);n.children().each(function(){if(this!=p){var A=r(this);if(!k||!A.is(k))v-=A.outerHeight()}});if(v>0)v=W(i,v);v<1?i.hide():i.css({height:v}).show()}})},oa=function(f,i){if(!f||f=="all")f=B.borderPanes;r.each(f.split(","),function(){var k=Y(this),n=H[k],p=P[k],v=Q[k],A=pa[k], w=Aa[k];if(!(!v||!A||!n.resizable&&!n.closable)){var G=B[k].dir,E=p.isClosed?"_closed":"_open";k=n["spacing"+E];var C=n["togglerAlign"+E];E=n["togglerLength"+E];var V;if(k==0)A.hide();else{!p.noRoom&&!p.isHidden&&A.show();if(G=="horz"){V=v.outerWidth();A.css({width:Z(1,aa(A,V)),height:Z(1,W(A,k)),left:ea(v,"left")})}else{V=v.outerHeight();A.css({height:Z(1,W(A,V)),width:Z(1,aa(A,k)),top:R.top+b("north",true)})}if(w){if(E==0||p.isSliding&&n.hideTogglerOnSlide){w.hide();return}else w.show();if(!(E> 0)||E=="100%"||E>V){E=V;v=0}else if(typeof C=="string")switch(C){case "top":case "left":v=0;break;case "bottom":case "right":v=V-E;break;case "middle":case "center":default:v=Math.floor((V-E)/2)}else{v=parseInt(C);v=C>=0?v:V-E+v}V=n.togglerContent_open?w.children(".content-open"):false;var ca=n.togglerContent_closed?w.children(".content-closed"):false;C=p.isClosed?ca:V;if(V)V.css("display",p.isClosed?"none":"block");if(ca)ca.css("display",p.isClosed?"block":"none");if(G=="horz"){p=aa(w,E);w.css({width:Z(0, p),height:Z(1,W(w,k)),left:v});C&&C.css("marginLeft",Math.floor((p-C.outerWidth())/2))}else{p=W(w,E);w.css({height:Z(0,p),width:Z(1,aa(w,k)),top:v});C&&C.css("marginTop",Math.floor((p-C.outerHeight())/2))}}if(i&&n.initHidden){A.hide();w&&w.hide()}}}})},Ba=function(){var f=R.innerWidth,i=R.innerHeight;R=P.container=h(ja);var k=R.innerHeight p.maxSize&&fa(w,p.maxSize)}});J("all");oa("all")},ja=r(this).css({overflow:"hidden"}),Q={},va={},pa={},Aa={},B={allPanes:"north,south,east,west,center",borderPanes:"north,south,east,west",zIndex:{resizer_normal:1,pane_normal:2,mask:4,sliding:100,resizing:1E4,animation:1E4},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden",zIndex:1},cssDef:{background:"#DDD",border:"none"}},togglers:{cssReq:{position:"absolute",display:"block",padding:0,margin:0, overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDef:{background:"#AAA"}},content:{cssReq:{overflow:"auto"},cssDef:{}},defaults:{cssReq:{position:"absolute",margin:0,zIndex:2},cssDef:{padding:"10px",background:"#FFF",border:"1px solid #BBB",overflow:"auto"}},north:{edge:"top",sizeType:"height",dir:"horz",cssReq:{top:0,bottom:"auto",left:0,right:0,width:"auto"}},south:{edge:"bottom",sizeType:"height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"}}, east:{edge:"right",sizeType:"width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"}},west:{edge:"left",sizeType:"width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",bottom:"auto",height:"auto"}},center:{dir:"center",cssReq:{left:"auto",right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}},R=P.container;(function(){T();u();da();ba();la();ga("all");if(H.scrollToBookmarkOnLoad)with(self.location)hash&&replace(hash);x();r(window).resize(function(){var f= "timerLayout_"+P.id;window[f]&&clearTimeout(window[f]);window[f]=null;window[f]=setTimeout(Ba,100)})})();return{options:H,state:P,panes:Q,toggle:ra,open:j,close:g,hide:ma,show:O,resizeContent:ga,sizePane:fa,resizeAll:Ba,addToggleBtn:I,addOpenBtn:ha,addCloseBtn:S,addPinBtn:N,allowOverflow:D,resetOverflow:F,cssWidth:aa,cssHeight:W}}})(jQuery);