(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(f,b){f=f||document;if(f.nodeType){this[0]=f;this.length=1;this.context=f;return this}if(typeof f==="string"){var c=M.exec(f);if(c&&(c[1]||!b)){if(c[1]){f=T.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return T().find(f)}var d=T(a||[]);d.context=document;d.selector=f;return d}}else{return T(b).find(f)}}else{if(T.isFunction(f)){return T(document).ready(f)}}if(f.selector&&f.context){this.selector=f.selector;this.context=f.context}return this.setArray(T.isArray(f)?f:T.makeArray(f))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]},pushStack:function(c,a,d){var b=T(c);b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+d}else{if(a){b.selector=this.selector+"."+a+"("+d+")"}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return T.each(this,a,b)},index:function(a){return T.inArray(a&&a.jquery?a[0]:a,this)},attr:function(c,a,b){var d=c;if(typeof c==="string"){if(a===ab){return this[0]&&T[b||"attr"](this[0],c)}else{d={};d[c]=a}}return this.each(function(f){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,f,c))}})},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=ab}return this.attr(b,a,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a))}var b="";T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=T(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0])}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild}return c}).append(this)}return this},wrapInner:function(a){return this.each(function(){T(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){T(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(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||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);a.length=0;T.find(b,this[0],a);return a}else{return this.pushStack(T.unique(T.map(this,function(c){return T.find(b,c)})),"find",b)}},clone:function(b){var d=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var g=this.outerHTML;if(!g){var f=this.ownerDocument.createElement("div");f.appendChild(this.cloneNode(true));g=f.innerHTML}return T.clean([g.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find("*").andSelf(),c=0;d.find("*").andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return}var h=T.data(a[c],"events");for(var f in h){for(var g in h[f]){T.event.add(this,f,h[f][g],h[f][g].data)}}c++})}return d},filter:function(a){return this.pushStack(T.isFunction(a)&&T.grep(this,function(b,c){return a.call(b,c)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(c){var a=T.expr.match.POS.test(c)?T(c):null,b=0;return this.map(function(){var d=this;while(d&&d.ownerDocument){if(a?a.index(d)>-1:T(d).is(c)){T.data(d,"closest",b);return d}d=d.parentNode;b++}})},not:function(b){if(typeof b==="string"){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),"not",b)}else{b=T.multiFilter(b,this)}}var a=b.length&&b[b.length-1]!==ab&&!b.nodeType;return this.filter(function(){return a?T.inArray(this,b)<0:this!=b})},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a==="string"?T(a):T.makeArray(a))))},is:function(a){return !!a&&T.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(c){if(c===ab){var j=this[0];if(j){if(T.nodeName(j,"option")){return(j.attributes.value||{}).specified?j.value:j.text}if(T.nodeName(j,"select")){var f=j.selectedIndex,b=[],a=j.options,g=j.type=="select-one";if(f<0){return null}for(var i=g?f:0,d=g?f+1:a.length;i<d;i++){var h=a[i];if(h.selected){c=T(h).val();if(g){return c}b.push(c)}}return b}return(j.value||"").replace(/\r/g,"")}return ab}if(typeof c==="number"){c+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(c)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,c)>=0||T.inArray(this.name,c)>=0)}else{if(T.nodeName(this,"select")){var k=T.makeArray(c);T("option",this).each(function(){this.selected=(T.inArray(this.value,k)>=0||T.inArray(this.text,k)>=0)});if(!k.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ab?(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(T.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(d,a,b){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment(),i=T.clean(d,(this[0].ownerDocument||this[0]),f),g=f.firstChild;if(g){for(var h=0,j=this.length;h<j;h++){b.call(c(this[h],g),this.length>1||h>0?f.cloneNode(true):f)}}if(i){T.each(i,E)}}return this;function c(l,k){return a&&T.nodeName(l,"table")&&T.nodeName(k,"tr")?(l.getElementsByTagName("tbody")[0]||l.appendChild(l.ownerDocument.createElement("tbody"))):l}}};T.fn.init.prototype=T.fn;function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:"script"})}else{T.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var c=arguments[0]||{},f=1,d=arguments.length,i=false,g;if(typeof c==="boolean"){i=c;c=arguments[1]||{};f=2}if(typeof c!=="object"&&!T.isFunction(c)){c={}}if(d==f){c=this;--f}for(;f<d;f++){if((g=arguments[f])!=null){for(var h in g){var b=c[h],a=g[h];if(c===a){continue}if(i&&a&&typeof a==="object"&&!a.nodeType){c[h]=T.extend(i,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){c[h]=a}}}}}return c};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(a){W.$=S;if(a){W.jQuery=F}return T},isFunction:function(a){return L.call(a)==="[object Function]"},isArray:function(a){return L.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&T.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(T.support.scriptEval){c.appendChild(document.createTextNode(a))}else{c.text=a}b.insertBefore(c,b.firstChild);b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(f,a,g){var h,d=0,c=f.length;if(g){if(c===ab){for(h in f){if(a.apply(f[h],g)===false){break}}}else{for(;d<c;){if(a.apply(f[d++],g)===false){break}}}}else{if(c===ab){for(h in f){if(a.call(f[h],h,f[h])===false){break}}}else{for(var b=f[0];d<c&&a.call(b,d,b)!==false;b=f[++d]){}}}return f},prop:function(b,a,c,d,f){if(T.isFunction(a)){a=a.call(b,d)}return typeof a==="number"&&c=="curCSS"&&!ag.test(f)?a+"px":a},className:{add:function(b,a){T.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!T.className.has(b.className,c)){b.className+=(b.className?" ":"")+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(c){return !T.className.has(a,c)}).join(" "):""}},has:function(a,b){return a&&T.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,c,a){var f={};for(var d in c){f[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c){b.style[d]=f[d]}},css:function(f,h,c,i){if(h=="width"||h=="height"){var a,g={position:"absolute",visibility:"hidden",display:"block"},b=h=="width"?["Left","Right"]:["Top","Bottom"];function d(){a=h=="width"?f.offsetWidth:f.offsetHeight;if(i==="border"){return}T.each(b,function(){if(!i){a-=parseFloat(T.curCSS(f,"padding"+this,true))||0}if(i==="margin"){a+=parseFloat(T.curCSS(f,"margin"+this,true))||0}else{a-=parseFloat(T.curCSS(f,"border"+this+"Width",true))||0}})}if(f.offsetWidth!==0){d()}else{T.swap(f,g,d)}return Math.max(0,Math.round(a))}return T.curCSS(f,h,c)},curCSS:function(f,i,h){var b,j=f.style;if(i=="opacity"&&!T.support.opacity){b=T.attr(j,"opacity");return b==""?"1":b}if(i.match(/float/i)){i=H}if(!h&&j&&j[i]){b=j[i]}else{if(Q.getComputedStyle){if(i.match(/float/i)){i="float"}i=i.replace(/([A-Z])/g,"-$1").toLowerCase();var a=Q.getComputedStyle(f,null);if(a){b=a.getPropertyValue(i)}if(i=="opacity"&&b==""){b="1"}}else{if(f.currentStyle){var d=i.replace(/\-(\w)/g,function(l,k){return k.toUpperCase()});b=f.currentStyle[i]||f.currentStyle[d];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var g=j.left,c=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;j.left=b||0;b=j.pixelLeft+"px";j.left=g;f.runtimeStyle.left=c}}}}return b},clean:function(h,b,d){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!d&&h.length===1&&typeof h[0]==="string"){var f=/^<(\w+)\s*\/?>$/.exec(h[0]);if(f){return[b.createElement(f[1])]}}var g=[],i=[],a=b.createElement("div");T.each(h,function(m,j){if(typeof j==="number"){j+=""}if(!j){return}if(typeof j==="string"){j=j.replace(/(<(\w+)[^>]*?)\/>/g,function(s,r,t){return t.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?s:r+"></"+t+">"});var o=j.replace(/^\s+/,"").substring(0,10).toLowerCase();var l=!o.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!o.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||o.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!o.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!o.indexOf("<td")||!o.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!o.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=l[1]+j+l[2];while(l[0]--){a=a.lastChild}if(!T.support.tbody){var k=/<tbody/i.test(j),p=!o.indexOf("<table")&&!k?a.firstChild&&a.firstChild.childNodes:l[1]=="<table>"&&!k?a.childNodes:[];for(var q=p.length-1;q>=0;--q){if(T.nodeName(p[q],"tbody")&&!p[q].childNodes.length){p[q].parentNode.removeChild(p[q])}}}if(!T.support.leadingWhitespace&&/^\s/.test(j)){a.insertBefore(b.createTextNode(j.match(/^\s*/)[0]),a.firstChild)}j=T.makeArray(a.childNodes)}if(j.nodeType){g.push(j)}else{g=T.merge(g,j)}});if(d){for(var c=0;g[c];c++){if(T.nodeName(g[c],"script")&&(!g[c].type||g[c].type.toLowerCase()==="text/javascript")){i.push(g[c].parentNode?g[c].parentNode.removeChild(g[c]):g[c])}else{if(g[c].nodeType===1){g.splice.apply(g,[c+1,0].concat(T.makeArray(g[c].getElementsByTagName("script"))))}d.appendChild(g[c])}}return i}return g},attr:function(c,g,b){if(!c||c.nodeType==3||c.nodeType==8){return ab}var f=!T.isXMLDoc(c),a=b!==ab;g=f&&T.props[g]||g;if(c.tagName){var h=/href|src|style/.test(g);if(g=="selected"&&c.parentNode){c.parentNode.selectedIndex}if(g in c&&f&&!h){if(a){if(g=="type"&&T.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed"}c[g]=b}if(T.nodeName(c,"form")&&c.getAttributeNode(g)){return c.getAttributeNode(g).nodeValue}if(g=="tabIndex"){var d=c.getAttributeNode("tabIndex");return d&&d.specified?d.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:ab}return c[g]}if(!T.support.style&&f&&g=="style"){return T.attr(c.style,"cssText",b)}if(a){c.setAttribute(g,""+b)}var i=!T.support.hrefNormalized&&f&&h?c.getAttribute(g,2):c.getAttribute(g);return i===null?ab:i}if(!T.support.opacity&&g=="opacity"){if(a){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}g=g.replace(/-([a-z])/ig,function(k,j){return j.toUpperCase()});if(a){c[g]=b}return c[g]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||T.isFunction(a)||a.setInterval){c[0]=a}else{while(b){c[--b]=a[b]}}}return c},inArray:function(b,a){for(var d=0,c=a.length;d<c;d++){if(a[d]===b){return d}}return -1},merge:function(b,f){var d=0,c,a=b.length;if(!T.support.getAll){while((c=f[d++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=f[d++])!=null){b[a++]=c}}return b},unique:function(a){var g=[],h={};try{for(var f=0,d=a.length;f<d;f++){var b=T.data(a[f]);if(!h[b]){h[b]=true;g.push(a[f])}}}catch(c){g=a}return g},grep:function(f,a,g){var d=[];for(var c=0,b=f.length;c<b;c++){if(!g!=!a(f[c],c)){d.push(f[c])}}return d},map:function(g,a){var f=[];for(var d=0,c=g.length;d<c;d++){var b=a(g[d],d);if(b!=null){f[f.length]=b}}return f.concat.apply([],f)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(a){return a.parentNode},parents:function(a){return T.dir(a,"parentNode")},next:function(a){return T.nth(a,2,"nextSibling")},prev:function(a){return T.nth(a,2,"previousSibling")},nextAll:function(a){return T.dir(a,"nextSibling")},prevAll:function(a){return T.dir(a,"previousSibling")},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)},children:function(a){return T.sibling(a.firstChild)},contents:function(a){return T.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)}},function(b,a){T.fn[b]=function(d){var c=T.map(this,a);if(d&&typeof d=="string"){c=T.multiFilter(d,c)}return this.pushStack(T.unique(c),b,d)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){T.fn[b]=function(i){var f=[],c=T(i);for(var d=0,h=c.length;d<h;d++){var g=(d>0?this.clone(true):this).get();T.fn[a].apply(T(c[d]),g);f=f.concat(g)}return this.pushStack(f,b,i)}});T.each({removeAttr:function(a){T.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){T.className.add(this,a)},removeClass:function(a){T.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!T.className.has(this,a)}T.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||T.filter(a,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)}});function Y(b,a){return b[0]&&parseInt(T.curCSS(b[0],a,true),10)||0}var aa="jQuery"+ad(),I=0,R={};T.extend({cache:{},data:function(c,d,b){c=c==W?R:c;var a=c[aa];if(!a){a=c[aa]=++I}if(d&&!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][d]=b}return d?T.cache[a][d]:a},removeData:function(c,d){c=c==W?R:c;var a=c[aa];if(d){if(T.cache[a]){delete T.cache[a][d];d="";for(d in T.cache[a]){break}if(!d){T.removeData(c)}}}else{try{delete c[aa]}catch(b){if(c.removeAttribute){c.removeAttribute(aa)}}delete T.cache[a]}},queue:function(c,d,a){if(c){d=(d||"fx")+"queue";var b=T.data(c,d);if(!b||T.isArray(a)){b=T.data(c,d,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var d=T.queue(a,b),c=d.shift();if(!b||b==="fx"){c=d[0]}if(c!==ab){c.call(a)}}});T.fn.extend({data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(b===ab){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===ab&&this.length){c=T.data(this[0],d)}return c===ab&&a[1]?this.data(a[0]):c}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){T.data(this,d,b)})}},removeData:function(a){return this.each(function(){T.removeData(this,a)})},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx"}if(a===ab){return T.queue(this[0],b)}return this.each(function(){var c=T.queue(this,b,a);if(b=="fx"&&c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,i=0,m=Object.prototype.toString;var p=function(t,x,ak,aj){ak=ak||[];x=x||document;if(x.nodeType!==1&&x.nodeType!==9){return[]}if(!t||typeof t!=="string"){return ak}var s=[],v,C,z,y,ai,w,u=true;b.lastIndex=0;while((v=b.exec(t))!==null){s.push(v[1]);if(v[2]){w=RegExp.rightContext;break}}if(s.length>1&&h.exec(t)){if(s.length===2&&l.relative[s[0]]){C=k(s[0]+s[1],x)}else{C=l.relative[s[0]]?[x]:p(s.shift(),x);while(s.length){t=s.shift();if(l.relative[t]){t+=s.shift()}C=k(t,C)}}}else{var D=aj?{expr:s.pop(),set:q(aj)}:p.find(s.pop(),s.length===1&&x.parentNode?x.parentNode:x,c(x));C=p.filter(D.expr,D.set);if(s.length>0){z=q(C)}else{u=false}while(s.length){var A=s.pop(),B=A;if(!l.relative[A]){A=""}else{B=s.pop()}if(B==null){B=x}l.relative[A](z,B,c(x))}}if(!z){z=C}if(!z){throw"Syntax error, unrecognized expression: "+(A||t)}if(m.call(z)==="[object Array]"){if(!u){ak.push.apply(ak,z)}else{if(x.nodeType===1){for(var r=0;z[r]!=null;r++){if(z[r]&&(z[r]===true||z[r].nodeType===1&&j(x,z[r]))){ak.push(C[r])}}}else{for(var r=0;z[r]!=null;r++){if(z[r]&&z[r].nodeType===1){ak.push(C[r])}}}}}else{q(z,ak)}if(w){p(w,x,ak,aj);if(o){hasDuplicate=false;ak.sort(o);if(hasDuplicate){for(var r=1;r<ak.length;r++){if(ak[r]===ak[r-1]){ak.splice(r--,1)}}}}}return ak};p.matches=function(s,r){return p(s,null,null,r)};p.find=function(r,y,z){var s,u;if(!r){return[]}for(var v=0,w=l.order.length;v<w;v++){var t=l.order[v],u;if((u=l.match[t].exec(r))){var x=RegExp.leftContext;if(x.substr(x.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");s=l.find[t](u,y,z);if(s!=null){r=r.replace(l.match[t],"");break}}}}if(!s){s=y.getElementsByTagName("*")}return{set:s,expr:r}};p.filter=function(ai,aj,B,v){var w=ai,z=[],r=aj,t,y,s=aj&&aj[0]&&c(aj[0]);while(ai&&aj.length){for(var ak in l.filter){if((t=l.match[ak].exec(ai))!=null){var x=l.filter[ak],A,C;y=false;if(r==z){z=[]}if(l.preFilter[ak]){t=l.preFilter[ak](t,r,B,z,v,s);if(!t){y=A=true}else{if(t===true){continue}}}if(t){for(var u=0;(C=r[u])!=null;u++){if(C){A=x(C,t,u,r);var D=v^!!A;if(B&&A!=null){if(D){y=true}else{r[u]=false}}else{if(D){z.push(C);y=true}}}}}if(A!==ab){if(!B){r=z}ai=ai.replace(l.match[ak],"");if(!y){return[]}break}}}if(ai==w){if(y==null){throw"Syntax error, unrecognized expression: "+ai}else{break}}w=ai}return r};var l=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(r){return r.getAttribute("href")}},relative:{"+":function(r,y,s){var u=typeof y==="string",z=u&&!/\W/.test(y),t=u&&!z;if(z&&!s){y=y.toUpperCase()}for(var v=0,w=r.length,x;v<w;v++){if((x=r[v])){while((x=x.previousSibling)&&x.nodeType!==1){}r[v]=t||x&&x.nodeName===y?x||false:x===y}}if(t){p.filter(y,r,true)}},">":function(w,t,v){var y=typeof t==="string";if(y&&!/\W/.test(t)){t=v?t:t.toUpperCase();for(var s=0,u=w.length;s<u;s++){var x=w[s];if(x){var r=x.parentNode;w[s]=r.nodeName===t?r:false}}}else{for(var s=0,u=w.length;s<u;s++){var x=w[s];if(x){w[s]=y?x.parentNode:x.parentNode===t}}if(y){p.filter(t,w,true)}}},"":function(r,t,v){var s=i++,u=a;if(!t.match(/\W/)){var w=t=v?t:t.toUpperCase();u=d}u("parentNode",t,s,r,w,v)},"~":function(r,t,v){var s=i++,u=a;if(typeof t==="string"&&!t.match(/\W/)){var w=t=v?t:t.toUpperCase();u=d}u("previousSibling",t,s,r,w,v)}},find:{ID:function(t,s,r){if(typeof s.getElementById!=="undefined"&&!r){var u=s.getElementById(t[1]);return u?[u]:[]}},NAME:function(s,w,v){if(typeof w.getElementsByName!=="undefined"){var t=[],x=w.getElementsByName(s[1]);for(var r=0,u=x.length;r<u;r++){if(x[r].getAttribute("name")===s[1]){t.push(x[r])}}return t.length===0?null:t}},TAG:function(s,r){return r.getElementsByTagName(s[1])}},preFilter:{CLASS:function(r,t,s,u,w,v){r=" "+r[1].replace(/\\/g,"")+" ";if(v){return r}for(var y=0,x;(x=t[y])!=null;y++){if(x){if(w^(x.className&&(" "+x.className+" ").indexOf(r)>=0)){if(!s){u.push(x)}}else{if(s){t[y]=false}}}}return false},ID:function(r){return r[1].replace(/\\/g,"")},TAG:function(s,t){for(var r=0;t[r]===false;r++){}return t[r]&&c(t[r])?s[1]:s[1].toUpperCase()},CHILD:function(s){if(s[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2]=="even"&&"2n"||s[2]=="odd"&&"2n+1"||!/\D/.test(s[2])&&"0n+"+s[2]||s[2]);s[2]=(r[1]+(r[2]||1))-0;s[3]=r[3]-0}s[0]=i++;return s},ATTR:function(x,t,s,u,w,v){var r=x[1].replace(/\\/g,"");if(!v&&l.attrMap[r]){x[1]=l.attrMap[r]}if(x[2]==="~="){x[4]=" "+x[4]+" "}return x},PSEUDO:function(w,t,s,u,v){if(w[1]==="not"){if(w[3].match(b).length>1||/^\w/.test(w[3])){w[3]=p(w[3],null,null,t)}else{var r=p.filter(w[3],t,s,true^v);if(!s){u.push.apply(u,r)}return false}}else{if(l.match.POS.test(w[0])||l.match.CHILD.test(w[0])){return true}}return w},POS:function(r){r.unshift(true);return r}},filters:{enabled:function(r){return r.disabled===false&&r.type!=="hidden"},disabled:function(r){return r.disabled===true},checked:function(r){return r.checked===true},selected:function(r){r.parentNode.selectedIndex;return r.selected===true},parent:function(r){return !!r.firstChild},empty:function(r){return !r.firstChild},has:function(r,s,t){return !!p(t[3],r).length},header:function(r){return/h\d/i.test(r.nodeName)},text:function(r){return"text"===r.type},radio:function(r){return"radio"===r.type},checkbox:function(r){return"checkbox"===r.type},file:function(r){return"file"===r.type},password:function(r){return"password"===r.type},submit:function(r){return"submit"===r.type},image:function(r){return"image"===r.type},reset:function(r){return"reset"===r.type},button:function(r){return"button"===r.type||r.nodeName.toUpperCase()==="BUTTON"},input:function(r){return/input|select|textarea|button/i.test(r.nodeName)}},setFilters:{first:function(r,s){return s===0},last:function(s,t,u,r){return t===r.length-1},even:function(r,s){return s%2===0},odd:function(r,s){return s%2===1},lt:function(r,s,t){return s<t[3]-0},gt:function(r,s,t){return s>t[3]-0},nth:function(r,s,t){return t[3]-0==s},eq:function(r,s,t){return t[3]-0==s}},filter:{PSEUDO:function(w,s,r,v){var t=s[1],y=l.filters[t];if(y){return y(w,r,s,v)}else{if(t==="contains"){return(w.textContent||w.innerText||"").indexOf(s[3])>=0}else{if(t==="not"){var x=s[3];for(var r=0,u=x.length;r<u;r++){if(x[r]===w){return false}}return true}}}},CHILD:function(y,v){var s=v[1],x=y;switch(s){case"only":case"first":while(x=x.previousSibling){if(x.nodeType===1){return false}}if(s=="first"){return true}x=y;case"last":while(x=x.nextSibling){if(x.nodeType===1){return false}}return true;case"nth":var w=v[2],z=v[3];if(w==1&&z==0){return true}var t=v[0],A=y.parentNode;if(A&&(A.sizcache!==t||!y.nodeIndex)){var u=0;for(x=A.firstChild;x;x=x.nextSibling){if(x.nodeType===1){x.nodeIndex=++u}}A.sizcache=t}var r=y.nodeIndex-z;if(w==0){return r==0}else{return(r%w==0&&r/w>=0)}}},ID:function(r,s){return r.nodeType===1&&r.getAttribute("id")===s},TAG:function(r,s){return(s==="*"&&r.nodeType===1)||r.nodeName===s},CLASS:function(r,s){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(s)>-1},ATTR:function(w,r){var s=r[1],u=l.attrHandle[s]?l.attrHandle[s](w):w[s]!=null?w[s]:w.getAttribute(s),v=u+"",x=r[2],t=r[4];return u==null?x==="!=":x==="="?v===t:x==="*="?v.indexOf(t)>=0:x==="~="?(" "+v+" ").indexOf(t)>=0:!t?v&&u!==false:x==="!="?v!=t:x==="^="?v.indexOf(t)===0:x==="$="?v.substr(v.length-t.length)===t:x==="|="?v===t||v.substr(0,t.length+1)===t+"-":false},POS:function(w,t,s,v){var u=t[2],r=l.setFilters[u];if(r){return r(w,s,t,v)}}}};var h=l.match.POS;for(var f in l.match){l.match[f]=RegExp(l.match[f].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var q=function(r,s){r=Array.prototype.slice.call(r);if(s){s.push.apply(s,r);return s}return r};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(g){q=function(v,r){var t=r||[];if(m.call(v)==="[object Array]"){Array.prototype.push.apply(t,v)}else{if(typeof v.length==="number"){for(var s=0,u=v.length;s<u;s++){t.push(v[s])}}else{for(var s=0;v[s];s++){t.push(v[s])}}}return t}}var o;if(document.documentElement.compareDocumentPosition){o=function(s,t){var r=s.compareDocumentPosition(t)&4?-1:s===t?0:1;if(r===0){hasDuplicate=true}return r}}else{if("sourceIndex" in document.documentElement){o=function(s,t){var r=s.sourceIndex-t.sourceIndex;if(r===0){hasDuplicate=true}return r}}else{if(document.createRange){o=function(r,t){var s=r.ownerDocument.createRange(),u=t.ownerDocument.createRange();s.selectNode(r);s.collapse(true);u.selectNode(t);u.collapse(true);var v=s.compareBoundaryPoints(Range.START_TO_END,u);if(v===0){hasDuplicate=true}return v}}}}(function(){var s=document.createElement("form"),r="script"+(new Date).getTime();s.innerHTML="<input name='"+r+"'/>";var t=document.documentElement;t.insertBefore(s,t.firstChild);if(!!document.getElementById(r)){l.find.ID=function(x,w,v){if(typeof w.getElementById!=="undefined"&&!v){var u=w.getElementById(x[1]);return u?u.id===x[1]||typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id").nodeValue===x[1]?[u]:ab:[]}};l.filter.ID=function(v,u){var w=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&w&&w.nodeValue===u}}t.removeChild(s)})();(function(){var r=document.createElement("div");r.appendChild(document.createComment(""));if(r.getElementsByTagName("*").length>0){l.find.TAG=function(u,v){var w=v.getElementsByTagName(u[1]);if(u[1]==="*"){var s=[];for(var t=0;w[t];t++){if(w[t].nodeType===1){s.push(w[t])}}w=s}return w}}r.innerHTML="<a href='#'></a>";if(r.firstChild&&typeof r.firstChild.getAttribute!=="undefined"&&r.firstChild.getAttribute("href")!=="#"){l.attrHandle.href=function(s){return s.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var s=p,r=document.createElement("div");r.innerHTML="<p class='TEST'></p>";if(r.querySelectorAll&&r.querySelectorAll(".TEST").length===0){return}p=function(w,x,u,t){x=x||document;if(!t&&x.nodeType===9&&!c(x)){try{return q(x.querySelectorAll(w),u)}catch(v){}}return s(w,x,u,t)};p.find=s.find;p.filter=s.filter;p.selectors=s.selectors;p.matches=s.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var r=document.createElement("div");r.innerHTML="<div class='test e'></div><div class='test'></div>";if(r.getElementsByClassName("e").length===0){return}r.lastChild.className="e";if(r.getElementsByClassName("e").length===1){return}l.order.splice(1,0,"CLASS");l.find.CLASS=function(u,t,s){if(typeof t.getElementsByClassName!=="undefined"&&!s){return t.getElementsByClassName(u[1])}}})()}function d(x,s,t,z,r,A){var B=x=="previousSibling"&&!A;for(var v=0,w=z.length;v<w;v++){var y=z[v];if(y){if(B&&y.nodeType===1){y.sizcache=t;y.sizset=v}y=y[x];var u=false;while(y){if(y.sizcache===t){u=z[y.sizset];break}if(y.nodeType===1&&!A){y.sizcache=t;y.sizset=v}if(y.nodeName===s){u=y;break}y=y[x]}z[v]=u}}}function a(x,s,t,z,r,A){var B=x=="previousSibling"&&!A;for(var v=0,w=z.length;v<w;v++){var y=z[v];if(y){if(B&&y.nodeType===1){y.sizcache=t;y.sizset=v}y=y[x];var u=false;while(y){if(y.sizcache===t){u=z[y.sizset];break}if(y.nodeType===1){if(!A){y.sizcache=t;y.sizset=v}if(typeof s!=="string"){if(y===s){u=true;break}}else{if(p.filter(s,[y]).length>0){u=y;break}}}y=y[x]}z[v]=u}}}var j=document.compareDocumentPosition?function(r,s){return r.compareDocumentPosition(s)&16}:function(r,s){return r!==s&&(r.contains?r.contains(s):true)};var c=function(r){return r.nodeType===9&&r.documentElement.nodeName!=="HTML"||!!r.ownerDocument&&c(r.ownerDocument)};var k=function(u,w){var r=[],y="",x,s=w.nodeType?[w]:w;while((x=l.match.PSEUDO.exec(u))){y+=x[0];u=u.replace(l.match.PSEUDO,"")}u=l.relative[u]?u+"*":u;for(var v=0,t=s.length;v<t;v++){p(u,s[v],r)}return p.filter(y,r)};T.find=p;T.filter=p.filter;T.expr=p.selectors;T.expr[":"]=T.expr.filters;p.selectors.filters.hidden=function(r){return r.offsetWidth===0||r.offsetHeight===0};p.selectors.filters.visible=function(r){return r.offsetWidth>0||r.offsetHeight>0};p.selectors.filters.animated=function(r){return T.grep(T.timers,function(s){return r===s.elem}).length};T.multiFilter=function(r,t,s){if(s){r=":not("+r+")"}return p.matches(r,t)};T.dir=function(s,t){var u=[],r=s[t];while(r&&r!=document){if(r.nodeType==1){u.push(r)}r=r[t]}return u};T.nth=function(v,u,s,r){u=u||1;var t=0;for(;v;v=v[s]){if(v.nodeType==1&&++t==u){break}}return v};T.sibling=function(r,s){var t=[];for(;r;r=r.nextSibling){if(r.nodeType==1&&r!=s){t.push(r)}}return t};return;W.Sizzle=p})();T.event={add:function(c,g,d,a){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&&c!=W){c=W}if(!d.guid){d.guid=this.guid++}if(a!==ab){var f=d;d=this.proxy(f);d.data=a}var h=T.data(c,"events")||T.data(c,"events",{}),b=T.data(c,"handle")||T.data(c,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=c;T.each(g.split(/\s+/),function(l,k){var j=k.split(".");k=j.shift();d.type=j.slice().sort().join(".");var i=h[k];if(T.event.specialAll[k]){T.event.specialAll[k].setup.call(c,a,j)}if(!i){i=h[k]={};if(!T.event.special[k]||T.event.special[k].setup.call(c,a,j)===false){if(c.addEventListener){c.addEventListener(k,b,false)}else{if(c.attachEvent){c.attachEvent("on"+k,b)}}}}i[d.guid]=d;T.event.global[k]=true});c=null},guid:1,global:{},remove:function(b,f,c){if(b.nodeType==3||b.nodeType==8){return}var g=T.data(b,"events"),h,i;if(g){if(f===ab||(typeof f==="string"&&f.charAt(0)==".")){for(var d in g){this.remove(b,d+(f||""))}}else{if(f.type){c=f.handler;f=f.type}T.each(f.split(/\s+/),function(o,l){var j=l.split(".");l=j.shift();var m=RegExp("(^|\\.)"+j.slice().sort().join(".*\\.")+"(\\.|$)");if(g[l]){if(c){delete g[l][c.guid]}else{for(var k in g[l]){if(m.test(g[l][k].type)){delete g[l][k]}}}if(T.event.specialAll[l]){T.event.specialAll[l].teardown.call(b,j)}for(h in g[l]){break}if(!h){if(!T.event.special[l]||T.event.special[l].teardown.call(b,j)===false){if(b.removeEventListener){b.removeEventListener(l,T.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+l,T.data(b,"handle"))}}}h=null;delete g[l]}}})}for(h in g){break}if(!h){var a=T.data(b,"handle");if(a){a.elem=null}T.removeData(b,"events");T.removeData(b,"handle")}}},trigger:function(d,b,f,i){var g=d.type||d;if(!i){d=typeof d==="object"?d[aa]?d:T.extend(T.Event(g),d):T.Event(g);if(g.indexOf("!")>=0){d.type=g=g.slice(0,-1);d.exclusive=true}if(!f){d.stopPropagation();if(this.global[g]){T.each(T.cache,function(){if(this.events&&this.events[g]){T.event.trigger(d,b,this.handle.elem)}})}}if(!f||f.nodeType==3||f.nodeType==8){return ab}d.result=ab;d.target=f;b=T.makeArray(b);b.unshift(d)}d.currentTarget=f;var c=T.data(f,"handle");if(c){c.apply(f,b)}if((!f[g]||(T.nodeName(f,"a")&&g=="click"))&&f["on"+g]&&f["on"+g].apply(f,b)===false){d.result=false}if(!i&&f[g]&&!d.isDefaultPrevented()&&!(T.nodeName(f,"a")&&g=="click")){this.triggered=true;try{f[g]()}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var h=f.parentNode||f.ownerDocument;if(h){T.event.trigger(d,b,h,true)}}},handle:function(b){var c,i;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();c=!a.length&&!b.exclusive;var d=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");i=(T.data(this,"events")||{})[b.type];for(var g in i){var f=i[g];if(c||d.test(f.type)){b.handler=f;b.data=f.data;var h=f.apply(this,arguments);if(h!==ab){b.result=h;if(h===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[aa]){return c}var f=c;c=T.Event(f);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=f[a]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){var b=document.documentElement,g=document.body;c.pageX=c.clientX+(b&&b.scrollLeft||g&&g.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&&b.scrollTop||g&&g.scrollTop||0)-(b.clientTop||0)}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)))}return c},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:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)},teardown:function(a){if(a.length){var c=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(b.test(this.type)){c++}});if(c<1){T.event.remove(this,a[0],af)}}}}}};T.Event=function(a){if(!this.preventDefault){return new T.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(b){var c=b.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(a){c=this}}if(c!=this){b.type=b.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)},teardown:function(){T.event.remove(this,a,ah)}}});T.fn.extend({bind:function(b,a,c){return b=="unload"?this.one(b,a,c):this.each(function(){T.event.add(this,b,c||a,c&&a)})},one:function(b,a,c){var d=T.event.proxy(c||a,function(f){T(this).unbind(f,d);return(c||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,d,c&&a)})},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)})},triggerHandler:function(c,a){if(this[0]){var b=T.Event(c);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var c=arguments,b=1;while(b<c.length){T.event.proxy(a,c[b++])}return this.click(T.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){P();if(T.isReady){a.call(document,T)}else{T.readyList.push(a)}return this},live:function(a,b){var c=T.event.proxy(b);c.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,c);return this},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function af(a){var d=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,c=[];T.each(T.data(this,"events").live||[],function(h,g){if(d.test(g.type)){var f=T(a.target).closest(g.data)[0];if(f){c.push({elem:f,fn:g})}}});c.sort(function(f,g){return T.data(f.elem,"closest")-T.data(g.elem,"closest")});T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function Z(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,"load",T.ready)}T.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){T.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});T(W).bind("unload",function(){for(var a in T.cache){if(a!=1&&T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)}}});(function(){T.support={};var g=document.documentElement,f=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();a.style.display="none";a.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 d=a.getElementsByTagName("*"),h=a.getElementsByTagName("a")[0];if(!d||!d.length||!h){return}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:h.style.opacity==="0.5",cssFloat:!!h.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};f.type="text/javascript";try{f.appendChild(document.createTextNode("window."+b+"=1;"))}catch(c){}g.insertBefore(f,g.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}g.removeChild(f);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){T.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee)});a.cloneNode(true).fireEvent("onclick")}T(function(){var i=document.createElement("div");i.style.width=i.style.paddingLeft="1px";document.body.appendChild(i);T.boxModel=T.support.boxModel=i.offsetWidth===2;document.body.removeChild(i).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};T.fn.extend({_load:T.fn.load,load:function(f,b,a){if(typeof f!=="string"){return this._load(f)}var c=f.indexOf(" ");if(c>=0){var h=f.slice(c,f.length);f=f.slice(0,c)}var d="GET";if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b==="object"){b=T.param(b);d="POST"}}}var g=this;T.ajax({url:f,type:d,dataType:"html",data:b,complete:function(j,i){if(i=="success"||i=="notmodified"){g.html(h?T("<div/>").append(j.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(h):j.responseText)}if(a){g.each(a,[j.responseText,i,j])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.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(c,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(d,f){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){T.fn[a]=function(c){return this.bind(a,c)}});var N=ad();T.extend({get:function(d,b,a,c){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:"GET",url:d,data:b,success:a,dataType:c})},getScript:function(b,a){return T.get(b,null,a,"script")},getJSON:function(c,b,a){return T.get(c,b,a,"json")},post:function(d,b,a,c){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:"POST",url:d,data:b,success:a,dataType:c})},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.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(l){l=T.extend(true,l,T.extend(true,{},T.ajaxSettings,l));var a,t=/=\?(&|$)/g,g,b,s=l.type.toUpperCase();if(l.data&&l.processData&&typeof l.data!=="string"){l.data=T.param(l.data)}if(l.dataType=="jsonp"){if(s=="GET"){if(!l.url.match(t)){l.url+=(l.url.match(/\?/)?"&":"?")+(l.jsonp||"callback")+"=?"}}else{if(!l.data||!l.data.match(t)){l.data=(l.data?l.data+"&":"")+(l.jsonp||"callback")+"=?"}}l.dataType="json"}if(l.dataType=="json"&&(l.data&&l.data.match(t)||l.url.match(t))){a="jsonp"+N++;if(l.data){l.data=(l.data+"").replace(t,"="+a+"$1")}l.url=l.url.replace(t,"="+a+"$1");l.dataType="script";W[a]=function(w){b=w;q();m();W[a]=ab;try{delete W[a]}catch(v){}if(r){r.removeChild(d)}}}if(l.dataType=="script"&&l.cache==null){l.cache=false}if(l.cache===false&&s=="GET"){var u=ad();var c=l.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+u+"$2");l.url=c+((c==l.url)?(l.url.match(/\?/)?"&":"?")+"_="+u:"")}if(l.data&&s=="GET"){l.url+=(l.url.match(/\?/)?"&":"?")+l.data;l.data=null}if(l.global&&!T.active++){T.event.trigger("ajaxStart")}var h=/^(\w+:)?\/\/([^\/?#]+)/.exec(l.url);if(l.dataType=="script"&&s=="GET"&&h&&(h[1]&&h[1]!=location.protocol||h[2]!=location.host)){var r=document.getElementsByTagName("head")[0];var d=document.createElement("script");d.src=l.url;if(l.scriptCharset){d.charset=l.scriptCharset}if(!a){var j=false;d.onload=d.onreadystatechange=function(){if(!j&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){j=true;q();m();d.onload=d.onreadystatechange=null;r.removeChild(d)}}}r.appendChild(d);return ab}var o=false;var p=l.xhr();if(l.username){p.open(s,l.url,l.async,l.username,l.password)}else{p.open(s,l.url,l.async)}try{if(l.data){p.setRequestHeader("Content-Type",l.contentType)}if(l.ifModified){p.setRequestHeader("If-Modified-Since",T.lastModified[l.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}p.setRequestHeader("X-Requested-With","XMLHttpRequest");p.setRequestHeader("Accept",l.dataType&&l.accepts[l.dataType]?l.accepts[l.dataType]+", */*":l.accepts._default)}catch(f){}if(l.beforeSend&&l.beforeSend(p,l)===false){if(l.global&&!--T.active){T.event.trigger("ajaxStop")}p.abort();return false}if(l.global){T.event.trigger("ajaxSend",[p,l])}var k=function(x){if(p.readyState==0){if(i){clearInterval(i);i=null;if(l.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!o&&p&&(p.readyState==4||x=="timeout")){o=true;if(i){clearInterval(i);i=null}g=x=="timeout"?"timeout":!T.httpSuccess(p)?"error":l.ifModified&&T.httpNotModified(p,l.url)?"notmodified":"success";if(g=="success"){try{b=T.httpData(p,l.dataType,l)}catch(v){g="parsererror"}}if(g=="success"){var w;try{w=p.getResponseHeader("Last-Modified")}catch(v){}if(l.ifModified&&w){T.lastModified[l.url]=w}if(!a){q()}}else{T.handleError(l,p,g)}m();if(x){p.abort()}if(l.async){p=null}}}};if(l.async){var i=setInterval(k,13);if(l.timeout>0){setTimeout(function(){if(p&&!o){k("timeout")}},l.timeout)}}try{p.send(l.data)}catch(f){T.handleError(l,p,null,f)}if(!l.async){k()}function q(){if(l.success){l.success(b,g)}if(l.global){T.event.trigger("ajaxSuccess",[p,l])}}function m(){if(l.complete){l.complete(p,g)}if(l.global){T.event.trigger("ajaxComplete",[p,l])}if(l.global&&!--T.active){T.event.trigger("ajaxStop")}}return p},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b)}if(c.global){T.event.trigger("ajaxError",[a,c,b])}},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(b,d){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==T.lastModified[d]}catch(c){}return false},httpData:function(a,c,d){var f=a.getResponseHeader("content-type"),g=c=="xml"||!c&&f&&f.indexOf("xml")>=0,b=g?a.responseXML:a.responseText;if(g&&b.documentElement.tagName=="parsererror"){throw"parsererror"}if(d&&d.dataFilter){b=d.dataFilter(b,c)}if(typeof b==="string"){if(c=="script"){T.globalEval(b)}if(c=="json"){b=W["eval"]("("+b+")")}}return b},param:function(d){var b=[];function a(g,f){b[b.length]=encodeURIComponent(g)+"="+encodeURIComponent(f)}if(T.isArray(d)||d.jquery){T.each(d,function(){a(this.name,this.value)})}else{for(var c in d){if(T.isArray(d[c])){T.each(d[c],function(){a(c,this)})}else{a(c,T.isFunction(d[c])?d[c]():d[c])}}}return b.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(b,c){var a={};T.each(ae.concat.apply([],ae.slice(0,c)),function(){a[this]=b});return a}T.fn.extend({show:function(c,a){if(c){return this.animate(K("show",3),c,a)}else{for(var f=0,h=this.length;f<h;f++){var i=T.data(this[f],"olddisplay");this[f].style.display=i||"";if(T.css(this[f],"display")==="none"){var g=this[f].tagName,b;if(V[g]){b=V[g]}else{var d=T("<"+g+" />").appendTo("body");b=d.css("display");if(b==="none"){b="block"}d.remove();V[g]=b}T.data(this[f],"olddisplay",b)}}for(var f=0,h=this.length;f<h;f++){this[f].style.display=T.data(this[f],"olddisplay")||""}return this}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a)}else{for(var c=0,d=this.length;c<d;c++){var f=T.data(this[c],"olddisplay");if(!f&&f!=="none"){T.data(this[c],"olddisplay",T.css(this[c],"display"))}}for(var c=0,d=this.length;c<d;c++){this[c].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var c=typeof a==="boolean";return T.isFunction(a)&&T.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:T(this).is(":hidden");T(this)[d?"show":"hide"]()}):this.animate(K("toggle",3),a,b)},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(a,d,b,c){var f=T.speed(d,b,c);return this[f.queue===false?"each":"queue"](function(){var h=T.extend({},f),j,g=this.nodeType==1&&T(this).is(":hidden"),i=this;for(j in a){if(a[j]=="hide"&&g||a[j]=="show"&&!g){return h.complete.call(this)}if((j=="height"||j=="width")&&this.style){h.display=T.css(this,"display");h.overflow=this.style.overflow}}if(h.overflow!=null){this.style.overflow="hidden"}h.curAnim=T.extend({},a);T.each(a,function(q,l){var m=new T.fx(i,h,q);if(/toggle|show|hide/.test(l)){m[l=="toggle"?g?"show":"hide":l](a)}else{var o=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),k=m.cur(true)||0;if(o){var r=parseFloat(o[2]),p=o[3]||"px";if(p!="px"){i.style[q]=(r||1)+p;k=((r||1)/m.cur(true))*k;i.style[q]=k+p}if(o[1]){r=((o[1]=="-="?-1:1)*r)+k}m.custom(k,r,p)}else{m.custom(k,l,"")}}});return true})},stop:function(b,c){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var d=a.length-1;d>=0;d--){if(a[d].elem==this){if(c){a[d](true)}a.splice(d,1)}}});if(!c){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){T.fn[b]=function(d,c){return this.animate(a,d,c)}});T.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||T.isFunction(b)&&b,duration:b,easing:c&&a||a&&!T.isFunction(a)&&a};d.duration=T.fx.off?0:typeof d.duration==="number"?d.duration:T.fx.speeds[d.duration]||T.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){T(this).dequeue()}if(T.isFunction(d.old)){d.old.call(this)}};return d},easing:{linear:function(b,a,d,c){return d+c*b},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d}},timers:[],fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.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]}var b=parseFloat(T.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(a,b,c){this.startTime=ad();this.start=a;this.end=b;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;function d(g){return f.step(g)}d.elem=this.elem;if(d()&&T.timers.push(d)&&!U){U=setInterval(function(){var g=T.timers;for(var h=0;h<g.length;h++){if(!g[h]()){g.splice(h--,1)}}if(!g.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var d=ad();if(c||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var g=true;for(var f in this.options.curAnim){if(this.options.curAnim[f]!==true){g=false}}if(g){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=d-this.startTime;this.state=a/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.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}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var g=this[0].getBoundingClientRect(),c=this[0].ownerDocument,h=c.body,i=c.documentElement,a=i.clientTop||h.clientTop||0,b=i.clientLeft||h.clientLeft||0,d=g.top+(self.pageYOffset||T.boxModel&&i.scrollTop||h.scrollTop)-a,f=g.left+(self.pageXOffset||T.boxModel&&i.scrollLeft||h.scrollLeft)-b;return{top:d,left:f}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var g=this[0],j=g.offsetParent,k=g,a=g.ownerDocument,c,i=a.documentElement,f=a.body,d=a.defaultView,l=d.getComputedStyle(g,null),b=g.offsetTop,h=g.offsetLeft;while((g=g.parentNode)&&g!==f&&g!==i){c=d.getComputedStyle(g,null);b-=g.scrollTop,h-=g.scrollLeft;if(g===j){b+=g.offsetTop,h+=g.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(g.tagName))){b+=parseInt(c.borderTopWidth,10)||0,h+=parseInt(c.borderLeftWidth,10)||0}k=j,j=g.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){b+=parseInt(c.borderTopWidth,10)||0,h+=parseInt(c.borderLeftWidth,10)||0}l=c}if(l.position==="relative"||l.position==="static"){b+=f.offsetTop,h+=f.offsetLeft}if(l.position==="fixed"){b+=Math.max(i.scrollTop,f.scrollTop),h+=Math.max(i.scrollLeft,f.scrollLeft)}return{top:b,left:h}}}T.offset={initialize:function(){if(this.initialized){return}var c=document.body,j=document.createElement("div"),h,i,a,g,b,k,f=c.style.marginTop,d='<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>';b={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(k in b){j.style[k]=b[k]}j.innerHTML=d;c.insertBefore(j,c.firstChild);h=j.firstChild,i=h.firstChild,g=h.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(i.offsetTop!==5);this.doesAddBorderForTableAndCells=(g.offsetTop===5);h.style.overflow="hidden",h.style.position="relative";this.subtractsBorderForOverflowNotVisible=(i.offsetTop===-5);c.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=f;c.removeChild(j);this.initialized=true},bodyOffset:function(c){T.offset.initialized||T.offset.initialize();var a=c.offsetTop,b=c.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(c,"marginTop",true),10)||0,b+=parseInt(T.curCSS(c,"marginLeft",true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,c=0,f;if(this[0]){var d=this.offsetParent(),a=this.offset(),g=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();a.top-=Y(this,"marginTop");a.left-=Y(this,"marginLeft");g.top+=Y(d,"borderTopWidth");g.left+=Y(d,"borderLeftWidth");f={top:a.top-g.top,left:a.left-g.left}}return f},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&T.css(a,"position")=="static")){a=a.offsetParent}return T(a)}});T.each(["Left","Top"],function(b,c){var a="scroll"+c;T.fn[a]=function(d){if(!this[0]){return null}return d!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?d:T(W).scrollLeft(),b?d:T(W).scrollTop()):this[a]=d}):this[0]==W||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]}});T.each(["Height","Width"],function(b,d){var g=b?"Left":"Top",c=b?"Right":"Bottom",f=d.toLowerCase();T.fn["inner"+d]=function(){return this[0]?T.css(this[0],f,false,"padding"):null};T.fn["outer"+d]=function(h){return this[0]?T.css(this[0],f,false,h?"margin":"border"):null};var a=d.toLowerCase();T.fn[a]=function(h){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):h===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof h==="string"?h:h+"px")}})})();Horise={version:"1.0.0"};Horise.apply=function(h,g,c){if(c){Horise.apply(h,c)}if(h&&g&&typeof g=="object"){for(var f in g){h[f]=g[f]}}return h};(function(){var ua=navigator.userAgent.toLowerCase();var isStrict=document.compatMode=="CSS1Compat",isOpera=ua.indexOf("opera")>-1,isChrome=ua.indexOf("chrome")>-1,isSafari=!isChrome&&(/webkit|khtml/).test(ua),isSafari3=isSafari&&ua.indexOf("webkit/5")!=-1,isIE=!isOpera&&ua.indexOf("msie")>-1,isIE7=!isOpera&&ua.indexOf("msie 7")>-1,isIE8=!isOpera&&ua.indexOf("msie 8")>-1,isGecko=!isSafari&&!isChrome&&ua.indexOf("gecko")>-1,isGecko3=isGecko&&ua.indexOf("rv:1.9")>-1,isBorderBox=isIE&&!isStrict,isWindows=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),isMac=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),isAir=(ua.indexOf("adobeair")!=-1),isLinux=(ua.indexOf("linux")!=-1),isSecure=window.location.href.toLowerCase().indexOf("https")===0;var ie=0,opera=0,gecko=0,webkit=0,mobile=null,air=0,caja=0;var m;if((/khtml/).test(ua)){webkit=1}m=ua.match(/applewebkit\/([^\s]*)/);if(m&&m[1]){webkit=parseFloat(m[1]);if(/ mobile\//.test(ua)){mobile="Apple"}else{m=ua.match(/nokian[^\/]*/);if(m){mobile=m[0]}}m=ua.match(/adobeair\/([^\s]*)/);if(m){air=m[0]}}if(!webkit){m=ua.match(/opera[\s\/]([^\s]*)/);if(m&&m[1]){opera=parseFloat(m[1]);m=ua.match(/opera mini[^;]*/);if(m){mobile=m[0]}}else{m=ua.match(/msie\s([^;]*)/);if(m&&m[1]){ie=parseFloat(m[1])}else{m=ua.match(/gecko\/([^\s]*)/);if(m){gecko=1;m=ua.match(/rv:([^\s\)]*)/);if(m&&m[1]){gecko=parseFloat(m[1])}}}}}m=ua.match(/caja\/([^\s]*)/);if(m&&m[1]){caja=parseFloat(m[1])}Horise.apply(Horise,{emptyFn:function(){},applyIf:function(o,c){if(o&&c){for(var p in c){if(typeof o[p]=="undefined"){o[p]=c[p]}}}return o},extend:function(){var io=function(o){for(var m in o){this[m]=o[m]}};var oc=Object.prototype.constructor;return function(sb,sp,overrides){if(typeof sp=="object"){overrides=sp;sp=sb;sb=overrides.constructor!=oc?overrides.constructor:function(){sp.apply(this,arguments)}}var F=function(){},sbp,spp=sp.prototype;F.prototype=spp;sbp=sb.prototype=new F();sbp.constructor=sb;sb.superclass=spp;if(spp.constructor==oc){spp.constructor=sp}sb.override=function(o){Horise.override(sb,o)};sbp.override=io;Horise.override(sb,overrides);sb.extend=function(o){Horise.extend(sb,o)};return sb}}(),override:function(origclass,overrides){if(overrides){var p=origclass.prototype;for(var method in overrides){p[method]=overrides[method]}if(Horise.isIE&&overrides.toString!=origclass.toString){p.toString=overrides.toString}}},namespace:function(){var a=arguments,o=null,i,j,d,rt;for(i=0;i<a.length;++i){d=a[i].split(".");rt=d[0];eval("if (typeof "+rt+' == "undefined"){'+rt+" = {};} o = "+rt+";");for(j=1;j<d.length;++j){o[d[j]]=o[d[j]]||{};o=o[d[j]]}}},urlEncode:function(o){if(!o){return""}var buf=[];for(var key in o){var ov=o[key],k=encodeURIComponent(key);var type=typeof ov;if(type=="undefined"){buf.push(k,"=&")}else{if(type!="function"&&type!="object"){buf.push(k,"=",encodeURIComponent(ov),"&")}else{if(Horise.isDate(ov)){var s=Horise.encode(ov).replace(/"/g,"");buf.push(k,"=",s,"&")}else{if(Horise.isArray(ov)){if(ov.length){for(var i=0,len=ov.length;i<len;i++){buf.push(k,"=",encodeURIComponent(ov[i]===undefined?"":ov[i]),"&")}}else{buf.push(k,"=&")}}}}}}buf.pop();return buf.join("")},urlDecode:function(string,overwrite){if(!string||!string.length){return{}}var obj={};var pairs=string.split("&");var pair,name,value;for(var i=0,len=pairs.length;i<len;i++){pair=pairs[i].split("=");name=decodeURIComponent(pair[0]);value=decodeURIComponent(pair[1]);if(overwrite!==true){if(typeof obj[name]=="undefined"){obj[name]=value}else{if(typeof obj[name]=="string"){obj[name]=[obj[name]];obj[name].push(value)}else{obj[name].push(value)}}}else{obj[name]=value}}return obj},each:function(array,fn,scope){if(typeof array.length=="undefined"||typeof array=="string"){array=[array]}for(var i=0,len=array.length;i<len;i++){if(fn.call(scope||array[i],array[i],i,array)===false){return i}}},combine:function(){var as=arguments,l=as.length,r=[];for(var i=0;i<l;i++){var a=as[i];if(Horise.isArray(a)){r=r.concat(a)}else{if(a.length!==undefined&&!a.substr){r=r.concat(Array.prototype.slice.call(a,0))}else{r.push(a)}}}return r},getDom:function(el){if(!el||!document){return null}return(typeof el=="string")?document.getElementById(el):el},isStrict:isStrict,isSecure:isSecure,isArray:function(v){return v&&typeof v.length=="number"&&typeof v.splice=="function"},isDate:function(v){return v&&typeof v.getFullYear=="function"},isOpera:isOpera,isChrome:isChrome,isSafari:isSafari,isSafari3:isSafari3,isSafari2:isSafari&&!isSafari3,isIE:isIE,isIE6:isIE&&!isIE7&&!isIE8,isIE7:isIE7,isIE8:isIE8,isGecko:isGecko,isGecko2:isGecko&&!isGecko3,isGecko3:isGecko3,isBorderBox:isBorderBox,isLinux:isLinux,isWindows:isWindows,isMac:isMac,isAir:isAir,useShims:((isIE&&!isIE7)||(isMac&&isGecko&&!isGecko3)),ie:ie,opera:opera,gecko:gecko,webkit:webkit,mobile:mobile,air:air,caja:caja});Horise.ns=Horise.namespace})();Horise.ns("Horise","Horise.util","Horise.grid","Horise.data","Horise.lib");Horise.apply(Function.prototype,{createCallback:function(){var d=arguments;var c=this;return function(){return c.apply(window,d)}},createDelegate:function(i,f,g){var h=this;return function(){var a=f||arguments;if(g===true){a=Array.prototype.slice.call(arguments,0);a=a.concat(f)}else{if(typeof g=="number"){a=Array.prototype.slice.call(arguments,0);var b=[g,0].concat(f);Array.prototype.splice.apply(a,b)}}return h.apply(i||window,a)}},defer:function(j,h,f,g){var i=this.createDelegate(h,f,g);if(j){return setTimeout(i,j)}i();return 0},createSequence:function(d,f){if(typeof d!="function"){return this}var g=this;return function(){var a=g.apply(this||window,arguments);d.apply(f||this||window,arguments);return a}},createInterceptor:function(d,f){if(typeof d!="function"){return this}var g=this;return function(){d.target=this;d.method=g;if(d.apply(f||this||window,arguments)===false){return}return g.apply(this||window,arguments)}}});Horise.applyIf(String,{escape:function(b){return b.replace(/('|\\)/g,"\\$1")},leftPad:function(h,f,i){var g=new String(h);if(!i){i=" "}while(g.length<f){g=i+g}return g.toString()},format:function(c){var d=Array.prototype.slice.call(arguments,1);return c.replace(/\{(\d+)\}/g,function(b,a){return d[a]})}});String.prototype.toggle=function(c,d){return this==c?d:c};String.prototype.trim=function(){var b=/^\s+|\s+$/g;return function(){return this.replace(b,"")}}();Horise.applyIf(Number.prototype,{constrain:function(c,d){return Math.min(Math.max(this,c),d)}});Horise.applyIf(Array.prototype,{indexOf:function(g){for(var d=0,f=this.length;d<f;d++){if(this[d]==g){return d}}return -1},remove:function(c){var d=this.indexOf(c);if(d!=-1){this.splice(d,1)}return this}});Date.prototype.getElapsed=function(b){return Math.abs((b||new Date()).getTime()-this.getTime())};Date.replaceChars={shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longMonths:["January","February","March","April","May","June","July","August","September","October","November","December"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d:function(){return(this.getDate()<10?"0":"")+this.getDate()},D:function(){return Date.replaceChars.shortDays[this.getDay()]},j:function(){return this.getDate()},l:function(){return Date.replaceChars.longDays[this.getDay()]},N:function(){return this.getDay()+1},S:function(){return(this.getDate()%10==1&&this.getDate()!=11?"st":(this.getDate()%10==2&&this.getDate()!=12?"nd":(this.getDate()%10==3&&this.getDate()!=13?"rd":"th")))},w:function(){return this.getDay()},z:function(){return"Not Yet Supported"},W:function(){return"Not Yet Supported"},F:function(){return Date.replaceChars.longMonths[this.getMonth()]},m:function(){return(this.getMonth()<11?"0":"")+(this.getMonth()+1)},M:function(){return Date.replaceChars.shortMonths[this.getMonth()]},n:function(){return this.getMonth()+1},t:function(){return"Not Yet Supported"},L:function(){return"Not Yet Supported"},o:function(){return"Not Supported"},Y:function(){return this.getFullYear()},y:function(){return(""+this.getFullYear()).substr(2)},a:function(){return this.getHours()<12?"am":"pm"},A:function(){return this.getHours()<12?"AM":"PM"},B:function(){return"Not Yet Supported"},g:function(){return this.getHours()==0?12:(this.getHours()>12?this.getHours()-12:this.getHours())},G:function(){return this.getHours()},h:function(){return(this.getHours()<10||(12<this.getHours()<22)?"0":"")+(this.getHours()<10?this.getHours()+1:this.getHours()-12)},H:function(){return(this.getHours()<10?"0":"")+this.getHours()},i:function(){return(this.getMinutes()<10?"0":"")+this.getMinutes()},s:function(){return(this.getSeconds()<10?"0":"")+this.getSeconds()},e:function(){return"Not Yet Supported"},I:function(){return"Not Supported"},O:function(){return(this.getTimezoneOffset()<0?"-":"+")+(this.getTimezoneOffset()/60<10?"0":"")+(this.getTimezoneOffset()/60)+"00"},T:function(){return"Not Yet Supported"},Z:function(){return this.getTimezoneOffset()*60},c:function(){return"Not Yet Supported"},r:function(){return this.toString()},U:function(){return this.getTime()/1000}};Date.prototype.dateFormat=function(h){var i="";var j=Date.replaceChars;for(var f=0;f<h.length;f++){var g=h.charAt(f);if(j[g]){i+=j[g].call(this)}else{i+=g}}return i};Date.prototype.format=Date.prototype.dateFormat;Horise.util.Format=function(){var trimRe=/^\s+|\s+$/g;function formatFinanceNum(v,p,s){var value=v.toFixed(2);if(p){value=p+value}if(s){value=value+s}if(v>=0){return'<span style="color:red;">'+value+"</span>"}else{if(v<0){return'<span style="color:green;">'+value+"</span>"}}return value}return{ellipsis:function(value,len){if(value&&value.length>len){return value.substr(0,len-3)+"..."}return value},undef:function(value){return value!==undefined?value:""},defaultValue:function(value,defaultValue){return value!==undefined&&value!==""?value:defaultValue},htmlEncode:function(value){return !value?value:String(value).replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},htmlDecode:function(value){return !value?value:String(value).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,'"').replace(/&amp;/g,"&")},trim:function(value){return String(value).replace(trimRe,"")},substr:function(value,start,length){return String(value).substr(start,length)},lowercase:function(value){return String(value).toLowerCase()},uppercase:function(value){return String(value).toUpperCase()},capitalize:function(value){return !value?value:value.charAt(0).toUpperCase()+value.substr(1).toLowerCase()},call:function(value,fn){if(arguments.length>2){var args=Array.prototype.slice.call(arguments,2);args.unshift(value);return eval(fn).apply(window,args)}else{return eval(fn).call(window,value)}},financeNumber:function(v){return formatFinanceNum(v)},financePercent:function(v){return formatFinanceNum(v,null,"%")},usMoney:function(v){v=(Math.round((v-0)*100))/100;v=(v==Math.floor(v))?v+".00":((v*10==Math.floor(v*10))?v+"0":v);v=String(v);var ps=v.split(".");var whole=ps[0];var sub=ps[1]?"."+ps[1]:".00";var r=/(\d+)(\d{3})/;while(r.test(whole)){whole=whole.replace(r,"$1,$2")}v=whole+sub;if(v.charAt(0)=="-"){return"-$"+v.substr(1)}return"$"+v},date:function(v,format){if(!v){return""}if(!Horise.isDate(v)){v=new Date(Date.parse(v))}return v.dateFormat(format||"m/d/Y")},dateRenderer:function(format){return function(v){return Horise.util.Format.date(v,format)}},stripTagsRE:/<\/?[^>]+>/gi,stripTags:function(v){return !v?v:String(v).replace(this.stripTagsRE,"")},stripScriptsRe:/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,stripScripts:function(v){return !v?v:String(v).replace(this.stripScriptsRe,"")},fileSize:function(size){if(size<1024){return size+" bytes"}else{if(size<1048576){return(Math.round(((size*10)/1024))/10)+" KB"}else{return(Math.round(((size*10)/1048576))/10)+" MB"}}},math:function(){var fns={};return function(v,a){if(!fns[a]){fns[a]=new Function("v","return v "+a+";")}return fns[a](v)}}(),nl2br:function(v){return v===undefined||v===null?"":v.replace(/\n/g,"<br/>")}}}();Horise.util.JSON=new (function(){var useHasOwn=!!{}.hasOwnProperty;var pad=function(n){return n<10?"0"+n:n};var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};var encodeString=function(s){if(/["\\\x00-\x1f]/.test(s)){return'"'+s.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+s+'"'};var encodeArray=function(o){var a=["["],b,i,l=o.length,v;for(i=0;i<l;i+=1){v=o[i];switch(typeof v){case"undefined":case"function":case"unknown":break;default:if(b){a.push(",")}a.push(v===null?"null":Horise.util.JSON.encode(v));b=true}}a.push("]");return a.join("")};this.encodeDate=function(o){return'"'+o.getFullYear()+"-"+pad(o.getMonth()+1)+"-"+pad(o.getDate())+"T"+pad(o.getHours())+":"+pad(o.getMinutes())+":"+pad(o.getSeconds())+'"'};this.encode=function(o){if(typeof o=="undefined"||o===null){return"null"}else{if(Horise.isArray(o)){return encodeArray(o)}else{if(Horise.isDate(o)){return Horise.util.JSON.encodeDate(o)}else{if(typeof o=="string"){return encodeString(o)}else{if(typeof o=="number"){return isFinite(o)?String(o):"null"}else{if(typeof o=="boolean"){return String(o)}else{var a=["{"],b,i,v;for(i in o){if(!useHasOwn||o.hasOwnProperty(i)){v=o[i];switch(typeof v){case"undefined":case"function":case"unknown":break;default:if(b){a.push(",")}a.push(this.encode(i),":",v===null?"null":this.encode(v));b=true}}}a.push("}");return a.join("")}}}}}}};this.decode=function(json){return eval("("+json+")")}})();Horise.encode=Horise.util.JSON.encode;Horise.decode=Horise.util.JSON.decode;Horise.util.DelayedTask=function(l,m,i){var j=null,k,d;var o=function(){var a=new Date().getTime();if(a-d>=k){clearInterval(j);j=null;l.apply(m,i||[])}};this.delay=function(c,a,b,f){if(j&&c!=k){this.cancel()}k=c;d=new Date().getTime();l=a||l;m=b||m;i=f||i;if(!j){j=setInterval(o,k)}};this.cancel=function(){if(j){clearInterval(j);j=null}}};Horise.util.Observable=function(){if(this.listeners){this.on(this.listeners);delete this.listeners}};Horise.util.Observable.prototype={fireEvent:function(){if(this.eventsSuspended!==true){var b=this.events[arguments[0].toLowerCase()];if(typeof b=="object"){return b.fire.apply(b,Array.prototype.slice.call(arguments,1))}}return true},filterOptRe:/^(?:scope|delay|buffer|single)$/,addListener:function(i,m,h,j){if(typeof i=="object"){j=i;for(var k in j){if(this.filterOptRe.test(k)){continue}if(typeof j[k]=="function"){this.addListener(k,j[k],j.scope,j)}else{this.addListener(k,j[k].fn,j[k].scope,j[k])}}return}j=(!j||typeof j=="boolean")?{}:j;i=i.toLowerCase();var l=this.events[i]||true;if(typeof l=="boolean"){l=new Horise.util.Event(this,i);this.events[i]=l}l.addListener(m,h,j)},removeListener:function(g,i,f){var h=this.events[g.toLowerCase()];if(typeof h=="object"){h.removeListener(i,f)}},purgeListeners:function(){for(var b in this.events){if(typeof this.events[b]=="object"){this.events[b].clearListeners()}}},relayEvents:function(i,k){var j=function(a){return function(){return this.fireEvent.apply(this,Horise.combine(a,Array.prototype.slice.call(arguments,0)))}};for(var l=0,h=k.length;l<h;l++){var g=k[l];if(!this.events[g]){this.events[g]=true}i.on(g,j(g),this)}},addEvents:function(f){if(!this.events){this.events={}}if(typeof f=="string"){for(var g=0,a=arguments,h;h=a[g];g++){if(!this.events[a[g]]){this.events[a[g]]=true}}}else{Horise.applyIf(this.events,f)}},hasListener:function(d){var c=this.events[d];return typeof c=="object"&&c.listeners.length>0},suspendEvents:function(){this.eventsSuspended=true},resumeEvents:function(){this.eventsSuspended=false},getMethodEvent:function(k){if(!this.methodEvents){this.methodEvents={}}var l=this.methodEvents[k];if(!l){l={};this.methodEvents[k]=l;l.originalFn=this[k];l.methodName=k;l.before=[];l.after=[];var p,i,o;var m=this;var j=function(a,b,c){if((i=a.apply(b||m,c))!==undefined){if(typeof i==="object"){if(i.returnValue!==undefined){p=i.returnValue}else{p=i}if(i.cancel===true){o=true}}else{if(i===false){o=true}else{p=i}}}};this[k]=function(){p=i=undefined;o=false;var b=Array.prototype.slice.call(arguments,0);for(var a=0,c=l.before.length;a<c;a++){j(l.before[a].fn,l.before[a].scope,b);if(o){return p}}if((i=l.originalFn.apply(m,b))!==undefined){p=i}for(var a=0,c=l.after.length;a<c;a++){j(l.after[a].fn,l.after[a].scope,b);if(o){return p}}return p}}return l},beforeMethod:function(h,f,g){var i=this.getMethodEvent(h);i.before.push({fn:f,scope:g})},afterMethod:function(h,f,g){var i=this.getMethodEvent(h);i.after.push({fn:f,scope:g})},removeMethodListener:function(j,l,m){var k=this.getMethodEvent(j);for(var h=0,i=k.before.length;h<i;h++){if(k.before[h].fn==l&&k.before[h].scope==m){k.before.splice(h,1);return}}for(var h=0,i=k.after.length;h<i;h++){if(k.after[h].fn==l&&k.after[h].scope==m){k.after.splice(h,1);return}}}};Horise.util.Observable.prototype.on=Horise.util.Observable.prototype.addListener;Horise.util.Observable.prototype.un=Horise.util.Observable.prototype.removeListener;Horise.util.Observable.capture=function(g,d,f){g.fireEvent=g.fireEvent.createInterceptor(d,f)};Horise.util.Observable.releaseCapture=function(b){b.fireEvent=Horise.util.Observable.prototype.fireEvent};(function(){var d=function(b,a,c){var h=new Horise.util.DelayedTask();return function(){h.delay(a.buffer,b,c,Array.prototype.slice.call(arguments,0))}};var g=function(b,a,c,h){return function(){a.removeListener(c,h);return b.apply(h,arguments)}};var f=function(b,a,c){return function(){var h=Array.prototype.slice.call(arguments,0);setTimeout(function(){b.apply(c,h)},a.delay||10)}};Horise.util.Event=function(a,b){this.name=b;this.obj=a;this.listeners=[]};Horise.util.Event.prototype={addListener:function(a,b,c){b=b||this.obj;if(!this.isListening(a,b)){var h=this.createListener(a,b,c);if(!this.firing){this.listeners.push(h)}else{this.listeners=this.listeners.slice(0);this.listeners.push(h)}}},createListener:function(b,c,a){a=a||{};c=c||this.obj;var j={fn:b,scope:c,options:a};var h=b;if(a.delay){h=f(h,a,c)}if(a.single){h=g(h,this,b,c)}if(a.buffer){h=d(h,a,c)}j.fireFn=h;return j},findListener:function(a,b){b=b||this.obj;var i=this.listeners;for(var c=0,l=i.length;c<l;c++){var k=i[c];if(k.fn==a&&k.scope==b){return c}}return -1},isListening:function(a,b){return this.findListener(a,b)!=-1},removeListener:function(a,b){var c;if((c=this.findListener(a,b))!=-1){if(!this.firing){this.listeners.splice(c,1)}else{this.listeners=this.listeners.slice(0);this.listeners.splice(c,1)}return true}return false},clearListeners:function(){this.listeners=[]},fire:function(){var i=this.listeners,a,l=i.length;if(l>0){this.firing=true;var c=Array.prototype.slice.call(arguments,0);for(var b=0;b<l;b++){var k=i[b];if(k.fireFn.apply(k.scope||this.obj||window,arguments)===false){this.firing=false;return false}}this.firing=false}return true}}})();(function(){Horise.lib.Event=function(){var h=false;var o=[];var j=[];var l=0;var m=[];var i=0;var k=null;return{POLL_RETRYS:200,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!this._interval){var b=this;var a=function(){b._tryPreloadAttach()};this._interval=setInterval(a,this.POLL_INTERVAL)}},onDOMReady:function(a,b,c){if(this.DOMReady){setTimeout(function(){var d=window;if(b){if(b===true){d=c}else{d=b}}a.call(d,"DOMReady",c)},0)}else{this.DOMReadyEvent.addListener(a,b,c)}},addListener:function(r,g,d,b,a){r=Horise.getDom(r);if(!r||!d){return false}if("unload"==g&&a!==this){j[j.length]=[r,g,d,b,a];return true}var s=r;if(b){if(b===true){s=a}else{s=b}}var q=function(p){return typeof Horise!="undefined"?d.call(s,Horise.lib.Event.getEvent(p),a):false};var c=[r,g,d,q,s,b,a];var f=o.length;o[f]=c;this.doAdd(r,g,q,false);return true},removeListener:function(g,b,q){var r,c;g=Horise.getDom(g);if(!q){return this.purgeElement(g,false,b)}if("unload"==b){for(r=0,c=j.length;r<c;r++){var d=j[r];if(d&&d[0]==g&&d[1]==b&&d[2]==q){j.splice(r,1);return true}}return false}var f=null;var a=arguments[3];if("undefined"==typeof a){a=this._getCacheIndex(g,b,q)}if(a>=0){f=o[a]}if(!g||!f){return false}this.doRemove(g,b,f[this.WFN],false);delete o[a][this.WFN];delete o[a][this.FN];o.splice(a,1);return true},stopEvent:function(a){this.stopPropagation(a);this.preventDefault(a)},stopPropagation:function(a){a=a.browserEvent||a;if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}},preventDefault:function(a){a=a.browserEvent||a;if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}},getEvent:function(b){var c=b||window.event;if(!c){var a=this.getEvent.caller;while(a){c=a.arguments[0];if(c&&Event==c.constructor){break}a=a.caller}}return c},getCharCode:function(a){a=a.browserEvent||a;return a.charCode||a.keyCode||0},_getCacheIndex:function(g,c,a){for(var b=0,d=o.length;b<d;++b){var f=o[b];if(f&&f[this.FN]==a&&f[this.EL]==g&&f[this.TYPE]==c){return b}}return -1},getEl:function(a){return(typeof a==="string")?document.getElementById(a):a},DOMReadyEvent:new Horise.util.Event(this,"DOMReady"),_load:function(a){if(!h){h=true;var b=Horise.lib.Event;b._ready();b._tryPreloadAttach()}},_ready:function(a){var b=Horise.lib.Event;if(!b.DOMReady){b.DOMReady=true;b.DOMReadyEvent.fire();b.doRemove(document,"DOMContentLoaded",b._ready)}},_tryPreloadAttach:function(){if(m.length===0){l=0;if(this._interval){clearInterval(this._interval);this._interval=null}return}if(this.locked){return}if(Horise.isIE){if(!this.DOMReady){this.startInterval();return}}this.locked=true;var q=!h;if(!q){q=(l>0&&m.length>0)}var r=[];var g=function(t,s){var p=t;if(s.overrideContext){if(s.overrideContext===true){p=s.obj}else{p=s.overrideContext}}s.fn.call(p,s.obj)};var d,f,a,b,c=[];for(d=0,f=m.length;d<f;d=d+1){a=m[d];if(a){b=this.getEl(a.id);if(b){if(a.checkReady){if(h||b.nextSibling||!q){c.push(a);m[d]=null}}else{g(b,a);m[d]=null}}else{r.push(a)}}}for(d=0,f=c.length;d<f;d=d+1){a=c[d];g(this.getEl(a.id),a)}l--;if(q){for(d=m.length-1;d>-1;d--){a=m[d];if(!a||!a.id){m.splice(d,1)}}this.startInterval()}else{if(this._interval){clearInterval(this._interval);this._interval=null}}this.locked=false},purgeElement:function(q,g,b){var f=this.getListeners(q,b);if(f){for(var a=0,d=f.length;a<d;++a){var c=f[a];this.removeListener(q,c.type,c.fn)}}if(g&&q&&q.childNodes){for(a=0,d=q.childNodes.length;a<d;++a){this.purgeElement(q.childNodes[a],g,b)}}},getListeners:function(t,b){var d=[],u;if(!b){u=[o,j]}else{if(b=="unload"){u=[j]}else{u=[o]}}for(var f=0;f<u.length;++f){var v=u[f];if(v&&v.length>0){for(var c=0,a=v.length;c<a;++c){var g=v[c];if(g&&g[this.EL]===t&&(!b||b===g[this.TYPE])){d.push({type:g[this.TYPE],fn:g[this.FN],obj:g[this.OBJ],adjust:g[this.ADJ_SCOPE],index:c})}}}}return(d.length)?d:null},_unload:function(a){var t=Horise.lib.Event,d,f,g,b,c,v=j.slice(),u;for(d=0,b=j.length;d<b;++d){g=v[d];if(g){u=window;if(g[t.ADJ_SCOPE]){if(g[t.ADJ_SCOPE]===true){u=g[t.OBJ]}else{u=g[t.ADJ_SCOPE]}}g[t.FN].call(u,t.getEvent(a),g[t.OBJ]);v[d]=null}}g=null;u=null;j=null;if(o){for(f=o.length-1;f>-1;f--){g=o[f];if(g){t.removeListener(g[t.EL],g[t.TYPE],g[t.FN],f)}}g=null}t.doRemove(window,"unload",t._unload)},doAdd:function(){if(window.addEventListener){return function(a,c,b,d){a.addEventListener(c,b,(d))}}else{if(window.attachEvent){return function(a,c,b,d){a.attachEvent("on"+c,b)}}else{return function(){}}}}(),doRemove:function(){if(window.removeEventListener){return function(a,c,b,d){a.removeEventListener(c,b,(d))}}else{if(window.detachEvent){return function(a,c,b){a.detachEvent("on"+c,b)}}else{return function(){}}}}()}}();(function(){var d=Horise.lib.Event;d.on=d.addListener;d.un=d.removeListener;if(Horise.isIE){Horise.lib.Event.onDOMReady(Horise.lib.Event._tryPreloadAttach,Horise.lib.Event);var c=document.createElement("p");d._dri=setInterval(function(){try{c.doScroll("left");clearInterval(d._dri);d._dri=null;d._ready();c=null}catch(a){}},d.POLL_INTERVAL)}else{if(d.webkit&&d.webkit<525){d._dri=setInterval(function(){var a=document.readyState;if("loaded"==a||"complete"==a){clearInterval(d._dri);d._dri=null;d._ready()}},d.POLL_INTERVAL)}else{d.doAdd(document,"DOMContentLoaded",d._ready)}}d.doAdd(window,"load",d._load);d.doAdd(window,"unload",d._unload);d._tryPreloadAttach()})()})();Horise.DomHelper=function(){return{insertHtml:function(l,j,k){l=l.toLowerCase();if(j.insertAdjacentHTML){if(tableRe.test(j.tagName)){var g;if(g=insertIntoTable(j.tagName.toLowerCase(),l,j,k)){return g}}switch(l){case"beforebegin":j.insertAdjacentHTML("BeforeBegin",k);return j.previousSibling;case"afterbegin":j.insertAdjacentHTML("AfterBegin",k);return j.firstChild;case"beforeend":j.insertAdjacentHTML("BeforeEnd",k);return j.lastChild;case"afterend":j.insertAdjacentHTML("AfterEnd",k);return j.nextSibling}throw'Illegal insertion point -> "'+l+'"'}var h=j.ownerDocument.createRange();var i;switch(l){case"beforebegin":h.setStartBefore(j);i=h.createContextualFragment(k);j.parentNode.insertBefore(i,j);return j.previousSibling;case"afterbegin":if(j.firstChild){h.setStartBefore(j.firstChild);i=h.createContextualFragment(k);j.insertBefore(i,j.firstChild);return j.firstChild}else{j.innerHTML=k;return j.firstChild}case"beforeend":if(j.lastChild){h.setStartAfter(j.lastChild);i=h.createContextualFragment(k);j.appendChild(i);return j.lastChild}else{j.innerHTML=k;return j.lastChild}case"afterend":h.setStartAfter(j);i=h.createContextualFragment(k);j.parentNode.insertBefore(i,j.nextSibling);return j.nextSibling}throw'Illegal insertion point -> "'+l+'"'}}}();Horise.Template=function(g){var j=arguments;if(Horise.isArray(g)){g=g.join("")}else{if(j.length>1){var i=[];for(var h=0,a=j.length;h<a;h++){if(typeof j[h]=="object"){Horise.apply(this,j[h])}else{i[i.length]=j[h]}}g=i.join("")}}this.html=g;if(this.compiled){this.compile()}};Horise.Template.prototype={applyTemplate:function(f){if(this.compiled){return this.compiled(f)}var g=this.disableFormats!==true;var h=Horise.util.Format,j=this;var i=function(m,c,p,d){if(p&&g){if(p.substr(0,5)=="this."){return j.call(p.substr(5),f[c],f)}else{if(d){var a=/^\s*['"](.*)["']\s*$/;d=d.split(",");for(var b=0,o=d.length;b<o;b++){d[b]=d[b].replace(a,"$1")}d=[f[c]].concat(d)}else{d=[f[c]]}return h[p].apply(h,d)}}else{return f[c]!==undefined?f[c]:""}};return this.html.replace(this.re,i)},set:function(d,c){this.html=d;this.compiled=null;if(c){this.compile()}return this},disableFormats:false,re:/\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,compile:function(){var fm=Horise.util.Format;var useF=this.disableFormats!==true;var sep=Horise.isGecko?"+":",";var fn=function(m,name,format,args){if(format&&useF){args=args?","+args:"";if(format.substr(0,5)!="this."){format="fm."+format+"("}else{format='this.call("'+format.substr(5)+'", ';args=", values"}}else{args="";format="(values['"+name+"'] == undefined ? '' : "}return"'"+sep+format+"values['"+name+"']"+args+")"+sep+"'"};var body;if(Horise.isGecko){body="this.compiled = function(values){ return '"+this.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn)+"';};"}else{body=["this.compiled = function(values){ return ['"];body.push(this.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn));body.push("'].join('');};");body=body.join("")}eval(body);return this},call:function(g,d,f){return this[g](d,f)},insertFirst:function(d,f,g){return this.doInsert("afterBegin",d,f,g)},insertBefore:function(d,f,g){return this.doInsert("beforeBegin",d,f,g)},insertAfter:function(d,f,g){return this.doInsert("afterEnd",d,f,g)},append:function(c,d){return this.doInsert("beforeEnd",c,d)},doInsert:function(f,h,g){h=Horise.getDom(h);var i=Horise.DomHelper.insertHtml(f,h,this.applyTemplate(g));return i},overwrite:function(d,f,g){d=Horise.getDom(d);d.innerHTML=this.applyTemplate(f);return d.firstChild}};Horise.Template.prototype.apply=Horise.Template.prototype.applyTemplate;Horise.DomHelper.Template=Horise.Template;Horise.Template.from=function(c,d){c=Horise.getDom(c);return new Horise.Template(c.value||c.innerHTML,d||"")};Horise.data.DataProxy=function(){this.addEvents("beforeload","load");Horise.data.DataProxy.superclass.constructor.call(this)};Horise.extend(Horise.data.DataProxy,Horise.util.Observable,{getJsonAccessor:function(){var b=/[\[\.]/;return function(d){try{return(b.test(d))?new Function("obj","return obj."+d):function(c){return c[d]}}catch(a){}return Horise.emptyFn}}(),readRecords:function(i){if(this.totalProperty){this.getTotal=this.getJsonAccessor(this.totalProperty)}this.getRoot=this.root?this.getJsonAccessor(this.root):function(a){return a};if(this.successProperty){this.getSuccess=this.getJsonAccessor(this.successProperty)}var h=this.getRoot(i),j=h.length,k=true;if(this.totalProperty){var l=parseInt(this.getTotal(i),10);if(!isNaN(l)){j=l}}if(this.successProperty){var l=this.getSuccess(i);if(l===false||l==="false"){k=false}}var g=(h==null)?[]:(Horise.isArray(h)?h:[h]);return{success:k,records:g,totalRecords:j}}});Horise.data.JsonProxy=function(b){Horise.data.JsonProxy.superclass.constructor.call(this);Horise.apply(this,b)};Horise.extend(Horise.data.JsonProxy,Horise.data.DataProxy,{nocache:true,load:function(k,j,m,i){if(this.fireEvent("beforeload",this,k)!==false){var l=Horise.apply(k,this.extraParams);if(this.nocache){l._dc=(new Date()).getTime()}var o=this.url;var h=this;jQuery.getJSON(o,l,function(a){h.handleResponse.call(h,a,j,m,i)})}else{j.call(m||this,null,i,false)}},handleResponse:function(j,i,g,h){try{result=this.readRecords(j)}catch(k){this.fireEvent("loadexception",this,j,h,k);i.call(g||window,null,h,false);return}this.fireEvent("load",this,j,h);i.call(g||window,result,h,true)},abort:function(){}});Horise.data.ScriptTagProxy=function(b){Horise.data.ScriptTagProxy.superclass.constructor.call(this);Horise.apply(this,b);this.head=document.getElementsByTagName("head")[0]};Horise.data.ScriptTagProxy.TRANS_ID=1000;Horise.extend(Horise.data.ScriptTagProxy,Horise.data.DataProxy,{timeout:30000,callbackParam:"callback",nocache:true,load:function(q,o,m,l){if(this.fireEvent("beforeload",this,q)!==false){var s=Horise.urlEncode(Horise.apply(q,this.extraParams));var t=this.url;t+=(t.indexOf("?")!=-1?"&":"?")+s;if(this.nocache){t+="&_dc="+(new Date().getTime())}var u=++Horise.data.ScriptTagProxy.TRANS_ID;var k={id:u,cb:"stcCallback"+u,scriptId:"stcScript"+u,params:q,arg:l,url:t,callback:o,scope:m};var r=this;window[k.cb]=function(a){r.handleResponse(a,k)};t+=String.format("&{0}={1}",this.callbackParam,k.cb);if(this.autoAbort!==false){this.abort()}k.timeoutId=this.handleFailure.defer(this.timeout,this,[k]);var p=document.createElement("script");p.setAttribute("src",t);p.setAttribute("type","text/javascript");p.setAttribute("id",k.scriptId);this.head.appendChild(p);this.trans=k}else{o.call(m||this,null,l,false)}},isLoading:function(){return this.trans?true:false},abort:function(){if(this.isLoading()){this.destroyTrans(this.trans)}},destroyTrans:function(d,f){this.head.removeChild(document.getElementById(d.scriptId));clearTimeout(d.timeoutId);if(f){window[d.cb]=undefined;try{delete window[d.cb]}catch(g){}}else{window[d.cb]=function(){window[d.cb]=undefined;try{delete window[d.cb]}catch(a){}}}},handleResponse:function(h,f){this.trans=false;this.destroyTrans(f,true);var g;try{g=this.readRecords(h)}catch(i){this.fireEvent("loadexception",this,h,f.arg,i);f.callback.call(f.scope||window,null,f.arg,false);return}this.fireEvent("load",this,h,f.arg);f.callback.call(f.scope||window,g,f.arg,true)},handleFailure:function(b){this.trans=false;this.destroyTrans(b,false);this.fireEvent("loadexception",this,null,b.arg);b.callback.call(b.scope||window,null,b.arg,false)}});Horise.data.Store=function(b){this.data=[];if(b&&b.data){this.inlineData=b.data;delete b.data}Horise.apply(this,b);this.addEvents("datachanged","clear","beforeload","load","loadexception");if(this.proxy){this.relayEvents(this.proxy,["loadexception"])}Horise.data.Store.superclass.constructor.call(this);if(this.inlineData){this.loadData(this.inlineData);delete this.inlineData}else{if(this.autoLoad){this.loading=true;this.load.defer(10,this,[typeof this.autoLoad=="object"?this.autoLoad:undefined])}}};Horise.extend(Horise.data.Store,Horise.util.Observable,{loading:false,loaded:false,removeAll:function(){this.data=[];this.fireEvent("clear",this)},load:function(d){if(this.proxy){this.loading=true;d=d||{};if(this.fireEvent("beforeload",this,d)!==false){var c=Horise.applyIf(d.params||{},this.baseParams);this.proxy.load(c,this.loadRecords,this,d)}else{return false}}else{this.loading=false;this.loaded=true}return true},loadRecords:function(h,f,i){if(!h||i===false){if(i!==false){this.fireEvent("load",this,[],f)}if(f.callback){f.callback.call(f.scope||this,[],f,false)}return}var g=h.records,j=h.totalRecords||g.length;this.data=g;this.totalLength=j;this.loading=false;this.loaded=true;this.fireEvent("datachanged",this);this.fireEvent("load",this,g,f);if(f.callback){f.callback.call(f.scope||this,g,f,true)}},loadData:function(b){this.loading=true;this.loadRecords({success:true,records:b,totalRecords:b.length},{},true)},getData:function(){return this.data},getCount:function(){return this.data.length||0},getTotalCount:function(){return this.totalLength||0},isLoading:function(){return this.loading},isLoaded:function(){return this.loaded}});Horise.LoadMask=function(c,d){this.el=Horise.getDom(c);Horise.apply(this,d);if(this.store){this.store.on("beforeload",this.onBeforeLoad,this);this.store.on("load",this.onLoad,this);this.store.on("loadexception",this.onLoad,this)}};Horise.LoadMask.prototype={cls:"ext-el-mask-msg x-mask-loading",msg:"载入中...",disabled:false,disable:function(){this.disabled=true},enable:function(){this.disabled=false},onLoad:function(){if(this.msgBox){this.msgBox.parentNode.removeChild(this.msgBox);this.msgBox=null}},onBeforeLoad:function(){if(this.disabled){return}if(this.el.offsetWidth>20&&this.el.offsetHeight>20){this.msgBox=this.createMsgBox(true)}else{this.el.appendChild(this.createMsgBox(false))}},createMsgBox:function(j){var m=document.createElement("div");if(this.cls){m.className=this.cls}var o=document.createElement("div");o.appendChild(document.createTextNode(this.msg));if(this.msgCls){o.className=this.msgCls}m.appendChild(o);if(j){var h=m.style;h.position="absolute";h.zIndex=20001;document.body.appendChild(m);var l=jQuery(this.el).position();var i=l.left+(this.el.offsetWidth-m.offsetWidth)/2;var k=l.top+(this.el.offsetHeight-m.offsetHeight)/2;h.left=i+"px";h.top=k+"px"}return m},show:function(){this.onBeforeLoad()},hide:function(){this.onLoad()},destroy:function(){if(this.store){this.store.un("beforeload",this.onBeforeLoad,this);this.store.un("load",this.onLoad,this);this.store.un("loadexception",this.onLoad,this)}}};Horise.Container=function(b){Horise.apply(this,b);Horise.Container.superclass.constructor.call(this);if(this.renderTo){this.render(this.renderTo);delete this.renderTo}};Horise.extend(Horise.Container,Horise.util.Observable,{render:function(k,l){this.container=Horise.getDom(k);if(l!==undefined){if(typeof l=="number"){l=this.container.childNodes[l]}else{l=Ext.getDom(l)}}this.el=document.createElement("div");if(this.cls){this.el.className=this.cls}if(l){this.container.insertBefore(this.el,l)}else{this.container.appendChild(this.el)}for(var j=0,g=this.items.length;j<g;j++){var i=this.items[j];var h=document.createElement("div");if(i.cls){h.className=i.cls}this.el.appendChild(h);if(i.html){h.innerHTML=i.html}else{if(i.component){i.component.render(h)}}}}});Horise.grid.GridView=function(b){Horise.apply(this,b);this.config=b;this.addEvents("beforerefresh","refresh");Horise.grid.GridView.superclass.constructor.call(this);if(this.renderTo){this.render(this.renderTo);delete this.renderTo}};Horise.extend(Horise.grid.GridView,Horise.util.Observable,{showHeader:true,loadMask:true,rendered:false,init:function(b){this.setConfig(b);this.initTemplates();this.initData(b.store,b.columns)},setConfig:function(c){var i=c.columns;for(var j=0,g=i.length;j<g;j++){var h=i[j];if(typeof h.renderer=="string"){h.renderer=Horise.util.Format[h.renderer]}}},initTemplates:function(){var g=this.templates||{};if(!g.master){g.master=new Horise.Template('<table border="0" cellspacing="0" cellpadding="0" style="{style}">{header}{body}</table>')}if(!g.header){g.header=new Horise.Template("<thead>{rows}</thead>")}if(!g.hrow){g.hrow=new Horise.Template('<tr style="{style}">{cells}</tr>')}if(!g.hcell){g.hcell=new Horise.Template('<th style="{style}">{value}</th>')}if(!g.body){g.body=new Horise.Template("<tbody>{rows}</tbody>")}if(!g.row){g.row=new Horise.Template('<tr class="{cls}" style="{style}">{cells}</tr>')}if(!g.cell){g.cell=new Horise.Template('<td style="{style}">{value}</td>')}for(var f in g){var d=g[f];if(d&&typeof d.compile=="function"&&!d.compiled){d.disableFormats=true;d.compile()}}this.templates=g},doRender:function(c,x,A){var H=this.templates,j=H.cell,y=H.row;var E=c.length;var B=[],z,G,C={style:""},p={style:""},D;for(var v=0,i=x.length;v<i;v++){D=x[v];z=[];for(var r=0;r<E;r++){G=c[r];var F=(G.dataIndex==undefined)?undefined:D[G.dataIndex];C.value=this.renderCellValue(G,F,D,v,r);if(C.value==undefined||C.value===""){C.value="&#160;"}z[r]=j.apply(C)}p.cells=z.join("");if(v%2==0){p.cls=this.oddCls?this.oddCls:""}else{p.cls=this.evenCls?this.evenCls:""}B[v]=y.apply(p)}return B.join("")},renderCellValue:function(h,g,j,i,c){if(!h.renderer){return Horise.grid.GridView.defaultRenderer(g)}return h.renderer(g,j,i,c)},renderHeaders:function(){if(!this.showHeader){return""}var q=this.config.columns,o=this.templates;var r=o.hcell;var t=[],i=[],u={};var p=q.length;for(var s=0;s<p;s++){var m=q[s];u.value=m.header||"";u.style=m.width?"width:"+m.width+"px;":"";t[s]=r.apply(u)}var c=o.hrow.apply({style:"",cells:t.join("")});return o.header.apply({rows:c})},renderBody:function(){var b=this.renderRows();return this.templates.body.apply({rows:b})},refresh:function(){this.fireEvent("beforerefresh",this);if(this.el){var g=this.renderHeaders();var f=this.renderBody();var d=this.templates.master.apply({body:f,header:g});this.el.innerHTML=d}this.fireEvent("refresh",this)},renderRows:function(){var g=this.config,c=g.columns,h=g.store;if(!h||h.getCount()<1){return""}var f=h.getData();return this.doRender(c,f)},render:function(j,f){if(this.rendered){return}this.init(this.config);if(!j&&this.el){this.el=Horise.getDom(this.el);j=this.el.parentNode}this.container=Horise.getDom(j);this.el=document.createElement("div");if(f){this.container.insertBefore(this.el,f)}else{this.container.appendChild(this.el)}this.rendered=true;if(this.loadMask){this.loadMask=new Horise.LoadMask(this.el,Horise.apply({store:this.store},this.loadMask))}if(this.ds&&this.ds.isLoading()){}else{if(this.ds&&!this.ds.isLoaded()){this.ds.load()}else{var h=this.renderHeaders();var g=this.renderBody();var i=this.templates.master.apply({body:g,header:h});this.el.innerHTML=i}}},initData:function(c,d){if(this.ds){this.ds.un("load",this.onLoad,this);this.ds.un("datachanged",this.onDataChange,this);this.ds.un("clear",this.onClear,this)}if(c){c.on("load",this.onLoad,this);c.on("datachanged",this.onDataChange,this);c.on("clear",this.onClear,this)}this.ds=c;this.cs=d},onDataChange:function(){this.refresh()},onClear:function(){this.refresh()},onLoad:function(){},destroy:function(){if(this.rendered){if(this.loadMask){this.loadMask.destroy()}this.initData(null,null);this.purgeListeners()}}});Horise.grid.GridView.defaultRenderer=function(b){if(typeof b=="string"&&b.length<1){return"&#160;"}return b};Horise.PagingBar=function(b){Horise.apply(this,b);Horise.PagingBar.superclass.constructor.call(this);this.init(b);if(this.renderTo){this.render(this.renderTo);delete this.renderTo}};Horise.extend(Horise.PagingBar,Horise.util.Observable,{cls:"pagingbar",hoverCls:"hover",activePage:1,pageNums:10,pageSize:20,firstText:"第一页",prevText:"上一页",nextText:"下一页",lastText:"末一页",pageLinks:[],paramNames:{page:"page",pagesize:"pagesize"},init:function(b){if(this.store){this.bind(this.store)}},bind:function(b){b.on("beforeload",this.beforeLoad,this);b.on("load",this.onLoad,this)},destroy:function(){if(this.store){this.unbind(this.store)}},unbind:function(b){b.un("beforeload",this.beforeLoad,this);b.un("load",this.onLoad,this);this.store=undefined},beforeLoad:function(){},onLoad:function(c,y,w){if(this.el==undefined){return}this.activePage=w.params?w.params[this.paramNames.page]:1;for(var t=0,r=this.pageLinks.length;t<r;t++){var s=this.pageLinks[t];Horise.lib.Event.un(s)}this.pageLinks=[];this.el.innerHTML="";var i=this.getPageData(),d=i.cursor,z=i.pages;if(this.activePage==1){this.el.appendChild(this.createSpan(this.firstText));this.el.appendChild(this.createSpan(this.prevText))}else{this.first=this.createLink({text:this.firstText,page:1});this.el.appendChild(this.first);this.pageLinks.push(this.first);this.prev=this.createLink({text:this.prevText,page:this.activePage-1});this.el.appendChild(this.prev);this.pageLinks.push(this.prev)}var x=1;if(this.activePage>Math.ceil(this.pageNums/2)){x=this.activePage-Math.ceil(this.pageNums/2)}var u=x+this.pageNums-1;if(u>z){u=z}for(var t=x;t<=u;t++){var o=t.toString();var v=this.createLink({text:o,page:t});this.el.appendChild(v);this.pageLinks.push(v)}if(this.activePage==z){this.el.appendChild(this.createSpan(this.nextText));this.el.appendChild(this.createSpan(this.lastText))}else{this.next=this.createLink({text:this.nextText,page:this.activePage+1});this.el.appendChild(this.next);this.pageLinks.push(this.next);this.last=this.createLink({text:this.lastText,page:z});this.el.appendChild(this.last);this.pageLinks.push(this.last)}},createSpan:function(c){var d=document.createElement("span");d.appendChild(document.createTextNode(c));return d},createLink:function(d){var c=document.createElement("a");c.href="#";if(this.activePage==d.page&&this.hoverCls){c.className=this.hoverCls}c.appendChild(document.createTextNode(d.text));Horise.lib.Event.on(c,"click",function(a){this.doLoad(d.page);Horise.lib.Event.preventDefault(a)},this);return c},doLoad:function(d){var g={},f=this.paramNames;g[f.page]=d;g[f.pagesize]=this.pageSize;this.store.load({params:g})},getPageData:function(){var b=this.store.getTotalCount();return{total:b,cursor:(this.activePage-1)*this.pageSize,pages:b<this.pageSize?1:Math.ceil(b/this.pageSize)}},render:function(c,d){this.container=Horise.getDom(c);if(d!==undefined){if(typeof d=="number"){d=this.container.childNodes[d]}else{d=Horise.getDom(d)}}this.el=document.createElement("p");if(this.cls){this.el.className=this.cls}if(d){this.container.insertBefore(this.el,d)}else{this.container.appendChild(this.el)}}});Horise.grid.PagingGrid=function(b){Horise.apply(this,b);Horise.grid.PagingGrid.superclass.constructor.call(this);if(this.renderTo){this.render(this.renderTo);delete this.renderTo}};Horise.extend(Horise.grid.PagingGrid,Horise.util.Observable,{render:function(b){this.container=Horise.getDom(b);if(this.gridView){this.gridView.render(this.container)}if(this.pagingBar){this.pagingBar.render(this.container)}}});(function(){Horise.TabPanel=function(a){Horise.apply(this,a);Horise.TabPanel.superclass.constructor.call(this);this.initTemplates();if(this.renderTo){this.render(this.renderTo);delete this.renderTo}};var b=Horise.lib.Event;Horise.extend(Horise.TabPanel,Horise.util.Observable,{activeTab:0,event:"mouseover",lazyLoad:false,cls:"ui-tabs ui-widget ui-widget-content ui-corner-all",tabbarCls:"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all",tabCls:"ui-state-default ui-corner-top",hoverCls:"ui-tabs-selected ui-state-active ui-corner-top",panelCls:"ui-tabs-panel ui-widget-content ui-corner-bottom",initTemplates:function(){var f=this.templates||{};if(!f.master){f.master=new Horise.Template('<div class="{cls}" style="{style}"><ul class="{tabbarCls}">{tabs}</ul></div>')}for(var a in f){var g=f[a];if(g&&typeof g.compile=="function"&&!g.compiled){g.disableFormats=true;g.compile()}}this.templates=f},render:function(a){if(!a&&this.el){this.el=Horise.getDom(this.el);a=this.el.parentNode}this.container=Horise.getDom(a);var f={};f.cls=this.cls?this.cls:"";f.tabbarCls=this.tabbarCls?this.tabbarCls:"";f.style=this.width?"width:"+this.width+"px;":"";f.tabs="";var g=this.templates.master.apply(f);this.container.innerHTML=g;this.el=this.container.firstChild;Horise.each(this.items,this.initTab,this)},initTab:function(g,a){var f=document.createElement("li");f.innerHTML=g.title;this.el.firstChild.appendChild(f);g.tab={el:f};this.initPanel(g,a);b.on(f,this.event,function(c){this.setActiveTab(g)},this);if(a==this.activeTab){this.setActiveTab(g)}else{f.className=this.tabCls?this.tabCls:""}},initPanel:function(g,a){var f=document.createElement("div");if(this.panelCls){f.className=this.panelCls}if(a!=this.activeTab){f.style.display="none"}this.el.appendChild(f);g.panel={el:f};if(this.lazyLoad){g.loaded=false}else{this.loadPanel(g)}},loadPanel:function(a){var d=a.panel.el;if(typeof a.html=="string"){d.innerHTML=a.html}else{if(typeof a.component=="object"){a.component.render(d)}}a.loaded=true},setActiveTab:function(a){if(this.activeItem&&this.activeItem==a){return}if(this.activeItem){this.activeItem.tab.el.className=this.tabCls?this.tabCls:"";this.activeItem.panel.el.style.display="none"}a.tab.el.className=this.hoverCls?this.hoverCls:(this.tabCls?this.tabCls:"");a.panel.el.style.display="";this.activeItem=a;if(this.lazyLoad&&!a.loaded){this.loadPanel(a)}}})})();$().ready(function(){var a=document.forms;for(var c=0;c<a.length;c++){var f=a[c];if(f.action.indexOf("http://ha.horise.com/click.do")===0){var b=f.elements.Name;if(b){b.firstInput=true;$(b).focus(function(){if(this.firstInput&&this.value.indexOf("姓名")>=0){this.value=""}this.firstInput=false})}var d=f.elements.Stock;if(d){d.firstInput=true;$(d).focus(function(){if(this.firstInput&&this.value.indexOf("股票")>=0){this.value=""}this.firstInput=false})}var g=f.elements.Mobile;if(g){g.firstInput=true;$(g).focus(function(){if(this.firstInput&&this.value.indexOf("手机")>=0){this.value=""}this.firstInput=false})}$(f).submit(function(){var j=this.elements.Name;if(j){var i=$.trim(j.value);j.value=i;if((j.firstInput&&j.value.indexOf("姓名")>=0)||i.length<1){alert("请输入姓名！");j.focus();return false}}var k=this.elements.Stock;if(k){var m=$.trim(k.value);k.value=m;if((k.firstInput&&k.value.indexOf("股票")>=0)||m.length!=6||!/^\d+$/.test(m)){alert("请输入正确的股票代码，股票代码由6位数字组成！");k.focus();return false}}var l=this.elements.Mobile;if(l){var h=$.trim(l.value);l.value=h;if((l.firstInput&&l.value.indexOf("手机")>=0)||h.length!=11||!/^\d+$/.test(h)){alert("请输入正确的手机号，手机号由11位数字组成！");l.focus();return false}}return true})}}});function HoverPanel(c,f,a){this.m_nclass=c;this.m_hclass=f;this.m_labids=a;this.funcwrap=function(g,h){return function(){for(var j=0;j<g.m_labids.length;j++){var i="#"+g.m_labids[j];if(g.m_labids[j]==g.m_labids[h]){$(i).removeClass(g.m_nclass).addClass(g.m_hclass);$(i+"_panel").show()}else{$(i).removeClass(g.m_hclass).addClass(g.m_nclass);$(i+"_panel").hide()}}}};for(var b=0;b<this.m_labids.length;b++){var d=this.m_labids[b];$("#"+d).hover(this.funcwrap(this,b),function(){})}}$(document).ready(function(){var a=setInterval('AutoInstantRoll("#bb_target")',8000)});function AutoInstantRoll(a){$(a).find("div:first").find("a:first").animate({marginLeft:-$(a).find("div:first").find("a:first").width()},5000,function(){$(this).css({marginLeft:"1px"});$(this).appendTo($(this).parent())})}var hourse_m_flag=true;var horise_tab_timer;var horise_tabs;if(!curr_tab||typeof(curr_tab)=="undefined"||curr_tab==null){var curr_tab=0}function horiseTabSetTimeOut(){var a=1000;if(!horise_tab_timer||typeof(horise_tab_timer)=="undefined"||horise_tab_timer==null){if(!hourse_m_flag){horise_tab_timer=setTimeout("horiseTabOnTimeOut();",a)}}}function horiseTabOnTimeOut(){if(!hourse_m_flag){var a=horise_tabs;for(var c=0;c<a.m_labids.length;c++){var b="#"+a.m_labids[c];if(c==curr_tab){$(b).removeClass(a.m_nclass).addClass(a.m_hclass);$(b+"_panel").show()}else{$(b).removeClass(a.m_hclass).addClass(a.m_nclass);$(b+"_panel").hide()}}}horise_tab_timer=null}function Horise_HoverPanel(c,f,a){this.m_nclass=c;this.m_hclass=f;this.m_labids=a;horise_tabs=this;this.funcwrap=function(g,h){return function(){hourse_m_flag=true;for(var j=0;j<g.m_labids.length;j++){var i="#"+g.m_labids[j];if(g.m_labids[j]==g.m_labids[h]){$(i).removeClass(g.m_nclass).addClass(g.m_hclass);$(i+"_panel").hover(function(){hourse_m_flag=true},function(){hourse_m_flag=false;horiseTabSetTimeOut()});$(i+"_panel").show()}else{$(i).removeClass(g.m_hclass).addClass(g.m_nclass);$(i+"_panel").hide()}}}};for(var b=0;b<this.m_labids.length;b++){var d=this.m_labids[b];$("#"+d).hover(this.funcwrap(this,b),function(){hourse_m_flag=false;horiseTabSetTimeOut()})}}$(document).ready(function(){var h=new Horise_HoverPanel("","nav_sub_li1",["sy","hq","gg","hy","sc","bd","gd","hqsc","qtsc"]);var f=0;var g=new HoverPanel("tab_off","tab_on",["ganggu","yatai"]);var d=new HoverPanel("tab_off","tab_on",["meigu","quanqiu"]);var c=new HoverPanel("tab_off","tab_on",["quanzheng","xingu"]);var b=new HoverPanel("tab_off","tab_on",["chuangye","Bgu"]);var a=new HoverPanel("","over",["mryw","bztt","jrts","gksj","zygg","xgfx"])});$(document).ready(function(){RequestData();var a=setInterval(function(){RequestData()},120*1000);var b=setInterval('AutoRoll("#allhq")',5000)});function RequestData(){var a=document.createElement("script");a.id="TradeQuoteRequest";a.type="text/javascript";a.src="http://q.horise.com/data/TradeQuote.ashx?callback=RequestCompletion";$(document.body).append(a)}function RequestCompletion(g){var l=0;var p="";$("#content").html("");for(var h=0;h<g.length;h++){var r=g[h];var m=r.items;for(var f=0;f<m.length;f++){l+=1;var q=m[f];var a=q.SMName;if(a=="印 尼"){l-=1;continue}var o=q.MostNewData;var k=q.RiseDrop;var c=q.Scale;var d="";var b="";if(q.RiseDrop<0){d="green";b="&darr;"}else{d="red";b="&uarr;"}if((l-1)%3==0){p+='<span style="line-height:24px;font-size:12px;">'}p+="&nbsp;"+a+"&nbsp;"+o;p+="&nbsp;<span class='"+d+"'>"+b+k.toFixed(2)+"</span>";p+="&nbsp;<span class='"+d+"'>"+b+c.toFixed(2)+"%</span>";if((h!=g.length-1||f!=m.length-1)&&l%3==0){p+="<br/></span>"}}}p+="<br/></span>";$("#content").append(p)}function AutoRoll(a){$(a).find("div:first").animate({marginTop:"-24px"},1500,function(){$(this).css({marginTop:"-5px"}).find("span:first").appendTo(this)})}jQuery.autocomplete=function(d,y){var t=this;var C=$(d).attr("autocomplete","off");if(y.inputClass){C.addClass(y.inputClass)}var u=document.createElement("div");var j=$(u);j.hide().addClass(y.resultsClass).css("position","absolute");if(y.width>0){j.css("width",y.width)}$("body").append(u);var L="HoriseAutoComplete_"+d.id;var m=document.createElement("input");var o=$(m);o.attr("type","text").attr("id",L).attr("value","").hide();$("body").append(m);d.autocompleter=t;var M=null;var B="";var N=-1;var l={};var F=false;var p=false;var a=null;function q(){l={};l.data={};l.length=0}q();if(y.data!=null){var w="",S={},r=[];if(typeof y.url!="string"){y.cacheLength=1}for(var Q=0;Q<y.data.length;Q++){r=((typeof y.data[Q]=="string")?[y.data[Q]]:y.data[Q]);if(r[0].length>0){w=r[0].substring(0,1).toLowerCase();if(!S[w]){S[w]=[]}S[w].push(r)}}for(var P in S){y.cacheLength++;f(P,S[P])}}C.keydown(function(i){a=i.keyCode;switch(i.keyCode){case 38:i.preventDefault();H(-1);break;case 40:i.preventDefault();H(1);break;case 9:case 13:if(J()){C.get(0).blur();i.preventDefault()}break;case 17:break;default:N=-1;if(M){clearTimeout(M)}M=setTimeout(function(){x()},y.delay);break}}).focus(function(){p=true}).blur(function(){p=false;c()});z();function x(){if(a==46||(a>8&&a<32)){return j.hide()}var i=C.val();if(i==B){return}B=i;if(i.length>=y.minChars){C.addClass(y.loadingClass);G(i)}else{C.removeClass(y.loadingClass);j.hide()}}function H(k){var i=$("li",u);if(!i){return}N+=k;if(N<0){N=0}else{if(N>=i.size()){N=i.size()-1}}i.removeClass("ac_over");$(i[N]).addClass("ac_over")}function J(){var i=$("li.ac_over",u)[0];if(!i){var k=$("li",u);if(y.selectOnly){if(k.length==1){i=k[0]}}else{if(y.selectFirst){i=k[0]}}}if(i){v(i);return true}else{return false}}function v(i){if(!i){i=document.createElement("li");i.extra=[];i.selectValue=""}var k=$.trim(i.selectValue?i.selectValue:i.innerHTML);d.lastSelected=k;B=k;j.html("");if(y.DataValueIndex){C.val(i.extra[y.DataValueIndex])}else{C.val(k)}z();if(y.onItemSelect){setTimeout(function(){y.onItemSelect(i)},1)}}function b(U,k){var T=C.get(0);if(T.createTextRange){var i=T.createTextRange();i.collapse(true);i.moveStart("character",U);i.moveEnd("character",k);i.select()}else{if(T.setSelectionRange){T.setSelectionRange(U,k)}else{if(T.selectionStart){T.selectionStart=U;T.selectionEnd=k}}}T.focus()}function A(i){if(a!=8){C.val(C.val()+i.substring(B.length));b(B.length,i.length)}}function I(){var k=D(d);var i=(y.width>0)?y.width:C.width();j.css({width:parseInt(i)+"px",top:(k.y+d.offsetHeight)+"px",left:k.x+"px"}).show()}function c(){if(M){clearTimeout(M)}M=setTimeout(z,200)}function z(){if(M){clearTimeout(M)}C.removeClass(y.loadingClass);if(j.is(":visible")){j.hide()}if(y.mustMatch){var i=C.val();if(i!=d.lastSelected){v(null)}}}function h(k,i){if(i){C.removeClass(y.loadingClass);u.innerHTML="";if(!p||i.length==0){return z()}if($.browser.msie){j.append(document.createElement("iframe"))}u.appendChild(O(i));if(y.autoFill&&(C.val().toLowerCase()==k.toLowerCase())){A(i[0][0])}I()}else{z()}}function g(V){if(!V){return null}var k=[];var U=V.split(y.lineSeparator);for(var T=0;T<U.length;T++){var W=$.trim(U[T]);if(W){k[k.length]=W.split(y.cellSeparator)}}return k}function O(Y){var X=document.createElement("ul");var V=Y.length;if((y.maxItemsToShow>0)&&(y.maxItemsToShow<V)){V=y.maxItemsToShow}for(var W=0;W<V;W++){var Z=Y[W];if(!Z){continue}var T=document.createElement("li");if(y.formatItem){T.innerHTML=y.formatItem(Z,W,V);T.selectValue=Z[y.DataValueIndex]}else{T.innerHTML=Z[0];T.selectValue=Z[0]}var k=null;if(Z.length>1){k=[];for(var U=0;U<Z.length;U++){k[k.length]=Z[U]}}T.extra=k;X.appendChild(T);$(T).hover(function(){$("li",X).removeClass("ac_over");$(this).addClass("ac_over");N=$("li",X).indexOf($(this).get(0))},function(){$(this).removeClass("ac_over")}).click(function(i){i.preventDefault();i.stopPropagation();v(this)})}return X}function G(k){if(!y.matchCase){k=k.toLowerCase()}var i=(y.cacheLength>0)?R(k):null;if(i){h(k,i)}else{if((typeof y.url=="string")&&(y.url.length>0)){$.ajax({type:"GET",url:s(k),data:null,success:function(T){T=o.val();T=g(T);f(k,T);h(k,T)},dataType:"script",cache:true})}else{C.removeClass(y.loadingClass)}}}function s(U){var k=y.url+"?q="+encodeURI(U);for(var T in y.extraParams){k+="&"+T+"="+encodeURI(y.extraParams[T])}k+="&containerid="+L;return k}function R(Y){if(!Y){return null}if(l.data[Y]){return l.data[Y]}if(y.matchSubset){for(var W=Y.length-1;W>=y.minChars;W--){var T=Y.substr(0,W);var Z=l.data[T];if(Z){var X=[];for(var U=0;U<Z.length;U++){var k=Z[U];var V=k[0];if(E(V,Y)){X[X.length]=k}}return X}}}return null}function E(U,T){if(!y.matchCase){U=U.toLowerCase()}var k=U.indexOf(T);if(k==-1){return false}return k==0||y.matchContains}this.flushCache=function(){q()};this.setExtraParams=function(i){y.extraParams=i};this.findValue=function(){var k=C.val();if(!y.matchCase){k=k.toLowerCase()}var i=y.cacheLength?R(k):null;if(i){K(k,i)}else{if((typeof y.url=="string")&&(y.url.length>0)){$.get(s(k),function(T){T=g(T);f(k,T);K(k,T)})}else{K(k,null)}}};function K(Y,X){if(X){C.removeClass(y.loadingClass)}var V=(X)?X.length:0;var T=null;for(var W=0;W<V;W++){var Z=X[W];if(Z[0].toLowerCase()==Y.toLowerCase()){T=document.createElement("li");if(y.formatItem){T.innerHTML=y.formatItem(Z,W,V);T.selectValue=Z[0]}else{T.innerHTML=Z[0];T.selectValue=Z[0]}var k=null;if(Z.length>1){k=[];for(var U=1;U<Z.length;U++){k[k.length]=Z[U]}}T.extra=k}}if(y.onFindValue){setTimeout(function(){y.onFindValue(T)},1)}}function f(k,i){if(!i||!k||!y.cacheLength){return}if(!l.length||l.length>y.cacheLength){q();l.length++}else{if(!l[k]){l.length++}}l.data[k]=i}function D(k){var T=k.offsetLeft||0;var i=k.offsetTop||0;while(k=k.offsetParent){T+=k.offsetLeft;i+=k.offsetTop}return{x:T,y:i}}};jQuery.fn.autocomplete=function(b,a,c){a=a||{};a.url=b;a.data=((typeof c=="object")&&(c.constructor==Array))?c:null;a.inputClass=a.inputClass||"ac_input";a.resultsClass=a.resultsClass||"ac_results";a.lineSeparator=a.lineSeparator||"\n";a.cellSeparator=a.cellSeparator||"|";a.minChars=a.minChars||1;a.delay=a.delay||400;a.matchCase=a.matchCase||0;a.matchSubset=a.matchSubset||1;a.matchContains=a.matchContains||0;a.cacheLength=a.cacheLength||1;a.mustMatch=a.mustMatch||0;a.extraParams=a.extraParams||{};a.loadingClass=a.loadingClass||"ac_loading";a.selectFirst=a.selectFirst||false;a.selectOnly=a.selectOnly||false;a.maxItemsToShow=a.maxItemsToShow||-1;a.autoFill=a.autoFill||false;a.width=parseInt(a.width,10)||0;a.DataValueIndex=a.DataValueIndex||0;this.each(function(){var d=this;new jQuery.autocomplete(d,a)});return this};jQuery.fn.autocompleteArray=function(b,a){return this.autocomplete(null,a,b)};jQuery.fn.indexOf=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){return a}}return -1};function selectStockCodeItem(a){if(a==null){return alert("没有匹配的股票代码!")}$("#form1").attr("action","http://q.horise.com/data/stockquery.ashx?m="+a.extra[0]+"stockcode="+a.extra[1]);$("#form1").submit()}function formatStockCodeItem(a){return"["+a[1]+"]"+a[2]}function querystock(){if($("#stockcode").val()==null||$("#stockcode").val()==""||$("#stockcode").val()=="请输入股票代码"){alert("请先输入正确的股票代码/拼音/名称!");$("#stockcode").focus();return}window.open("http://q.horise.com/data/stockquery.ashx?stockcode="+$("#stockcode").val())}$(document).ready(function(){$("#stockcode").autocomplete("http://q.horise.com/data/CodeAsistantData.ashx",{delay:30,minChars:1,matchSubset:1,matchContains:10,cacheLength:-1,onItemSelect:selectStockCodeItem,formatItem:formatStockCodeItem,DataValueIndex:2,autoFill:false,selectFirst:true,lineSeparator:"\t",extraParams:{type:"stock"}})});(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var c=a.data(this[0],"validator");if(c){return c}c=new a.validator(b,this[0]);a.data(this[0],"validator",c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});this.submit(function(d){if(c.settings.debug){d.preventDefault()}function f(){if(c.settings.submitHandler){c.settings.submitHandler.call(c,c.currentForm);return false}return true}if(c.cancelSubmit){c.cancelSubmit=false;return f()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return f()}else{c.focusInvalid();return false}})}return c},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var c=false;var b=a(this[0].form).validate();this.each(function(){c|=b.element(this)});return c}},removeAttrs:function(d){var b={},c=this;a.each(d.split(/\s/),function(f,g){b[g]=c.attr(g);c.removeAttr(g)});return b},rules:function(f,b){var h=this[0];if(f){var d=a.data(h.form,"validator").settings;var j=d.rules;var k=a.validator.staticRules(h);switch(f){case"add":a.extend(k,a.validator.normalizeRule(b));j[h.name]=k;if(b.messages){d.messages[h.name]=a.extend(d.messages[h.name],b.messages)}break;case"remove":if(!b){delete j[h.name];return k}var i={};a.each(b.split(/\s/),function(l,m){i[m]=k[m];delete k[m]});return i}}var g=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(h),a.validator.classRules(h),a.validator.attributeRules(h),a.validator.staticRules(h)),h);if(g.required){var c=g.required;delete g.required;g=a.extend({required:c},g)}return g}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(b.value)},filled:function(b){return !!a.trim(b.value)},unchecked:function(b){return !b.checked}});a.format=function(b,c){if(arguments.length==1){return function(){var d=a.makeArray(arguments);d.unshift(b);return a.format.apply(this,d)}}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)}if(c.constructor!=Array){c=[c]}a.each(c,function(d,f){b=b.replace(new RegExp("\\{"+d+"\\}","g"),f)});return b};a.validator=function(b,c){this.settings=a.extend({},a.validator.defaults,b);this.currentForm=c;this.init()};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass);this.errorsFor(b).hide()}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)}},onclick:function(b){if(b.name in this.submitted){this.element(b)}},highlight:function(c,b){a(c).addClass(b)},unhighlight:function(c,b){a(c).removeClass(b)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.format("Please enter no more than {0} characters."),minlength:a.format("Please enter at least {0} characters."),rangelength:a.format("Please enter a value between {0} and {1} characters long."),range:a.format("Please enter a value between {0} and {1}."),max:a.format("Please enter a value less than or equal to {0}."),min:a.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=(this.groups={});a.each(this.settings.groups,function(f,g){a.each(g.split(/\s/),function(i,h){b[h]=f})});var d=this.settings.rules;a.each(d,function(f,g){d[f]=a.validator.normalizeRule(g)});function c(g){var f=a.data(this[0].form,"validator");f.settings["on"+g.type]&&f.settings["on"+g.type].call(f,this[0])}a(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",c).delegate("click",":radio, :checkbox",c);if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var b=0,c=(this.currentElements=this.elements());c[b];b++){this.check(c[b])}return this.valid()},element:function(c){c=this.clean(c);this.lastElement=c;this.prepareElement(c);this.currentElements=a(c);var b=this.check(c);if(b){delete this.invalid[c.name]}else{this.invalid[c.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return b},showErrors:function(c){if(c){a.extend(this.errorMap,c);this.errorList=[];for(var b in c){this.errorList.push({message:c[b],element:this.findByName(b)[0]})}this.successList=a.grep(this.successList,function(d){return !(d.name in c)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(d){var c=0;for(var b in d){c++}return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name==b.name}).length==1&&b},elements:function(){var c=this,b={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!c.objectLength(a(this).rules())){return false}b[this.name]=true;return true})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.formSubmitted=false;this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset();this.toHide=this.errorsFor(b)},check:function(c){c=this.clean(c);if(this.checkable(c)){c=this.findByName(c.name)[0]}var h=a(c).rules();var d=false;for(method in h){var g={method:method,parameters:h[method]};try{var b=a.validator.methods[method].call(this,c.value,c,g.parameters);if(b=="dependency-mismatch"){d=true;continue}d=false;if(b=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!b){this.formatAndAdd(c,g);return false}}catch(f){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+g.method+"' method");throw f}}if(d){return}if(this.objectLength(h)){this.successList.push(c)}return true},customMetaMessage:function(b,d){if(!a.metadata){return}var c=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return c&&c.messages&&c.messages[d]},customMessage:function(c,d){var b=this.settings.messages[c];return b&&(b.constructor==String?b:b[d])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(b,d){var c=this.defaultMessage(b,d.method);if(typeof c=="function"){c=c.call(this,d.parameters,b)}this.errorList.push({message:c,element:b});this.errorMap[b.name]=c;this.submitted[b.name]=c},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parents(this.settings.wrapper))}return b},defaultShowErrors:function(){for(var c=0;this.errorList[c];c++){var b=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass);this.showLabel(b.element,b.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(var c=0;this.successList[c];c++){this.showLabel(this.successList[c])}}if(this.settings.unhighlight){for(var c=0,d=this.validElements();d[c];c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(c,d){var b=this.errorsFor(c);if(b.length){b.removeClass().addClass(this.settings.errorClass);b.attr("generated")&&b.html(d)}else{b=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper){b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(b).length){this.settings.errorPlacement?this.settings.errorPlacement(b,a(c)):b.insertAfter(c)}}if(!d&&this.settings.success){b.text("");typeof this.settings.success=="string"?b.addClass(this.settings.success):this.settings.success(b)}this.toShow=this.toShow.add(b)},errorsFor:function(b){return this.errors().filter("[for='"+this.idOrName(b)+"']")},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(d,f){return f.form==c&&f.name==b&&f||null})},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length}}return c.length},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true},dependTypes:{"boolean":function(c,b){return c},string:function(c,b){return !!a(c,b.form).length},"function":function(c,b){return c(b)}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;this.pending[b.name]=true}},stopRequest:function(b,c){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[b.name];if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit()}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this])}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(c){var d={};var b=a(c).attr("class");b&&a.each(b.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(d,a.validator.classRuleSettings[this])}});return d},attributeRules:function(c){var f={};var b=a(c);for(method in a.validator.methods){var d=b.attr(method);if(d){f[method]=d}}if(f.maxlength&&/-1|2147483647|524288/.test(f.maxlength)){delete f.maxlength}return f},metadataRules:function(b){if(!a.metadata){return{}}var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(c){var d={};var b=a.data(c.form,"validator");if(b.settings.rules){d=a.validator.normalizeRule(b.settings.rules[c.name])||{}}return d},normalizeRules:function(c,b){a.each(c,function(g,f){if(f===false){delete c[g];return}if(f.param||f.depends){var d=true;switch(typeof f.depends){case"string":d=!!a(f.depends,b.form).length;break;case"function":d=f.depends.call(b,b);break}if(d){c[g]=f.param!==undefined?f.param:true}else{delete c[g]}}});a.each(c,function(d,f){c[d]=a.isFunction(f)?f(b):f});a.each(["minlength","maxlength","min","max"],function(){if(c[this]){c[this]=Number(c[this])}});a.each(["rangelength","range"],function(){if(c[this]){c[this]=[Number(c[this][0]),Number(c[this][1])]}});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}if(c.messages){delete c.messages}return c},normalizeRule:function(c){if(typeof c=="string"){var b={};a.each(c.split(/\s/),function(){b[this]=true});c=b}return c},addMethod:function(b,d,c){a.validator.methods[b]=d;a.validator.messages[b]=c;if(d.length<3){a.validator.addClassRules(b,a.validator.normalizeRule(b))}},methods:{required:function(d,c,f){if(!this.depend(f,c)){return"dependency-mismatch"}switch(c.nodeName.toLowerCase()){case"select":var b=a("option:selected",c);return b.length>0&&(c.type=="select-multiple"||(a.browser.msie&&!(b[0].attributes.value.specified)?b[0].text:b[0].value).length>0);case"input":if(this.checkable(c)){return this.getLength(d,c)>0}default:return a.trim(d).length>0}},remote:function(g,c,h){if(this.optional(c)){return"dependency-mismatch"}var d=this.previousValue(c);if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}}this.settings.messages[c.name].remote=typeof d.message=="function"?d.message(g):d.message;h=typeof h=="string"&&{url:h}||h;if(d.old!==g){d.old=g;var b=this;this.startRequest(c);var f={};f[c.name]=g;a.ajax(a.extend(true,{url:h,mode:"abort",port:"validate"+c.name,dataType:"json",data:f,success:function(j){if(j){var i=b.formSubmitted;b.prepareElement(c);b.formSubmitted=i;b.successList.push(c);b.showErrors()}else{var k={};k[c.name]=j||b.defaultMessage(c,"remote");b.showErrors(k)}d.valid=j;b.stopRequest(c,j)}},h));return"pending"}else{if(this.pending[c.name]){return"pending"}}return d.valid},minlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)>=d},maxlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)<=d},rangelength:function(d,b,f){var c=this.getLength(a.trim(d),b);return this.optional(b)||(c>=f[0]&&c<=f[1])},min:function(c,b,d){return this.optional(b)||c>=d},max:function(c,b,d){return this.optional(b)||c<=d},range:function(c,b,d){return this.optional(b)||(c>=d[0]&&c<=d[1])},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)},url:function(c,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c))},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)},dateDE:function(c,b){return this.optional(b)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(c)},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)},numberDE:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(c)},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)},creditcard:function(g,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9-]+/.test(g)){return false}var h=0,f=0,b=false;g=g.replace(/\D/g,"");for(n=g.length-1;n>=0;n--){var d=g.charAt(n);var f=parseInt(d,10);if(b){if((f*=2)>9){f-=9}}h+=f;b=!b}return(h%10)==0},accept:function(c,b,d){d=typeof d=="string"?d:"png|jpe?g|gif";return this.optional(b)||c.match(new RegExp(".("+d+")$","i"))},equalTo:function(c,b,d){return c==a(d).val()}}})})(jQuery);(function(c){var b=c.ajax;var a={};c.ajax=function(f){f=c.extend(f,c.extend({},c.ajaxSettings,f));var d=f.port;if(f.mode=="abort"){if(a[d]){a[d].abort()}return(a[d]=b.apply(this,arguments))}return b.apply(this,arguments)}})(jQuery);(function(a){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){if(a.browser.msie){return false}this.addEventListener(c,a.event.special[b].handler,true)},teardown:function(){if(a.browser.msie){return false}this.removeEventListener(c,a.event.special[b].handler,true)},handler:function(d){arguments[0]=a.event.fix(d);arguments[0].type=b;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{delegate:function(d,c,b){return this.bind(d,function(f){var g=a(f.target);if(g.is(c)){return b.apply(g,arguments)}})},triggerEvent:function(b,c){return this.triggerHandler(b,[a.event.fix({type:b,target:c})])}})})(jQuery);var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};jaaulde.utils.cookies=(function(){var d=[];var b={hoursToLive:null,path:"/",domain:null,secure:false};var h=function(i){var j;if(typeof i!=="object"||i===null){j=b}else{j={hoursToLive:(typeof i.hoursToLive==="number"&&i.hoursToLive!==0?i.hoursToLive:b.hoursToLive),path:(typeof i.path==="string"&&i.path!==""?i.path:b.path),domain:(typeof i.domain==="string"&&i.domain!==""?i.domain:b.domain),secure:(typeof i.secure==="boolean"&&i.secure?i.secure:b.secure)}}return j};var a=function(i){var j=new Date();j.setTime(j.getTime()+(i*60*60*1000));return j.toGMTString()};var g=function(i){i=h(i);return((typeof i.hoursToLive==="number"?"; expires="+a(i.hoursToLive):"")+"; path="+i.path+(typeof i.domain==="string"?"; domain="+i.domain:"")+(i.secure===true?"; secure":""))};var f=function(){d={};var o,k,m,j=document.cookie.split(";");for(var l=0;l<j.length;l=l+1){o=j[l].split("=");k=o[0].replace(/^\s*/,"").replace(/\s*$/,"");m=decodeURIComponent(o[1]);d[k]=m}return d};var c=function(){};c.prototype.get=function(k){var i;f();if(typeof k==="string"){i=(typeof d[k]!=="undefined")?d[k]:null}else{if(typeof k==="object"&&k!==null){i={};for(var j in k){if(typeof d[k[j]]!=="undefined"){i[k[j]]=d[k[j]]}else{i[k[j]]=null}}}else{i=d}}return i};c.prototype.filter=function(i){var j={};f();if(typeof i==="string"){i=new RegExp(i)}for(var k in d){if(k.match(i)){j[k]=d[k]}}return j};c.prototype.set=function(l,j,i){if(typeof j==="undefined"||j===null){if(typeof i!=="object"||i===null){i={}}j="";i.hoursToLive=-8760}var k=g(i);document.cookie=l+"="+encodeURIComponent(j)+k};c.prototype.del=function(l,k){var i={};if(typeof k!=="object"||k===null){k={}}if(typeof l==="boolean"&&l===true){i=this.get()}else{if(typeof l==="string"){i[l]=true}}for(var j in i){if(typeof j==="string"&&j!==""){this.set(j,null,k)}}};c.prototype.test=function(){var j=false,i="cT",k="data";this.set(i,k);if(this.get(i)===k){this.del(i);j=true}return j};c.prototype.setOptions=function(i){if(typeof i!=="object"){i=null}b=h(i)};return new c()})();(function(){if(window.jQuery){(function(b){b.cookies=jaaulde.utils.cookies;var a={cookify:function(c){return this.each(function(){var h,f=false,d=false,g="",l="",k=["name","id"],m,j;for(h in k){if(!isNaN(h)){g=b(this).attr(k[h]);if(typeof g==="string"&&g!==""){f=true;break}}}if(f){m=this.nodeName.toLowerCase();if(m!=="input"&&m!=="textarea"&&m!=="select"&&m!=="img"){l=b(this).html();d=true}else{j=b(this).attr("type");if(typeof j==="string"&&j!==""){j=j.toLowerCase()}if(j!=="radio"&&j!=="checkbox"){l=b(this).val();d=true}}if(d){if(typeof l!=="string"||l===""){l=null}b.cookies.set(g,l,c)}}})},cookieFill:function(){return this.each(function(){var f,c=false,d="",j,h=["name","id"],g=0,k;for(f in h){if(!isNaN(f)){d=b(this).attr(h[f]);if(typeof d==="string"&&d!==""){c=true;break}}}if(c){j=b.cookies.get(d);if(j!==null){k=this.nodeName.toLowerCase();if(k==="input"||k==="textarea"||k==="select"){b(this).val(j)}else{b(this).html(j)}}}g=0})},cookieBind:function(c){return this.each(function(){b(this).cookieFill().change(function(){b(this).cookify(c)})})}};b.each(a,function(c){b.fn[c]=this})})(window.jQuery)}})();try{var hacookie=jaaulde.utils.cookies.get("ha_c_source");if(hacookie==null&&document.referrer!=null){var httpstart="http://";var ref=document.referrer;var eindex=document.referrer.indexOf(httpstart);if(eindex==0){ref=ref.substr(httpstart.length,ref.length-httpstart.length)}eindex=ref.indexOf("/");if(eindex==-1){eindex=ref.indexOf("?")}if(eindex!=-1){ref=ref.substr(0,eindex)}eindex=ref.indexOf(":");if(eindex!=-1){ref=ref.substr(0,eindex)}var hostindex=ref.indexOf(".");ref=ref.substring(hostindex+1,ref.length);if(ref!=""&&ref!="horise.com"){var newOptions={domain:"horise.com",path:"/",hoursToLive:24*30,secure:false};jaaulde.utils.cookies.set("ha_c_source","referer="+document.referrer,newOptions)}}}catch(e){};