(function(){function d(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 h(){return+new Date}function l(a,b){return a[0]&&parseInt(c.curCSS(a[0],b,true),10)||0}function k(){return false}function i(){return true}function o(a){var b=RegExp("(^|\\.)"+a.type+"(\\.|$)"),e=true,g=[];c.each(c.data(this,"events").live||[],function(m,p){if(b.test(p.type))(m=c(a.target).closest(p.data)[0])&&g.push({elem:m,
fn:p})});g.sort(function(m,p){return c.data(m.elem,"closest")-c.data(p.elem,"closest")});c.each(g,function(){if(this.fn.call(this.elem,a,this.fn.data)===false)return e=false});return e}function t(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function q(){if(!V){V=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);c.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);c.ready()}});document.documentElement.doScroll&&x==x.top&&function(){if(!c.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}c.ready()}}()}c.event.add(x,"load",c.ready)}}function A(a,b){var e={};c.each(W.concat.apply([],W.slice(0,b)),function(){e[this]=a});return e}var x=this,N=x.jQuery,O=x.$,c=x.jQuery=x.$=function(a,b){return new c.fn.init(a,
b)},ba=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ca=/^.[^:#\[\.,]*$/;c.fn=c.prototype={init:function(a,b){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var e=ba.exec(a);if(e&&(e[1]||!b))if(e[1])a=c.clean([e[1]],b);else{if((b=document.getElementById(e[3]))&&b.id!=e[3])return c().find(a);e=c(b||[]);e.context=document;e.selector=a;return e}else return c(b).find(a)}else if(c.isFunction(a))return c(document).ready(a);if(a.selector&&a.context){this.selector=
a.selector;this.context=a.context}return this.setArray(c.isArray(a)?a:c.makeArray(a))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===void 0?Array.prototype.slice.call(this):this[a]},pushStack:function(a,b,e){a=c(a);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+e;else if(b)a.selector=this.selector+"."+b+"("+e+")";return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},
each:function(a,b){return c.each(this,a,b)},index:function(a){return c.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,b,e){var g=a;if(typeof a==="string")if(b===void 0)return this[0]&&c[e||"attr"](this[0],a);else{g={};g[a]=b}return this.each(function(m){for(a in g)c.attr(e?this.style:this,a,c.prop(this,g[a],e,m,a))})},css:function(a,b){if((a=="width"||a=="height")&&parseFloat(b)<0)b=void 0;return this.attr(a,b,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(a));var b="";c.each(a||this,function(){c.each(this.childNodes,function(){if(this.nodeType!=8)b+=this.nodeType!=1?this.nodeValue:c.fn.text([this])})});return b},wrapAll:function(a){if(this[0]){a=c(a,this[0].ownerDocument).clone();this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var b=this;b.firstChild;)b=b.firstChild;return b}).append(this)}return this},wrapInner:function(a){return this.each(function(){c(this).contents().wrapAll(a)})},
wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},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(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,
this.nextSibling)})},end:function(){return this.prevObject||c([])},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(this.length===1){var b=this.pushStack([],"find",a);b.length=0;c.find(a,this[0],b);return b}else return this.pushStack(c.unique(c.map(this,function(e){return c.find(a,e)})),"find",a)},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var m=this.outerHTML;if(!m){m=this.ownerDocument.createElement("div");m.appendChild(this.cloneNode(true));
m=m.innerHTML}return c.clean([m.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(a===true){var e=this.find("*").andSelf(),g=0;b.find("*").andSelf().each(function(){if(this.nodeName===e[g].nodeName){var m=c.data(e[g],"events");for(var p in m)for(var s in m[p])c.event.add(this,p,m[p][s],m[p][s].data);g++}})}return b},filter:function(a){return this.pushStack(c.isFunction(a)&&c.grep(this,function(b,e){return a.call(b,e)})||c.multiFilter(a,c.grep(this,
function(b){return b.nodeType===1})),"filter",a)},closest:function(a){var b=c.expr.match.POS.test(a)?c(a):null,e=0;return this.map(function(){for(var g=this;g&&g.ownerDocument;){if(b?b.index(g)>-1:c(g).is(a)){c.data(g,"closest",e);return g}g=g.parentNode;e++}})},not:function(a){if(typeof a==="string")if(ca.test(a))return this.pushStack(c.multiFilter(a,this,true),"not",a);else a=c.multiFilter(a,this);var b=a.length&&a[a.length-1]!==void 0&&!a.nodeType;return this.filter(function(){return b?c.inArray(this,
a)<0:this!=a})},add:function(a){return this.pushStack(c.unique(c.merge(this.get(),typeof a==="string"?c(a):c.makeArray(a))))},is:function(a){return!!a&&c.multiFilter(a,this).length>0},hasClass:function(a){return!!a&&this.is("."+a)},val:function(a){if(a===void 0){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 e=b.selectedIndex,g=[],m=b.options;b=b.type=="select-one";if(e<0)return null;var p=b?e:0;for(e=b?e+1:m.length;p<
e;p++){var s=m[p];if(s.selected){a=c(s).val();if(b)return a;g.push(a)}}return g}return(b.value||"").replace(/\r/g,"")}}else{if(typeof a==="number")a+="";return this.each(function(){if(this.nodeType==1)if(c.isArray(a)&&/radio|checkbox/.test(this.type))this.checked=c.inArray(this.value,a)>=0||c.inArray(this.name,a)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(a);c("option",this).each(function(){this.selected=c.inArray(this.value,u)>=0||c.inArray(this.text,u)>=0});if(!u.length)this.selectedIndex=
-1}else this.value=a})}},html:function(a){return a===void 0?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,e){return a.call(b,e,b)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(a,b,e){function g(C,E){return b&&c.nodeName(C,"table")&&c.nodeName(E,"tr")?C.getElementsByTagName("tbody")[0]||C.appendChild(C.ownerDocument.createElement("tbody")):C}if(this[0]){var m=(this[0].ownerDocument||this[0]).createDocumentFragment();a=c.clean(a,this[0].ownerDocument||this[0],m);var p=m.firstChild;if(p)for(var s=0,u=this.length;s<u;s++)e.call(g(this[s],p),this.length>1||s>0?m.cloneNode(true):m);a&&c.each(a,d)}return this}};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=
arguments[0]||{},b=1,e=arguments.length,g=false,m;if(typeof a==="boolean"){g=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(e==b){a=this;--b}for(;b<e;b++)if((m=arguments[b])!=null)for(var p in m){var s=a[p],u=m[p];if(a!==u)if(g&&u&&typeof u==="object"&&!u.nodeType)a[p]=c.extend(g,s||(u.length!=null?[]:{}),u);else if(u!==void 0)a[p]=u}return a};var da=/z-?index|font-?weight|opacity|zoom|line-?height/i,X=document.defaultView||{},Y=Object.prototype.toString;c.extend({noConflict:function(a){x.$=
O;if(a)x.jQuery=N;return c},isFunction:function(a){return Y.call(a)==="[object Function]"},isArray:function(a){return Y.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&c.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,e=document.createElement("script");e.type="text/javascript";if(c.support.scriptEval)e.appendChild(document.createTextNode(a));
else e.text=a;b.insertBefore(e,b.firstChild);b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(a,b,e){var g,m=0,p=a.length;if(e)if(p===void 0)for(g in a){if(b.apply(a[g],e)===false)break}else for(;m<p;){if(b.apply(a[m++],e)===false)break}else if(p===void 0)for(g in a){if(b.call(a[g],g,a[g])===false)break}else for(e=a[0];m<p&&b.call(e,m,e)!==false;e=a[++m]);return a},prop:function(a,b,e,g,m){if(c.isFunction(b))b=b.call(a,g);return typeof b===
"number"&&e=="curCSS"&&!da.test(m)?b+"px":b},className:{add:function(a,b){c.each((b||"").split(/\s+/),function(e,g){if(a.nodeType==1&&!c.className.has(a.className,g))a.className+=(a.className?" ":"")+g})},remove:function(a,b){if(a.nodeType==1)a.className=b!==void 0?c.grep(a.className.split(/\s+/),function(e){return!c.className.has(b,e)}).join(" "):""},has:function(a,b){return a&&c.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(a,b,e){var g={};for(var m in b){g[m]=a.style[m];
a.style[m]=b[m]}e.call(a);for(m in b)a.style[m]=g[m]},css:function(a,b,e,g){if(b=="width"||b=="height"){var m;e={position:"absolute",visibility:"hidden",display:"block"};var p=b=="width"?["Left","Right"]:["Top","Bottom"],s=function(){m=b=="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&c.each(p,function(){g||(m-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(g==="margin")m+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else m-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==
0?s():c.swap(a,e,s);return Math.max(0,Math.round(m))}return c.curCSS(a,b,e)},curCSS:function(a,b,e){var g,m=a.style;if(b=="opacity"&&!c.support.opacity){g=c.attr(m,"opacity");return g==""?"1":g}if(b.match(/float/i))b=Q;if(!e&&m&&m[b])g=m[b];else if(X.getComputedStyle){if(b.match(/float/i))b="float";b=b.replace(/([A-Z])/g,"-$1").toLowerCase();if(a=X.getComputedStyle(a,null))g=a.getPropertyValue(b);if(b=="opacity"&&g=="")g="1"}else if(a.currentStyle){g=b.replace(/\-(\w)/g,function(p,s){return s.toUpperCase()});
g=a.currentStyle[b]||a.currentStyle[g];if(!/^\d+(px)?$/i.test(g)&&/^\d/.test(g)){b=m.left;e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;m.left=g||0;g=m.pixelLeft+"px";m.left=b;a.runtimeStyle.left=e}}return g},clean:function(a,b,e){b=b||document;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||document;if(!e&&a.length===1&&typeof a[0]==="string"){var g=/^<(\w+)\s*\/?>$/.exec(a[0]);if(g)return[b.createElement(g[1])]}var m=[];g=[];var p=b.createElement("div");
c.each(a,function(s,u){if(typeof u==="number")u+="";if(u){if(typeof u==="string"){u=u.replace(/(<(\w+)[^>]*?)\/>/g,function(D,G,I){return I.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?D:G+"></"+I+">"});s=u.replace(/^\s+/,"").substring(0,10).toLowerCase();var C=!s.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||s.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>",
"</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!c.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(p.innerHTML=C[1]+u+C[2];C[0]--;)p=p.lastChild;if(!c.support.tbody){var E=/<tbody/i.test(u);s=!s.indexOf("<table")&&!E?p.firstChild&&p.firstChild.childNodes:C[1]=="<table>"&&!E?p.childNodes:[];for(C=s.length-1;C>=0;--C)c.nodeName(s[C],"tbody")&&
!s[C].childNodes.length&&s[C].parentNode.removeChild(s[C])}!c.support.leadingWhitespace&&/^\s/.test(u)&&p.insertBefore(b.createTextNode(u.match(/^\s*/)[0]),p.firstChild);u=c.makeArray(p.childNodes)}if(u.nodeType)m.push(u);else m=c.merge(m,u)}});if(e){for(a=0;m[a];a++)if(c.nodeName(m[a],"script")&&(!m[a].type||m[a].type.toLowerCase()==="text/javascript"))g.push(m[a].parentNode?m[a].parentNode.removeChild(m[a]):m[a]);else{m[a].nodeType===1&&m.splice.apply(m,[a+1,0].concat(c.makeArray(m[a].getElementsByTagName("script"))));
e.appendChild(m[a])}return g}return m},attr:function(a,b,e){if(!(!a||a.nodeType==3||a.nodeType==8)){var g=!c.isXMLDoc(a),m=e!==void 0;b=g&&c.props[b]||b;if(a.tagName){var p=/href|src|style/.test(b);if(b in a&&g&&!p){if(m){if(b=="type"&&c.nodeName(a,"input")&&a.parentNode)throw"type property can't be changed";a[b]=e}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:a.nodeName.match(/(button|input|object|select|textarea)/i)?
0:a.nodeName.match(/^(a|area)$/i)&&a.href?0:void 0;return a[b]}if(!c.support.style&&g&&b=="style")return c.attr(a.style,"cssText",e);m&&a.setAttribute(b,""+e);a=!c.support.hrefNormalized&&g&&p?a.getAttribute(b,2):a.getAttribute(b);return a===null?void 0:a}if(!c.support.opacity&&b=="opacity"){if(m){a.zoom=1;a.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")}return a.filter&&a.filter.indexOf("opacity=")>=0?parseFloat(a.filter.match(/opacity=([^)]*)/)[1])/
100+"":""}b=b.replace(/-([a-z])/ig,function(s,u){return u.toUpperCase()});if(m)a[b]=e;return a[b]}},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var b=[];if(a!=null){var e=a.length;if(e==null||typeof a==="string"||c.isFunction(a)||a.setInterval)b[0]=a;else for(;e;)b[--e]=a[e]}return b},inArray:function(a,b){for(var e=0,g=b.length;e<g;e++)if(b[e]===a)return e;return-1},merge:function(a,b){var e=0,g,m=a.length;if(c.support.getAll)for(;(g=b[e++])!=null;)a[m++]=g;else for(;(g=
b[e++])!=null;)if(g.nodeType!=8)a[m++]=g;return a},unique:function(a){var b=[],e={};try{for(var g=0,m=a.length;g<m;g++){var p=c.data(a[g]);if(!e[p]){e[p]=true;b.push(a[g])}}}catch(s){b=a}return b},grep:function(a,b,e){for(var g=[],m=0,p=a.length;m<p;m++)!e!=!b(a[m],m)&&g.push(a[m]);return g},map:function(a,b){for(var e=[],g=0,m=a.length;g<m;g++){var p=b(a[g],g);if(p!=null)e[e.length]=p}return e.concat.apply([],e)}});var M=navigator.userAgent.toLowerCase();c.browser={version:(M.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(M),opera:/opera/.test(M),msie:/msie/.test(M)&&!/opera/.test(M),mozilla:/mozilla/.test(M)&&!/(compatible|webkit)/.test(M)};c.each({parent:function(a){return a.parentNode},parents:function(a){return c.dir(a,"parentNode")},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")},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(e){var g=c.map(this,b);if(e&&typeof e=="string")g=c.multiFilter(e,g);return this.pushStack(c.unique(g),a,e)}});c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(e){for(var g=[],m=c(e),p=0,s=m.length;p<
s;p++){var u=(p>0?this.clone(true):this).get();c.fn[b].apply(c(m[p]),u);g=g.concat(u)}return this.pushStack(g,a,e)}});c.each({removeAttr:function(a){c.attr(this,a,"");this.nodeType==1&&this.removeAttribute(a)},addClass:function(a){c.className.add(this,a)},removeClass:function(a){c.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean")b=!c.className.has(this,a);c.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||c.filter(a,[this]).length){c("*",this).add([this]).each(function(){c.event.remove(this);
c.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(c(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(a,b){c.fn[a]=function(){return this.each(b,arguments)}});var K="jQuery"+h(),ea=0,Z={};c.extend({cache:{},data:function(a,b,e){a=a==x?Z:a;var g=a[K];g||(g=a[K]=++ea);if(b&&!c.cache[g])c.cache[g]={};if(e!==void 0)c.cache[g][b]=e;return b?c.cache[g][b]:g},removeData:function(a,b){a=a==x?Z:a;var e=a[K];if(b){if(c.cache[e]){delete c.cache[e][b];
b="";for(b in c.cache[e])break;b||c.removeData(a)}}else{try{delete a[K]}catch(g){a.removeAttribute&&a.removeAttribute(K)}delete c.cache[e]}},queue:function(a,b,e){if(a){b=(b||"fx")+"queue";var g=c.data(a,b);if(!g||c.isArray(e))g=c.data(a,b,c.makeArray(e));else e&&g.push(e)}return g},dequeue:function(a,b){var e=c.queue(a,b),g=e.shift();if(!b||b==="fx")g=e[0];g!==void 0&&g.call(a)}});c.fn.extend({data:function(a,b){var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===void 0){var g=this.triggerHandler("getData"+
e[1]+"!",[e[0]]);if(g===void 0&&this.length)g=c.data(this[0],a);return g===void 0&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})},queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===void 0)return c.queue(this[0],a);return this.each(function(){var e=c.queue(this,a,b);a=="fx"&&e.length==1&&e[0].call(this)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
a)})}});(function(){function a(f,j,n,r,v,w){v=f=="previousSibling"&&!w;for(var y=0,F=r.length;y<F;y++){var z=r[y];if(z){if(v&&z.nodeType===1){z.sizcache=n;z.sizset=y}z=z[f];for(var H=false;z;){if(z.sizcache===n){H=r[z.sizset];break}if(z.nodeType===1&&!w){z.sizcache=n;z.sizset=y}if(z.nodeName===j){H=z;break}z=z[f]}r[y]=H}}}function b(f,j,n,r,v,w){v=f=="previousSibling"&&!w;for(var y=0,F=r.length;y<F;y++){var z=r[y];if(z){if(v&&z.nodeType===1){z.sizcache=n;z.sizset=y}z=z[f];for(var H=false;z;){if(z.sizcache===
n){H=r[z.sizset];break}if(z.nodeType===1){if(!w){z.sizcache=n;z.sizset=y}if(typeof j!=="string"){if(z===j){H=true;break}}else if(p.filter(j,[z]).length>0){H=z;break}}z=z[f]}r[y]=H}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,g=0,m=Object.prototype.toString,p=function(f,j,n,r){n=n||[];j=j||document;if(j.nodeType!==1&&j.nodeType!==9)return[];if(!f||typeof f!=="string")return n;var v=[],w,y,F,z=true;for(e.lastIndex=0;(w=
e.exec(f))!==null;){v.push(w[1]);if(w[2]){F=RegExp.rightContext;break}}if(v.length>1&&u.exec(f))if(v.length===2&&s.relative[v[0]])w=L(v[0]+v[1],j);else for(w=s.relative[v[0]]?[j]:p(v.shift(),j);v.length;){f=v.shift();if(s.relative[f])f+=v.shift();w=L(f,w)}else{w=r?{expr:v.pop(),set:E(r)}:p.find(v.pop(),v.length===1&&j.parentNode?j.parentNode:j,B(j));w=p.filter(w.expr,w.set);if(v.length>0)y=E(w);else z=false;for(;v.length;){var H=v.pop(),J=H;if(s.relative[H])J=v.pop();else H="";if(J==null)J=j;s.relative[H](y,
J,B(j))}}y||(y=w);if(!y)throw"Syntax error, unrecognized expression: "+(H||f);if(m.call(y)==="[object Array]")if(z)if(j.nodeType===1)for(f=0;y[f]!=null;f++){if(y[f]&&(y[f]===true||y[f].nodeType===1&&I(j,y[f])))n.push(w[f])}else for(f=0;y[f]!=null;f++)y[f]&&y[f].nodeType===1&&n.push(w[f]);else n.push.apply(n,y);else E(y,n);if(F){p(F,j,n,r);if(G){hasDuplicate=false;n.sort(G);if(hasDuplicate)for(f=1;f<n.length;f++)n[f]===n[f-1]&&n.splice(f--,1)}}return n};p.matches=function(f,j){return p(f,null,null,
j)};p.find=function(f,j,n){var r,v;if(!f)return[];for(var w=0,y=s.order.length;w<y;w++){var F=s.order[w];if(v=s.match[F].exec(f)){var z=RegExp.leftContext;if(z.substr(z.length-1)!=="\\"){v[1]=(v[1]||"").replace(/\\/g,"");r=s.find[F](v,j,n);if(r!=null){f=f.replace(s.match[F],"");break}}}}r||(r=j.getElementsByTagName("*"));return{set:r,expr:f}};p.filter=function(f,j,n,r){for(var v=f,w=[],y=j,F,z,H=j&&j[0]&&B(j[0]);f&&j.length;){for(var J in s.filter)if((F=s.match[J].exec(f))!=null){var fa=s.filter[J],
P,R;z=false;if(y==w)w=[];if(s.preFilter[J])if(F=s.preFilter[J](F,y,n,w,r,H)){if(F===true)continue}else z=P=true;if(F)for(var S=0;(R=y[S])!=null;S++)if(R){P=fa(R,F,S,y);var $=r^!!P;if(n&&P!=null)if($)z=true;else y[S]=false;else if($){w.push(R);z=true}}if(P!==void 0){n||(y=w);f=f.replace(s.match[J],"");if(!z)return[];break}}if(f==v)if(z==null)throw"Syntax error, unrecognized expression: "+f;else break;v=f}return y};var s=p.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(f){return f.getAttribute("href")}},
relative:{"+":function(f,j,n){var r=typeof j==="string",v=r&&!/\W/.test(j);r=r&&!v;if(v&&!n)j=j.toUpperCase();n=0;v=f.length;for(var w;n<v;n++)if(w=f[n]){for(;(w=w.previousSibling)&&w.nodeType!==1;);f[n]=r||w&&w.nodeName===j?w||false:w===j}r&&p.filter(j,f,true)},">":function(f,j,n){var r=typeof j==="string";if(r&&!/\W/.test(j)){j=n?j:j.toUpperCase();n=0;for(var v=f.length;n<v;n++){var w=f[n];if(w){r=w.parentNode;f[n]=r.nodeName===j?r:false}}}else{n=0;for(v=f.length;n<v;n++)if(w=f[n])f[n]=r?w.parentNode:
w.parentNode===j;r&&p.filter(j,f,true)}},"":function(f,j,n){var r=g++,v=b;if(!j.match(/\W/)){var w=j=n?j:j.toUpperCase();v=a}v("parentNode",j,r,f,w,n)},"~":function(f,j,n){var r=g++,v=b;if(typeof j==="string"&&!j.match(/\W/)){var w=j=n?j:j.toUpperCase();v=a}v("previousSibling",j,r,f,w,n)}},find:{ID:function(f,j,n){if(typeof j.getElementById!=="undefined"&&!n)return(f=j.getElementById(f[1]))?[f]:[]},NAME:function(f,j){if(typeof j.getElementsByName!=="undefined"){var n=[];j=j.getElementsByName(f[1]);
for(var r=0,v=j.length;r<v;r++)j[r].getAttribute("name")===f[1]&&n.push(j[r]);return n.length===0?null:n}},TAG:function(f,j){return j.getElementsByTagName(f[1])}},preFilter:{CLASS:function(f,j,n,r,v,w){f=" "+f[1].replace(/\\/g,"")+" ";if(w)return f;w=0;for(var y;(y=j[w])!=null;w++)if(y)if(v^(y.className&&(" "+y.className+" ").indexOf(f)>=0))n||r.push(y);else if(n)j[w]=false;return false},ID:function(f){return f[1].replace(/\\/g,"")},TAG:function(f,j){for(var n=0;j[n]===false;n++);return j[n]&&B(j[n])?
f[1]:f[1].toUpperCase()},CHILD:function(f){if(f[1]=="nth"){var j=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(f[2]=="even"&&"2n"||f[2]=="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=j[1]+(j[2]||1)-0;f[3]=j[3]-0}f[0]=g++;return f},ATTR:function(f,j,n,r,v,w){j=f[1].replace(/\\/g,"");if(!w&&s.attrMap[j])f[1]=s.attrMap[j];if(f[2]==="~=")f[4]=" "+f[4]+" ";return f},PSEUDO:function(f,j,n,r,v){if(f[1]==="not")if(f[3].match(e).length>1||/^\w/.test(f[3]))f[3]=p(f[3],null,null,j);else{f=p.filter(f[3],j,n,true^
v);n||r.push.apply(r,f);return false}else if(s.match.POS.test(f[0])||s.match.CHILD.test(f[0]))return true;return f},POS:function(f){f.unshift(true);return f}},filters:{enabled:function(f){return f.disabled===false&&f.type!=="hidden"},disabled:function(f){return f.disabled===true},checked:function(f){return f.checked===true},selected:function(f){return f.selected===true},parent:function(f){return!!f.firstChild},empty:function(f){return!f.firstChild},has:function(f,j,n){return!!p(n[3],f).length},header:function(f){return/h\d/i.test(f.nodeName)},
text:function(f){return"text"===f.type},radio:function(f){return"radio"===f.type},checkbox:function(f){return"checkbox"===f.type},file:function(f){return"file"===f.type},password:function(f){return"password"===f.type},submit:function(f){return"submit"===f.type},image:function(f){return"image"===f.type},reset:function(f){return"reset"===f.type},button:function(f){return"button"===f.type||f.nodeName.toUpperCase()==="BUTTON"},input:function(f){return/input|select|textarea|button/i.test(f.nodeName)}},
setFilters:{first:function(f,j){return j===0},last:function(f,j,n,r){return j===r.length-1},even:function(f,j){return j%2===0},odd:function(f,j){return j%2===1},lt:function(f,j,n){return j<n[3]-0},gt:function(f,j,n){return j>n[3]-0},nth:function(f,j,n){return n[3]-0==j},eq:function(f,j,n){return n[3]-0==j}},filter:{PSEUDO:function(f,j,n,r){var v=j[1],w=s.filters[v];if(w)return w(f,n,j,r);else if(v==="contains")return(f.textContent||f.innerText||"").indexOf(j[3])>=0;else if(v==="not"){j=j[3];n=0;for(r=
j.length;n<r;n++)if(j[n]===f)return false;return true}},CHILD:function(f,j){var n=j[1],r=f;switch(n){case "only":case "first":for(;r=r.previousSibling;)if(r.nodeType===1)return false;if(n=="first")return true;r=f;case "last":for(;r=r.nextSibling;)if(r.nodeType===1)return false;return true;case "nth":n=j[2];var v=j[3];if(n==1&&v==0)return true;j=j[0];var w=f.parentNode;if(w&&(w.sizcache!==j||!f.nodeIndex)){var y=0;for(r=w.firstChild;r;r=r.nextSibling)if(r.nodeType===1)r.nodeIndex=++y;w.sizcache=j}f=
f.nodeIndex-v;return n==0?f==0:f%n==0&&f/n>=0}},ID:function(f,j){return f.nodeType===1&&f.getAttribute("id")===j},TAG:function(f,j){return j==="*"&&f.nodeType===1||f.nodeName===j},CLASS:function(f,j){return(" "+(f.className||f.getAttribute("class"))+" ").indexOf(j)>-1},ATTR:function(f,j){var n=j[1];f=s.attrHandle[n]?s.attrHandle[n](f):f[n]!=null?f[n]:f.getAttribute(n);n=f+"";var r=j[2];j=j[4];return f==null?r==="!=":r==="="?n===j:r==="*="?n.indexOf(j)>=0:r==="~="?(" "+n+" ").indexOf(j)>=0:!j?n&&f!==
false:r==="!="?n!=j:r==="^="?n.indexOf(j)===0:r==="$="?n.substr(n.length-j.length)===j:r==="|="?n===j||n.substr(0,j.length+1)===j+"-":false},POS:function(f,j,n,r){var v=s.setFilters[j[2]];if(v)return v(f,n,j,r)}}},u=s.match.POS;for(var C in s.match)s.match[C]=RegExp(s.match[C].source+/(?![^\[]*\])(?![^\(]*\))/.source);var E=function(f,j){f=Array.prototype.slice.call(f);if(j){j.push.apply(j,f);return j}return f};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(D){E=function(f,
j){j=j||[];if(m.call(f)==="[object Array]")Array.prototype.push.apply(j,f);else if(typeof f.length==="number")for(var n=0,r=f.length;n<r;n++)j.push(f[n]);else for(n=0;f[n];n++)j.push(f[n]);return j}}var G;if(document.documentElement.compareDocumentPosition)G=function(f,j){f=f.compareDocumentPosition(j)&4?-1:f===j?0:1;if(f===0)hasDuplicate=true;return f};else if("sourceIndex"in document.documentElement)G=function(f,j){f=f.sourceIndex-j.sourceIndex;if(f===0)hasDuplicate=true;return f};else if(document.createRange)G=
function(f,j){var n=f.ownerDocument.createRange(),r=j.ownerDocument.createRange();n.selectNode(f);n.collapse(true);r.selectNode(j);r.collapse(true);f=n.compareBoundaryPoints(Range.START_TO_END,r);if(f===0)hasDuplicate=true;return f};(function(){var f=document.createElement("form"),j="script"+(new Date).getTime();f.innerHTML="<input name='"+j+"'/>";var n=document.documentElement;n.insertBefore(f,n.firstChild);if(document.getElementById(j)){s.find.ID=function(r,v,w){if(typeof v.getElementById!=="undefined"&&
!w)return(v=v.getElementById(r[1]))?v.id===r[1]||typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id").nodeValue===r[1]?[v]:void 0:[]};s.filter.ID=function(r,v){var w=typeof r.getAttributeNode!=="undefined"&&r.getAttributeNode("id");return r.nodeType===1&&w&&w.nodeValue===v}}n.removeChild(f)})();(function(){var f=document.createElement("div");f.appendChild(document.createComment(""));if(f.getElementsByTagName("*").length>0)s.find.TAG=function(j,n){n=n.getElementsByTagName(j[1]);if(j[1]===
"*"){j=[];for(var r=0;n[r];r++)n[r].nodeType===1&&j.push(n[r]);n=j}return n};f.innerHTML="<a href='#'></a>";if(f.firstChild&&typeof f.firstChild.getAttribute!=="undefined"&&f.firstChild.getAttribute("href")!=="#")s.attrHandle.href=function(j){return j.getAttribute("href",2)}})();document.querySelectorAll&&function(){var f=p,j=document.createElement("div");j.innerHTML="<p class='TEST'></p>";if(!(j.querySelectorAll&&j.querySelectorAll(".TEST").length===0)){p=function(n,r,v,w){r=r||document;if(!w&&r.nodeType===
9&&!B(r))try{return E(r.querySelectorAll(n),v)}catch(y){}return f(n,r,v,w)};p.find=f.find;p.filter=f.filter;p.selectors=f.selectors;p.matches=f.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var f=document.createElement("div");f.innerHTML="<div class='test e'></div><div class='test'></div>";if(f.getElementsByClassName("e").length!==0){f.lastChild.className="e";if(f.getElementsByClassName("e").length!==1){s.order.splice(1,0,"CLASS");s.find.CLASS=
function(j,n,r){if(typeof n.getElementsByClassName!=="undefined"&&!r)return n.getElementsByClassName(j[1])}}}}();var I=document.compareDocumentPosition?function(f,j){return f.compareDocumentPosition(j)&16}:function(f,j){return f!==j&&(f.contains?f.contains(j):true)},B=function(f){return f.nodeType===9&&f.documentElement.nodeName!=="HTML"||!!f.ownerDocument&&B(f.ownerDocument)},L=function(f,j){var n=[],r="",v;for(j=j.nodeType?[j]:j;v=s.match.PSEUDO.exec(f);){r+=v[0];f=f.replace(s.match.PSEUDO,"")}f=
s.relative[f]?f+"*":f;v=0;for(var w=j.length;v<w;v++)p(f,j[v],n);return p.filter(r,n)};c.find=p;c.filter=p.filter;c.expr=p.selectors;c.expr[":"]=c.expr.filters;p.selectors.filters.hidden=function(f){return f.offsetWidth===0||f.offsetHeight===0};p.selectors.filters.visible=function(f){return f.offsetWidth>0||f.offsetHeight>0};p.selectors.filters.animated=function(f){return c.grep(c.timers,function(j){return f===j.elem}).length};c.multiFilter=function(f,j,n){if(n)f=":not("+f+")";return p.matches(f,
j)};c.dir=function(f,j){var n=[];for(f=f[j];f&&f!=document;){f.nodeType==1&&n.push(f);f=f[j]}return n};c.nth=function(f,j,n){j=j||1;for(var r=0;f;f=f[n])if(f.nodeType==1&&++r==j)break;return f};c.sibling=function(f,j){for(var n=[];f;f=f.nextSibling)f.nodeType==1&&f!=j&&n.push(f);return n}})();c.event={add:function(a,b,e,g){if(!(a.nodeType==3||a.nodeType==8)){if(a.setInterval&&a!=x)a=x;if(!e.guid)e.guid=this.guid++;if(g!==void 0){e=this.proxy(e);e.data=g}var m=c.data(a,"events")||c.data(a,"events",
{}),p=c.data(a,"handle")||c.data(a,"handle",function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(arguments.callee.elem,arguments):void 0});p.elem=a;c.each(b.split(/\s+/),function(s,u){s=u.split(".");u=s.shift();e.type=s.slice().sort().join(".");var C=m[u];c.event.specialAll[u]&&c.event.specialAll[u].setup.call(a,g,s);if(!C){C=m[u]={};if(!c.event.special[u]||c.event.special[u].setup.call(a,g,s)===false)if(a.addEventListener)a.addEventListener(u,p,false);else a.attachEvent&&
a.attachEvent("on"+u,p)}C[e.guid]=e;c.event.global[u]=true});a=null}},guid:1,global:{},remove:function(a,b,e){if(!(a.nodeType==3||a.nodeType==8)){var g=c.data(a,"events"),m;if(g){if(b===void 0||typeof b==="string"&&b.charAt(0)==".")for(var p in g)this.remove(a,p+(b||""));else{if(b.type){e=b.handler;b=b.type}c.each(b.split(/\s+/),function(s,u){s=u.split(".");u=s.shift();var C=RegExp("(^|\\.)"+s.slice().sort().join(".*\\.")+"(\\.|$)");if(g[u]){if(e)delete g[u][e.guid];else for(var E in g[u])C.test(g[u][E].type)&&
delete g[u][E];c.event.specialAll[u]&&c.event.specialAll[u].teardown.call(a,s);for(m in g[u])break;if(!m){if(!c.event.special[u]||c.event.special[u].teardown.call(a,s)===false)if(a.removeEventListener)a.removeEventListener(u,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+u,c.data(a,"handle"));m=null;delete g[u]}}})}for(m in g)break;if(!m){if(b=c.data(a,"handle"))b.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,e,g){var m=a.type||a;if(!g){a=typeof a===
"object"?a[K]?a:c.extend(c.Event(m),a):c.Event(m);if(m.indexOf("!")>=0){a.type=m=m.slice(0,-1);a.exclusive=true}if(!e){a.stopPropagation();this.global[m]&&c.each(c.cache,function(){this.events&&this.events[m]&&c.event.trigger(a,b,this.handle.elem)})}if(!e||e.nodeType==3||e.nodeType==8)return;a.result=void 0;a.target=e;b=c.makeArray(b);b.unshift(a)}a.currentTarget=e;var p=c.data(e,"handle");p&&p.apply(e,b);if((!e[m]||c.nodeName(e,"a")&&m=="click")&&e["on"+m]&&e["on"+m].apply(e,b)===false)a.result=
false;if(!g&&e[m]&&!a.isDefaultPrevented()&&!(c.nodeName(e,"a")&&m=="click")){this.triggered=true;try{e[m]()}catch(s){}}this.triggered=false;if(!a.isPropagationStopped())(e=e.parentNode||e.ownerDocument)&&c.event.trigger(a,b,e,true)},handle:function(a){var b,e;a=arguments[0]=c.event.fix(a||x.event);a.currentTarget=this;e=a.type.split(".");a.type=e.shift();b=!e.length&&!a.exclusive;var g=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");e=(c.data(this,"events")||{})[a.type];for(var m in e){var p=
e[m];if(b||g.test(p.type)){a.handler=p;a.data=p.data;p=p.apply(this,arguments);if(p!==void 0){a.result=p;if(p===false){a.preventDefault();a.stopPropagation()}}if(a.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(a){if(a[K])return a;var b=a;a=c.Event(b);for(var e=this.props.length,g;e;){g=this.props[--e];a[g]=b[g]}if(!a.target)a.target=a.srcElement||document;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=document.documentElement;e=document.body;a.pageX=a.clientX+(b&&b.scrollLeft||e&&e.scrollLeft||0)-(b.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
e&&e.scrollTop||0)-(b.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)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:q,teardown:function(){}}},specialAll:{live:{setup:function(a,b){c.event.add(this,b[0],o)},teardown:function(a){if(a.length){var b=
0,e=RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){e.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],o)}}}}};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=h();this[K]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=i;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
i;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var aa=function(a){for(var b=a.relatedTarget;b&&b!=this;)try{b=b.parentNode}catch(e){b=this}if(b!=this){a.type=a.data;c.event.handle.apply(this,arguments)}};c.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){c.event.special[b]=
{setup:function(){c.event.add(this,a,aa,b)},teardown:function(){c.event.remove(this,a,aa)}}});c.fn.extend({bind:function(a,b,e){return a=="unload"?this.one(a,b,e):this.each(function(){c.event.add(this,a,e||b,e&&b)})},one:function(a,b,e){var g=c.event.proxy(e||b,function(m){c(this).unbind(m,g);return(e||b).apply(this,arguments)});return this.each(function(){c.event.add(this,a,g,e&&b)})},unbind:function(a,b){return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){c.event.trigger(a,
b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,e=1;e<b.length;)c.event.proxy(a,b[e++]);return this.click(c.event.proxy(a,function(g){this.lastToggle=(this.lastToggle||0)%e;g.preventDefault();return b[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b)},ready:function(a){q();c.isReady?a.call(document,
c):c.readyList.push(a);return this},live:function(a,b){b=c.event.proxy(b);b.guid+=this.selector+a;c(document).bind(t(a,this.selector),this.selector,b);return this},die:function(a,b){c(document).unbind(t(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});c.extend({isReady:false,readyList:[],ready:function(){if(!c.isReady){c.isReady=true;if(c.readyList){c.each(c.readyList,function(){this.call(document,c)});c.readyList=null}c(document).triggerHandler("ready")}}});var V=false;c.each("blur,focus,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(e){return e?this.bind(b,e):this.trigger(b)}});c(x).bind("unload",function(){for(var a in c.cache)a!=1&&c.cache[a].handle&&c.event.remove(c.cache[a].handle.elem)});(function(){c.support={};var a=document.documentElement,b=document.createElement("script"),e=document.createElement("div"),g="script"+(new Date).getTime();e.style.display="none";e.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var m=e.getElementsByTagName("*"),p=e.getElementsByTagName("a")[0];if(!(!m||!m.length||!p)){c.support={leadingWhitespace:e.firstChild.nodeType==3,tbody:!e.getElementsByTagName("tbody").length,objectAll:!!e.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(p.getAttribute("style")),hrefNormalized:p.getAttribute("href")==="/a",opacity:p.style.opacity==="0.5",cssFloat:!!p.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+g+"=1;"))}catch(s){}a.insertBefore(b,a.firstChild);if(x[g]){c.support.scriptEval=true;delete x[g]}a.removeChild(b);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function(){c.support.noCloneEvent=false;e.detachEvent("onclick",arguments.callee)});e.cloneNode(true).fireEvent("onclick")}c(function(){var u=document.createElement("div");u.style.width=u.style.paddingLeft="1px";document.body.appendChild(u);
c.boxModel=c.support.boxModel=u.offsetWidth===2;document.body.removeChild(u).style.display="none"})}})();var Q=c.support.cssFloat?"cssFloat":"styleFloat";c.props={"for":"htmlFor","class":"className","float":Q,cssFloat:Q,styleFloat:Q,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};c.fn.extend({_load:c.fn.load,load:function(a,b,e){if(typeof a!=="string")return this._load(a);var g=a.indexOf(" ");if(g>=0){var m=a.slice(g,a.length);a=a.slice(0,
g)}g="GET";if(b)if(c.isFunction(b)){e=b;b=null}else if(typeof b==="object"){b=c.param(b);g="POST"}var p=this;c.ajax({url:a,type:g,dataType:"html",data:b,complete:function(s,u){if(u=="success"||u=="notmodified")p.html(m?c("<div/>").append(s.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(m):s.responseText);e&&p.each(e,[s.responseText,u,s])}});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||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(e){return{name:b.name,value:e}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,b){c.fn[b]=function(e){return this.bind(b,e)}});var ga=h();c.extend({get:function(a,
b,e,g){if(c.isFunction(b)){e=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:e,dataType:g})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,e){return c.get(a,b,e,"json")},post:function(a,b,e,g){if(c.isFunction(b)){e=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:e,dataType:g})},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:function(){return x.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(a){function b(){a.success&&a.success(s,p);a.global&&c.event.trigger("ajaxSuccess",[B,a])}function e(){a.complete&&a.complete(B,p);a.global&&c.event.trigger("ajaxComplete",[B,a]);a.global&&!--c.active&&
c.event.trigger("ajaxStop")}a=c.extend(true,a,c.extend(true,{},c.ajaxSettings,a));var g,m=/=\?(&|$)/g,p,s,u=a.type.toUpperCase();if(a.data&&a.processData&&typeof a.data!=="string")a.data=c.param(a.data);if(a.dataType=="jsonp"){if(u=="GET")a.url.match(m)||(a.url+=(a.url.match(/\?/)?"&":"?")+(a.jsonp||"callback")+"=?");else if(!a.data||!a.data.match(m))a.data=(a.data?a.data+"&":"")+(a.jsonp||"callback")+"=?";a.dataType="json"}if(a.dataType=="json"&&(a.data&&a.data.match(m)||a.url.match(m))){g="jsonp"+
ga++;if(a.data)a.data=(a.data+"").replace(m,"="+g+"$1");a.url=a.url.replace(m,"="+g+"$1");a.dataType="script";x[g]=function(r){s=r;b();e();x[g]=void 0;try{delete x[g]}catch(v){}E&&E.removeChild(D)}}if(a.dataType=="script"&&a.cache==null)a.cache=false;if(a.cache===false&&u=="GET"){m=h();var C=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+m+"$2");a.url=C+(C==a.url?(a.url.match(/\?/)?"&":"?")+"_="+m:"")}if(a.data&&u=="GET"){a.url+=(a.url.match(/\?/)?"&":"?")+a.data;a.data=null}a.global&&!c.active++&&c.event.trigger("ajaxStart");
m=/^(\w+:)?\/\/([^\/?#]+)/.exec(a.url);if(a.dataType=="script"&&u=="GET"&&m&&(m[1]&&m[1]!=location.protocol||m[2]!=location.host)){var E=document.getElementsByTagName("head")[0],D=document.createElement("script");D.src=a.url;if(a.scriptCharset)D.charset=a.scriptCharset;if(!g){var G=false;D.onload=D.onreadystatechange=function(){if(!G&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){G=true;b();e();D.onload=D.onreadystatechange=null;E.removeChild(D)}}}E.appendChild(D)}else{var I=
false,B=a.xhr();a.username?B.open(u,a.url,a.async,a.username,a.password):B.open(u,a.url,a.async);try{a.data&&B.setRequestHeader("Content-Type",a.contentType);if(a.ifModified)B.setRequestHeader("If-Modified-Since",c.lastModified[a.url]||"Thu, 01 Jan 1970 00:00:00 GMT");B.setRequestHeader("X-Requested-With","XMLHttpRequest");B.setRequestHeader("Accept",a.dataType&&a.accepts[a.dataType]?a.accepts[a.dataType]+", */*":a.accepts._default)}catch(L){}if(a.beforeSend&&a.beforeSend(B,a)===false){a.global&&
!--c.active&&c.event.trigger("ajaxStop");B.abort();return false}a.global&&c.event.trigger("ajaxSend",[B,a]);var f=function(r){if(B.readyState==0){if(j){clearInterval(j);j=null;a.global&&!--c.active&&c.event.trigger("ajaxStop")}}else if(!I&&B&&(B.readyState==4||r=="timeout")){I=true;if(j){clearInterval(j);j=null}p=r=="timeout"?"timeout":!c.httpSuccess(B)?"error":a.ifModified&&c.httpNotModified(B,a.url)?"notmodified":"success";if(p=="success")try{s=c.httpData(B,a.dataType,a)}catch(v){p="parsererror"}if(p==
"success"){var w;try{w=B.getResponseHeader("Last-Modified")}catch(y){}if(a.ifModified&&w)c.lastModified[a.url]=w;g||b()}else c.handleError(a,B,p);e();r&&B.abort();if(a.async)B=null}};if(a.async){var j=setInterval(f,13);a.timeout>0&&setTimeout(function(){B&&!I&&f("timeout")},a.timeout)}try{B.send(a.data)}catch(n){c.handleError(a,B,null,n)}a.async||f();return B}},handleError:function(a,b,e,g){a.error&&a.error(b,e,g);a.global&&c.event.trigger("ajaxError",[b,a,g])},active:0,httpSuccess:function(a){try{return!a.status&&
location.protocol=="file:"||a.status>=200&&a.status<300||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(a,b){try{var e=a.getResponseHeader("Last-Modified");return a.status==304||e==c.lastModified[b]}catch(g){}return false},httpData:function(a,b,e){var g=a.getResponseHeader("content-type");a=(g=b=="xml"||!b&&g&&g.indexOf("xml")>=0)?a.responseXML:a.responseText;if(g&&a.documentElement.tagName=="parsererror")throw"parsererror";if(e&&e.dataFilter)a=e.dataFilter(a,b);if(typeof a===
"string"){b=="script"&&c.globalEval(a);if(b=="json")a=x.eval("("+a+")")}return a},param:function(a){function b(m,p){e[e.length]=encodeURIComponent(m)+"="+encodeURIComponent(p)}var e=[];if(c.isArray(a)||a.jquery)c.each(a,function(){b(this.name,this.value)});else for(var g in a)c.isArray(a[g])?c.each(a[g],function(){b(g,this)}):b(g,c.isFunction(a[g])?a[g]():a[g]);return e.join("&").replace(/%20/g,"+")}});var U={},T,W=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft",
"marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a)return this.animate(A("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var e=c.data(this[a],"olddisplay");this[a].style.display=e||"";if(c.css(this[a],"display")==="none"){e=this[a].tagName;var g;if(U[e])g=U[e];else{var m=c("<"+e+" />").appendTo("body");g=m.css("display");if(g==="none")g="block";m.remove();U[e]=g}c.data(this[a],"olddisplay",g)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],
"olddisplay")||"";return this}},hide:function(a,b){if(a)return this.animate(A("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var e=c.data(this[a],"olddisplay");!e&&e!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var e=typeof a==="boolean";return c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var g=e?a:c(this).is(":hidden");
c(this)[g?"show":"hide"]()}):this.animate(A("toggle",3),a,b)},fadeTo:function(a,b,e){return this.animate({opacity:b},a,e)},animate:function(a,b,e,g){var m=c.speed(b,e,g);return this[m.queue===false?"each":"queue"](function(){var p=c.extend({},m),s,u=this.nodeType==1&&c(this).is(":hidden"),C=this;for(s in a){if(a[s]=="hide"&&u||a[s]=="show"&&!u)return p.complete.call(this);if((s=="height"||s=="width")&&this.style){p.display=c.css(this,"display");p.overflow=this.style.overflow}}if(p.overflow!=null)this.style.overflow=
"hidden";p.curAnim=c.extend({},a);c.each(a,function(E,D){var G=new c.fx(C,p,E);if(/toggle|show|hide/.test(D))G[D=="toggle"?u?"show":"hide":D](a);else{var I=D.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),B=G.cur(true)||0;if(I){D=parseFloat(I[2]);var L=I[3]||"px";if(L!="px"){C.style[E]=(D||1)+L;B=(D||1)/G.cur(true)*B;C.style[E]=B+L}if(I[1])D=(I[1]=="-="?-1:1)*D+B;G.custom(B,D,L)}else G.custom(B,D,"")}});return true})},stop:function(a,b){var e=c.timers;a&&this.queue([]);this.each(function(){for(var g=
e.length-1;g>=0;g--)if(e[g].elem==this){b&&e[g](true);e.splice(g,1)}});b||this.dequeue();return this}});c.each({slideDown:A("show",1),slideUp:A("hide",1),slideToggle:A("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(e,g){return this.animate(b,e,g)}});c.extend({speed:function(a,b,e){var g=typeof a==="object"?a:{complete:e||!e&&b||c.isFunction(a)&&a,duration:a,easing:e&&b||b&&!c.isFunction(b)&&b};g.duration=c.fx.off?0:typeof g.duration==="number"?g.duration:
c.fx.speeds[g.duration]||c.fx.speeds._default;g.old=g.complete;g.complete=function(){g.queue!==false&&c(this).dequeue();c.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(a,b,e,g){return e+g*a},swing:function(a,b,e,g){return(-Math.cos(a*Math.PI)/2+0.5)*g+e}},timers:[],fx:function(a,b,e){this.options=b;this.elem=a;this.prop=e;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>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,e){function g(p){return m.step(p)}this.startTime=h();this.start=a;this.end=b;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var m=
this;g.elem=this.elem;if(g()&&c.timers.push(g)&&!T)T=setInterval(function(){for(var p=c.timers,s=0;s<p.length;s++)p[s]()||p.splice(s--,1);if(!p.length){clearInterval(T);T=void 0}},13)},show:function(){this.options.orig[this.prop]=c.attr(this.elem.style,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.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),
0)},step:function(a){var b=h();if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)a=false;if(a){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=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 g in this.options.curAnim)c.attr(this.elem.style,g,this.options.orig[g]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;this.pos=c.easing[this.options.easing||(c.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}};c.extend(c.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.attr(a.elem.style,
"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}}});c.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);var a=this[0].getBoundingClientRect(),b=this[0].ownerDocument,e=b.body;b=b.documentElement;return{top:a.top+(self.pageYOffset||c.boxModel&&b.scrollTop||e.scrollTop)-(b.clientTop||
e.clientTop||0),left:a.left+(self.pageXOffset||c.boxModel&&b.scrollLeft||e.scrollLeft)-(b.clientLeft||e.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);c.offset.initialized||c.offset.initialize();var a=this[0],b=a.offsetParent,e=a.ownerDocument,g,m=e.documentElement,p=e.body;e=e.defaultView;g=e.getComputedStyle(a,null);for(var s=a.offsetTop,u=a.offsetLeft;(a=a.parentNode)&&a!==p&&a!==m;){g=e.getComputedStyle(a,
null);s-=a.scrollTop;u-=a.scrollLeft;if(a===b){s+=a.offsetTop;u+=a.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName))){s+=parseInt(g.borderTopWidth,10)||0;u+=parseInt(g.borderLeftWidth,10)||0}b=a.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&g.overflow!=="visible"){s+=parseInt(g.borderTopWidth,10)||0;u+=parseInt(g.borderLeftWidth,10)||0}g=g}if(g.position==="relative"||g.position==="static"){s+=p.offsetTop;u+=p.offsetLeft}if(g.position===
"fixed"){s+=Math.max(m.scrollTop,p.scrollTop);u+=Math.max(m.scrollLeft,p.scrollLeft)}return{top:s,left:u}};c.offset={initialize:function(){if(!this.initialized){var a=document.body,b=document.createElement("div"),e,g,m,p=a.style.marginTop;e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(g in e)b.style[g]=e[g];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);e=b.firstChild;g=e.firstChild;m=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=m.offsetTop===5;e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;a.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=a.offsetTop===0;a.style.marginTop=p;a.removeChild(b);this.initialized=true}},bodyOffset:function(a){c.offset.initialized||c.offset.initialize();
var b=a.offsetTop,e=a.offsetLeft;if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseInt(c.curCSS(a,"marginTop",true),10)||0;e+=parseInt(c.curCSS(a,"marginLeft",true),10)||0}return{top:b,left:e}}};c.fn.extend({position:function(){var a;if(this[0]){a=this.offsetParent();var b=this.offset(),e=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();b.top-=l(this,"marginTop");b.left-=l(this,"marginLeft");e.top+=l(a,"borderTopWidth");e.left+=l(a,"borderLeftWidth");a={top:b.top-e.top,left:b.left-
e.left}}return a},offsetParent:function(){for(var a=this[0].offsetParent||document.body;a&&!/^body|html$/i.test(a.tagName)&&c.css(a,"position")=="static";)a=a.offsetParent;return c(a)}});c.each(["Left","Top"],function(a,b){var e="scroll"+b;c.fn[e]=function(g){if(!this[0])return null;return g!==void 0?this.each(function(){this==x||this==document?x.scrollTo(!a?g:c(x).scrollLeft(),a?g:c(x).scrollTop()):(this[e]=g)}):this[0]==x||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||c.boxModel&&document.documentElement[e]||
document.body[e]:this[0][e]}});c.each(["Height","Width"],function(a,b){var e=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],e,false,"padding"):null};c.fn["outer"+b]=function(m){return this[0]?c.css(this[0],e,false,m?"margin":"border"):null};var g=b.toLowerCase();c.fn[g]=function(m){return this[0]==x?document.compatMode=="CSS1Compat"&&document.documentElement["client"+b]||document.body["client"+b]:this[0]==document?Math.max(document.documentElement["client"+b],document.body["scroll"+
b],document.documentElement["scroll"+b],document.body["offset"+b],document.documentElement["offset"+b]):m===void 0?this.length?c.css(this[0],g):null:this.css(g,typeof m==="string"?m:m+"px")}})})();
(function(d){function h(i){return i<10?"0"+i:i}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+h(this.getUTCMonth())+"-"+h(this.getUTCDate())};var l=/["\\\x00-\x1f\x7f-\x9f]/g,k={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};d.quoteString=function(i){if(l.test(i))return'"'+i.replace(l,function(o){var t=k[o];if(typeof t==="string")return t;t=o.charCodeAt();return"\\u00"+Math.floor(t/16).toString(16)+(t%16).toString(16)})+'"';return'"'+i+'"'};
d.toJSON=function(i,o){var t=typeof i;if(t=="undefined")return"undefined";else if(t=="number"||t=="boolean")return i+"";else if(i===null)return"null";if(t=="string")return d.quoteString(i);if(t=="object"&&typeof i.toJSON=="function")return i.toJSON(o);if(t!="function"&&typeof i.length=="number"){for(var q=[],A=0;A<i.length;A++)q.push(d.toJSON(i[A],o));return o?"["+q.join(",")+"]":"["+q.join(", ")+"]"}if(t=="function")throw new TypeError("Unable to convert object of type 'function' to json.");q=[];
for(A in i){t=typeof A;if(t=="number")t='"'+A+'"';else if(t=="string")t=d.quoteString(A);else continue;var x=d.toJSON(i[A],o);if(typeof x=="string")o?q.push(t+":"+x):q.push(t+": "+x)}return"{"+q.join(", ")+"}"};d.compactJSON=function(i){return d.toJSON(i,true)};d.evalJSON=function(i){return eval("("+i+")")};d.secureEvalJSON=function(i){var o=i;o=o.replace(/\\["\\\/bfnrtu]/g,"@");o=o.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");o=o.replace(/(?:^|:|,)(?:\s*\[)+/g,
"");if(/^[\],:{}\s]*$/.test(o))return eval("("+i+")");else throw new SyntaxError("Error parsing JSON, source is not valid.");}})(jQuery);var $jq=jQuery.noConflict();
$jq.extend({createNcmClass:function(d){return $jq.createNcmSubClass(NcmAbstractComponent,d)},createNcmSubClass:function(d,h){if(d&&$jq.isFunction(d)){var l=new Date;this[""+l.getTime()]=function(){if(h&&h.fields){var k=ncm.clone(h.fields);$jq.extend(this,k)}};(function(k,i){var o=function(){};o.prototype=i.prototype;k.prototype=new o;k.prototype.constructor=k;k.superclass=i.prototype})(this[""+l.getTime()],d);(function(k){k.instances=null;k.properties=null;k.datatype=null;k.jsp_utils=null;k.language=
null;k.pageUrl=null;k.channel=null;k.inPreview=false;k.issueId=null;k.skin=null;k.pageId=null;k.register=function(i,o,t){try{var q=new k;q.initialize(i,o,t);k.instances[""+i]=q;ncm.registeredInstances&&ncm.registeredInstances.push({id:i,object:q})}catch(A){ncm.showError("Error registering component instance",A,null,k.inPreview,k.jsp_utils)}};k.getRegistered=function(i){return k.instances[""+i]};k.get=function(i){return k.getRegistered(i)};k.initProperties=function(i){var o=function(q){q.properties&&
$jq.each(q.properties,function(){k.properties[this.name]=this.value})};k.properties={};k.instances={};k.datatype=i.datatype?i.datatype:null;k.language=i.language?i.language:null;k.jsp_utils=i.jsp_utils?i.jsp_utils:null;k.pageUrl=i.pageUrl?i.pageUrl:null;k.channel=i.channel?i.channel:null;k.inPreview=i.inPreview?i.inPreview:false;k.issueId=i.issueId?i.issueId:null;k.skin=i.skin?i.skin:null;try{k.pageId=i.pageId?i.pageId:null}catch(t){}if(i.json&&i.json.properties)o(i.json);else{i=ncm.concat("action=1&dataTypeName=",
k.datatype?k.datatype:"","&langName=",k.language?k.language:"","&pageUrl=",k.pageUrl?k.pageUrl:"");$jq.ajax({async:false,type:"GET",url:k.jsp_utils,data:i,dataType:"json",error:function(q,A,x){ncm.showError(A,x,q,k.inPreview,k.jsp_utils)},success:function(q){o(q)}})}};k.getProperty=function(i){(i=k.properties[i])||(i="");if(typeof i==="undefined")i="";return i}})(this[""+l.getTime()]);h&&h.prototype&&$jq.extend(this[""+l.getTime()].prototype,h.prototype);return this[""+l.getTime()]}else return $jq.createNcmClass(h)},
extendNcmClass:function(d,h){if(d&&$jq.isFunction(d)){h&&h.fields&&$jq.extend(d,h.fields);h&&h.prototype&&$jq.extend(d.prototype,h.prototype)}}});$jq.fn.linkEvents=function(d){d&&$jq.isFunction(d)&&this.click(d).keypress(d)};$jq.fn.liveLinkEvents=function(d){d&&$jq.isFunction(d)&&this.live("click",d).live("keypress",d)};
var ncm={version:"1.0.1",isIE6:$jq.browser.msie&&!window.XMLHttpRequest,loadedModules:{},eventListeners:{},customEventsTriggers:{},loadedDialogs:{},registeredInstances:[],customEvents:{ncmValueChange:"ncmValueChange",ncmScriptsLoaded:"ncmScriptsLoaded",ncmBeforeLoadData:"ncmBeforeLoadData",ncmAfterLoadData:"ncmAfterLoadData"},SIMPLE_FIELDS_JSO:"simplefields",PROPERTIES_JSO:"properties",DS_FIELDS_JSO:"dsfields",DS_FIELD_PROPERTIES_JSO:"dsfieldproperties",QUERY_GROUPBY_FIELDS_JSO:"groupbyfields",QUERY_LAYOUTS_JSO:"layouts",
QUERY_GEOFIELDS_JSO:"geofields",QUERY_TOTALS_JSO:"totals",QUERY_ORDERBY_FIELDS_JSO:"orderby",QUERY_PARAMS_JSO:"params",QUERY_SUBCATEGORY_JSO:"subcategory",QUERY_FILTER_JSO:"filter",QUERY_ITEM_IMAGE:"itemimage",SEARCH_FIELDS_ADV:"srchfieldsadv",GMAP_MORE_INFO:"gmapmoreinfo",GMAP_CUSTOM_CONTROLS:"gmapcustomctrl",GMAP_ICON:"gmapicon",GMAP_SEARCH:"gmapsearch",DT_JSO:"datatype",MEDIA_DESCR_FIELDS_JSO:"media_description_fields",MEDIA_THUMB_FIELDS_JSO:"media_thumbnail_fields",MEDIA_THUMBNAIL_JSO:"media_thumbnail",
MEDIA_OBJECT_JSO:"media_object",MEDIA_DOWNLOAD_JSO:"media_download",DS_TYPE_TXT:0,DS_TYPE_DB:1,DS_TYPE_ITEMS:2,DS_TYPE_CATEGORIES:3,DS_TYPE_CATEGORIZE:4,DS_TYPE_CALENDAR:5,DS_TYPE_GDATA_YOUTUBE:6,DS_TYPE_FILESYSTEM:7,passphrase:"Mauris malesuada pretium dui a vulputate",load:function(d,h,l,k,i,o){if(ncm.loadedModules[d])return false;var t=function(){k&&$jq.isFunction(k)&&k();if(i)ncm.triggerEvent(ncm.customEvents.ncmScriptsLoaded+(o?o:""))},q=true;$jq.ajax({async:h?h:false,cache:l?l:false,type:"GET",
url:d,dataType:"script",contentType:"text/javascript",error:function(A,x,N){q=false;ncm.showError(x,N,A)},complete:function(A){if(!A||A.status==200||A.status==304)t()}});return ncm.loadedModules[d]=q},initProperties:function(d,h){var l=function(i){i.properties&&$jq.each(i.properties,function(){d.properties[this.name]=this.value})};d.datatype=h.datatype?h.datatype:null;d.language=h.language?h.language:null;d.jsp_utils=h.jsp_utils?h.jsp_utils:null;d.pageUrl=h.pageUrl?h.pageUrl:null;d.channel=h.channel?
h.channel:null;d.inPreview=h.inPreview?h.inPreview:false;d.issueId=h.issueId?h.issueId:null;d.skin=h.skin?h.skin:null;try{d.pageId=h.pageId?h.pageId:null}catch(k){}if(h.json&&h.json.properties)l(h.json);else{h=ncm.concat("action=1&dataTypeName=",d.datatype?d.datatype:"","&langName=",d.language?d.language:"","&pageUrl=",d.pageUrl?d.pageUrl:"");$jq.ajax({async:false,type:"GET",url:d.jsp_utils,data:h,dataType:"json",error:function(i,o,t){ncm.showError(o,t,i,d.inPreview,d.jsp_utils)},success:function(i){l(i)}})}},
initSimpleFields:function(d,h,l){var k=function(o){o.simplefields&&$jq.each(o.simplefields,function(){h.simplefields[this.name]=this.value})};if(l&&l.simplefields)k(l);else{l=d.jsp_utils;if(l==null)l=d.getProperty("utils_jsp");if(l=="")l=new String("components/components-utils.jsp");var i=ncm.concat("action=2&objId=",h.id,"&langName=",d.language?d.language:"","&pageUrl=",d.pageUrl?d.pageUrl:"","&channel=",d.channel?d.channel:"","&issueId=",d.issueId?d.issueId:"-1");$jq.ajax({async:false,type:"GET",
url:l,data:i,dataType:"json",error:function(o,t,q){ncm.showError(t,q,o,d.inPreview,d.jsp_utils)},success:function(o){k(o)}})}},initEventsListeners:function(d,h){if(window["jso"+h.id]&&window["jso"+h.id].RELATIONS)$jq.each(window["jso"+h.id].RELATIONS,function(){var i="",o=[];$jq.each(this.simplefields,function(){if(this.name==="DATAID")i=this.value;if(this.name==="EVENTS")o=this.value});i!==""&&o.length>0&&$jq.each(o,function(){h.eventsListeners[this]||(h.eventsListeners[this]=[]);h.eventsListeners[this].push(parseInt(i))})});
else{var l=d.jsp_utils;if(l==null)l=d.getProperty("utils_jsp");if(l=="")l=new String("components/components-utils.jsp");var k=ncm.concat("action=8&objId=",h.id,"&langName=",d.language?d.language:"","&pageUrl=",d.pageUrl?d.pageUrl:"","&channel=",d.channel?d.channel:"","&issueId=",d.issueId?d.issueId:"-1");$jq.ajax({async:false,type:"GET",url:l,data:k,dataType:"json",error:function(i,o,t){ncm.showError(o,t,i,d.inPreview,d.jsp_utils)},success:function(i){i!=null&&i.length>0&&$jq.each(i,function(){h.eventsListeners[this.event]=
this.ids})}})}},initEventsTriggers:function(d,h){var l=d.jsp_utils;if(l==null)l=d.getProperty("utils_jsp");if(l=="")l=new String("components/components-utils.jsp");var k=ncm.concat("action=9&objId=",h.id,"&pageId=",d.pageId?d.pageId:"-1");$jq.ajax({async:false,type:"GET",url:l,data:k,dataType:"json",error:function(i,o,t){ncm.showError(o,t,i,d.inPreview,d.jsp_utils)},success:function(i){i!=null&&i.length>0&&$jq.each(i,function(o,t){h.triggersMap[o]=ncm.intval(this);h.triggers[""+t]=""})}})},concat:function(){var d=
[];$jq.each(arguments,function(h,l){d.push(l)});return d.join("")},clone:function(d){return $jq.evalJSON($jq.compactJSON(d))},exec:function(){var d=[],h=null,l="";$jq.each(arguments,function(i,o){switch(i){case 0:h=this;break;case 1:l=o;break;default:d.push(this);break}});if(h&&l&&h[l]&&$jq.isFunction(h[l]))try{h[l].apply(h,d)}catch(k){}},showError:function(d,h,l,k,i){d=ncm.concat(d,":\n");if(h)d=ncm.concat(d,h.message?h.message+"\n":"",h.fileName?"File: "+h.fileName+"\n":"",h.lineNumber?"Line: "+
h.lineNumber+"\n":"",h.stack?"Stack: "+h.stack+"\n":"");if(l!=null)d=ncm.concat(d,l.status?l.status+"\n":"",l.statusText?l.statusText+"\n":"");i||(i=new String("components/components-utils.jsp"));$jq.post(i,{pageUrl:window.location.href,errMessage:d});k&&alert(d)},openWindow:function(d){if($jq.trim(d)!="")(d=open(d))&&d.focus()},bindCustomEvent:function(d,h,l,k,i){if(l){$jq(h).bind(d,function(o,t,q,A){if($jq.inArray(l.id,t)!=-1){o=$jq.inArray(A,l.triggersMap);if(o>-1)l.triggers[""+l.triggersMap[o]]=
q;q="";for(o=0;o<l.triggersMap.length;o+=1){t=l.triggers[""+l.triggersMap[o]];if($jq.trim(""+t)!="")q+=($jq.trim(q)!=""?"&":"")+t}$jq.isFunction(l[k])&&l[k](q,true,i)}});ncm.addEventListener(d,h)}},bindCustomEventForSelector:function(d,h,l,k){if(l)if(ncm.customEventsTriggers[""+l]){$jq(h).bind(d,function(i,o,t){$jq.inArray(t,ncm.customEventsTriggers[""+l])!=-1&&k&&$jq.isFunction(k)&&k(o)});ncm.addEventListener(d,h)}},triggerCustomEvent:function(d,h,l){h&&h.eventsListeners[d]!=null&&ncm.triggerEvent(d,
[h.eventsListeners[d],l,h.id])},addEventListener:function(d,h){if(ncm.eventListeners[d])$jq.inArray(h,ncm.eventListeners[d])===-1&&ncm.eventListeners[d].push(h);else ncm.eventListeners[d]=new Array(h)},getEventListeners:function(d){return ncm.eventListeners[d]?ncm.eventListeners[d]:null},getEventListenersSelector:function(d){return(d=ncm.getEventListeners(d))?d.join(","):""},triggerEvent:function(d,h){var l=ncm.getEventListenersSelector(d);l!==""&&$jq(l).trigger(d,h)},decodeParams:function(d){return decodeURIComponent(d).replace(/\+/ig,
" ")},getParametersFromUrl:function(){return ncm.getParametersFromUrlAsObject()},getParametersFromUrlAsString:function(d){var h="";if(window.location.search){var l=window.location.search.replace(/\?/,"").split("&");l!=null&&l.length>0&&$jq.each(l,function(k){var i=this.indexOf("="),o=[];if(i>0){o[0]=this.substr(0,i);o[1]=this.substr(i+1)}else{o[0]=this;o[1]=""}h=ncm.concat(h,k===0?"":d,o[0],d,o[1])})}return h},getParametersFromUrlAsObject:function(){var d={};if(window.location.search){d=window.location.search.replace(/\?/,
"");d=ncm.transformParamsStringToObject(d)}return d},transformParamsStringToObject:function(d){var h={};d=d.split("&");d!=null&&d.length>0&&$jq.each(d,function(){var l=this.indexOf("="),k=[];if(l>0){k[0]=ncm.decodeParams(this.substr(0,l));k[1]=ncm.decodeParams(this.substr(l+1))}else{k[0]=ncm.decodeParams(this);k[1]=""}if(h[k[0]])if(h[k[0]]instanceof Array)h[k[0]].push(k[1]);else{l=[];l.push(h[k[0]]);l.push(k[1]);h[k[0]]=l}else h[k[0]]=k[1]});return h},getParametersNamesFromString:function(d){var h=
[];d=d.split("&");d!=null&&d.length>0&&$jq.each(d,function(){var l=this.indexOf("="),k=null;(k=l>0?ncm.decodeParams(this.substr(0,l)):ncm.decodeParams(this))&&h.push(k)});return h},gatcLinks:function(d,h){$jq("a",d).click(function(){if(typeof pageTracker!=="undefined")if(pageTracker){var l="/"+h,k=this.getAttribute("href");if(k){var i=k?k.indexOf(".doc")!=-1||k.indexOf(".xsl")!=-1||k.indexOf(".pdf")!=-1||k.indexOf(".ppt")!=-1:false,o=this.getAttribute("target");o=o?o=="_blank":false;var t=this.getAttribute("title");
l+="/"+(i?"download":o?"external_link":"internal_link");l+="/"+(t?t:k);pageTracker._trackPageview(l)}}})},gatcLinkInfo:function(d,h){if(!d)return null;if(!d.tagName)return null;if(d.tagName.toUpperCase()!=="A")return null;var l=$jq(d);if(l.attr("rel")==="nofollow")return null;d=l.attr("href");if(!d)return null;if(d===""||d==="#"||d==="noscript.html")return null;l=l.attr("title")?l.attr("title"):"no title";l=ncm.concat(h,": ",l);d=d.split("?")[0];h=/\.(jpg|gif|png|jpeg)$/i;var k=/^(http|https):\/\//i,
i=[];if(/\.(pdf|doc|rtf|zip|rar|xls|docx|ppt|pps|xlsx)$/i.test(d)){i.push("1");i.push(d.substr(d.lastIndexOf(".")+1))}else{if(h.test(d))i.push("2");else k.test(d)?i.push("3"):i.push("-1");i.push(l)}i.push(d);return i},createCookie:function(d,h,l){var k="";if(l){k=new Date;k.setTime(k.getTime()+l*24*60*60*1E3);k=ncm.concat("; expires=",k.toGMTString())}document.cookie=ncm.concat(d,"=",h,k,"; path=/")},readCookie:function(d){var h=null,l=ncm.concat(d,"=");d=document.cookie.split(";");$jq.each(d,function(k,
i){i=$jq.trim(i);if(i.indexOf(l)==0){h=i.substring(l.length,i.length);return false}});return h},eraseCookie:function(d){createCookie(d,"",-1)},showDialog:function(d,h,l){var k=$jq(ncm.concat("div#dialog",d));if(ncm.loadedDialogs[""+d])l?k.append(h):k.html(h);else ncm.loadedDialogs[""+d]=k.html(h).dialog().parent();if(ncm.loadedDialogs[""+d].length>0){h=$jq(window).width()/2-ncm.loadedDialogs[""+d].width()/2;l=ncm.loadedDialogs[""+d].offset().top;ncm.loadedDialogs[""+d].css({top:l+"px",left:h+"px"}).show()}},
hideDialog:function(d){$jq(ncm.concat("div#dialog",d)).html("");ncm.loadedDialogs[""+d]&&ncm.loadedDialogs[""+d].hide()},showFixedDialog:function(d,h){var l=$jq(d);ncm.loadedDialogs[d]||(ncm.loadedDialogs[d]=l.dialog().parent());if(ncm.loadedDialogs[d].length>0){l=$jq(window).width()/2-ncm.loadedDialogs[d].width()/2;l={top:ncm.loadedDialogs[d].offset().top+"px",left:l+"px"};h&&$jq.extend(l,{width:h+"px"});ncm.loadedDialogs[d].css(l).show()}},hideFixedDialog:function(d){ncm.loadedDialogs[d]&&ncm.loadedDialogs[d].hide()},
intval:function(d){d=parseInt(d);return isNaN(d)?0:d},getRandomBanner:function(d,h,l,k,i){$jq.getJSON(k,{objectId:d,objectField:h,pageUrl:l},function(o){o&&o.image&&$jq(i).css("background-image",ncm.concat("url","(",o.image,")"))})},isDetailsStep:function(){var d=window.location.search.replace(/\?/,"");return d.indexOf("ID=")!==-1||d.indexOf("PRDID=")!==-1||d.indexOf("PROID=")!==-1},getComponentConstructorParams:function(d,h,l){h=ncm.concat("objId=",d.id,"&inPreview=",h.inPreview?h.inPreview:false,
"&language=",h.language?h.language:"","&pageUrl=",h.pageUrl?h.pageUrl:"","&channel=",h.channel?h.channel:"","&issueId=",h.issueId?h.issueId:"","&className=",h.name?h.name:"","&pageId=",h.pageId?h.pageId:"0");if(l)if(window["jso"+d.id])h=ncm.concat(h,"&jso=",$jq.compactJSON(window["jso"+d.id]));return h},getComponentConstructorParamsObject:function(d,h,l){h={objId:d.id,inPreview:h.inPreview?h.inPreview:false,language:h.language?h.language:"",pageUrl:h.pageUrl?h.pageUrl:"",channel:h.channel?h.channel:
"",issueId:h.issueId?h.issueId:"",className:h.name?h.name:"",pageId:h.pageId?h.pageId:"0"};l&&window["jso"+d.id]&&$jq.extend(h,{jso:$jq.compactJSON(window["jso"+d.id])});return h},serializeToObject:function(d){d=$jq(d).serializeArray();return ncm.serializeJSONToObject(d)},serializeToString:function(d){d=$jq(d).serializeArray();var h="";$jq.each(d,function(l,k){if(k.value)if(k.value instanceof Array)$jq.each(k.value,function(i,o){if(o)h=ncm.concat(h,h!=""?"&":"",k.name,"=",o.replace(/\&nbsp;/ig," "))});
else h=ncm.concat(h,h!=""?"&":"",k.name,"=",k.value.replace(/\&nbsp;/ig," "))});return h},serializeJSONToObject:function(d,h){var l={};$jq.each(d,function(k,i){if(i.value||h)l[i.name]=i.value?i.value:""});return l},setPagerEvents:function(d,h){if(d)if(h){$jq("div.pager select.list-items-per-page",h).change(function(){ncm.exec(d,"refresh",this.value)});var l=$jq("ul.list-pages li",h),k=ncm.intval($jq(ncm.concat("#autopager-total-",d.id)).val());if(k===0)k=l.length-2;var i=d.getRequestParam(ncm.concat(d.getPrefix(),
"page"));if(i==="")i="0";l.each(function(o){if(o===0)$jq("a",this).linkEvents(function(){ncm.exec(d,"gotoPage",parseInt(i)>0?parseInt(i)-1:0,h);return false});else o===l.length-1?$jq("a",this).linkEvents(function(){ncm.exec(d,"gotoPage",parseInt(i)<k-1?parseInt(i)+1:k-1,h);return false}):$jq("a",this).linkEvents(function(){var t=ncm.intval($jq(this).html())-1;if(t===-1)t=o-1;t!==parseInt(i)&&ncm.exec(d,"gotoPage",t,h);return false})})}},saveSessionStateInHistory:function(){if(ncm.registeredInstances&&
window.dhtmlHistory){var d=[];$jq.each(ncm.registeredInstances,function(){if(this.id&&this.object&&this.object.requestParams){var k=ncm.clone(this.object.requestParams);k.push({name:"resetParams",value:"true"});d.push({id:this.id,params:k})}});var h=$jq.toJSON(d),l=Crypto.MD5(h);h=Crypto.AES.encrypt(h,ncm.passphrase);window.dhtmlHistory.add(l,h)}},restoreSavedSessionState:function(d,h){if(d&&h)if(d=Crypto.AES.decrypt(h,ncm.passphrase))(d=$jq.evalJSON(d))&&$jq.isArray(d)&&$jq.each(d,function(){var l=
ncm.getInstance(this.id);l&&l.restoreState&&$jq.isFunction(l.restoreState)&&this.params&&l.restoreState($jq.param(ncm.serializeJSONToObject(this.params)))})},getInstance:function(d){var h=null;ncm.registeredInstances&&$jq.each(ncm.registeredInstances,function(){if(this.id===d){h=this.object;return false}});return h},dateUtil:{checkDateCorrect:function(d,h,l){var k=0,i=0,o=0,t=true;try{o=ncm.intval(l);i=ncm.intval(h.charAt(0)==="0"?h.substr(1):h);k=ncm.intval(d.charAt(0)==="0"?d.substr(1):d)}catch(q){t=
false}if(t){if(k<1||k>31||i<1||i>12||!o)t=false;if(k>ncm.dateUtil.getMaxDays(i,o))t=false}return t},getMaxDays:function(d,h){var l=new Array(31,28,31,30,31,30,31,31,30,31,30,31);if(d==2)l[1]=ncm.dateUtil.checkLeapYear(h)?29:28;return d<1||d>12?-1:l[d-1]},checkLeapYear:function(d){return d%4===0&&(d%100!==0||d%400===0)?true:false},checkLinkedDays:function(d){var h=document.getElementById(d),l=document.getElementById(d+"_DAY"),k=document.getElementById(d+"_MONTH");d=document.getElementById(d+"_YEAR");
if(l!=null&&k!=null&&d!=null)if($jq(l).val()!=""&&$jq(k).val()!=""&&$jq(d).val().length==4){var i=32-(new Date($jq(d).val(),$jq(k).val()-1,32)).getDate();$jq("option",l).attr("disabled","");$jq("option:gt("+i+")",l).attr("disabled","disabled");$jq(l).val()>i&&$jq(l).val(i);$jq(h).val($jq(l).val()+"/"+$jq(k).val()+"/"+$jq(d).val())}else $jq(h).val("")},formDateValue:function(d,h){var l="",k="",i="",o="",t=new Date;d.find(":input[name='"+h+"_DAY']").each(function(){l=$jq(this).val()}).end().find(":input[name='"+
h+"_MONTH']").each(function(){k=$jq(this).val()}).end().find(":input[name='"+h+"_YEAR']").each(function(){i=$jq(this).val()});if(l===""&&k===""&&i==="")return o;if(k&&!i)i=""+t.getFullYear();if(!k&&i)k=(t.getMonth()<9?"0":"")+(t.getMonth()+1);return o=ncm.dateUtil.checkDateCorrect(l,k,i)?l+"/"+k+"/"+i:"#error#"}}};function NcmAbstractComponent(){}
NcmAbstractComponent.prototype={initialize:function(d,h,l){this.id=d;this.initSimpleFields(h);this.eventsListeners&&this.initEventsListeners();this.triggers&&this.triggersMap&&this.initEventsTriggers();this.initComponent(l)},initComponent:function(){},initSimpleFields:function(d){var h=this,l=function(i){i.simplefields&&$jq.each(i.simplefields,function(){h.simplefields[this.name]=this.value})};if(d&&d.simplefields)l(d);else{(d=this.constructor.jsp_utils)||(d=new String("components/components-utils.jsp"));
var k=ncm.concat("action=2&objId=",this.id,"&langName=",this.constructor.language?this.constructor.language:"","&pageUrl=",this.constructor.pageUrl?this.constructor.pageUrl:"","&channel=",this.constructor.channel?this.constructor.channel:"","&issueId=",this.constructor.issueId?this.constructor.issueId:"-1");$jq.ajax({async:false,type:"GET",url:d,data:k,dataType:"json",error:function(i,o,t){ncm.showError(o,t,i,h.constructor.inPreview,h.constructor.jsp_utils)},success:function(i){l(i)}})}},initEventsListeners:function(){var d=
this;if(window["jso"+this.id]&&window["jso"+this.id].RELATIONS)$jq.each(window["jso"+this.id].RELATIONS,function(k,i){var o="",t=[];$jq.each(this.simplefields,function(){if(this.name==="DATAID")o=this.value;if(this.name==="EVENTS")t=this.value});o!==""&&t.length>0&&$jq.each(t,function(){d.eventsListeners[this]||(d.eventsListeners[this]=[]);d.eventsListenersAdv[this]||(d.eventsListenersAdv[this]={});d.eventsListeners[this].push(parseInt(o));d.eventsListenersAdv[this][parseInt(o)]=i})});else{var h=
this.constructor.jsp_utils;h||(h=new String("components/components-utils.jsp"));var l=ncm.concat("action=8&objId=",this.id,"&langName=",this.constructor.language?this.constructor.language:"","&pageUrl=",this.constructor.pageUrl?this.constructor.pageUrl:"","&channel=",this.constructor.channel?this.constructor.channel:"","&issueId=",this.constructor.issueId?this.constructor.issueId:"-1");$jq.ajax({async:false,type:"GET",url:h,data:l,dataType:"json",error:function(k,i,o){ncm.showError(i,o,k,d.constructor.inPreview,
d.constructor.jsp_utils)},success:function(k){k!=null&&k.length>0&&$jq.each(k,function(){d.eventsListeners[this.event]=this.ids})}})}},initEventsTriggers:function(){var d=this;if(ncm.customEventsTriggers){if(ncm.customEventsTriggers[""+this.id]){this.triggersMap=ncm.customEventsTriggers[""+this.id];$jq.each(this.triggersMap,function(k,i){d.triggers[""+i]=""})}}else{var h=this.constructor.jsp_utils;h||(h=new String("components/components-utils.jsp"));var l=ncm.concat("action=9&objId=",this.id,"&pageId=",
this.constructor.pageId?this.constructor.pageId:"-1");$jq.ajax({async:false,type:"GET",url:h,data:l,dataType:"json",error:function(k,i,o){ncm.showError(i,o,k,d.constructor.inPreview,d.constructor.jsp_utils)},success:function(k){k!=null&&k.length>0&&$jq.each(k,function(i,o){d.triggersMap[i]=ncm.intval(this);d.triggers[""+o]=""})}})}},getRequestParam:function(d){var h="";this.requestParams&&$jq.each(this.requestParams,function(){if(this.name===d){h=this.value;return false}});return h},getRequestParamsNames:function(){var d=
[];this.requestParams&&$jq.each(this.requestParams,function(){d.push(this.name)});return d},setRequestParam:function(d,h,l){this.requestParams||(this.requestParams=[]);var k=false;$jq.each(this.requestParams,function(){if(this.name===d){if(d.indexOf("CATID")!=-1)l=false;if(l){var i=this.value;if(!(i instanceof Array)){this.value=[];this.value.push(i)}this.value.push(h)}else this.value=h;k=true;return false}});k||this.requestParams.push({name:d,value:h})},updateRequestParams:function(d){var h=this;
d=d.split("&");if($jq.inArray("resetParams=1",d)!==-1)this.requestParams=[];if(d&&d.length>0){var l=[];$jq.each(d,function(){var k=this.indexOf("="),i=[];if(k>0){i[0]=ncm.decodeParams(this.substr(0,k));i[1]=ncm.decodeParams(this.substr(k+1))}else{i[0]=ncm.decodeParams(this);i[1]=""}if($jq.inArray(i[0],l)===-1){h.setRequestParam(i[0],i[1],false);l.push(i[0])}else h.setRequestParam(i[0],i[1],true)})}},initializeRequestParams:function(d){d||(d=ncm.concat("initial-request-",this.id));(d=document.getElementById(d))&&
this.updateRequestParams($jq(d).serialize())},getPrefix:function(d){d=d?d:"DATASOURCE";return this.simplefields[d]?ncm.concat("DS",this.simplefields[d],"."):""},getListenersPrefixes:function(d){var h=[];this.eventsListeners&&this.eventsListeners[d]&&this.eventsListeners[d].length>0&&$jq.each(this.eventsListeners[d],function(l,k){window[ncm.concat("jso",k)]&&window[ncm.concat("jso",k)][ncm.SIMPLE_FIELDS_JSO]&&$jq.each(window[ncm.concat("jso",k)][ncm.SIMPLE_FIELDS_JSO],function(){if(this.name==="DATASOURCE"){var i=
ncm.concat("DS",this.value,".");$jq.inArray(i,h)===-1&&h.push(i);return false}})});return h},getAjaxProgress:function(){return ncm.concat("<",'div class="ajax-progress"',">","<",'img src="',this.constructor.getProperty("img_ajax_progress"),'" title="" alt="" /',">",this.constructor.getProperty("lang_loading"),"<","/div",">")},processKeyParams:function(d){var h="",l=this.constructor.getProperty("jsp_detailrelations");l||(l="components/queries/processobjectkeyrelations.jsp");d=d.split("&");var k=[];
$jq.each(d,function(o,t){k.push(t)});d=ncm.concat("keyParam=",$jq.toJSON(k),"&dsId=",this.simplefields.DATASOURCE,"&language=",this.constructor.language,"&inPreview=",this.constructor.inPreview,"&eventsListeners=",$jq.toJSON(this.eventsListeners),"&eventsListenersAdv=",$jq.toJSON(this.eventsListenersAdv));var i=[];$jq.ajax({async:false,type:"POST",dataType:"json",url:l,data:d,success:function(o){if(o!=null&&o.params!=null)for(var t=0;t<o.params.length;t+=1)if(o.params[t]!=null&&o.params[t].keys!=
null)for(var q=o.params[t].prefix,A=0;A<o.params[t].keys.length;A+=1){var x=ncm.concat(q,o.params[t].keys[A].key,"=",o.params[t].keys[A].value);if($jq.inArray(x,i)===-1){h=ncm.concat(h,"&",x);i.push(x)}}}});return"resetParams=1"+h},refresh:function(d){this.setRequestParam(ncm.concat(this.getPrefix(),"page"),"0");this.setRequestParam(ncm.concat(this.getPrefix(),"itpp"),ncm.concat("",d));ncm.exec(this,"loadData")},gotoPage:function(d,h){if(!(d<0)){var l=ncm.intval($jq(ncm.concat("#autopager-total-",
this.id)).val());if(l===0)l=$jq("ul.list-pages li",h).length-2;if(!(d>l-1)){this.setRequestParam(ncm.concat(this.getPrefix(),"page"),ncm.concat("",d));ncm.exec(this,"loadData")}}},restoreState:function(d){if(this.loadData&&$jq.isFunction(this.loadData)){this.updateRequestParams(d);this.loadData()}}};ncm.defaultFontSize=70;ncm.currentFontSize=ncm.defaultFontSize;ncm.revertStyles=function(){ncm.currentFontSize=ncm.defaultFontSize;ncm.changeFontSize(0)};
ncm.changeFontSize=function(d){ncm.currentFontSize=parseInt(ncm.currentFontSize)+parseInt(d*15);if(ncm.currentFontSize>95)ncm.currentFontSize=95;else if(ncm.currentFontSize<50)ncm.currentFontSize=50;ncm.setFontSize(ncm.currentFontSize)};ncm.setFontSize=function(d){document.body.style.fontSize=d+"%"};var isIE6=jQuery.browser.msie&&jQuery.browser.version.substr(0,1)=="6";function menuOver(d){isIE6&&$jq(d).addClass("over")}function menuOut(d){isIE6&&$jq(d).removeClass("over")}
$jq(".title-bar").click(function(){var d=$jq(this).parent(),h;if(d.hasClass("closable")){d.removeClass("closable");h="closed";d.addClass(h);$jq(this).prev().addClass(h)}else if(d.hasClass("closed")){h="closable";d.removeClass("closed");d.addClass(h);$jq(this).prev().addClass(h)}return false});
function centerDiv(d,h,l){var k=null,i=null,o=null,t=null;if(typeof window.innerWidth!="undefined"){o=window.innerHeight;t=window.innerWidth;k=window.pageYOffset;i=window.pageXOffset}else if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientHeight!="undefined"&&document.documentElement.clientHeight!=0){o=document.documentElement.clientHeight;t=document.documentElement.clientWidth;k=document.documentElement.scrollTop;i=document.documentElement.scrollLeft}k+=(o-l)/
2;i+=(t-h)/2;$jq(d).css("top",k);$jq(d).css("left",i)}
(function(d){function h(k,i,o,t){if(!i.busy){var q=k[0].parentNode,A=k[i.currSlide],x=k[i.nextSlide];if(!(q.cycleTimeout===0&&!o)){if(o||!q.cyclePause){i.before.length&&d.each(i.before,function(N,O){O.apply(x,[A,x,i,t])});o=function(){d.browser.msie&&this.style.removeAttribute("filter");d.each(i.after,function(N,O){O.apply(x,[A,x,i,t])})};if(i.nextSlide!=i.currSlide){i.busy=1;d.fn.cycle.custom(A,x,i,o)}o=i.nextSlide+1==k.length;i.nextSlide=o?0:i.nextSlide+1;i.currSlide=o?k.length-1:i.nextSlide-1}if(i.timeout)q.cycleTimeout=
setTimeout(function(){h(k,i,0,!i.rev)},i.timeout)}}}function l(k,i,o){var t=k[0].parentNode,q=t.cycleTimeout;if(q){clearTimeout(q);t.cycleTimeout=0}i.nextSlide=i.currSlide+o;if(i.nextSlide<0)i.nextSlide=k.length-1;else if(i.nextSlide>=k.length)i.nextSlide=0;h(k,i,1,o>=0);return false}d.fn.cycle=function(k){return this.each(function(){k=k||{};this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cyclePause=this.cycleTimeout=0;var i=d(this),o=k.slideExpr?d(k.slideExpr,this):i.children(),t=o.get();
if(t.length<2)window.console&&window.console.log&&window.console.log("terminating; too few slides: "+t.length);else{var q=d.extend({},d.fn.cycle.defaults,k||{},d.metadata?i.metadata():d.meta?i.data():{});q.before=q.before?[q.before]:[];q.after=q.after?[q.after]:[];q.after.unshift(function(){q.busy=0});var A=this.className;q.width=parseInt((A.match(/w:(\d+)/)||[])[1])||q.width;q.height=parseInt((A.match(/h:(\d+)/)||[])[1])||q.height;q.timeout=parseInt((A.match(/t:(\d+)/)||[])[1])||q.timeout;i.css("position")==
"static"&&i.css("position","relative");q.width&&i.width(q.width);q.height&&q.height!="auto"&&i.height(q.height);o.css({position:"absolute",top:0,left:0}).hide().each(function(x){d(this).css("z-index",t.length-x)});d(t[0]).css("opacity",1).show();d.browser.msie&&t[0].style.removeAttribute("filter");q.fit&&q.width&&o.width(q.width);q.fit&&q.height&&q.height!="auto"&&o.height(q.height);q.pause&&i.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});d.fn.cycle.transitions.fade(i,o,q);o.each(function(){var x=
d(this);this.cycleH=q.fit&&q.height?q.height:x.height();this.cycleW=q.fit&&q.width?q.width:x.width()});o.not(":eq(0)").css({opacity:0});q.cssFirst&&d(o[0]).css(q.cssFirst);if(q.timeout){if(q.speed.constructor==String)q.speed={slow:600,fast:200}[q.speed]||400;for(q.sync||(q.speed/=2);q.timeout-q.speed<250;)q.timeout+=q.speed}q.speedIn=q.speed;q.speedOut=q.speed;q.slideCount=t.length;q.currSlide=0;q.nextSlide=1;i=o[0];q.before.length&&q.before[0].apply(i,[i,i,q,true]);q.after.length>1&&q.after[1].apply(i,
[i,i,q,true]);if(q.click&&!q.next)q.next=q.click;q.next&&d(q.next).bind("click",function(){return l(t,q,q.rev?-1:1)});q.prev&&d(q.prev).bind("click",function(){return l(t,q,q.rev?1:-1)});if(q.timeout)this.cycleTimeout=setTimeout(function(){h(t,q,0,!q.rev)},q.timeout+(q.delay||0))}})};d.fn.cycle.custom=function(k,i,o,t){var q=d(k),A=d(i);A.css({opacity:0});var x=function(){A.animate({opacity:1},o.speedIn,o.easeIn,t)};q.animate({opacity:0},o.speedOut,o.easeOut,function(){q.css({display:"none"});o.sync||
x()});o.sync&&x()};d.fn.cycle.transitions={fade:function(k,i,o){i.not(":eq(0)").css("opacity",0);o.before.push(function(){d(this).show()})}};d.fn.cycle.ver=function(){return"Lite-1.0"};d.fn.cycle.defaults={timeout:4E3,speed:1E3,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);