(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 j(){return true}function r(a){var b=RegExp("(^|\\.)"+a.type+"(\\.|$)"),e=true,g=[];c.each(c.data(this,"events").live||[],function(m,o){if(b.test(o.type))(m=c(a.target).closest(o.data)[0])&&g.push({elem:m,
fn:o})});g.sort(function(m,o){return c.data(m.elem,"closest")-c.data(o.elem,"closest")});c.each(g,function(){if(this.fn.call(this.elem,a,this.fn.data)===false)return e=false});return e}function u(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function A(){if(!U){U=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&&y==y.top&&function(){if(!c.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}c.ready()}}()}c.event.add(y,"load",c.ready)}}function C(a,b){var e={};c.each(V.concat.apply([],V.slice(0,b)),function(){e[this]=a});return e}var y=this,S=y.jQuery,aa=y.$,c=y.jQuery=y.$=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 o in m)for(var q in m[o])c.event.add(this,o,m[o][q],m[o][q].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 o=b?e:0;for(e=b?e+1:m.length;o<
e;o++){var q=m[o];if(q.selected){a=c(q).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 s=c.makeArray(a);c("option",this).each(function(){this.selected=c.inArray(this.value,s)>=0||c.inArray(this.text,s)>=0});if(!s.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(B,E){return b&&c.nodeName(B,"table")&&c.nodeName(E,"tr")?B.getElementsByTagName("tbody")[0]||B.appendChild(B.ownerDocument.createElement("tbody")):B}if(this[0]){var m=(this[0].ownerDocument||this[0]).createDocumentFragment();a=c.clean(a,this[0].ownerDocument||this[0],m);var o=m.firstChild;if(o)for(var q=0,s=this.length;q<s;q++)e.call(g(this[q],o),this.length>1||q>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 o in m){var q=a[o],s=m[o];if(a!==s)if(g&&s&&typeof s==="object"&&!s.nodeType)a[o]=c.extend(g,q||(s.length!=null?[]:{}),s);else if(s!==void 0)a[o]=s}return a};var da=/z-?index|font-?weight|opacity|zoom|line-?height/i,W=document.defaultView||{},X=Object.prototype.toString;c.extend({noConflict:function(a){y.$=
aa;if(a)y.jQuery=S;return c},isFunction:function(a){return X.call(a)==="[object Function]"},isArray:function(a){return X.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,o=a.length;if(e)if(o===void 0)for(g in a){if(b.apply(a[g],e)===false)break}else for(;m<o;){if(b.apply(a[m++],e)===false)break}else if(o===void 0)for(g in a){if(b.call(a[g],g,a[g])===false)break}else for(e=a[0];m<o&&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 o=b=="width"?["Left","Right"]:["Top","Bottom"],q=function(){m=b=="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&c.each(o,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?q():c.swap(a,e,q);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=O;if(!e&&m&&m[b])g=m[b];else if(W.getComputedStyle){if(b.match(/float/i))b="float";b=b.replace(/([A-Z])/g,"-$1").toLowerCase();if(a=W.getComputedStyle(a,null))g=a.getPropertyValue(b);if(b=="opacity"&&g=="")g="1"}else if(a.currentStyle){g=b.replace(/\-(\w)/g,function(o,q){return q.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 o=b.createElement("div");
c.each(a,function(q,s){if(typeof s==="number")s+="";if(s){if(typeof s==="string"){s=s.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+">"});q=s.replace(/^\s+/,"").substring(0,10).toLowerCase();var B=!q.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!q.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||q.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!q.indexOf("<tr")&&[2,"<table><tbody>",
"</tbody></table>"]||(!q.indexOf("<td")||!q.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!q.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!c.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(o.innerHTML=B[1]+s+B[2];B[0]--;)o=o.lastChild;if(!c.support.tbody){var E=/<tbody/i.test(s);q=!q.indexOf("<table")&&!E?o.firstChild&&o.firstChild.childNodes:B[1]=="<table>"&&!E?o.childNodes:[];for(B=q.length-1;B>=0;--B)c.nodeName(q[B],"tbody")&&
!q[B].childNodes.length&&q[B].parentNode.removeChild(q[B])}!c.support.leadingWhitespace&&/^\s/.test(s)&&o.insertBefore(b.createTextNode(s.match(/^\s*/)[0]),o.firstChild);s=c.makeArray(o.childNodes)}if(s.nodeType)m.push(s);else m=c.merge(m,s)}});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 o=/href|src|style/.test(b);if(b in a&&g&&!o){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&&o?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(q,s){return s.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 o=c.data(a[g]);if(!e[o]){e[o]=true;b.push(a[g])}}}catch(q){b=a}return b},grep:function(a,b,e){for(var g=[],m=0,o=a.length;m<o;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 o=b(a[g],g);if(o!=null)e[e.length]=o}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),o=0,q=m.length;o<
q;o++){var s=(o>0?this.clone(true):this).get();c.fn[b].apply(c(m[o]),s);g=g.concat(s)}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,Y={};c.extend({cache:{},data:function(a,b,e){a=a==y?Y: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==y?Y: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,i,n,p,t,v){t=f=="previousSibling"&&!v;for(var w=0,F=p.length;w<F;w++){var x=p[w];if(x){if(t&&x.nodeType===1){x.sizcache=n;x.sizset=w}x=x[f];for(var H=false;x;){if(x.sizcache===n){H=p[x.sizset];break}if(x.nodeType===1&&!v){x.sizcache=n;x.sizset=w}if(x.nodeName===i){H=x;break}x=x[f]}p[w]=H}}}function b(f,i,n,p,t,v){t=f=="previousSibling"&&!v;for(var w=0,F=p.length;w<F;w++){var x=p[w];if(x){if(t&&x.nodeType===1){x.sizcache=n;x.sizset=w}x=x[f];for(var H=false;x;){if(x.sizcache===
n){H=p[x.sizset];break}if(x.nodeType===1){if(!v){x.sizcache=n;x.sizset=w}if(typeof i!=="string"){if(x===i){H=true;break}}else if(o.filter(i,[x]).length>0){H=x;break}}x=x[f]}p[w]=H}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,g=0,m=Object.prototype.toString,o=function(f,i,n,p){n=n||[];i=i||document;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!f||typeof f!=="string")return n;var t=[],v,w,F,x=true;for(e.lastIndex=0;(v=
e.exec(f))!==null;){t.push(v[1]);if(v[2]){F=RegExp.rightContext;break}}if(t.length>1&&s.exec(f))if(t.length===2&&q.relative[t[0]])v=L(t[0]+t[1],i);else for(v=q.relative[t[0]]?[i]:o(t.shift(),i);t.length;){f=t.shift();if(q.relative[f])f+=t.shift();v=L(f,v)}else{v=p?{expr:t.pop(),set:E(p)}:o.find(t.pop(),t.length===1&&i.parentNode?i.parentNode:i,z(i));v=o.filter(v.expr,v.set);if(t.length>0)w=E(v);else x=false;for(;t.length;){var H=t.pop(),J=H;if(q.relative[H])J=t.pop();else H="";if(J==null)J=i;q.relative[H](w,
J,z(i))}}w||(w=v);if(!w)throw"Syntax error, unrecognized expression: "+(H||f);if(m.call(w)==="[object Array]")if(x)if(i.nodeType===1)for(f=0;w[f]!=null;f++){if(w[f]&&(w[f]===true||w[f].nodeType===1&&I(i,w[f])))n.push(v[f])}else for(f=0;w[f]!=null;f++)w[f]&&w[f].nodeType===1&&n.push(v[f]);else n.push.apply(n,w);else E(w,n);if(F){o(F,i,n,p);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};o.matches=function(f,i){return o(f,null,null,
i)};o.find=function(f,i,n){var p,t;if(!f)return[];for(var v=0,w=q.order.length;v<w;v++){var F=q.order[v];if(t=q.match[F].exec(f)){var x=RegExp.leftContext;if(x.substr(x.length-1)!=="\\"){t[1]=(t[1]||"").replace(/\\/g,"");p=q.find[F](t,i,n);if(p!=null){f=f.replace(q.match[F],"");break}}}}p||(p=i.getElementsByTagName("*"));return{set:p,expr:f}};o.filter=function(f,i,n,p){for(var t=f,v=[],w=i,F,x,H=i&&i[0]&&z(i[0]);f&&i.length;){for(var J in q.filter)if((F=q.match[J].exec(f))!=null){var fa=q.filter[J],
N,P;x=false;if(w==v)v=[];if(q.preFilter[J])if(F=q.preFilter[J](F,w,n,v,p,H)){if(F===true)continue}else x=N=true;if(F)for(var Q=0;(P=w[Q])!=null;Q++)if(P){N=fa(P,F,Q,w);var Z=p^!!N;if(n&&N!=null)if(Z)x=true;else w[Q]=false;else if(Z){v.push(P);x=true}}if(N!==void 0){n||(w=v);f=f.replace(q.match[J],"");if(!x)return[];break}}if(f==t)if(x==null)throw"Syntax error, unrecognized expression: "+f;else break;t=f}return w};var q=o.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(f){return f.getAttribute("href")}},
relative:{"+":function(f,i,n){var p=typeof i==="string",t=p&&!/\W/.test(i);p=p&&!t;if(t&&!n)i=i.toUpperCase();n=0;t=f.length;for(var v;n<t;n++)if(v=f[n]){for(;(v=v.previousSibling)&&v.nodeType!==1;);f[n]=p||v&&v.nodeName===i?v||false:v===i}p&&o.filter(i,f,true)},">":function(f,i,n){var p=typeof i==="string";if(p&&!/\W/.test(i)){i=n?i:i.toUpperCase();n=0;for(var t=f.length;n<t;n++){var v=f[n];if(v){p=v.parentNode;f[n]=p.nodeName===i?p:false}}}else{n=0;for(t=f.length;n<t;n++)if(v=f[n])f[n]=p?v.parentNode:
v.parentNode===i;p&&o.filter(i,f,true)}},"":function(f,i,n){var p=g++,t=b;if(!i.match(/\W/)){var v=i=n?i:i.toUpperCase();t=a}t("parentNode",i,p,f,v,n)},"~":function(f,i,n){var p=g++,t=b;if(typeof i==="string"&&!i.match(/\W/)){var v=i=n?i:i.toUpperCase();t=a}t("previousSibling",i,p,f,v,n)}},find:{ID:function(f,i,n){if(typeof i.getElementById!=="undefined"&&!n)return(f=i.getElementById(f[1]))?[f]:[]},NAME:function(f,i){if(typeof i.getElementsByName!=="undefined"){var n=[];i=i.getElementsByName(f[1]);
for(var p=0,t=i.length;p<t;p++)i[p].getAttribute("name")===f[1]&&n.push(i[p]);return n.length===0?null:n}},TAG:function(f,i){return i.getElementsByTagName(f[1])}},preFilter:{CLASS:function(f,i,n,p,t,v){f=" "+f[1].replace(/\\/g,"")+" ";if(v)return f;v=0;for(var w;(w=i[v])!=null;v++)if(w)if(t^(w.className&&(" "+w.className+" ").indexOf(f)>=0))n||p.push(w);else if(n)i[v]=false;return false},ID:function(f){return f[1].replace(/\\/g,"")},TAG:function(f,i){for(var n=0;i[n]===false;n++);return i[n]&&z(i[n])?
f[1]:f[1].toUpperCase()},CHILD:function(f){if(f[1]=="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(f[2]=="even"&&"2n"||f[2]=="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=i[1]+(i[2]||1)-0;f[3]=i[3]-0}f[0]=g++;return f},ATTR:function(f,i,n,p,t,v){i=f[1].replace(/\\/g,"");if(!v&&q.attrMap[i])f[1]=q.attrMap[i];if(f[2]==="~=")f[4]=" "+f[4]+" ";return f},PSEUDO:function(f,i,n,p,t){if(f[1]==="not")if(f[3].match(e).length>1||/^\w/.test(f[3]))f[3]=o(f[3],null,null,i);else{f=o.filter(f[3],i,n,true^
t);n||p.push.apply(p,f);return false}else if(q.match.POS.test(f[0])||q.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,i,n){return!!o(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,i){return i===0},last:function(f,i,n,p){return i===p.length-1},even:function(f,i){return i%2===0},odd:function(f,i){return i%2===1},lt:function(f,i,n){return i<n[3]-0},gt:function(f,i,n){return i>n[3]-0},nth:function(f,i,n){return n[3]-0==i},eq:function(f,i,n){return n[3]-0==i}},filter:{PSEUDO:function(f,i,n,p){var t=i[1],v=q.filters[t];if(v)return v(f,n,i,p);else if(t==="contains")return(f.textContent||f.innerText||"").indexOf(i[3])>=0;else if(t==="not"){i=i[3];n=0;for(p=
i.length;n<p;n++)if(i[n]===f)return false;return true}},CHILD:function(f,i){var n=i[1],p=f;switch(n){case "only":case "first":for(;p=p.previousSibling;)if(p.nodeType===1)return false;if(n=="first")return true;p=f;case "last":for(;p=p.nextSibling;)if(p.nodeType===1)return false;return true;case "nth":n=i[2];var t=i[3];if(n==1&&t==0)return true;i=i[0];var v=f.parentNode;if(v&&(v.sizcache!==i||!f.nodeIndex)){var w=0;for(p=v.firstChild;p;p=p.nextSibling)if(p.nodeType===1)p.nodeIndex=++w;v.sizcache=i}f=
f.nodeIndex-t;return n==0?f==0:f%n==0&&f/n>=0}},ID:function(f,i){return f.nodeType===1&&f.getAttribute("id")===i},TAG:function(f,i){return i==="*"&&f.nodeType===1||f.nodeName===i},CLASS:function(f,i){return(" "+(f.className||f.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(f,i){var n=i[1];f=q.attrHandle[n]?q.attrHandle[n](f):f[n]!=null?f[n]:f.getAttribute(n);n=f+"";var p=i[2];i=i[4];return f==null?p==="!=":p==="="?n===i:p==="*="?n.indexOf(i)>=0:p==="~="?(" "+n+" ").indexOf(i)>=0:!i?n&&f!==
false:p==="!="?n!=i:p==="^="?n.indexOf(i)===0:p==="$="?n.substr(n.length-i.length)===i:p==="|="?n===i||n.substr(0,i.length+1)===i+"-":false},POS:function(f,i,n,p){var t=q.setFilters[i[2]];if(t)return t(f,n,i,p)}}},s=q.match.POS;for(var B in q.match)q.match[B]=RegExp(q.match[B].source+/(?![^\[]*\])(?![^\(]*\))/.source);var E=function(f,i){f=Array.prototype.slice.call(f);if(i){i.push.apply(i,f);return i}return f};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(D){E=function(f,
i){i=i||[];if(m.call(f)==="[object Array]")Array.prototype.push.apply(i,f);else if(typeof f.length==="number")for(var n=0,p=f.length;n<p;n++)i.push(f[n]);else for(n=0;f[n];n++)i.push(f[n]);return i}}var G;if(document.documentElement.compareDocumentPosition)G=function(f,i){f=f.compareDocumentPosition(i)&4?-1:f===i?0:1;if(f===0)hasDuplicate=true;return f};else if("sourceIndex"in document.documentElement)G=function(f,i){f=f.sourceIndex-i.sourceIndex;if(f===0)hasDuplicate=true;return f};else if(document.createRange)G=
function(f,i){var n=f.ownerDocument.createRange(),p=i.ownerDocument.createRange();n.selectNode(f);n.collapse(true);p.selectNode(i);p.collapse(true);f=n.compareBoundaryPoints(Range.START_TO_END,p);if(f===0)hasDuplicate=true;return f};(function(){var f=document.createElement("form"),i="script"+(new Date).getTime();f.innerHTML="<input name='"+i+"'/>";var n=document.documentElement;n.insertBefore(f,n.firstChild);if(document.getElementById(i)){q.find.ID=function(p,t,v){if(typeof t.getElementById!=="undefined"&&
!v)return(t=t.getElementById(p[1]))?t.id===p[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===p[1]?[t]:void 0:[]};q.filter.ID=function(p,t){var v=typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id");return p.nodeType===1&&v&&v.nodeValue===t}}n.removeChild(f)})();(function(){var f=document.createElement("div");f.appendChild(document.createComment(""));if(f.getElementsByTagName("*").length>0)q.find.TAG=function(i,n){n=n.getElementsByTagName(i[1]);if(i[1]===
"*"){i=[];for(var p=0;n[p];p++)n[p].nodeType===1&&i.push(n[p]);n=i}return n};f.innerHTML="<a href='#'></a>";if(f.firstChild&&typeof f.firstChild.getAttribute!=="undefined"&&f.firstChild.getAttribute("href")!=="#")q.attrHandle.href=function(i){return i.getAttribute("href",2)}})();document.querySelectorAll&&function(){var f=o,i=document.createElement("div");i.innerHTML="<p class='TEST'></p>";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){o=function(n,p,t,v){p=p||document;if(!v&&p.nodeType===
9&&!z(p))try{return E(p.querySelectorAll(n),t)}catch(w){}return f(n,p,t,v)};o.find=f.find;o.filter=f.filter;o.selectors=f.selectors;o.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){q.order.splice(1,0,"CLASS");q.find.CLASS=
function(i,n,p){if(typeof n.getElementsByClassName!=="undefined"&&!p)return n.getElementsByClassName(i[1])}}}}();var I=document.compareDocumentPosition?function(f,i){return f.compareDocumentPosition(i)&16}:function(f,i){return f!==i&&(f.contains?f.contains(i):true)},z=function(f){return f.nodeType===9&&f.documentElement.nodeName!=="HTML"||!!f.ownerDocument&&z(f.ownerDocument)},L=function(f,i){var n=[],p="",t;for(i=i.nodeType?[i]:i;t=q.match.PSEUDO.exec(f);){p+=t[0];f=f.replace(q.match.PSEUDO,"")}f=
q.relative[f]?f+"*":f;t=0;for(var v=i.length;t<v;t++)o(f,i[t],n);return o.filter(p,n)};c.find=o;c.filter=o.filter;c.expr=o.selectors;c.expr[":"]=c.expr.filters;o.selectors.filters.hidden=function(f){return f.offsetWidth===0||f.offsetHeight===0};o.selectors.filters.visible=function(f){return f.offsetWidth>0||f.offsetHeight>0};o.selectors.filters.animated=function(f){return c.grep(c.timers,function(i){return f===i.elem}).length};c.multiFilter=function(f,i,n){if(n)f=":not("+f+")";return o.matches(f,
i)};c.dir=function(f,i){var n=[];for(f=f[i];f&&f!=document;){f.nodeType==1&&n.push(f);f=f[i]}return n};c.nth=function(f,i,n){i=i||1;for(var p=0;f;f=f[n])if(f.nodeType==1&&++p==i)break;return f};c.sibling=function(f,i){for(var n=[];f;f=f.nextSibling)f.nodeType==1&&f!=i&&n.push(f);return n}})();c.event={add:function(a,b,e,g){if(!(a.nodeType==3||a.nodeType==8)){if(a.setInterval&&a!=y)a=y;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",
{}),o=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});o.elem=a;c.each(b.split(/\s+/),function(q,s){q=s.split(".");s=q.shift();e.type=q.slice().sort().join(".");var B=m[s];c.event.specialAll[s]&&c.event.specialAll[s].setup.call(a,g,q);if(!B){B=m[s]={};if(!c.event.special[s]||c.event.special[s].setup.call(a,g,q)===false)if(a.addEventListener)a.addEventListener(s,o,false);else a.attachEvent&&
a.attachEvent("on"+s,o)}B[e.guid]=e;c.event.global[s]=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 o in g)this.remove(a,o+(b||""));else{if(b.type){e=b.handler;b=b.type}c.each(b.split(/\s+/),function(q,s){q=s.split(".");s=q.shift();var B=RegExp("(^|\\.)"+q.slice().sort().join(".*\\.")+"(\\.|$)");if(g[s]){if(e)delete g[s][e.guid];else for(var E in g[s])B.test(g[s][E].type)&&
delete g[s][E];c.event.specialAll[s]&&c.event.specialAll[s].teardown.call(a,q);for(m in g[s])break;if(!m){if(!c.event.special[s]||c.event.special[s].teardown.call(a,q)===false)if(a.removeEventListener)a.removeEventListener(s,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+s,c.data(a,"handle"));m=null;delete g[s]}}})}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 o=c.data(e,"handle");o&&o.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(q){}}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||y.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 o=
e[m];if(b||g.test(o.type)){a.handler=o;a.data=o.data;o=o.apply(this,arguments);if(o!==void 0){a.result=o;if(o===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:A,teardown:function(){}}},specialAll:{live:{setup:function(a,b){c.event.add(this,b[0],r)},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],r)}}}}};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=j;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
j;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=j;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var $=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,$,b)},teardown:function(){c.event.remove(this,a,$)}}});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){A();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(u(a,this.selector),this.selector,b);return this},die:function(a,b){c(document).unbind(u(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 U=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(y).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("*"),o=e.getElementsByTagName("a")[0];if(!(!m||!m.length||!o)){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(o.getAttribute("style")),hrefNormalized:o.getAttribute("href")==="/a",opacity:o.style.opacity==="0.5",cssFloat:!!o.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+g+"=1;"))}catch(q){}a.insertBefore(b,a.firstChild);if(y[g]){c.support.scriptEval=true;delete y[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 s=document.createElement("div");s.style.width=s.style.paddingLeft="1px";document.body.appendChild(s);
c.boxModel=c.support.boxModel=s.offsetWidth===2;document.body.removeChild(s).style.display="none"})}})();var O=c.support.cssFloat?"cssFloat":"styleFloat";c.props={"for":"htmlFor","class":"className","float":O,cssFloat:O,styleFloat:O,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 o=this;c.ajax({url:a,type:g,dataType:"html",data:b,complete:function(q,s){if(s=="success"||s=="notmodified")o.html(m?c("<div/>").append(q.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(m):q.responseText);e&&o.each(e,[q.responseText,s,q])}});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 y.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(q,o);a.global&&c.event.trigger("ajaxSuccess",[z,a])}function e(){a.complete&&a.complete(z,o);a.global&&c.event.trigger("ajaxComplete",[z,a]);a.global&&!--c.active&&
c.event.trigger("ajaxStop")}a=c.extend(true,a,c.extend(true,{},c.ajaxSettings,a));var g,m=/=\?(&|$)/g,o,q,s=a.type.toUpperCase();if(a.data&&a.processData&&typeof a.data!=="string")a.data=c.param(a.data);if(a.dataType=="jsonp"){if(s=="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";y[g]=function(p){q=p;b();e();y[g]=void 0;try{delete y[g]}catch(t){}E&&E.removeChild(D)}}if(a.dataType=="script"&&a.cache==null)a.cache=false;if(a.cache===false&&s=="GET"){m=h();var B=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+m+"$2");a.url=B+(B==a.url?(a.url.match(/\?/)?"&":"?")+"_="+m:"")}if(a.data&&s=="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"&&s=="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,z=a.xhr();a.username?z.open(s,a.url,a.async,a.username,a.password):z.open(s,a.url,a.async);try{a.data&&z.setRequestHeader("Content-Type",a.contentType);if(a.ifModified)z.setRequestHeader("If-Modified-Since",c.lastModified[a.url]||"Thu, 01 Jan 1970 00:00:00 GMT");z.setRequestHeader("X-Requested-With","XMLHttpRequest");z.setRequestHeader("Accept",a.dataType&&a.accepts[a.dataType]?a.accepts[a.dataType]+", */*":a.accepts._default)}catch(L){}if(a.beforeSend&&a.beforeSend(z,a)===false){a.global&&
!--c.active&&c.event.trigger("ajaxStop");z.abort();return false}a.global&&c.event.trigger("ajaxSend",[z,a]);var f=function(p){if(z.readyState==0){if(i){clearInterval(i);i=null;a.global&&!--c.active&&c.event.trigger("ajaxStop")}}else if(!I&&z&&(z.readyState==4||p=="timeout")){I=true;if(i){clearInterval(i);i=null}o=p=="timeout"?"timeout":!c.httpSuccess(z)?"error":a.ifModified&&c.httpNotModified(z,a.url)?"notmodified":"success";if(o=="success")try{q=c.httpData(z,a.dataType,a)}catch(t){o="parsererror"}if(o==
"success"){var v;try{v=z.getResponseHeader("Last-Modified")}catch(w){}if(a.ifModified&&v)c.lastModified[a.url]=v;g||b()}else c.handleError(a,z,o);e();p&&z.abort();if(a.async)z=null}};if(a.async){var i=setInterval(f,13);a.timeout>0&&setTimeout(function(){z&&!I&&f("timeout")},a.timeout)}try{z.send(a.data)}catch(n){c.handleError(a,z,null,n)}a.async||f();return z}},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=y.eval("("+a+")")}return a},param:function(a){function b(m,o){e[e.length]=encodeURIComponent(m)+"="+encodeURIComponent(o)}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 T={},R,V=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft",
"marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a)return this.animate(C("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(T[e])g=T[e];else{var m=c("<"+e+" />").appendTo("body");g=m.css("display");if(g==="none")g="block";m.remove();T[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(C("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(C("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 o=c.extend({},m),q,s=this.nodeType==1&&c(this).is(":hidden"),B=this;for(q in a){if(a[q]=="hide"&&s||a[q]=="show"&&!s)return o.complete.call(this);if((q=="height"||q=="width")&&this.style){o.display=c.css(this,"display");o.overflow=this.style.overflow}}if(o.overflow!=null)this.style.overflow=
"hidden";o.curAnim=c.extend({},a);c.each(a,function(E,D){var G=new c.fx(B,o,E);if(/toggle|show|hide/.test(D))G[D=="toggle"?s?"show":"hide":D](a);else{var I=D.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),z=G.cur(true)||0;if(I){D=parseFloat(I[2]);var L=I[3]||"px";if(L!="px"){B.style[E]=(D||1)+L;z=(D||1)/G.cur(true)*z;B.style[E]=z+L}if(I[1])D=(I[1]=="-="?-1:1)*D+z;G.custom(z,D,L)}else G.custom(z,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:C("show",1),slideUp:C("hide",1),slideToggle:C("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(o){return m.step(o)}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)&&!R)R=setInterval(function(){for(var o=c.timers,q=0;q<o.length;q++)o[q]()||o.splice(q--,1);if(!o.length){clearInterval(R);R=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,o=e.body;e=e.defaultView;g=e.getComputedStyle(a,null);for(var q=a.offsetTop,s=a.offsetLeft;(a=a.parentNode)&&a!==o&&a!==m;){g=e.getComputedStyle(a,
null);q-=a.scrollTop;s-=a.scrollLeft;if(a===b){q+=a.offsetTop;s+=a.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName))){q+=parseInt(g.borderTopWidth,10)||0;s+=parseInt(g.borderLeftWidth,10)||0}b=a.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&g.overflow!=="visible"){q+=parseInt(g.borderTopWidth,10)||0;s+=parseInt(g.borderLeftWidth,10)||0}g=g}if(g.position==="relative"||g.position==="static"){q+=o.offsetTop;s+=o.offsetLeft}if(g.position===
"fixed"){q+=Math.max(m.scrollTop,o.scrollTop);s+=Math.max(m.scrollLeft,o.scrollLeft)}return{top:q,left:s}};c.offset={initialize:function(){if(!this.initialized){var a=document.body,b=document.createElement("div"),e,g,m,o=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=o;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==y||this==document?y.scrollTo(!a?g:c(y).scrollLeft(),a?g:c(y).scrollTop()):(this[e]=g)}):this[0]==y||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]==y?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(j){return j<10?"0"+j:j}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(j){if(l.test(j))return'"'+j.replace(l,function(r){var u=k[r];if(typeof u==="string")return u;u=r.charCodeAt();return"\\u00"+Math.floor(u/16).toString(16)+(u%16).toString(16)})+'"';return'"'+j+'"'};
d.toJSON=function(j,r){var u=typeof j;if(u=="undefined")return"undefined";else if(u=="number"||u=="boolean")return j+"";else if(j===null)return"null";if(u=="string")return d.quoteString(j);if(u=="object"&&typeof j.toJSON=="function")return j.toJSON(r);if(u!="function"&&typeof j.length=="number"){for(var A=[],C=0;C<j.length;C++)A.push(d.toJSON(j[C],r));return r?"["+A.join(",")+"]":"["+A.join(", ")+"]"}if(u=="function")throw new TypeError("Unable to convert object of type 'function' to json.");A=[];
for(C in j){u=typeof C;if(u=="number")u='"'+C+'"';else if(u=="string")u=d.quoteString(C);else continue;var y=d.toJSON(j[C],r);if(typeof y=="string")r?A.push(u+":"+y):A.push(u+": "+y)}return"{"+A.join(", ")+"}"};d.compactJSON=function(j){return d.toJSON(j,true)};d.evalJSON=function(j){return eval("("+j+")")};d.secureEvalJSON=function(j){var r=j;r=r.replace(/\\["\\\/bfnrtu]/g,"@");r=r.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");r=r.replace(/(?:^|:|,)(?:\s*\[)+/g,
"");if(/^[\],:{}\s]*$/.test(r))return eval("("+j+")");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,j){var r=function(){};r.prototype=j.prototype;k.prototype=new r;k.prototype.constructor=k;k.superclass=j.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(j,r,u){try{var A=new k;A.initialize(j,r,u);k.instances[""+j]=A;ncm.registeredInstances&&ncm.registeredInstances.push({id:j,object:A})}catch(C){ncm.showError("Error registering component instance",C,null,k.inPreview,k.jsp_utils)}};k.getRegistered=function(j){return k.instances[""+j]};k.get=function(j){return k.getRegistered(j)};k.initProperties=function(j){var r=function(A){A.properties&&
$jq.each(A.properties,function(){k.properties[this.name]=this.value})};k.properties={};k.instances={};k.datatype=j.datatype?j.datatype:null;k.language=j.language?j.language:null;k.jsp_utils=j.jsp_utils?j.jsp_utils:null;k.pageUrl=j.pageUrl?j.pageUrl:null;k.channel=j.channel?j.channel:null;k.inPreview=j.inPreview?j.inPreview:false;k.issueId=j.issueId?j.issueId:null;k.skin=j.skin?j.skin:null;try{k.pageId=j.pageId?j.pageId:null}catch(u){}if(j.json&&j.json.properties)r(j.json);else{j=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:j,dataType:"json",error:function(A,C,y){ncm.showError(C,y,A,k.inPreview,k.jsp_utils)},success:function(A){r(A)}})}};k.getProperty=function(j){(j=k.properties[j])||(j="");if(typeof j==="undefined")j="";return j}})(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,j,r){if(ncm.loadedModules[d])return false;var u=function(){k&&$jq.isFunction(k)&&k();if(j)ncm.triggerEvent(ncm.customEvents.ncmScriptsLoaded+(r?r:""))},A=true;$jq.ajax({async:h?h:false,cache:l?l:false,type:"GET",
url:d,dataType:"script",contentType:"text/javascript",error:function(C,y,S){A=false;ncm.showError(y,S,C)},complete:function(C){if(!C||C.status==200||C.status==304)u()}});return ncm.loadedModules[d]=A},initProperties:function(d,h){var l=function(j){j.properties&&$jq.each(j.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(j,r,u){ncm.showError(r,u,j,d.inPreview,d.jsp_utils)},success:function(j){l(j)}})}},
initSimpleFields:function(d,h,l){var k=function(r){r.simplefields&&$jq.each(r.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 j=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:j,dataType:"json",error:function(r,u,A){ncm.showError(u,A,r,d.inPreview,d.jsp_utils)},success:function(r){k(r)}})}},initEventsListeners:function(d,h){if(window["jso"+h.id]&&window["jso"+h.id].RELATIONS)$jq.each(window["jso"+h.id].RELATIONS,function(){var j="",r=[];$jq.each(this.simplefields,function(){if(this.name==="DATAID")j=this.value;if(this.name==="EVENTS")r=this.value});j!==""&&r.length>0&&$jq.each(r,function(){h.eventsListeners[this]||(h.eventsListeners[this]=[]);h.eventsListeners[this].push(parseInt(j))})});
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(j,r,u){ncm.showError(r,u,j,d.inPreview,d.jsp_utils)},success:function(j){j!=null&&j.length>0&&$jq.each(j,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(j,r,u){ncm.showError(r,u,j,d.inPreview,d.jsp_utils)},success:function(j){j!=null&&j.length>0&&$jq.each(j,function(r,u){h.triggersMap[r]=ncm.intval(this);h.triggers[""+u]=""})}})},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(j,r){switch(j){case 0:h=this;break;case 1:l=r;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,j){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":"");j||(j=new String("components/components-utils.jsp"));$jq.post(j,{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,j){if(l){$jq(h).bind(d,function(r,u,A,C){if($jq.inArray(l.id,u)!=-1){r=$jq.inArray(C,l.triggersMap);if(r>-1)l.triggers[""+l.triggersMap[r]]=
A;A="";for(r=0;r<l.triggersMap.length;r+=1){u=l.triggers[""+l.triggersMap[r]];if($jq.trim(""+u)!="")A+=($jq.trim(A)!=""?"&":"")+u}$jq.isFunction(l[k])&&l[k](A,true,j)}});ncm.addEventListener(d,h)}},bindCustomEventForSelector:function(d,h,l,k){if(l)if(ncm.customEventsTriggers[""+l]){$jq(h).bind(d,function(j,r,u){$jq.inArray(u,ncm.customEventsTriggers[""+l])!=-1&&k&&$jq.isFunction(k)&&k(r)});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 j=this.indexOf("="),r=[];if(j>0){r[0]=this.substr(0,j);r[1]=this.substr(j+1)}else{r[0]=this;r[1]=""}h=ncm.concat(h,k===0?"":d,r[0],d,r[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 j=k?k.indexOf(".doc")!=-1||k.indexOf(".xsl")!=-1||k.indexOf(".pdf")!=-1||k.indexOf(".ppt")!=-1:false,r=this.getAttribute("target");r=r?r=="_blank":false;var u=this.getAttribute("title");
l+="/"+(j?"download":r?"external_link":"internal_link");l+="/"+(u?u: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,
j=[];if(/\.(pdf|doc|rtf|zip|rar|xls|docx|ppt|pps|xlsx)$/i.test(d)){j.push("1");j.push(d.substr(d.lastIndexOf(".")+1))}else{if(h.test(d))j.push("2");else k.test(d)?j.push("3"):j.push("-1");j.push(l)}j.push(d);return j},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,
j){j=$jq.trim(j);if(j.indexOf(l)==0){h=j.substring(l.length,j.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,j){$jq.getJSON(k,{objectId:d,objectField:h,pageUrl:l},function(r){r&&r.image&&$jq(j).css("background-image",ncm.concat("url","(",r.image,")"))})},isDetailsStep:function(){var d=window.location.search.replace(/\?/,"");return(d.indexOf("ID=")!==-1||d.indexOf("PRDID=")!==-1||d.indexOf("PROID=")!==-1)&&d.indexOf("LISTID")==-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(j,r){if(r)h=ncm.concat(h,h!=""?"&":"",k.name,"=",r.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,j){if(j.value||h)l[j.name]=j.value?j.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 j=d.getRequestParam(ncm.concat(d.getPrefix(),
"page"));if(j==="")j="0";l.each(function(r){if(r===0)$jq("a",this).linkEvents(function(){ncm.exec(d,"gotoPage",parseInt(j)>0?parseInt(j)-1:0,h);return false});else r===l.length-1?$jq("a",this).linkEvents(function(){ncm.exec(d,"gotoPage",parseInt(j)<k-1?parseInt(j)+1:k-1,h);return false}):$jq("a",this).linkEvents(function(){var u=ncm.intval($jq(this).html())-1;if(u===-1)u=r-1;u!==parseInt(j)&&ncm.exec(d,"gotoPage",u,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,j=0,r=0,u=true;try{r=ncm.intval(l);j=ncm.intval(h.charAt(0)==="0"?h.substr(1):h);k=ncm.intval(d.charAt(0)==="0"?d.substr(1):d)}catch(A){u=
false}if(u){if(k<1||k>31||j<1||j>12||!r)u=false;if(k>ncm.dateUtil.getMaxDays(j,r))u=false}return u},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 j=32-(new Date($jq(d).val(),$jq(k).val()-1,32)).getDate();$jq("option",l).attr("disabled","");$jq("option:gt("+j+")",l).attr("disabled","disabled");$jq(l).val()>j&&$jq(l).val(j);$jq(h).val($jq(l).val()+"/"+$jq(k).val()+"/"+$jq(d).val())}else $jq(h).val("")},formDateValue:function(d,h){var l="",k="",j="",r="",u=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(){j=$jq(this).val()});if(l===""&&k===""&&j==="")return r;if(k&&!j)j=""+u.getFullYear();if(!k&&j)k=(u.getMonth()<9?"0":"")+(u.getMonth()+1);return r=ncm.dateUtil.checkDateCorrect(l,k,j)?l+"/"+k+"/"+j:"#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(j){j.simplefields&&$jq.each(j.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(j,r,u){ncm.showError(r,u,j,h.constructor.inPreview,h.constructor.jsp_utils)},success:function(j){l(j)}})}},initEventsListeners:function(){var d=
this;if(window["jso"+this.id]&&window["jso"+this.id].RELATIONS)$jq.each(window["jso"+this.id].RELATIONS,function(k,j){var r="",u=[];$jq.each(this.simplefields,function(){if(this.name==="DATAID")r=this.value;if(this.name==="EVENTS")u=this.value});r!==""&&u.length>0&&$jq.each(u,function(){d.eventsListeners[this]||(d.eventsListeners[this]=[]);d.eventsListenersAdv[this]||(d.eventsListenersAdv[this]={});d.eventsListeners[this].push(parseInt(r));d.eventsListenersAdv[this][parseInt(r)]=j})});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,j,r){ncm.showError(j,r,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,j){d.triggers[""+j]=""})}}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,j,r){ncm.showError(j,r,k,d.constructor.inPreview,d.constructor.jsp_utils)},success:function(k){k!=null&&k.length>0&&$jq.each(k,function(j,r){d.triggersMap[j]=ncm.intval(this);d.triggers[""+r]=""})}})}},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 j=this.value;if(!(j instanceof Array)){this.value=[];this.value.push(j)}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("="),j=[];if(k>0){j[0]=ncm.decodeParams(this.substr(0,k));j[1]=ncm.decodeParams(this.substr(k+1))}else{j[0]=ncm.decodeParams(this);j[1]=""}if($jq.inArray(j[0],l)===-1){h.setRequestParam(j[0],j[1],false);l.push(j[0])}else h.setRequestParam(j[0],j[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 j=
ncm.concat("DS",this.value,".");$jq.inArray(j,h)===-1&&h.push(j);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(r,u){k.push(u)});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 j=[];$jq.ajax({async:false,type:"POST",dataType:"json",url:l,data:d,success:function(r){if(r!=null&&r.params!=null)for(var u=0;u<r.params.length;u+=1)if(r.params[u]!=null&&r.params[u].keys!=
null)for(var A=r.params[u].prefix,C=0;C<r.params[u].keys.length;C+=1){var y=ncm.concat(A,r.params[u].keys[C].key,"=",r.params[u].keys[C].value);if($jq.inArray(y,j)===-1){h=ncm.concat(h,"&",y);j.push(y)}}}});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",isIE7=jQuery.browser.msie&&jQuery.browser.version.substr(0,1)=="7";
function menuOver(d){if(isIE6){$jq(d).addClass("over");$jq(d).children("ul").css("display","block");$jq("#right-content .blue-title-block .query-search select").css("display","none")}}function menuOut(d){if(isIE6){$jq(d).removeClass("over");$jq(d).children("ul").css("display","none");$jq("#right-content .blue-title-block .query-search select").css("display","none")}}
function init(){$jq("#main-menu > li:first-child").addClass("first-child");$jq("#main-menu > li:last-child").addClass("last-child");$jq("#footer-menu > li:first-child").addClass("first-child");$jq("#footer-menu > li:last-child").addClass("last-child");$jq(".precio-medio-hotel").append("&euro;/noche");$jq(".categoria-alojamiento:contains('1 estrella')").addClass("categoria-alojamiento-1-estrella");$jq(".categoria-alojamiento:contains('2 estrellas')").addClass("categoria-alojamiento-2-estrellas");$jq(".categoria-alojamiento:contains('3 estrellas')").addClass("categoria-alojamiento-3-estrellas");
$jq(".categoria-alojamiento:contains('4 estrellas')").addClass("categoria-alojamiento-4-estrellas");$jq(".categoria-alojamiento:contains('5 estrellas')").addClass("categoria-alojamiento-5-estrellas");if(isIE6||isIE7){$jq("#breadcrumbs li:last-child").css("border","none");$jq(".query-results-ie-fix").parent().css("margin-left","-16px");$jq("#header #main-menu-wrapper ul li ul li:last-child a").css("border","none")}$jq(function(){$jq(".title-bar").click(function(){var d=$jq(this).parent().children(".block-content");
if(d.hasClass("block-noclosed")==false){if(d.hasClass("block-closable")){d.removeClass("block-closable");d.addClass("block-closed")}else{d.removeClass("block-closed");d.addClass("block-closable")}return false}})})}$jq(function(){init()});