function convertEntities(b){var d,a;d=function(c){if(/&[^;]+;/.test(c)){var f=document.createElement("div");f.innerHTML=c;return!f.firstChild?c:f.firstChild.nodeValue}return c};if(typeof b==="string"){return d(b)}else{if(typeof b==="object"){for(a in b){if(typeof b[a]==="string"){b[a]=d(b[a])}}}}return b};
;/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!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>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.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(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.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(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.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(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.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 H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.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(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.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(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<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>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
;jQuery.cookie=function(d,c,a){if(typeof c!="undefined"){a=a||{};if(c===null){c="";a.expires=-1}var b="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){if(typeof a.expires=="number"){b=new Date;b.setTime(b.getTime()+a.expires*24*60*60*1E3)}else b=a.expires;b="; expires="+b.toUTCString()}var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(c),b,e,f,a].join("")}else{c=null;if(document.cookie&&document.cookie!=
""){a=document.cookie.split(";");for(b=0;b<a.length;b++){e=jQuery.trim(a[b]);if(e.substring(0,d.length+1)==d+"="){c=decodeURIComponent(e.substring(d.length+1));break}}}return c}};

;jQuery.fn.mcomScrollPane=function(height){$(this).css("overflow","hidden");$(this).css("height",height);$(this).hoverIntent({over:function(){$(this).css("overflow","auto");},out:function(){$(this).css("overflow","hidden");}});};
;jQuery.fn.mcomClickableBox=function(){$(this).find(".Item").each(function(i){var link=$(this).find("a.Click");if($(link).length>0){$(this).css("cursor","pointer");if($(link).hasClass("NewWindow")){$(this).click(function(){window.open($(link).attr("href"));return false;});}else{$(this).click(function(){document.location.href=$(link).attr("href");});}}});};
;(function($){$.fn.galleryView=function(options){var opts=$.extend($.fn.galleryView.defaults,options);var id;var iterator=0;var gallery_width;var gallery_height;var frame_margin=20;var strip_width;var wrapper_width;var item_count=0;var slide_method;var img_path;var paused=false;var frame_caption_size=72;var frame_margin_top=5;var pointer_width=2;var animation;var j_gallery;var j_filmstrip;var j_frames;var j_panels;var j_pointer;function showItem(i){$('img.nav-next').unbind('click');$('img.nav-prev').unbind('click');j_frames.unbind('click');if(has_panels){if(opts.fade_panels){j_panels.fadeOut(opts.transition_speed).eq(i%item_count).fadeIn(opts.transition_speed,function(){if(!has_filmstrip){$('img.nav-prev').click(showPrevItem);$('img.nav-next').click(showNextItem);}});}}
if(has_filmstrip){if(slide_method=='strip'){j_filmstrip.stop();var distance=getPos(j_frames[i]).left;var leftstr=(distance>=0?'-=':'+=')+Math.abs(distance)+'px';j_filmstrip.animate({'left':leftstr},opts.transition_speed,opts.easing,function(){if(i>item_count){i=i%item_count;iterator=i;j_filmstrip.css('left','-'+((opts.frame_width+frame_margin)*i)+'px');}else if(i<=(item_count-strip_size)){i=(i%item_count)+item_count;iterator=i;j_filmstrip.css('left','-'+((opts.frame_width+frame_margin)*i)+'px');}
if(!opts.fade_panels){j_panels.hide().eq(i%item_count).show();}
$('img.nav-prev').click(showPrevItem);$('img.nav-next').click(showNextItem);enableFrameClicking();});}else if(slide_method=='pointer'){j_pointer.stop();var pos=getPos(j_frames[i]);j_pointer.animate({'left':(pos.left-2+'px')},opts.transition_speed,opts.easing,function(){if(!opts.fade_panels){j_panels.hide().eq(i%item_count).show();}
$('img.nav-prev').click(showPrevItem);$('img.nav-next').click(showNextItem);enableFrameClicking();});}
if($('a',j_frames[i])[0]){j_pointer.unbind('click').click(function(){var a=$('a',j_frames[i]).eq(0);if(a.attr('target')=='_blank'){window.open(a.attr('href'));}
else{location.href=a.attr('href');}});}}};function showNextItem(){$(document).stopTime("transition");if(++iterator==j_frames.length){iterator=0;}
showItem(iterator);if(animation){$(document).everyTime(opts.transition_interval,"transition",function(){showNextItem();});}};function showPrevItem(){$(document).stopTime("transition");if(--iterator<0){iterator=item_count-1;}
showItem(iterator);if(animation){$(document).everyTime(opts.transition_interval,"transition",function(){showNextItem();});}};function getPos(el){var left=0,top=0;var el_id=el.id;if(el.offsetParent){do{left+=el.offsetLeft;top+=el.offsetTop;}while(el=el.offsetParent);}
if(el_id==id){return{'left':left,'top':top};}
else{var gPos=getPos(j_gallery[0]);var gLeft=gPos.left;var gTop=gPos.top;return{'left':left-gLeft,'top':top-gTop};}};function enableFrameClicking(){j_frames.each(function(i){if($('a',this).length==0){$(this).click(function(){$(document).stopTime("transition");showItem(i);iterator=i;if(animation){$(document).everyTime(opts.transition_interval,"transition",function(){showNextItem();});}});}});};function buildPanels(){if($('.panel-overlay').length>0){j_panels.append('<div class="overlay"></div>');}
if(!has_filmstrip){$('<img />').addClass('nav-next').attr('src',img_path+opts.nav_theme+'/next.png').appendTo(j_gallery).css({'position':'absolute','zIndex':'1100','cursor':'pointer','top':((opts.panel_height-22)/2)+'px','right':'10px','display':'none'}).click(showNextItem);$('<img />').addClass('nav-prev').attr('src',img_path+opts.nav_theme+'/prev.png').appendTo(j_gallery).css({'position':'absolute','zIndex':'1100','cursor':'pointer','top':((opts.panel_height-22)/2)+'px','left':'10px','display':'none'}).click(showPrevItem);$('<img />').addClass('nav-overlay').attr('src',img_path+opts.nav_theme+'/panel-nav-next.png').appendTo(j_gallery).css({'position':'absolute','zIndex':'1099','top':((opts.panel_height-22)/2)-10+'px','right':'0','display':'none'});$('<img />').addClass('nav-overlay').attr('src',img_path+opts.nav_theme+'/panel-nav-prev.png').appendTo(j_gallery).css({'position':'absolute','zIndex':'1099','top':((opts.panel_height-22)/2)-10+'px','left':'0','display':'none'});}
j_panels.css({'width':(opts.panel_width-parseInt(j_panels.css('paddingLeft').split('px')[0],10)-parseInt(j_panels.css('paddingRight').split('px')[0],10))+'px','height':(opts.panel_height-parseInt(j_panels.css('paddingTop').split('px')[0],10)-parseInt(j_panels.css('paddingBottom').split('px')[0],10))+'px','position':'absolute','top':(opts.filmstrip_position=='top'?(opts.frame_height+frame_margin_top+(opts.show_captions?frame_caption_size:frame_margin_top))+'px':'0px'),'left':'0px','overflow':'hidden','background':'white','display':'none'});$('.panel-overlay',j_panels).css({'position':'absolute','zIndex':'999','width':(opts.panel_width-20)+'px','height':opts.overlay_height+'px','top':(opts.overlay_position=='top'?'0':opts.panel_height-opts.overlay_height+'px'),'left':'0','padding':'0 10px','color':opts.overlay_text_color,'fontSize':opts.overlay_font_size});$('.panel-overlay a',j_panels).css({'color':opts.overlay_text_color,'textDecoration':'underline','fontWeight':'bold'});$('.overlay',j_panels).css({'position':'absolute','zIndex':'998','width':opts.panel_width+'px','height':opts.overlay_height+'px','top':(opts.overlay_position=='top'?'0':opts.panel_height-opts.overlay_height+'px'),'left':'0','background':opts.overlay_color,'opacity':opts.overlay_opacity});$('.panel iframe',j_panels).css({'width':opts.panel_width+'px','height':(opts.panel_height-opts.overlay_height)+'px','border':'0'});};function buildFilmstrip(){j_filmstrip.wrap('<div class="strip_wrapper"></div>');if(slide_method=='strip'){j_frames.clone().appendTo(j_filmstrip);j_frames.clone().appendTo(j_filmstrip);j_frames=$('li',j_filmstrip);}
if(opts.show_captions){j_frames.append('<div class="caption"></div>').each(function(i){$(this).find('.caption').html($(this).find('img').attr('title'));});}
j_filmstrip.css({'listStyle':'none','margin':'0','padding':'0','width':strip_width+'px','position':'absolute','zIndex':'1','top':'0','left':'0','height':(opts.frame_height+10)+'px','background':opts.background_color});j_frames.css({'float':'left','position':'relative','height':opts.frame_height+'px','zIndex':'901','marginTop':frame_margin_top+'px','marginBottom':'0px','marginRight':frame_margin+'px','padding':'0','cursor':'pointer'});$('img',j_frames).css({'border':'none'});$('.strip_wrapper',j_gallery).css({'position':'absolute','top':(opts.filmstrip_position=='top'?'0px':opts.panel_height+'px'),'left':'0px','width':wrapper_width+'px','height':(opts.frame_height+frame_margin_top+(opts.show_captions?frame_caption_size:frame_margin_top))+'px','overflow':'hidden'});$('.caption',j_gallery).css({'position':'absolute','top':opts.frame_height+'px','left':'0','margin':'0','width':opts.frame_width+'px','padding':'0','color':opts.caption_text_color,'textAlign':'center','fontSize':'10px','height':frame_caption_size+'px','lineHeight':frame_caption_size+'px'});var pointer=$('<div></div>');pointer.attr('id','pointer').appendTo(j_gallery).css({'position':'absolute','zIndex':'1000','cursor':'pointer','top':getPos(j_frames[0]).top-(pointer_width/2)+'px','left':getPos(j_frames[0]).left-(pointer_width/2)+'px','height':opts.frame_height-pointer_width+'px','width':opts.frame_width-pointer_width+'px','border':(has_panels?pointer_width+'px solid '+(opts.nav_theme=='dark'?'black':'white'):'none')});j_pointer=$('#pointer',j_gallery);if(has_panels){var pointerArrow=$('<img />');pointerArrow.attr('src',img_path+opts.nav_theme+'/pointer'+(opts.filmstrip_position=='top'?'-down':'')+'.png').appendTo($('#pointer')).css({'position':'absolute','zIndex':'1001','top':(opts.filmstrip_position=='bottom'?'-'+(10+pointer_width)+'px':opts.frame_height+'px'),'left':((opts.frame_width/2)-10)+'px'});}
if(slide_method=='strip'){j_filmstrip.css('left','-'+((opts.frame_width+frame_margin)*item_count)+'px');iterator=item_count;}
if($('a',j_frames[iterator])[0]){j_pointer.click(function(){var a=$('a',j_frames[iterator]).eq(0);if(a.attr('target')=='_blank'){window.open(a.attr('href'));}
else{location.href=a.attr('href');}});}
$('<div>').addClass('nav-next').appendTo(j_gallery).css({'position':'absolute','cursor':'pointer','top':'0px','right':'0px','width':'42px','z-index':'1'}).click(showNextItem);$('<div>').addClass('nav-prev').appendTo(j_gallery).css({'position':'absolute','cursor':'pointer','top':'0px','left':'0px','width':'42px','z-index':'1'}).click(showPrevItem);if(item_count<=opts.filmstrip_size){$(".nav-prev").css("display","none");$(".nav-next").css("display","none");};};function mouseIsOverPanels(x,y){var pos=getPos(j_gallery[0]);var top=pos.top;var left=pos.left;return x>left&&x<left+opts.panel_width&&y>top&&y<top+opts.panel_height;};return this.each(function(){j_gallery=$(this);$('script').each(function(i){var s=$(this);if(s.attr('src')&&s.attr('src').match(/jquery\.galleryview/)){img_path=s.attr('src').split('jquery.galleryview')[0]+'themes/';}});j_gallery.css('visibility','hidden');j_filmstrip=$('.filmstrip',j_gallery);j_frames=$('li',j_filmstrip);j_panels=$('.panel',j_gallery);id=j_gallery.attr('id');has_panels=j_panels.length>0;has_filmstrip=j_frames.length>0;if(!has_panels)opts.panel_height=0;item_count=has_panels?j_panels.length:j_frames.length;strip_size=has_panels?Math.floor((opts.panel_width-64)/(opts.frame_width+frame_margin)):Math.min(item_count,opts.filmstrip_size);if(strip_size>=item_count){slide_method='pointer';strip_size=item_count;}
else{slide_method='strip';}
gallery_width=has_panels?opts.panel_width:(strip_size*(opts.frame_width+frame_margin))-frame_margin;gallery_height=(has_panels?opts.panel_height:0)+(has_filmstrip?opts.frame_height+frame_margin_top+(opts.show_captions?frame_caption_size:frame_margin_top):0);if(slide_method=='pointer'){strip_width=(opts.frame_width*item_count)+(frame_margin*(item_count));}
else{strip_width=(opts.frame_width*item_count*3)+(frame_margin*(item_count*3));}
wrapper_width=((strip_size*opts.frame_width)+((strip_size-1)*frame_margin));j_gallery.css({'position':'relative','margin':'0','background':opts.background_color,'border':opts.border,'width':gallery_width+'px','height':gallery_height+'px'});if(has_filmstrip){buildFilmstrip();}
if(has_panels){buildPanels();}
if(has_filmstrip)enableFrameClicking();$().mousemove(function(e){if(mouseIsOverPanels(e.pageX,e.pageY)){if(opts.pause_on_hover){$(document).oneTime(500,"animation_pause",function(){$(document).stopTime("transition");paused=true;});}
if(has_panels&&!has_filmstrip){$('.nav-overlay').fadeIn('fast');$('.nav-next').fadeIn('fast');$('.nav-prev').fadeIn('fast');}}else{if(opts.pause_on_hover){$(document).stopTime("animation_pause");if(paused){$(document).everyTime(opts.transition_interval,"transition",function(){showNextItem();});if(animation){paused=false;}}}
if(has_panels&&!has_filmstrip){$('.nav-overlay').fadeOut('fast');$('.nav-next').fadeOut('fast');$('.nav-prev').fadeOut('fast');}}});j_panels.eq(0).show();if(item_count>1&&opts.animation){$(document).everyTime(opts.transition_interval,"transition",function(){showNextItem();});}
j_gallery.css('visibility','visible');});};$.fn.galleryView.defaults={panel_width:400,panel_height:300,frame_width:80,frame_height:80,filmstrip_size:3,overlay_height:70,overlay_font_size:'1em',transition_speed:400,transition_interval:600,animation:false,paused:true,overlay_opacity:0.6,overlay_color:'black',background_color:'black',overlay_text_color:'white',caption_text_color:'white',border:'1px solid black',nav_theme:'light',easing:'swing',filmstrip_position:'bottom',overlay_position:'bottom',show_captions:false,frame_caption_size:72,fade_panels:true,pause_on_hover:false};})(jQuery);
;jQuery.fn.extend({everyTime:function(interval,label,fn,times){return this.each(function(){jQuery.timer.add(this,interval,label,fn,times);});},oneTime:function(interval,label,fn){return this.each(function(){jQuery.timer.add(this,interval,label,fn,1);});},stopTime:function(label,fn){return this.each(function(){jQuery.timer.remove(this,label,fn);});}});jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{'ms':1,'cs':10,'ds':100,'s':1000,'das':10000,'hs':100000,'ks':1000000},timeParse:function(value){if(value==undefined||value==null)
return null;var result=this.regex.exec(jQuery.trim(value.toString()));if(result[2]){var num=parseFloat(result[1]);var mult=this.powers[result[2]]||1;return num*mult;}else{return value;}},add:function(element,interval,label,fn,times){var counter=0;if(jQuery.isFunction(label)){if(!times)
times=fn;fn=label;label=interval;}
interval=jQuery.timer.timeParse(interval);if(typeof interval!='number'||isNaN(interval)||interval<0)
return;if(typeof times!='number'||isNaN(times)||times<0)
times=0;times=times||0;var timers=jQuery.data(element,this.dataKey)||jQuery.data(element,this.dataKey,{});if(!timers[label])
timers[label]={};fn.timerID=fn.timerID||this.guid++;var handler=function(){if((++counter>times&&times!==0)||fn.call(element,counter)===false)
jQuery.timer.remove(element,label,fn);};handler.timerID=fn.timerID;if(!timers[label][fn.timerID])
timers[label][fn.timerID]=window.setInterval(handler,interval);this.global.push(element);},remove:function(element,label,fn){var timers=jQuery.data(element,this.dataKey),ret;if(timers){if(!label){for(label in timers)
this.remove(element,label,fn);}else if(timers[label]){if(fn){if(fn.timerID){window.clearInterval(timers[label][fn.timerID]);delete timers[label][fn.timerID];}}else{for(var fn in timers[label]){window.clearInterval(timers[label][fn]);delete timers[label][fn];}}
for(ret in timers[label])break;if(!ret){ret=null;delete timers[label];}}
for(ret in timers)break;if(!ret)
jQuery.removeData(element,this.dataKey);}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(index,item){jQuery.timer.remove(item);});});
;(function($){jQuery.fn.mcomSelector=function(options){settings=jQuery.extend({containerClass:"Selector",selectionClass:"Selection",selectionButtonClass:"SelectionButton",selectionClassActive:"SelectionActive",buttonClass:"Button",buttonClassActive:"ButtonActive",optionListClass:"OptionList",optionSelectedClass:"Selected",optionFirstClass:"First",optionLastClass:"Last",numberOfVisibleEntries:0,listElementHeight:31,listElementWidth:141,mode:"text",selectCallback:null,submitCallback:null},options);return this.each(function(){var oldSelector=$(this);var container=document.createElement("DIV");var optionList=document.createElement("UL");var option=null;var input=document.createElement("INPUT");var input2=document.createElement("INPUT");$(container).addClass(settings.containerClass);$(optionList).addClass(settings.optionListClass);oldSelector.hide();if(settings.mode=="text"){$(input).attr("type","text");$(input).attr("readonly","readonly");$(input).addClass(settings.selectionClass);}
else{$(input).attr("type","submit");$(input).addClass(settings.selectionButtonClass);if(settings.submitCallback!=null)
$("#ActiveSearch").submit(function(){return settings.submitCallback()});}
$(input).attr("id","selection"+oldSelector.attr("id"));$(input).val(oldSelector[0].options[oldSelector[0].selectedIndex].text);$(input2).attr("type","button");$(input2).addClass(settings.buttonClass);$(input2).attr("id","button"+oldSelector.attr("id"));$(container).append(input);$(container).append(input2);for(var i=0;i<oldSelector[0].options.length;i++){option=document.createElement("LI");$(option).attr("rel",oldSelector[0].options[i].value);$(option).html(oldSelector[0].options[i].text);if(i==0)
$(option).addClass(settings.optionFirstClass);if(i==oldSelector[0].options.length-1)
$(option).addClass(settings.optionLastClass);if($(option).attr("rel")==oldSelector.val())
$(option).addClass(settings.optionSelectedClass);optionList.appendChild(option);}
$(container).append(optionList);$(oldSelector).after(container);$(container).after("<input type=\"hidden\" class=\"Hidden\" id=\"hidden"+oldSelector[0].id+"\" name=\""+oldSelector[0].name+"\" value=\""+oldSelector.val()+"\" />");$("li",optionList).click(function(){var $this=$(this);$this.parent().slideToggle("fast",function(){$("#button"+oldSelector.attr("id")).toggleClass(settings.buttonClassActive);$("#selection"+oldSelector.attr("id")).toggleClass(settings.selectionClassActive);});$("#selection"+oldSelector.attr("id")).val($this.html());$("#hidden"+oldSelector[0].id).val($this.attr("rel"));$this.siblings("li").removeClass(settings.optionSelectedClass);$this.addClass(settings.optionSelectedClass);if(options.selectCallback!=null){var arguments=[{text:$this.html(),value:$this.attr("rel")},$this.parent()];options.selectCallback.apply(this,arguments);}
return false;});if(settings.mode=="text"){$("#selection"+oldSelector.attr("id")).click(function(){var $this=$(this);return buttonClick($("#button"+oldSelector.attr("id")),$this);});}
$("#button"+oldSelector.attr("id")).click(function(){var $this=$(this);return buttonClick($this,$("#selection"+oldSelector.attr("id")));});if(settings.numberOfVisibleEntries>0&&settings.numberOfVisibleEntries<$(optionList).children("li").length){$(optionList).width(settings.listElementWidth+20);$(optionList).height(settings.listElementHeight*settings.numberOfVisibleEntries);$(optionList).css("overflow","auto");}
oldSelector.remove();});}
function buttonClick(button,selection){if(button.nextAll("ul").is(':hidden')){button.toggleClass(settings.buttonClassActive);selection.toggleClass(settings.selectionClassActive);button.nextAll("ul").slideToggle("fast");}
else{button.nextAll("ul").slideToggle("fast",function(){button.toggleClass(settings.buttonClassActive);selection.toggleClass(settings.selectionClassActive);});}
return false;}})(jQuery);
;(function(e){e.fn.hoverIntent=function(l,m){var d={sensitivity:7,interval:100,timeout:0};d=e.extend(d,m?{over:l,out:m}:l);var g,h,i,j,k=function(c){g=c.pageX;h=c.pageY},n=function(c,a){a.hoverIntent_t=clearTimeout(a.hoverIntent_t);if(Math.abs(i-g)+Math.abs(j-h)<d.sensitivity){e(a).unbind("mousemove",k);a.hoverIntent_s=1;return d.over.apply(a,[c])}else{i=g;j=h;a.hoverIntent_t=setTimeout(function(){n(c,a)},d.interval)}},o=function(c){for(var a=(c.type=="mouseover"?c.fromElement:c.toElement)||c.relatedTarget;a&&
a!=this;)try{a=a.parentNode}catch(p){a=this}if(a==this)return false;var f=jQuery.extend({},c),b=this;if(b.hoverIntent_t)b.hoverIntent_t=clearTimeout(b.hoverIntent_t);if(c.type=="mouseover"){i=f.pageX;j=f.pageY;e(b).bind("mousemove",k);if(b.hoverIntent_s!=1)b.hoverIntent_t=setTimeout(function(){n(f,b)},d.interval)}else{e(b).unbind("mousemove",k);if(b.hoverIntent_s==1)b.hoverIntent_t=setTimeout(function(){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);b.hoverIntent_s=0;d.out.apply(b,[f])},d.timeout)}};
return this.mouseover(o).mouseout(o)}})(jQuery);

;/*
 GNU Lesser General Public License: http://creativecommons.org/licenses/LGPL/2.1/
 @version 1.1
 2009/02/27

 The outerClick event is fired when an element outside of the target element is clicked.

 Usage:
 $(selector).bind("outerClick", fn);   // Bind the function fn to the outerClick event on each of the matched elements.
 $(selector).outerClick(fn);           // Bind the function fn to the outerClick event on each of the matched elements.
 $(selector).trigger("outerClick");    // Trigger the outerClick event on each of the matched elements.
 $(selector).outerClick();             // Trigger the outerClick event on each of the matched elements.
 $(selector).unbind("outerClick", fn); // Unbind the function fn from the outerClick event on each of the matched elements.
 $(selector).unbind("outerClick");     // Unbind all outerClick events from each of the matched elements.
*/
(function(c,b,e){function h(a){for(var f=0,i=b.length,g=a.target,d;f<i;f++){d=b[f];if(d!==g&&!(d.contains?d.contains(g):d.compareDocumentPosition?d.compareDocumentPosition(g)&16:1))c.event.trigger(e,a,d)}}c.event.special[e]={setup:function(){var a=b.length;a||c.event.add(document,"click",h);if(c.inArray(this,b)<0)b[a]=this},teardown:function(){var a=c.inArray(this,b);if(a>=0){b.splice(a,1);b.length||c.event.remove(document,"click",h)}}};c.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)}})(jQuery,
[],"outerClick");

;document.createElement("canvas").getContext||function(){function p(){if(this.context_)return this.context_;return this.context_=new q(this)}function x(a,b){var h=A.call(arguments,2);return function(){return a.apply(b,h.concat(A.call(arguments)))}}function D(a){var b=a.srcElement;switch(a.propertyName){case "width":b.style.width=b.attributes.width.nodeValue+"px";b.getContext().clearRect();break;case "height":b.style.height=b.attributes.height.nodeValue+"px";b.getContext().clearRect()}}function N(a){a=
a.srcElement;if(a.firstChild){a.firstChild.style.width=a.clientWidth+"px";a.firstChild.style.height=a.clientHeight+"px"}}function J(a){var b,h=1;a=String(a);if(a.substring(0,3)=="rgb"){b=a.indexOf("(",3);var k=a.indexOf(")",b+1);k=a.substring(b+1,k).split(",");b="#";for(var d=0;d<3;d++)b+=G[Number(k[d])];if(k.length==4&&a.substr(3,1)=="a")h=k[3]}else b=a;return[b,h]}function B(a){switch(a){case "butt":return"flat";case "round":return"round";default:return"square"}}function q(a){this.m_=[[1,0,0],[0,
1,0],[0,0,1]];this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=r*1;this.globalAlpha=1;this.canvas=a;var b=a.ownerDocument.createElement("div");b.style.width=a.clientWidth+"px";b.style.height=a.clientHeight+"px";b.style.overflow="hidden";b.style.position="absolute";a.appendChild(b);this.element_=b;this.arcScaleY_=this.arcScaleX_=1}var l=Math.round,r=10,y=r/2,A=Array.prototype.slice,
C={init:function(a){if(/MSIE/.test(navigator.userAgent)&&!window.opera){a=a||document;a.createElement("canvas");a.attachEvent("onreadystatechange",x(this.init_,this,a))}},init_:function(a){a.namespaces.g_vml_||a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml");if(!a.styleSheets.ex_canvas_){a=a.createStyleSheet();a.owningElement.id="ex_canvas_";a.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}"}},i:function(a){if(!a.getContext){a.getContext=
p;a.attachEvent("onpropertychange",D);a.attachEvent("onresize",N);var b=a.attributes;if(b.width&&b.width.specified)a.style.width=b.width.nodeValue+"px";else a.width=a.clientWidth;if(b.height&&b.height.specified)a.style.height=b.height.nodeValue+"px";else a.height=a.clientHeight}return a}};C.init();for(var G=[],g=0;g<16;g++)for(var c=0;c<16;c++)G[g*16+c]=g.toString(16)+c.toString(16);g=q.prototype;g.clearRect=function(){this.element_.innerHTML="";this.currentPath_=[]};g.beginPath=function(){this.currentPath_=
[]};g.moveTo=function(a,b){var h=this.getCoords_(a,b);this.currentPath_.push({type:"moveTo",x:h.x,y:h.y});this.currentX_=h.x;this.currentY_=h.y};g.lineTo=function(a,b){var h=this.getCoords_(a,b);this.currentPath_.push({type:"lineTo",x:h.x,y:h.y});this.currentX_=h.x;this.currentY_=h.y};g.bezierCurveTo=function(a,b,h,k,d,f){d=this.getCoords_(d,f);a=this.getCoords_(a,b);h=this.getCoords_(h,k);this.currentPath_.push({type:"bezierCurveTo",cp1x:a.x,cp1y:a.y,cp2x:h.x,cp2y:h.y,x:d.x,y:d.y});this.currentX_=
d.x;this.currentY_=d.y};g.fillRect=function(a,b,h,k){this.beginPath();this.moveTo(a,b);this.lineTo(a+h,b);this.lineTo(a+h,b+k);this.lineTo(a,b+k);this.closePath();this.fill();this.currentPath_=[]};g.createLinearGradient=function(){return new CanvasGradient_("gradient")};g.createRadialGradient=function(a,b,h,k,d,f){k=new CanvasGradient_("gradientradial");k.radius1_=h;k.radius2_=f;k.focus_.x=a;k.focus_.y=b;return k};g.stroke=function(a){var b=[],h=J(a?this.fillStyle:this.strokeStyle),k=h[0];h=h[1]*
this.globalAlpha;b.push("<g_vml_:shape",' fillcolor="',k,'"',' filled="',Boolean(a),'"',' style="position:absolute;width:',10,";height:",10,';"',' coordorigin="0 0" coordsize="',r*10," ",r*10,'"',' stroked="',!a,'"',' strokeweight="',this.lineWidth,'"',' strokecolor="',k,'"',' path="');for(var d={x:null,y:null},f={x:null,y:null},o=0;o<this.currentPath_.length;o++){var i=this.currentPath_[o];switch(i.type){case "moveTo":b.push(" m ");b.push(l(i.x),",",l(i.y));break;case "lineTo":b.push(" l ");b.push(l(i.x),
",",l(i.y));break;case "close":b.push(" x ");i=null;break;case "bezierCurveTo":b.push(" c ");b.push(l(i.cp1x),",",l(i.cp1y),",",l(i.cp2x),",",l(i.cp2y),",",l(i.x),",",l(i.y));break;case "at":case "wa":b.push(" ",i.type," ");b.push(l(i.x-this.arcScaleX_*i.radius),",",l(i.y-this.arcScaleY_*i.radius)," ",l(i.x+this.arcScaleX_*i.radius),",",l(i.y+this.arcScaleY_*i.radius)," ",l(i.xStart),",",l(i.yStart)," ",l(i.xEnd),",",l(i.yEnd))}if(i){if(d.x==null||i.x<d.x)d.x=i.x;if(f.x==null||i.x>f.x)f.x=i.x;if(d.y==
null||i.y<d.y)d.y=i.y;if(f.y==null||i.y>f.y)f.y=i.y}}b.push(' ">');if(typeof this.fillStyle=="object"){k={x:"50%",y:"50%"};o=f.x-d.x;d=f.y-d.y;a=o>d?o:d;k.x=l(this.fillStyle.focus_.x/o*100+50)+"%";k.y=l(this.fillStyle.focus_.y/d*100+50)+"%";d=[];if(this.fillStyle.type_=="gradientradial"){f=this.fillStyle.radius1_/a*100;a=this.fillStyle.radius2_/a*100-f}else{f=0;a=100}i={offset:null,color:null};var n={offset:null,color:null};this.fillStyle.colors_.sort(function(j,m){return j.offset-m.offset});for(o=
0;o<this.fillStyle.colors_.length;o++){var e=this.fillStyle.colors_[o];d.push(e.offset*a+f,"% ",e.color,",");if(e.offset>i.offset||i.offset==null){i.offset=e.offset;i.color=e.color}if(e.offset<n.offset||n.offset==null){n.offset=e.offset;n.color=e.color}}d.pop();b.push("<g_vml_:fill",' color="',n.color,'"',' color2="',i.color,'"',' type="',this.fillStyle.type_,'"',' focusposition="',k.x,", ",k.y,'"',' colors="',d.join(""),'"',' opacity="',h,'" />')}else if(a)b.push('<g_vml_:fill color="',k,'" opacity="',
h,'" />');else{o=Math.max(this.arcScaleX_,this.arcScaleY_)*this.lineWidth;b.push("<g_vml_:stroke",' opacity="',h,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',B(this.lineCap),'"',' weight="',o,'px"',' color="',k,'" />')}b.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",b.join(""))};g.fill=function(){this.stroke(true)};g.closePath=function(){this.currentPath_.push({type:"close"})};g.getCoords_=function(a,b){return{x:r*(a*this.m_[0][0]+b*this.m_[1][0]+
this.m_[2][0])-y,y:r*(a*this.m_[0][1]+b*this.m_[1][1]+this.m_[2][1])-y}};G_vmlCMjrc=C}();jQuery.browser.msie&&document.execCommand("BackgroundImageCache",false,true);
(function(p){var x=p.browser.msie,D=x&&!window.XMLHttpRequest,N=p.browser.opera,J=typeof document.createElement("canvas").getContext=="function",B=function(g){return parseInt(g,10)||0},q=function(g,c,a){var b;if(g.currentStyle)b=g.currentStyle[c];else if(window.getComputedStyle){if(typeof a=="string")c=a;b=document.defaultView.getComputedStyle(g,null).getPropertyValue(c)}return b},l=function(g,c){return q(g,"border"+c+"Color","border-"+c.toLowerCase()+"-color")},r=function(g,c){if(g.currentStyle&&
!N){w=g.currentStyle["border"+c+"Width"];if(w=="thin")w=2;if(w=="medium"&&g.currentStyle["border"+c+"Style"]!="none")w=4;if(w=="thick")w=6}else{c=c.toLowerCase();w=document.defaultView.getComputedStyle(g,null).getPropertyValue("border-"+c+"-width")}return B(w)},y=function(g,c,a,b,h){if(g=="tl")return c;if(g=="tr")return a;if(g=="bl")return b;if(g=="br")return h},A=function(g,c,a,b,h,k,d){if(b.indexOf("rgba")!=-1){var f=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(b);if(f){f=[B(f[1]),
B(f[2]),B(f[3])];b="rgb("+f[0]+", "+f[1]+", "+f[2]+")"}}f=g.getContext("2d");if(c==1||d=="notch"){if(h>0&&c>1){f.fillStyle=k;f.fillRect(0,0,c,c);f.fillStyle=b;d=y(a,[0-h,0-h],[h,0-h],[0-h,h],[h,h]);f.fillRect(d[0],d[1],c,c)}else{f.fillStyle=b;f.fillRect(0,0,c,c)}return g}else if(d=="bevel"){d=y(a,[0,0,0,c,c,0,0,0],[0,0,c,c,c,0,0,0],[0,0,c,c,0,c,0,0],[c,c,c,0,0,c,c,c]);f.fillStyle=b;f.beginPath();f.moveTo(d[0],d[1]);f.lineTo(d[2],d[3]);f.lineTo(d[4],d[5]);f.lineTo(d[6],d[7]);f.fill();if(h>0&&h<c){f.strokeStyle=
k;f.lineWidth=h;f.beginPath();d=y(a,[0,c,c,0],[0,0,c,c],[c,c,0,0],[0,c,c,0]);f.moveTo(d[0],d[1]);f.lineTo(d[2],d[3]);f.stroke()}return g}d=y(a,[0,0,c,0,c,0,0,c,0,0],[c,0,c,c,c,0,0,0,0,0],[0,c,c,c,0,c,0,0,0,c],[c,c,c,0,c,0,0,c,c,c]);f.fillStyle=b;f.beginPath();f.moveTo(d[0],d[1]);f.lineTo(d[2],d[3]);a=="br"?f.bezierCurveTo(d[4],d[5],c,c,d[6],d[7]):f.bezierCurveTo(d[4],d[5],0,0,d[6],d[7]);f.lineTo(d[8],d[9]);f.fill();if(h>0&&h<c){b=h/2;d=c-b;d=y(a,[d,b,d,b,b,d],[d,d,d,b,b,b],[d,d,b,d,b,b,b,d],[d,b,
d,b,b,d,d,d]);c=y(a,[0,0],[0,0],[0,0],[c,c]);f.strokeStyle=k;f.lineWidth=h;f.beginPath();f.moveTo(d[0],d[1]);f.bezierCurveTo(d[2],d[3],c[0],c[1],d[4],d[5]);f.stroke()}return g},C=function(g,c){var a=document.createElement("canvas");a.setAttribute("height",c);a.setAttribute("width",c);a.style.display="block";a.style.position="absolute";a.className="jrCorner";var b=a;if(g.is("table")){g.children("tbody").children("tr:first").children("td:first").append(b);g.css("display","block")}else if(g.is("td")){if(g.children(".JrcTdContainer").length===
0){g.html('<div class="JrcTdContainer" style="padding:0px;position:relative;margin:-1px;zoom:1;">'+g.html()+"</div>");g.css("zoom","1");D&&g.children(".JrcTdContainer").get(0).style.setExpression("height","this.parentNode.offsetHeight")}g.children(".JrcTdContainer").append(b)}else g.append(b);if(!J&&x)if(typeof G_vmlCanvasManager=="object")a=G_vmlCanvasManager.initElement(a);else if(typeof G_vmlCMjrc=="object")a=G_vmlCMjrc.i(a);else throw Error("Could not find excanvas");return a};if(x){var G=document.createStyleSheet();
G.media="print";G.cssText=".jrcIECanvasDiv { display:none !important; }"}p.fn.jrcorner=function(g){if(this.length==0||!(J||x))return this;if(g=="destroy")return this.each(function(){var e,j=p(this);if(j.is(".jrcRounded")){typeof j.data("ie6tmr.jrc")=="number"&&window.clearInterval(j.data("ie6tmr.jrc"));e=j.is("table")?j.children("tbody").children("tr:first").children("td:first"):j.is("td")?j.children(".JrcTdContainer"):j;e.children(".jrCorner").remove();j.unbind("mouseleave.jrc").unbind("mouseenter.jrc").removeClass("jrcRounded").removeData("ie6tmr.jrc");
j.is("td")&&j.html(j.children(".JrcTdContainer").html())}});var c=(g||"").toLowerCase(),a=B((c.match(/(\d+)px/)||[])[1])||"auto",b=(c.match(/(#[0-9a-f]+)/)||[])[1]||"auto",h=/round|bevel|notch/,k=(c.match(h)||["round"])[0],d=/hover/.test(c),f=/oversized/.test(c),o=c.match("hiddenparent");if(x){h=/ie6nofix|ie6fixinit|ie6fixexpr|ie6fixonload|ie6fixwidthint|ie6fixheightint|ie6fixbothint/;var i=(c.match(h)||["ie6fixinit"])[0]}var n={tl:/top|left|tl/.test(c),tr:/top|right|tr/.test(c),bl:/bottom|left|bl/.test(c),
br:/bottom|right|br/.test(c)};if(!n.tl&&!n.tr&&!n.bl&&!n.br)n={tl:1,tr:1,bl:1,br:1};this.each(function(){var e=p(this),j=null,m,H,u=q(this,"display"),s=q(this,"position");q(this,"lineHeight","line-height");if(b=="auto"){m=e.siblings(".jrcRounded:eq(0)");if(m.length>0){m=m.data("rbg.jrc");if(typeof m=="string")j=m}}if(o||j===null){m=this.parentNode;for(var z=[];typeof m=="object"&&m.tagName.toLowerCase()!="html";){if(o&&q(m,"display")=="none"){z.push({originalvisibility:q(m,"visibility"),elm:m});m.style.display=
"block";m.style.visibility="hidden"}var v=q(m,"backgroundColor","background-color");if(j===null&&v!="transparent"&&v!="rgba(0, 0, 0, 0)")j=v;m=m.parentNode}if(j===null)j="#ffffff"}if(b=="auto"){m=j;e.data("rbg.jrc",j)}else m=b;if(u=="none"){var K=q(this,"visibility");this.style.display="block";this.style.visibility="hidden";var L=true}j=e.height();u=e.width();if(d){var M=c.replace(/hover|ie6nofix|ie6fixinit|ie6fixexpr|ie6fixonload|ie6fixwidthint|ie6fixheightint|ie6fixbothint/g,"");if(i!="ie6nofix")M=
"ie6fixinit "+M;e.bind("mouseenter.jrc",function(){e.addClass("jrcHover");e.jrcorner(M)});e.bind("mouseleave.jrc",function(){e.removeClass("jrcHover");e.jrcorner(M)})}if(D&&i!="ie6nofix"){this.style.zoom=1;if(i!="ie6fixexpr"){e.width()%2!=0&&e.width(e.width()+1);e.height()%2!=0&&e.height(e.height()+1)}p(window).load(function(){if(i=="ie6fixonload"){e.css("height")=="auto"&&e.height(e.css("height"));e.width()%2!=0&&e.width(e.width()+1);e.height()%2!=0&&e.height(e.height()+1)}else if(i=="ie6fixwidthint"||
i=="ie6fixheightint"||i=="ie6fixbothint"){var E;if(i=="ie6fixheightint")E=function(){e.height("auto");var t=e.height();if(t%2!=0)t+=1;e.css({height:t})};else if(i=="ie6fixwidthint")E=function(){e.width("auto");var t=e.width();if(t%2!=0)t+=1;e.css({width:t});e.data("lastWidth.jrc",e.get(0).offsetWidth)};else if(i=="ie6fixbothint")E=function(){e.width("auto");e.height("auto");var t=e.width(),O=e.height();if(O%2!=0)O+=1;if(t%2!=0)t+=1;e.css({width:t,height:O})};E=window.setInterval(E,100);e.data("ie6tmr.jrc",
E)}})}j=j<u?this.offsetHeight:this.offsetWidth;if(a=="auto"){a=j/2;if(a>10)a=j/4}if(a>j/2&&!f)a=j/2;a=Math.floor(a);j=r(this,"Top");u=r(this,"Right");v=r(this,"Bottom");var F=r(this,"Left");if(s=="static"&&this.tagName.toLowerCase()!="td")this.style.position="relative";else if(s=="fixed"&&x&&!(document.compatMode=="CSS1Compat"&&!D))this.style.position="absolute";if(j+u+v+F>0)this.style.overflow="visible";L&&e.css({display:"none",visibility:K});if(typeof z!="undefined")for(s=0;s<z.length;s++){z[s].elm.style.display=
"none";z[s].elm.style.visibility=z[s].originalvisibility}z=0-j;s=0-u;K=0-v;L=0-F;var I=e.find("canvas").length>0;if(I)H=this.tagName.toLowerCase()=="table"?e.children("tbody").children("tr:first").children("td:first"):this.tagName.toLowerCase()=="td"?e.children(".JrcTdContainer"):e;if(n.tl){bordersWidth=j<F?j:F;I&&H.children("canvas.jrcTL").remove();var S=A(C(e,a),a,"tl",m,bordersWidth,l(this,"Top"),k);p(S).css({left:L,top:z}).addClass("jrcTL")}if(n.tr){bordersWidth=j<u?j:u;I&&H.children("canvas.jrcTR").remove();
var Q=A(C(e,a),a,"tr",m,bordersWidth,l(this,"Top"),k);p(Q).css({right:s,top:z}).addClass("jrcTR")}if(n.bl){bordersWidth=v<F?v:F;I&&H.children("canvas.jrcBL").remove();var R=A(C(e,a),a,"bl",m,bordersWidth,l(this,"Bottom"),k);p(R).css({left:L,bottom:K}).addClass("jrcBL")}if(n.br){bordersWidth=v<u?v:u;I&&H.children("canvas.jrcBR").remove();var P=A(C(e,a),a,"br",m,bordersWidth,l(this,"Bottom"),k);p(P).css({right:s,bottom:K}).addClass("jrcBR")}x&&e.children("canvas.jrCorner").children("div").addClass("jrcIECanvasDiv");
if(D&&i=="ie6fixexpr"){n.bl&&R.style.setExpression("bottom","this.parentNode.offsetHeight % 2 == 0 || this.parentNode.offsetWidth % 2 == 0 ? 0-(parseInt(this.parentNode.currentStyle['borderBottomWidth'])) : 0-(parseInt(this.parentNode.currentStyle['borderBottomWidth'])+1)");if(n.br){P.style.setExpression("right","this.parentNode.offsetWidth  % 2 == 0 || this.parentNode.offsetWidth % 2 == 0 ? 0-(parseInt(this.parentNode.currentStyle['borderRightWidth']))  : 0-(parseInt(this.parentNode.currentStyle['borderRightWidth'])+1)");
P.style.setExpression("bottom","this.parentNode.offsetHeight % 2 == 0 || this.parentNode.offsetWidth % 2 == 0 ? 0-(parseInt(this.parentNode.currentStyle['borderBottomWidth'])) : 0-(parseInt(this.parentNode.currentStyle['borderBottomWidth'])+1)")}n.tr&&Q.style.setExpression("right","this.parentNode.offsetWidth   % 2 == 0 || this.parentNode.offsetWidth % 2 == 0 ? 0-(parseInt(this.parentNode.currentStyle['borderRightWidth']))  : 0-(parseInt(this.parentNode.currentStyle['borderRightWidth'])+1)")}e.addClass("jrcRounded")});
typeof arguments[1]=="function"&&arguments[1](this);return this}})(jQuery);

;(function(d){function r(f){f=parseInt(f).toString(16);return f.length<2?"0"+f:f}function y(f){for(;f;){var a=d.css(f,"backgroundColor");if(a&&a!="transparent"&&a!="rgba(0, 0, 0, 0)"){if(a.indexOf("rgb")>=0){f=a.match(/\d+/g);return"#"+r(f[0])+r(f[1])+r(f[2])}return a}if(f.nodeName.toLowerCase()=="html")break;f=f.parentNode}return"#ffffff"}function z(f,a,e){switch(f){case "round":return Math.round(e*(1-Math.cos(Math.asin(a/e))));case "cool":return Math.round(e*(1+Math.cos(Math.asin(a/e))));case "sharp":return Math.round(e*
(1-Math.cos(Math.acos(a/e))));case "bite":return Math.round(e*Math.cos(Math.asin((e-a-1)/e)));case "slide":return Math.round(e*Math.atan2(a,e/a));case "jut":return Math.round(e*Math.atan2(e,e-a-1));case "curl":return Math.round(e*Math.atan(a));case "tear":return Math.round(e*Math.cos(a));case "wicked":return Math.round(e*Math.tan(a));case "long":return Math.round(e*Math.sqrt(a));case "sculpt":return Math.round(e*Math.log(e-a-1,e));case "dogfold":case "dog":return a&1?a+1:e;case "dog2":return a&2?
a+1:e;case "dog3":return a&3?a+1:e;case "fray":return a%2*e;case "notch":return e;case "bevelfold":case "bevel":return a+1}}var m=document.createElement("div").style,n=m.MozBorderRadius!==undefined,u=m.WebkitBorderRadius!==undefined,o=m.borderRadius!==undefined||m.BorderRadius!==undefined;m=document.documentMode||0;var A=d.browser.msie&&(d.browser.version<8&&!m||m<8),v=d.browser.msie&&function(){var f=document.createElement("div");try{f.style.setExpression("width","0+0");f.style.removeExpression("width")}catch(a){return false}return true}();
d.fn.corner=function(f){if(this.length==0){if(!d.isReady&&this.selector){var a=this.selector,e=this.context;d(function(){d(a,e).corner(f)})}return this}return this.each(function(){var i=d(this),b=[i.attr(d.fn.corner.defaults.metaAttr)||"",f||""].join(" ").toLowerCase(),s=/keep/.test(b),h=(b.match(/cc:(#[0-9a-f]+)/)||[])[1],j=(b.match(/sc:(#[0-9a-f]+)/)||[])[1],g=parseInt((b.match(/(\d+)px/)||[])[1])||10,w=(b.match(/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/)||
["round"])[0],B=/dogfold|bevelfold/.test(b),x={T:0,B:1};b={TL:/top|tl|left/.test(b),TR:/top|tr|right/.test(b),BL:/bottom|bl|left/.test(b),BR:/bottom|br|right/.test(b)};if(!b.TL&&!b.TR&&!b.BL&&!b.BR)b={TL:1,TR:1,BL:1,BR:1};if(d.fn.corner.defaults.useNative&&w=="round"&&(o||n||u)&&!h&&!j){if(b.TL)i.css(o?"border-top-left-radius":n?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",g+"px");if(b.TR)i.css(o?"border-top-right-radius":n?"-moz-border-radius-topright":"-webkit-border-top-right-radius",
g+"px");if(b.BL)i.css(o?"border-bottom-left-radius":n?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",g+"px");if(b.BR)i.css(o?"border-bottom-right-radius":n?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",g+"px")}else{i=document.createElement("div");d(i).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:j||"transparent",borderStyle:"solid"});j={T:parseInt(d.css(this,"paddingTop"))||0,R:parseInt(d.css(this,"paddingRight"))||
0,B:parseInt(d.css(this,"paddingBottom"))||0,L:parseInt(d.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!s)this.style.border="none";i.style.borderColor=h||y(this.parentNode);s=d(this).outerHeight();for(var q in x)if((h=x[q])&&(b.BL||b.BR)||!h&&(b.TL||b.TR)){i.style.borderStyle="none "+(b[q+"R"]?"solid":"none")+" none "+(b[q+"L"]?"solid":"none");var l=document.createElement("div");d(l).addClass("jquery-corner");var c=l.style;h?this.appendChild(l):this.insertBefore(l,
this.firstChild);if(h&&s!="auto"){if(d.css(this,"position")=="static")this.style.position="relative";c.position="absolute";c.bottom=c.left=c.padding=c.margin="0";if(v)c.setExpression("width","this.parentNode.offsetWidth");else c.width="100%"}else if(!h&&d.browser.msie){if(d.css(this,"position")=="static")this.style.position="relative";c.position="absolute";c.top=c.left=c.right=c.padding=c.margin="0";if(v){var k=(parseInt(d.css(this,"borderLeftWidth"))||0)+(parseInt(d.css(this,"borderRightWidth"))||
0);c.setExpression("width","this.parentNode.offsetWidth - "+k+'+ "px"')}else c.width="100%"}else{c.position="relative";c.margin=!h?"-"+j.T+"px -"+j.R+"px "+(j.T-g)+"px -"+j.L+"px":j.B-g+"px -"+j.R+"px -"+j.B+"px -"+j.L+"px"}for(c=0;c<g;c++){k=Math.max(0,z(w,c,g));var t=i.cloneNode(false);t.style.borderWidth="0 "+(b[q+"R"]?k:0)+"px 0 "+(b[q+"L"]?k:0)+"px";h?l.appendChild(t):l.insertBefore(t,l.firstChild)}if(B&&d.support.boxModel)if(!(h&&A))for(var p in b)if(b[p])if(!(h&&(p=="TL"||p=="TR")))if(!(!h&&
(p=="BL"||p=="BR"))){c={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:i.style.borderColor};k=d("<div/>").css(c).css({width:g+"px",height:"1px"});switch(p){case "TL":k.css({bottom:0,left:0});break;case "TR":k.css({bottom:0,right:0});break;case "BL":k.css({top:0,left:0});break;case "BR":k.css({top:0,right:0})}l.appendChild(k[0]);c=d("<div/>").css(c).css({top:0,bottom:0,width:"1px",height:g+"px"});switch(p){case "TL":c.css({left:g});break;case "TR":c.css({right:g});
break;case "BL":c.css({left:g});break;case "BR":c.css({right:g})}l.appendChild(c[0])}}}})};d.fn.uncorner=function(){if(o||n||u)this.css(o?"border-radius":n?"-moz-border-radius":"-webkit-border-radius",0);d("div.jquery-corner",this).remove();return this};d.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);

;(function(b){function n(c,a){var e=c==window,d=a&&a.message!==undefined?a.message:undefined;a=b.extend({},b.blockUI.defaults,a||{});a.overlayCSS=b.extend({},b.blockUI.defaults.overlayCSS,a.overlayCSS||{});var g=b.extend({},b.blockUI.defaults.css,a.css||{});d=d===undefined?a.message:d;e&&k&&m(window,{fadeOut:0});if(d&&typeof d!="string"&&(d.parentNode||d.jquery)){var h=d.jquery?d[0]:d,f={};b(c).data("blockUI.history",f);f.el=h;f.parent=h.parentNode;f.display=h.style.display;f.position=h.style.position;
f.parent&&f.parent.removeChild(h)}var i=a.baseZ;h=b.browser.msie||a.forceIframe?b('<iframe class="blockUI" style="z-index:'+i++ +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+a.iframeSrc+'"></iframe>'):b('<div class="blockUI" style="display:none"></div>');f=b('<div class="blockUI blockOverlay" style="z-index:'+i++ +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');i=e?b('<div class="blockUI blockMsg blockPage" style="z-index:'+
i+';display:none;position:fixed"></div>'):b('<div class="blockUI blockMsg blockElement" style="z-index:'+i+';display:none;position:absolute"></div>');d&&i.css(g);if(!a.applyPlatformOpacityRules||!(b.browser.mozilla&&/Linux/.test(navigator.platform)))f.css(a.overlayCSS);f.css("position",e?"fixed":"absolute");if(b.browser.msie||a.forceIframe)h.css("opacity",0);b([h[0],f[0],i[0]]).appendTo(e?"body":c);g=b.browser.msie&&(b.browser.version<8||!b.boxModel)&&(!b.boxModel||b("object,embed",e?null:c).length>
0);if(o||g&&w){e&&a.allowBodyStretch&&b.boxModel&&b("html,body").css("height","100%");if((o||!b.boxModel)&&!e){g=parseInt(b.css(c,"borderTopWidth"))||0;var p=parseInt(b.css(c,"borderLeftWidth"))||0,q=g?"(0 - "+g+")":0,r=p?"(0 - "+p+")":0}b.each([h,f,i],function(x,y){var j=y[0].style;j.position="absolute";if(x<2){e?j.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+a.quirksmodeOffsetHack+') + "px"'):j.setExpression("height",'this.parentNode.offsetHeight + "px"');
e?j.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):j.setExpression("width",'this.parentNode.offsetWidth + "px"');r&&j.setExpression("left",r);q&&j.setExpression("top",q)}else if(a.centerY){e&&j.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
j.marginTop=0}else if(!a.centerY&&e){var z="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(a.css&&a.css.top?parseInt(a.css.top):0)+') + "px"';j.setExpression("top",z)}})}if(d){i.append(d);if(d.jquery||d.nodeType)b(d).show()}if((b.browser.msie||a.forceIframe)&&a.showOverlay)h.show();if(a.fadeIn){a.showOverlay&&f._fadeIn(a.fadeIn);d&&i.fadeIn(a.fadeIn)}else{a.showOverlay&&f.show();d&&i.show()}s(1,c,a);if(e){k=i[0];l=b(":input:enabled:visible",
k);a.focusInput&&setTimeout(t,20)}else A(i[0],a.centerX,a.centerY);if(a.timeout){d=setTimeout(function(){e?b.unblockUI(a):b(c).unblock(a)},a.timeout);b(c).data("blockUI.timeout",d)}}function m(c,a){var e=c==window,d=b(c),g=d.data("blockUI.history"),h=d.data("blockUI.timeout");if(h){clearTimeout(h);d.removeData("blockUI.timeout")}a=b.extend({},b.blockUI.defaults,a||{});s(0,c,a);var f=e?b("body").children().filter(".blockUI"):b(".blockUI",c);if(e)k=l=null;if(a.fadeOut){f.fadeOut(a.fadeOut);setTimeout(function(){u(f,
g,a,c)},a.fadeOut)}else u(f,g,a,c)}function u(c,a,e,d){c.each(function(){this.parentNode&&this.parentNode.removeChild(this)});if(a&&a.el){a.el.style.display=a.display;a.el.style.position=a.position;a.parent&&a.parent.appendChild(a.el);b(a.el).removeData("blockUI.history")}typeof e.onUnblock=="function"&&e.onUnblock(d,e)}function s(c,a,e){var d=a==window;a=b(a);if(!(!c&&(d&&!k||!d&&!a.data("blockUI.isBlocked")))){d||a.data("blockUI.isBlocked",c);!e.bindEvents||c&&!e.showOverlay||(c?b(document).bind("mousedown mouseup keydown keypress",
e,v):b(document).unbind("mousedown mouseup keydown keypress",v))}}function v(c){if(c.keyCode&&c.keyCode==9)if(k&&c.data.constrainTabKey){var a=l,e=c.shiftKey&&c.target==a[0];if(!c.shiftKey&&c.target==a[a.length-1]||e){setTimeout(function(){t(e)},10);return false}}if(b(c.target).parents("div.blockMsg").length>0)return true;return b(c.target).parents().children().filter("div.blockUI").length==0}function t(c){if(l)(c=l[c===true?l.length-1:0])&&c.focus()}function A(c,a,e){var d=c.parentNode,g=c.style,
h=(d.offsetWidth-c.offsetWidth)/2-(parseInt(b.css(d,"borderLeftWidth"))||0);c=(d.offsetHeight-c.offsetHeight)/2-(parseInt(b.css(d,"borderTopWidth"))||0);if(a)g.left=h>0?h+"px":"0";if(e)g.top=c>0?c+"px":"0"}if(/1\.(0|1|2)\.(0|1|2)/.test(b.fn.jquery)||/^1.1/.test(b.fn.jquery))alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+b.fn.jquery);else{b.fn._fadeIn=b.fn.fadeIn;var w=function(){if(!b.browser.msie)return false;var c=document.createElement("div");try{c.style.setExpression("width",
"0+0")}catch(a){return false}return true}();b.blockUI=function(c){n(window,c)};b.unblockUI=function(c){m(window,c)};b.growlUI=function(c,a,e,d){var g=b('<div class="growlUI"></div>');c&&g.append("<h1>"+c+"</h1>");a&&g.append("<h2>"+a+"</h2>");if(e==undefined)e=3E3;b.blockUI({message:g,fadeIn:700,fadeOut:1E3,centerY:false,timeout:e,showOverlay:false,onUnblock:d,css:b.blockUI.defaults.growlCSS})};b.fn.block=function(c){return this.unblock({fadeOut:0}).each(function(){if(b.css(this,"position")=="static")this.style.position=
"relative";if(b.browser.msie)this.style.zoom=1;n(this,c)})};b.fn.unblock=function(c){return this.each(function(){m(this,c)})};b.blockUI.version=2.2;b.blockUI.defaults={message:"<h1>Please wait...</h1>",css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.6,
cursor:null,color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1E3,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null,quirksmodeOffsetHack:4};var o=b.browser.msie&&/MSIE 6.0/.test(navigator.userAgent),k=
null,l=[]}})(jQuery);

;(function(c){c.extend(c.fn,{validate:function(a){if(this.length){var b=c.data(this[0],"validator");if(b)return b;b=new c.validator(a,this[0]);c.data(this[0],"validator",b);if(b.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){b.cancelSubmit=true});this.submit(function(d){function e(){if(b.settings.submitHandler){b.settings.submitHandler.call(b,b.currentForm);return false}return true}b.settings.debug&&d.preventDefault();if(b.cancelSubmit){b.cancelSubmit=false;return e()}if(b.form()){if(b.pendingRequest){b.formSubmitted=
true;return false}return e()}else{b.focusInvalid();return false}})}return b}else a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(c(this[0]).is("form"))return this.validate().form();else{var a=false,b=c(this[0].form).validate();this.each(function(){a|=b.element(this)});return a}},removeAttrs:function(a){var b={},d=this;c.each(a.split(/\s/),function(e,f){b[f]=d.attr(f);d.removeAttr(f)});return b},rules:function(a,b){var d=this[0];
if(a){var e=c.data(d.form,"validator").settings,f=e.rules,g=c.validator.staticRules(d);switch(a){case "add":c.extend(g,c.validator.normalizeRule(b));f[d.name]=g;if(b.messages)e.messages[d.name]=c.extend(e.messages[d.name],b.messages);break;case "remove":if(!b){delete f[d.name];return g}var h={};c.each(b.split(/\s/),function(i,j){h[j]=g[j];delete g[j]});return h}}d=c.validator.normalizeRules(c.extend({},c.validator.metadataRules(d),c.validator.classRules(d),c.validator.attributeRules(d),c.validator.staticRules(d)),
d);if(d.required){e=d.required;delete d.required;d=c.extend({required:e},d)}return d}});c.extend(c.expr[":"],{blank:function(a){return!c.trim(a.value)},filled:function(a){return!!c.trim(a.value)},unchecked:function(a){return!a.checked}});c.format=function(a,b){if(arguments.length==1)return function(){var d=c.makeArray(arguments);d.unshift(a);return c.format.apply(this,d)};if(arguments.length>2&&b.constructor!=Array)b=c.makeArray(arguments).slice(1);if(b.constructor!=Array)b=[b];c.each(b,function(d,
e){a=a.replace(RegExp("\\{"+d+"\\}","g"),e)});return a};c.validator=function(a,b){this.settings=c.extend({},c.validator.defaults,a);this.currentForm=b;this.init()};c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,
a,this.settings.errorClass);this.errorsFor(a).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a)))this.element(a)},onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement)this.element(a)},onclick:function(a){a.name in this.submitted&&this.element(a)},highlight:function(a,b){c(a).addClass(b)},unhighlight:function(a,b){c(a).removeClass(b)}},setDefaults:function(a){c.extend(c.validator.defaults,a)},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\u00fcltiges 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:c.format("Please enter no more than {0} characters."),minlength:c.format("Please enter at least {0} characters."),rangelength:c.format("Please enter a value between {0} and {1} characters long."),range:c.format("Please enter a value between {0} and {1}."),max:c.format("Please enter a value less than or equal to {0}."),min:c.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function a(e){var f=c.data(this[0].form,"validator");
f.settings["on"+e.type]&&f.settings["on"+e.type].call(f,this[0])}this.labelContainer=c(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||c(this.currentForm);this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=this.groups={};c.each(this.settings.groups,function(e,f){c.each(f.split(/\s/),function(g,h){b[h]=
e})});var d=this.settings.rules;c.each(d,function(e,f){d[e]=c.validator.normalizeRule(f)});c(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",a).delegate("click",":radio, :checkbox",a);this.settings.invalidHandler&&c(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();c.extend(this.submitted,this.errorMap);this.invalid=c.extend({},this.errorMap);this.valid()||c(this.currentForm).triggerHandler("invalid-form",
[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(a){this.lastElement=a=this.clean(a);this.prepareElement(a);this.currentElements=c(a);var b=this.check(a);if(b)delete this.invalid[a.name];else this.invalid[a.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return b},showErrors:function(a){if(a){c.extend(this.errorMap,
a);this.errorList=[];for(var b in a)this.errorList.push({message:a[b],element:this.findByName(b)[0]});this.successList=c.grep(this.successList,function(d){return!(d.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},
objectLength:function(a){var b=0,d;for(d in a)b++;return b},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{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(a){}},findLastActive:function(){var a=this.lastActive;return a&&c.grep(this.errorList,function(b){return b.element.name==a.name}).length==
1&&a},elements:function(){var a=this,b={};return c([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!a.objectLength(c(this).rules()))return false;return b[this.name]=true})},clean:function(a){return c(a)[0]},errors:function(){return c(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},
reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=c([]);this.toHide=c([]);this.formSubmitted=false;this.currentElements=c([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.clean(a);if(this.checkable(a))a=this.findByName(a.name)[0];var b=c(a).rules(),d=false;for(method in b){var e={method:method,parameters:b[method]};try{var f=c.validator.methods[method].call(this,
a.value.replace(/\r/g,""),a,e.parameters);if(f=="dependency-mismatch")d=true;else{d=false;if(f=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!f){this.formatAndAdd(a,e);return false}}}catch(g){this.settings.debug&&window.console&&console.log("exception occured when checking element "+a.id+", check the '"+e.method+"' method");throw g;}}if(!d){this.objectLength(b)&&this.successList.push(a);return true}},customMetaMessage:function(a,b){if(c.metadata){var d=this.settings.meta?c(a).metadata()[this.settings.meta]:
c(a).metadata();return d&&d.messages&&d.messages[b]}},customMessage:function(a,b){var d=this.settings.messages[a];return d&&(d.constructor==String?d:d[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(arguments[a]!==undefined)return arguments[a]},defaultMessage:function(a,b){return this.findDefined(this.customMessage(a.name,b),this.customMetaMessage(a,b),!this.settings.ignoreTitle&&a.title||undefined,c.validator.messages[b],"<strong>Warning: No message defined for "+a.name+"</strong>")},
formatAndAdd:function(a,b){var d=this.defaultMessage(a,b.method);if(typeof d=="function")d=d.call(this,b.parameters,a);this.errorList.push({message:d,element:a});this.errorMap[a.name]=d;this.submitted[a.name]=d},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parents(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];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(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight){a=0;for(b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],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 c(this.errorList).map(function(){return this.element})},
showLabel:function(a,b){var d=this.errorsFor(a);if(d.length){d.removeClass().addClass(this.settings.errorClass);d.attr("generated")&&d.html(b)}else{d=c("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:true}).addClass(this.settings.errorClass).html(b||"");if(this.settings.wrapper)d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,c(a)):d.insertAfter(a))}if(!b&&
this.settings.success){d.text("");typeof this.settings.success=="string"?d.addClass(this.settings.success):this.settings.success(d)}this.toShow=this.toShow.add(d)},errorsFor:function(a){return this.errors().filter("[for='"+this.idOrName(a)+"']")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var b=this.currentForm;return c(document.getElementsByName(a)).map(function(d,e){return e.form==
b&&e.name==a&&e||null})},getLength:function(a,b){switch(b.nodeName.toLowerCase()){case "select":return c("option:selected",b).length;case "input":if(this.checkable(b))return this.findByName(b.name).filter(":checked").length}return a.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):true},dependTypes:{"boolean":function(a){return a},string:function(a,b){return!!c(a,b.form).length},"function":function(a,b){return a(b)}},optional:function(a){return!c.validator.methods.required.call(this,
c.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,b){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form())c(this.currentForm).submit();else!b&&this.pendingRequest==0&&this.formSubmitted&&c(this.currentForm).triggerHandler("invalid-form",[this])},previousValue:function(a){return c.data(a,
"previousValue")||c.data(a,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(a,"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(a,b){a.constructor==String?this.classRuleSettings[a]=b:c.extend(this.classRuleSettings,a)},classRules:function(a){var b={};(a=
c(a).attr("class"))&&c.each(a.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(b,c.validator.classRuleSettings[this])});return b},attributeRules:function(a){var b={};a=c(a);for(method in c.validator.methods){var d=a.attr(method);if(d)b[method]=d}b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)&&delete b.maxlength;return b},metadataRules:function(a){if(!c.metadata)return{};var b=c.data(a.form,"validator").settings.meta;return b?c(a).metadata()[b]:c(a).metadata()},staticRules:function(a){var b=
{},d=c.data(a.form,"validator");if(d.settings.rules)b=c.validator.normalizeRule(d.settings.rules[a.name])||{};return b},normalizeRules:function(a,b){c.each(a,function(d,e){if(e===false)delete a[d];else if(e.param||e.depends){var f=true;switch(typeof e.depends){case "string":f=!!c(e.depends,b.form).length;break;case "function":f=e.depends.call(b,b)}if(f)a[d]=e.param!==undefined?e.param:true;else delete a[d]}});c.each(a,function(d,e){a[d]=c.isFunction(e)?e(b):e});c.each(["minlength","maxlength","min",
"max"],function(){if(a[this])a[this]=Number(a[this])});c.each(["rangelength","range"],function(){if(a[this])a[this]=[Number(a[this][0]),Number(a[this][1])]});if(c.validator.autoCreateRanges){if(a.min&&a.max){a.range=[a.min,a.max];delete a.min;delete a.max}if(a.minlength&&a.maxlength){a.rangelength=[a.minlength,a.maxlength];delete a.minlength;delete a.maxlength}}a.messages&&delete a.messages;return a},normalizeRule:function(a){if(typeof a=="string"){var b={};c.each(a.split(/\s/),function(){b[this]=
true});a=b}return a},addMethod:function(a,b,d){c.validator.methods[a]=b;c.validator.messages[a]=d;b.length<3&&c.validator.addClassRules(a,c.validator.normalizeRule(a))},methods:{required:function(a,b,d){if(!this.depend(d,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case "select":a=c("option:selected",b);return a.length>0&&(b.type=="select-multiple"||(c.browser.msie&&!a[0].attributes.value.specified?a[0].text:a[0].value).length>0);case "input":if(this.checkable(b))return this.getLength(a,
b)>0;default:return c.trim(a).length>0}},remote:function(a,b,d){if(this.optional(b))return"dependency-mismatch";var e=this.previousValue(b);this.settings.messages[b.name]||(this.settings.messages[b.name]={});this.settings.messages[b.name].remote=typeof e.message=="function"?e.message(a):e.message;d=typeof d=="string"&&{url:d}||d;if(e.old!==a){e.old=a;var f=this;this.startRequest(b);var g={};g[b.name]=a;c.ajax(c.extend(true,{url:d,mode:"abort",port:"validate"+b.name,dataType:"json",data:g,success:function(h){if(h){var i=
f.formSubmitted;f.prepareElement(b);f.formSubmitted=i;f.successList.push(b);f.showErrors()}else{i={};i[b.name]=h||f.defaultMessage(b,"remote");f.showErrors(i)}e.valid=h;f.stopRequest(b,h)}},d));return"pending"}else if(this.pending[b.name])return"pending";return e.valid},minlength:function(a,b,d){return this.optional(b)||this.getLength(c.trim(a),b)>=d},maxlength:function(a,b,d){return this.optional(b)||this.getLength(c.trim(a),b)<=d},rangelength:function(a,b,d){a=this.getLength(c.trim(a),b);return this.optional(b)||
a>=d[0]&&a<=d[1]},min:function(a,b,d){return this.optional(b)||a>=d},max:function(a,b,d){return this.optional(b)||a<=d},range:function(a,b,d){return this.optional(b)||a>=d[0]&&a<=d[1]},email:function(a,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(a)},
url:function(a,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(a)},
date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},dateDE:function(a,b){return this.optional(b)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},numberDE:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},
creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9-]+/.test(a))return false;var d=0,e=0,f=false;a=a.replace(/\D/g,"");for(n=a.length-1;n>=0;n--){e=a.charAt(n);e=parseInt(e,10);if(f)if((e*=2)>9)e-=9;d+=e;f=!f}return d%10==0},accept:function(a,b,d){d=typeof d=="string"?d:"png|jpe?g|gif";return this.optional(b)||a.match(RegExp(".("+d+")$","i"))},equalTo:function(a,b,d){return a==c(d).val()}}})})(jQuery);
(function(c){var a=c.ajax,b={};c.ajax=function(d){d=c.extend(d,c.extend({},c.ajaxSettings,d));var e=d.port;if(d.mode=="abort"){b[e]&&b[e].abort();return b[e]=a.apply(this,arguments)}return a.apply(this,arguments)}})(jQuery);
(function(c){c.each({focus:"focusin",blur:"focusout"},function(a,b){c.event.special[b]={setup:function(){if(c.browser.msie)return false;this.addEventListener(a,c.event.special[b].handler,true)},teardown:function(){if(c.browser.msie)return false;this.removeEventListener(a,c.event.special[b].handler,true)},handler:function(d){arguments[0]=c.event.fix(d);arguments[0].type=b;return c.event.handle.apply(this,arguments)}}});c.extend(c.fn,{delegate:function(a,b,d){return this.bind(a,function(e){var f=c(e.target);
if(f.is(b))return d.apply(f,arguments)})},triggerEvent:function(a,b){return this.triggerHandler(a,[c.event.fix({type:a,target:b})])}})})(jQuery);

;jQuery.ui||function(b){function l(a,c,d,e){function f(h){h=b[a][c][h]||[];return typeof h=="string"?h.split(/,?\s+/):h}var g=f("getter");if(e.length==1&&typeof e[0]=="string")g=g.concat(f("getterSetter"));return b.inArray(d,g)!=-1}var m=b.fn.remove,n=b.browser.mozilla&&parseFloat(b.browser.version)<1.9;b.ui={version:"1.7",plugin:{add:function(a,c,d){a=b.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([c,d[e]])}},call:function(a,c,d){if((c=a.plugins[c])&&a.element[0].parentNode)for(var e=
0;e<c.length;e++)a.options[c[e][0]]&&c[e][1].apply(a.element,d)}},contains:function(a,c){return document.compareDocumentPosition?a.compareDocumentPosition(c)&16:a!==c&&a.contains(c)},hasScroll:function(a,c){if(b(a).css("overflow")=="hidden")return false;var d=c&&c=="left"?"scrollLeft":"scrollTop",e=false;if(a[d]>0)return true;a[d]=1;e=a[d]>0;a[d]=0;return e},isOverAxis:function(a,c,d){return a>c&&a<c+d},isOver:function(a,c,d,e,f,g){return b.ui.isOverAxis(a,d,f)&&b.ui.isOverAxis(c,e,g)},keyCode:{BACKSPACE:8,
CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(n){var k=b.attr,o=b.fn.removeAttr,j=/^aria-/,p=/^wairole:/;b.attr=function(a,c,d){var e=d!==undefined;return c=="role"?e?k.call(this,a,c,"wairole:"+d):(k.apply(this,arguments)||"").replace(p,""):j.test(c)?e?a.setAttributeNS("http://www.w3.org/2005/07/aaa",
c.replace(j,"aaa:"),d):k.call(this,a,c.replace(j,"aaa:")):k.apply(this,arguments)};b.fn.removeAttr=function(a){return j.test(a)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",a.replace(j,""))}):o.call(this,a)}}b.fn.extend({remove:function(){b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return m.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable",
"on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var a;a=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,
"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?b(document):a}});b.extend(b.expr[":"],{data:function(a,c,d){return!!b.data(a,d[3])},focusable:function(a){var c=a.nodeName.toLowerCase(),d=b.attr(a,"tabindex");return(/input|select|textarea|button|object/.test(c)?!a.disabled:"a"==c||"area"==c?a.href||!isNaN(d):!isNaN(d))&&!b(a)["area"==c?"parents":"closest"](":hidden").length},tabbable:function(a){var c=b.attr(a,"tabindex");
return(isNaN(c)||c>=0)&&b(a).is(":focusable")}});b.widget=function(a,c){var d=a.split(".")[0];a=a.split(".")[1];b.fn[a]=function(e){var f=typeof e=="string",g=Array.prototype.slice.call(arguments,1);if(f&&e.substring(0,1)=="_")return this;if(f&&l(d,a,e,g)){var h=b.data(this[0],a);return h?h[e].apply(h,g):undefined}return this.each(function(){var i=b.data(this,a);!i&&!f&&b.data(this,a,new b[d][a](this,e))._init();i&&f&&b.isFunction(i[e])&&i[e].apply(i,g)})};b[d]=b[d]||{};b[d][a]=function(e,f){var g=
this;this.namespace=d;this.widgetName=a;this.widgetEventPrefix=b[d][a].eventPrefix||a;this.widgetBaseClass=d+"-"+a;this.options=b.extend({},b.widget.defaults,b[d][a].defaults,b.metadata&&b.metadata.get(e)[a],f);this.element=b(e).bind("setData."+a,function(h,i,q){if(h.target==e)return g._setData(i,q)}).bind("getData."+a,function(h,i){if(h.target==e)return g._getData(i)}).bind("remove",function(){return g.destroy()})};b[d][a].prototype=b.extend({},b.widget.prototype,c);b[d][a].getterSetter="option"};
b.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(a,c){var d=a,e=this;if(typeof a=="string"){if(c===undefined)return this._getData(a);d={};d[a]=c}b.each(d,function(f,g){e._setData(f,g)})},_getData:function(a){return this.options[a]},_setData:function(a,c){this.options[a]=c;if(a=="disabled")this.element[c?"addClass":"removeClass"](this.widgetBaseClass+
"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",c)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];a=a==this.widgetEventPrefix?a:this.widgetEventPrefix+a;c=b.Event(c);c.type=a;if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}};
b.widget.defaults={disabled:false};b.ui.mouse={_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(a._preventClickEvent){a._preventClickEvent=false;c.stopImmediatePropagation();return false}});if(b.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
b.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,d=a.which==1,e=typeof this.options.cancel=="string"?b(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!d||e||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=
true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}this._mouseMoveDelegate=function(f){return c._mouseMove(f)};this._mouseUpDelegate=function(f){return c._mouseUp(f)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.browser.safari||a.preventDefault();return a.originalEvent.mouseHandled=true}},
_mouseMove:function(a){if(b.browser.msie&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;this._preventClickEvent=a.target==this._mouseDownEvent.target;this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};b.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);

;(function(d){d.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined)this.options.collapsible=this.options.deselectable;this._tabify(true)},_setData:function(c,e){if(c=="selected")this.options.collapsible&&e==this.options.selected||this.select(e);else{this.options[c]=e;if(c=="deselectable")this.options.collapsible=e;this._tabify()}},_tabId:function(c){return c.title&&c.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+d.data(c)},_sanitizeSelector:function(c){return c.replace(/:/g,
"\\:")},_cookie:function(){var c=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+d.data(this.list[0]));return d.cookie.apply(null,[c].concat(d.makeArray(arguments)))},_ui:function(c,e){return{tab:c,panel:e,index:this.anchors.index(c)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var c=d(this);c.html(c.data("label.tabs")).removeData("label.tabs")})},_tabify:function(c){function e(g,f){g.css({display:""});
d.browser.msie&&f.opacity&&g[0].style.removeAttribute("filter")}this.list=this.element.children("ul:first");this.lis=d("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);var a=this,b=this.options,h=/^#.+/;this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],o;if(l&&(l===location.toString().split("#")[0]||(o=d("base")[0])&&l===o.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a._sanitizeSelector(i));else if(i!=
"#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;l=d("#"+i);if(!l.length){l=d(b.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);l.data("destroy.tabs",true)}a.panels=a.panels.add(l)}else b.disabled.push(g)});if(c){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");
this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(b.selected===undefined){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){b.selected=g;return false}});if(typeof b.selected!="number"&&b.cookie)b.selected=parseInt(a._cookie(),10);if(typeof b.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)b.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));b.selected=b.selected||0}else if(b.selected===
null)b.selected=-1;b.selected=b.selected>=0&&this.anchors[b.selected]||b.selected<0?b.selected:0;b.disabled=d.unique(b.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(b.selected,b.disabled)!=-1&&b.disabled.splice(d.inArray(b.selected,b.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(b.selected>=0&&this.anchors.length){this.panels.eq(b.selected).removeClass("ui-tabs-hide");
this.lis.eq(b.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[b.selected],a.panels[b.selected]))});this.load(b.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else b.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[b.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");b.cookie&&this._cookie(b.selected,b.cookie);c=0;for(var j;j=
this.lis[c];c++)d(j)[d.inArray(c,b.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");b.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(b.event!="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){d(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",
function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){d(this).closest("li").removeClass("ui-state-focus")})}var m,n;if(b.fx)if(d.isArray(b.fx)){m=b.fx[0];n=b.fx[1]}else m=n=b.fx;var p=n?function(g,f){d(g).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(n,n.duration||"normal",function(){e(f,n);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");
f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},q=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")};this.anchors.bind(b.event+".tabs",function(){var g=this,f=d(this).closest("li"),
i=a.panels.filter(":not(.ui-tabs-hide)"),l=d(a._sanitizeSelector(this.hash));if(f.hasClass("ui-tabs-selected")&&!b.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}b.selected=a.anchors.index(this);a.abort();if(b.collapsible)if(f.hasClass("ui-tabs-selected")){b.selected=-1;b.cookie&&a._cookie(b.selected,b.cookie);a.element.queue("tabs",function(){q(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){b.cookie&&
a._cookie(b.selected,b.cookie);a.element.queue("tabs",function(){p(g,l)});a.load(a.anchors.index(this));this.blur();return false}b.cookie&&a._cookie(b.selected,b.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){q(g,i)});a.element.queue("tabs",function(){p(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var c=this.options;this.abort();
this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e=d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(b,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?
d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});c.cookie&&this._cookie(null,c.cookie)},add:function(c,e,a){if(a===undefined)a=this.anchors.length;var b=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,e));c=!c.indexOf("#")?c.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
true);var j=d("#"+c);j.length||(j=d(h.panelTemplate).attr("id",c).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]);j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",
function(){b._trigger("show",null,b._ui(b.anchors[0],b.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]))},remove:function(c){var e=this.options,a=this.lis.eq(c).remove(),b=this.panels.eq(c).remove();if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(c+(c+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=c}),function(h){return h>=c?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],
b[0]))},enable:function(c){var e=this.options;if(d.inArray(c,e.disabled)!=-1){this.lis.eq(c).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=c});this._trigger("enable",null,this._ui(this.anchors[c],this.panels[c]))}},disable:function(c){var e=this.options;if(c!=e.selected){this.lis.eq(c).addClass("ui-state-disabled");e.disabled.push(c);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[c],this.panels[c]))}},select:function(c){if(typeof c=="string")c=
this.anchors.index(this.anchors.filter("[href$="+c+"]"));else if(c===null)c=-1;if(c==-1&&this.options.collapsible)c=this.options.selected;this.anchors.eq(c).trigger(this.options.event+".tabs")},load:function(c){var e=this,a=this.options,b=this.anchors.eq(c)[0],h=d.data(b,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(b,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(c).addClass("ui-state-processing");if(a.spinner){var j=d("span",b);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=
d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,m){d(e._sanitizeSelector(b.hash)).html(k);e._cleanup();a.cache&&d.data(b,"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[c],e.panels[c]));try{a.ajaxOptions.success(k,m)}catch(n){}e.element.dequeue("tabs")}}))}},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(c,e){this.anchors.eq(c).removeData("cache.tabs").data("load.tabs",e)},length:function(){return this.anchors.length}});
d.extend(d.ui.tabs,{version:"1.7",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(c,e){var a=this,b=this.options,h=a._rotate||(a._rotate=function(k){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var m=b.selected;
a.select(++m<a.anchors.length?m:0)},c);k&&k.stopPropagation()}),j=a._unrotate||(a._unrotate=!e?function(k){k.clientX&&a.rotate(null)}:function(){t=b.selected;h()});if(c){this.element.bind("tabsshow",h);this.anchors.bind(b.event+".tabs",j);h()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(b.event+".tabs",j);delete this._rotate;delete this._unrotate}}})})(jQuery);

;/*
 * jQuery UI Accordion 1.7.3
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Accordion
 *
 * Depends:
 *	ui.core.js
 */(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight){b.css("height","")}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&&i)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!i){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&&d.collapsible?a([]):g,oldHeader:this.active,newContent:i&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},j=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(d.collapsible&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}else{if(d.collapsible&&j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.7.3",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return}if(!j.toShow.size()){j.toHide.animate({height:"hide"},j);return}var c=j.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var i=j.toShow;b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css("paddingLeft"),10)-parseInt(i.css("paddingRight"),10)-(parseInt(i.css("borderLeftWidth"),10)||0)-(parseInt(i.css("borderRightWidth"),10)||0));a.each(e,function(k,m){f[m]="hide";var l=(""+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);d[m]={value:l[1],unit:l[2]||"px"}});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f,{step:function(k,l){if(l.prop=="height"){g=(l.now-l.start)/(l.end-l.start)}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","")}j.toShow.css("width",b);j.toShow.css({overflow:c});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}})})(jQuery);
;/*
: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
 @website: http://www.datejs.com/
*/
Date.CultureInfo={name:"de-AT",englishName:"German (Austria)",nativeName:"Deutsch (\ufffdsterreich)",dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],abbreviatedDayNames:["So","Mo","Di","Mi","Do","Fr","Sa"],shortestDayNames:["So","Mo","Di","Mi","Do","Fr","Sa"],firstLetterDayNames:["S","M","D","M","D","F","S"],monthNames:["J\ufffdnner","Februar","M\ufffdrz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],abbreviatedMonthNames:["J\ufffdn",
"Feb","M\ufffdr","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],amDesignator:"",pmDesignator:"",firstDayOfWeek:1,twoDigitYearMax:2029,dateElementOrder:"dmy",formatPatterns:{shortDate:"dd.MM.yyyy",longDate:"dddd, dd. MMMM yyyy",shortTime:"HH:mm",longTime:"HH:mm:ss",fullDateTime:"dddd, dd. MMMM yyyy HH:mm:ss",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"dd MMMM",yearMonth:"MMMM yyyy"},regexPatterns:{jan:/^j\ufffdn(ner)?/i,
feb:/^feb(ruar)?/i,mar:/^m\ufffdr(z)?/i,apr:/^apr(il)?/i,may:/^mai/i,jun:/^jun(i)?/i,jul:/^jul(i)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^okt(ober)?/i,nov:/^nov(ember)?/i,dec:/^dez(ember)?/i,sun:/^sonntag/i,mon:/^montag/i,tue:/^dienstag/i,wed:/^mittwoch/i,thu:/^donnerstag/i,fri:/^freitag/i,sat:/^samstag/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|aft(er)?|from|hence)/i,subtract:/^(\-|bef(ore)?|ago)/i,yesterday:/^yes(terday)?/i,today:/^t(od(ay)?)?/i,tomorrow:/^tom(orrow)?/i,
now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^mn|min(ute)?s?/i,hour:/^h(our)?s?/i,week:/^w(eek)?s?/i,month:/^m(onth)?s?/i,day:/^d(ay)?s?/i,year:/^y(ear)?s?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt|utc)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a(?!u|p)|p)/i},timezones:[{name:"UTC",offset:"-000"},{name:"GMT",offset:"-000"},{name:"EST",offset:"-0500"},
{name:"EDT",offset:"-0400"},{name:"CST",offset:"-0600"},{name:"CDT",offset:"-0500"},{name:"MST",offset:"-0700"},{name:"MDT",offset:"-0600"},{name:"PST",offset:"-0800"},{name:"PDT",offset:"-0700"}]};
(function(){var h=Date,i=h.prototype,n=h.CultureInfo,e=function(a,c){c||(c=2);return("000"+a).slice(c*-1)};i.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};i.setTimeToNow=function(){var a=new Date;this.setHours(a.getHours());this.setMinutes(a.getMinutes());this.setSeconds(a.getSeconds());this.setMilliseconds(a.getMilliseconds());return this};h.today=function(){return(new Date).clearTime()};h.compare=function(a,c){if(isNaN(a)||isNaN(c))throw Error(a+
" - "+c);else if(a instanceof Date&&c instanceof Date)return a<c?-1:a>c?1:0;else throw new TypeError(a+" - "+c);};h.equals=function(a,c){return a.compareTo(c)===0};h.getDayNumberFromName=function(a){var c=n.dayNames,b=n.abbreviatedDayNames,g=n.shortestDayNames;a=a.toLowerCase();for(var k=0;k<c.length;k++)if(c[k].toLowerCase()==a||b[k].toLowerCase()==a||g[k].toLowerCase()==a)return k;return-1};h.getMonthNumberFromName=function(a){var c=n.monthNames,b=n.abbreviatedMonthNames;a=a.toLowerCase();for(var g=
0;g<c.length;g++)if(c[g].toLowerCase()==a||b[g].toLowerCase()==a)return g;return-1};h.isLeapYear=function(a){return a%4===0&&a%100!==0||a%400===0};h.getDaysInMonth=function(a,c){return[31,h.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][c]};h.getTimezoneAbbreviation=function(a){for(var c=n.timezones,b=0;b<c.length;b++)if(c[b].offset===a)return c[b].name;return null};h.getTimezoneOffset=function(a){for(var c=n.timezones,b=0;b<c.length;b++)if(c[b].name===a.toUpperCase())return c[b].offset;return null};
i.clone=function(){return new Date(this.getTime())};i.compareTo=function(a){return Date.compare(this,a)};i.equals=function(a){return Date.equals(this,a||new Date)};i.between=function(a,c){return this.getTime()>=a.getTime()&&this.getTime()<=c.getTime()};i.isAfter=function(a){return this.compareTo(a||new Date)===1};i.isBefore=function(a){return this.compareTo(a||new Date)===-1};i.isToday=function(){return this.isSameDay(new Date)};i.isSameDay=function(a){return this.clone().clearTime().equals(a.clone().clearTime())};
i.addMilliseconds=function(a){this.setMilliseconds(this.getMilliseconds()+a);return this};i.addSeconds=function(a){return this.addMilliseconds(a*1E3)};i.addMinutes=function(a){return this.addMilliseconds(a*6E4)};i.addHours=function(a){return this.addMilliseconds(a*36E5)};i.addDays=function(a){this.setDate(this.getDate()+a);return this};i.addWeeks=function(a){return this.addDays(a*7)};i.addMonths=function(a){var c=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+a);this.setDate(Math.min(c,
h.getDaysInMonth(this.getFullYear(),this.getMonth())));return this};i.addYears=function(a){return this.addMonths(a*12)};i.add=function(a){if(typeof a=="number"){this._orient=a;return this}a.milliseconds&&this.addMilliseconds(a.milliseconds);a.seconds&&this.addSeconds(a.seconds);a.minutes&&this.addMinutes(a.minutes);a.hours&&this.addHours(a.hours);a.weeks&&this.addWeeks(a.weeks);a.months&&this.addMonths(a.months);a.years&&this.addYears(a.years);a.days&&this.addDays(a.days);return this};var d,f,j;i.getWeek=
function(){var a,c,b,g,k;d=!d?this.getFullYear():d;f=!f?this.getMonth()+1:f;j=!j?this.getDate():j;if(f<=2){a=d-1;c=(a/4|0)-(a/100|0)+(a/400|0);b=((a-1)/4|0)-((a-1)/100|0)+((a-1)/400|0);b=c-b;g=0;k=j-1+31*(f-1)}else{a=d;c=(a/4|0)-(a/100|0)+(a/400|0);b=((a-1)/4|0)-((a-1)/100|0)+((a-1)/400|0);b=c-b;g=b+1;k=j+(153*(f-3)+2)/5+58+b}a=(a+c)%7;c=k+3-(k+a-g)%7|0;b=c<0?53-((a-b)/5|0):c>364+b?1:(c/7|0)+1;d=f=j=null;return b};i.getISOWeek=function(){d=this.getUTCFullYear();f=this.getUTCMonth()+1;j=this.getUTCDate();
return e(this.getWeek())};i.setWeek=function(a){return this.moveToDayOfWeek(1).addWeeks(a-this.getWeek())};h._validate=function(a,c,b,g){if(typeof a=="undefined")return false;else if(typeof a!="number")throw new TypeError(a+" is not a Number.");else if(a<c||a>b)throw new RangeError(a+" is not a valid value for "+g+".");return true};h.validateMillisecond=function(a){return h._validate(a,0,999,"millisecond")};h.validateSecond=function(a){return h._validate(a,0,59,"second")};h.validateMinute=function(a){return h._validate(a,
0,59,"minute")};h.validateHour=function(a){return h._validate(a,0,23,"hour")};h.validateDay=function(a,c,b){return h._validate(a,1,h.getDaysInMonth(c,b),"day")};h.validateMonth=function(a){return h._validate(a,0,11,"month")};h.validateYear=function(a){return h._validate(a,0,9999,"year")};i.set=function(a){h.validateMillisecond(a.millisecond)&&this.addMilliseconds(a.millisecond-this.getMilliseconds());h.validateSecond(a.second)&&this.addSeconds(a.second-this.getSeconds());h.validateMinute(a.minute)&&
this.addMinutes(a.minute-this.getMinutes());h.validateHour(a.hour)&&this.addHours(a.hour-this.getHours());h.validateMonth(a.month)&&this.addMonths(a.month-this.getMonth());h.validateYear(a.year)&&this.addYears(a.year-this.getFullYear());h.validateDay(a.day,this.getFullYear(),this.getMonth())&&this.addDays(a.day-this.getDate());a.timezone&&this.setTimezone(a.timezone);a.timezoneOffset&&this.setTimezoneOffset(a.timezoneOffset);a.week&&h._validate(a.week,0,53,"week")&&this.setWeek(a.week);return this};
i.moveToFirstDayOfMonth=function(){return this.set({day:1})};i.moveToLastDayOfMonth=function(){return this.set({day:h.getDaysInMonth(this.getFullYear(),this.getMonth())})};i.moveToNthOccurrence=function(a,c){var b=0;if(c>0)b=c-1;else if(c===-1){this.moveToLastDayOfMonth();this.getDay()!==a&&this.moveToDayOfWeek(a,-1);return this}return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(a,+1).addWeeks(b)};i.moveToDayOfWeek=function(a,c){var b=(a-this.getDay()+7*(c||+1))%7;return this.addDays(b===
0?b+=7*(c||+1):b)};i.moveToMonth=function(a,c){var b=(a-this.getMonth()+12*(c||+1))%12;return this.addMonths(b===0?b+=12*(c||+1):b)};i.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/864E5)+1};i.getTimezone=function(){return h.getTimezoneAbbreviation(this.getUTCOffset())};i.setTimezoneOffset=function(a){var c=this.getTimezoneOffset();return this.addMinutes(Number(a)*-6/10-c)};i.setTimezone=function(a){return this.setTimezoneOffset(h.getTimezoneOffset(a))};
i.hasDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()};i.isDaylightSavingTime=function(){return this.hasDaylightSavingTime()&&(new Date).getTimezoneOffset()===Date.today().set({month:6,day:1}).getTimezoneOffset()};i.getUTCOffset=function(){var a=this.getTimezoneOffset()*-10/6;if(a<0){a=(a-1E4).toString();return a.charAt(0)+a.substr(2)}else{a=(a+1E4).toString();return"+"+a.substr(1)}};i.getElapsed=function(a){return(a||
new Date)-this};if(!i.toISOString)i.toISOString=function(){function a(c){return c<10?"0"+c:c}return'"'+this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+'Z"'};i._toString=i.toString;i.toString=function(a){var c=this;if(a&&a.length==1){var b=n.formatPatterns;c.t=c.toString;switch(a){case "d":return c.t(b.shortDate);case "D":return c.t(b.longDate);case "F":return c.t(b.fullDateTime);case "m":return c.t(b.monthDay);
case "r":return c.t(b.rfc1123);case "s":return c.t(b.sortableDateTime);case "t":return c.t(b.shortTime);case "T":return c.t(b.longTime);case "u":return c.t(b.universalSortableDateTime);case "y":return c.t(b.yearMonth)}}var g=function(k){switch(k*1){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};return a?a.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(k){if(k.charAt(0)==="\\")return k.replace("\\","");c.h=c.getHours;
switch(k){case "hh":return e(c.h()<13?c.h()===0?12:c.h():c.h()-12);case "h":return c.h()<13?c.h()===0?12:c.h():c.h()-12;case "HH":return e(c.h());case "H":return c.h();case "mm":return e(c.getMinutes());case "m":return c.getMinutes();case "ss":return e(c.getSeconds());case "s":return c.getSeconds();case "yyyy":return e(c.getFullYear(),4);case "yy":return e(c.getFullYear());case "dddd":return n.dayNames[c.getDay()];case "ddd":return n.abbreviatedDayNames[c.getDay()];case "dd":return e(c.getDate());
case "d":return c.getDate();case "MMMM":return n.monthNames[c.getMonth()];case "MMM":return n.abbreviatedMonthNames[c.getMonth()];case "MM":return e(c.getMonth()+1);case "M":return c.getMonth()+1;case "t":return c.h()<12?n.amDesignator.substring(0,1):n.pmDesignator.substring(0,1);case "tt":return c.h()<12?n.amDesignator:n.pmDesignator;case "S":return g(c.getDate());default:return k}}):this._toString()}})();
(function(){var h=Date,i=h.prototype,n=h.CultureInfo,e=Number.prototype;i._orient=+1;i._nth=null;i._is=false;i._same=false;i._isSecond=false;e._dateElement="day";i.next=function(){this._orient=+1;return this};h.next=function(){return h.today().next()};i.last=i.prev=i.previous=function(){this._orient=-1;return this};h.last=h.prev=h.previous=function(){return h.today().last()};i.is=function(){this._is=true;return this};i.same=function(){this._same=true;this._isSecond=false;return this};i.today=function(){return this.same().day()};
i.weekday=function(){if(this._is){this._is=false;return!this.is().sat()&&!this.is().sun()}return false};i.at=function(l){return typeof l==="string"?h.parse(this.toString("d")+" "+l):this.set(l)};e.fromNow=e.after=function(l){var m={};m[this._dateElement]=this;return(!l?new Date:l.clone()).add(m)};e.ago=e.before=function(l){var m={};m[this._dateElement]=this*-1;return(!l?new Date:l.clone()).add(m)};var d="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),f="january february march april may june july august september october november december".split(/\s/),
j="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),a="Milliseconds Seconds Minutes Hours Date Week Month FullYear".split(/\s/),c="final first second third fourth fifth".split(/\s/);i.toObject=function(){for(var l={},m=0;m<j.length;m++)l[j[m].toLowerCase()]=this["get"+a[m]]();return l};h.fromObject=function(l){l.week=null;return Date.today().set(l)};for(var b=function(l){return function(){if(this._is){this._is=false;return this.getDay()==l}if(this._nth!==null){this._isSecond&&this.addSeconds(this._orient*
-1);this._isSecond=false;var m=this._nth;this._nth=null;var o=this.clone().moveToLastDayOfMonth();this.moveToNthOccurrence(l,m);if(this>o)throw new RangeError(h.getDayName(l)+" does not occur "+m+" times in the month of "+h.getMonthName(o.getMonth())+" "+o.getFullYear()+".");return this}return this.moveToDayOfWeek(l,this._orient)}},g=function(l){return function(){var m=h.today(),o=l-m.getDay();if(l===0&&n.firstDayOfWeek===1&&m.getDay()!==0)o+=7;return m.addDays(o)}},k=0;k<d.length;k++){h[d[k].toUpperCase()]=
h[d[k].toUpperCase().substring(0,3)]=k;h[d[k]]=h[d[k].substring(0,3)]=g(k);i[d[k]]=i[d[k].substring(0,3)]=b(k)}d=function(l){return function(){if(this._is){this._is=false;return this.getMonth()===l}return this.moveToMonth(l,this._orient)}};b=function(l){return function(){return h.today().set({month:l,day:1})}};for(g=0;g<f.length;g++){h[f[g].toUpperCase()]=h[f[g].toUpperCase().substring(0,3)]=g;h[f[g]]=h[f[g].substring(0,3)]=b(g);i[f[g]]=i[f[g].substring(0,3)]=d(g)}d=function(l){return function(m){if(this._isSecond){this._isSecond=
false;return this}if(this._same){this._same=this._is=false;var o=this.toObject();m=(m||new Date).toObject();for(var p="",s=l.toLowerCase(),q=j.length-1;q>-1;q--){p=j[q].toLowerCase();if(o[p]!=m[p])return false;if(s==p)break}return true}if(l.substring(l.length-1)!="s")l+="s";return this["add"+l](this._orient)}};b=function(l){return function(){this._dateElement=l;return this}};for(g=0;g<j.length;g++){f=j[g].toLowerCase();i[f]=i[f+"s"]=d(j[g]);e[f]=e[f+"s"]=b(f)}i._ss=d("Second");e=function(l){return function(m){if(this._same)return this._ss(m);
if(m||m===0)return this.moveToNthOccurrence(m,l);this._nth=l;if(l===2&&(m===undefined||m===null)){this._isSecond=true;return this.addSeconds(this._orient)}return this}};for(f=0;f<c.length;f++)i[c[f]]=f===0?e(-1):e(f)})();
(function(){Date.Parsing={Exception:function(f){this.message="Parse error at '"+f.substring(0,10)+" ...'"}};for(var h=Date.Parsing,i=h.Operators={rtoken:function(f){return function(j){var a=j.match(f);if(a)return[a[0],j.substring(a[0].length)];else throw new h.Exception(j);}},token:function(){return function(f){return i.rtoken(RegExp("^s*"+f+"s*"))(f)}},stoken:function(f){return i.rtoken(RegExp("^"+f))},until:function(f){return function(j){for(var a=[],c=null;j.length;){try{c=f.call(this,j)}catch(b){a.push(c[0]);
j=c[1];continue}break}return[a,j]}},many:function(f){return function(j){for(var a=[],c=null;j.length;){try{c=f.call(this,j)}catch(b){break}a.push(c[0]);j=c[1]}return[a,j]}},optional:function(f){return function(j){var a=null;try{a=f.call(this,j)}catch(c){return[null,j]}return[a[0],a[1]]}},not:function(f){return function(j){try{f.call(this,j)}catch(a){return[null,j]}throw new h.Exception(j);}},ignore:function(f){return f?function(j){var a=null;a=f.call(this,j);return[null,a[1]]}:null},product:function(){for(var f=
arguments[0],j=Array.prototype.slice.call(arguments,1),a=[],c=0;c<f.length;c++)a.push(i.each(f[c],j));return a},cache:function(f){var j={},a=null;return function(c){try{a=j[c]=j[c]||f.call(this,c)}catch(b){a=j[c]=b}if(a instanceof h.Exception)throw a;else return a}},any:function(){var f=arguments;return function(j){for(var a=null,c=0;c<f.length;c++)if(f[c]!=null){try{a=f[c].call(this,j)}catch(b){a=null}if(a)return a}throw new h.Exception(j);}},each:function(){var f=arguments;return function(j){for(var a=
[],c=null,b=0;b<f.length;b++)if(f[b]!=null){try{c=f[b].call(this,j)}catch(g){throw new h.Exception(j);}a.push(c[0]);j=c[1]}return[a,j]}},all:function(){var f=f;return f.each(f.optional(arguments))},sequence:function(f,j,a){j=j||i.rtoken(/^\s*/);a=a||null;if(f.length==1)return f[0];return function(c){for(var b=null,g=null,k=[],l=0;l<f.length;l++){try{b=f[l].call(this,c)}catch(m){break}k.push(b[0]);try{g=j.call(this,b[1])}catch(o){g=null;break}c=g[1]}if(!b)throw new h.Exception(c);if(g)throw new h.Exception(g[1]);
if(a)try{b=a.call(this,b[1])}catch(p){throw new h.Exception(b[1]);}return[k,b?b[1]:c]}},between:function(f,j,a){a=a||f;var c=i.each(i.ignore(f),j,i.ignore(a));return function(b){b=c.call(this,b);return[[b[0][0],r[0][2]],b[1]]}},list:function(f,j,a){j=j||i.rtoken(/^\s*/);a=a||null;return f instanceof Array?i.each(i.product(f.slice(0,-1),i.ignore(j)),f.slice(-1),i.ignore(a)):i.each(i.many(i.each(f,i.ignore(j))),px,i.ignore(a))},set:function(f,j,a){j=j||i.rtoken(/^\s*/);a=a||null;return function(c){var b=
null;for(var g=b=null,k=null,l=[[],c],m=false,o=0;o<f.length;o++){b=g=null;m=f.length==1;try{b=f[o].call(this,c)}catch(p){continue}k=[[b[0]],b[1]];if(b[1].length>0&&!m)try{g=j.call(this,b[1])}catch(s){m=true}else m=true;if(!m&&g[1].length===0)m=true;if(!m){b=[];for(m=0;m<f.length;m++)o!=m&&b.push(f[m]);b=i.set(b,j).call(this,g[1]);if(b[0].length>0){k[0]=k[0].concat(b[0]);k[1]=b[1]}}if(k[1].length<l[1].length)l=k;if(l[1].length===0)break}if(l[0].length===0)return l;if(a){try{g=a.call(this,l[1])}catch(q){throw new h.Exception(l[1]);
}l[1]=g[1]}return l}},forward:function(f,j){return function(a){return f[j].call(this,a)}},replace:function(f,j){return function(a){a=f.call(this,a);return[j,a[1]]}},process:function(f,j){return function(a){a=f.call(this,a);return[j.call(this,a[0]),a[1]]}},min:function(f,j){return function(a){var c=j.call(this,a);if(c[0].length<f)throw new h.Exception(a);return c}}},n=function(f){return function(){var j=null,a=[];if(arguments.length>1)j=Array.prototype.slice.call(arguments);else if(arguments[0]instanceof
Array)j=arguments[0];if(j)for(var c=j.shift();0<c.length;){j.unshift(c[0]);a.push(f.apply(null,j));j.shift();return a}else return f.apply(null,arguments)}},e="optional not ignore cache".split(/\s/),d=0;d<e.length;d++)i[e[d]]=n(i[e[d]]);n=function(f){return function(){return arguments[0]instanceof Array?f.apply(null,arguments[0]):f.apply(null,arguments)}};e="each any all".split(/\s/);for(d=0;d<e.length;d++)i[e[d]]=n(i[e[d]])})();
(function(){var h=Date,i=h.CultureInfo,n=function(b){for(var g=[],k=0;k<b.length;k++)if(b[k]instanceof Array)g=g.concat(n(b[k]));else b[k]&&g.push(b[k]);return g};h.Grammar={};h.Translator={hour:function(b){return function(){this.hour=Number(b)}},minute:function(b){return function(){this.minute=Number(b)}},second:function(b){return function(){this.second=Number(b)}},meridian:function(b){return function(){this.meridian=b.slice(0,1).toLowerCase()}},timezone:function(b){return function(){var g=b.replace(/[^\d\+\-]/g,
"");if(g.length)this.timezoneOffset=Number(g);else this.timezone=b.toLowerCase()}},day:function(b){var g=b[0];return function(){this.day=Number(g.match(/\d+/)[0])}},month:function(b){return function(){this.month=b.length==3?"jan feb mar apr may jun jul aug sep oct nov dec".indexOf(b)/4:Number(b)-1}},year:function(b){return function(){var g=Number(b);this.year=b.length>2?g:g+(g+2E3<i.twoDigitYearMax?2E3:1900)}},rday:function(b){return function(){switch(b){case "yesterday":this.days=-1;break;case "tomorrow":this.days=
1;break;case "today":this.days=0;break;case "now":this.days=0;this.now=true}}},finishExact:function(b){b=b instanceof Array?b:[b];for(var g=0;g<b.length;g++)b[g]&&b[g].call(this);b=new Date;if((this.hour||this.minute)&&!this.month&&!this.year&&!this.day)this.day=b.getDate();if(!this.year)this.year=b.getFullYear();if(!this.month&&this.month!==0)this.month=b.getMonth();if(!this.day)this.day=1;if(!this.hour)this.hour=0;if(!this.minute)this.minute=0;if(!this.second)this.second=0;if(this.meridian&&this.hour)if(this.meridian==
"p"&&this.hour<12)this.hour+=12;else if(this.meridian=="a"&&this.hour==12)this.hour=0;if(this.day>h.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");b=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);if(this.timezone)b.set({timezone:this.timezone});else this.timezoneOffset&&b.set({timezoneOffset:this.timezoneOffset});return b},finish:function(b){b=b instanceof Array?n(b):[b];if(b.length===0)return null;for(var g=0;g<b.length;g++)typeof b[g]==
"function"&&b[g].call(this);b=h.today();if(this.now&&!this.unit&&!this.operator)return new Date;else if(this.now)b=new Date;g=!!(this.days&&this.days!==null||this.orient||this.operator);var k,l,m;m=this.orient=="past"||this.operator=="subtract"?-1:1;!this.now&&"hour minute second".indexOf(this.unit)!=-1&&b.setTimeToNow();if(this.month||this.month===0)if("year day hour minute second".indexOf(this.unit)!=-1){this.value=this.month+1;this.month=null;g=true}if(!g&&this.weekday&&!this.day&&!this.days){k=
Date[this.weekday]();this.day=k.getDate();if(!this.month)this.month=k.getMonth();this.year=k.getFullYear()}if(g&&this.weekday&&this.unit!="month"){this.unit="day";k=h.getDayNumberFromName(this.weekday)-b.getDay();l=7;this.days=k?(k+m*l)%l:m*l}if(this.month&&this.unit=="day"&&this.operator){this.value=this.month+1;this.month=null}if(this.value!=null&&this.month!=null&&this.year!=null)this.day=this.value*1;if(this.month&&!this.day&&this.value){b.set({day:this.value*1});if(!g)this.day=this.value*1}if(!this.month&&
this.value&&this.unit=="month"&&!this.now){this.month=this.value;g=true}if(g&&(this.month||this.month===0)&&this.unit!="year"){this.unit="month";k=this.month-b.getMonth();l=12;this.months=k?(k+m*l)%l:m*l;this.month=null}if(!this.unit)this.unit="day";if(!this.value&&this.operator&&this.operator!==null&&this[this.unit+"s"]&&this[this.unit+"s"]!==null)this[this.unit+"s"]=this[this.unit+"s"]+(this.operator=="add"?1:-1)+(this.value||0)*m;else if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value)this.value=
1;this[this.unit+"s"]=this.value*m}if(this.meridian&&this.hour)if(this.meridian=="p"&&this.hour<12)this.hour+=12;else if(this.meridian=="a"&&this.hour==12)this.hour=0;if(this.weekday&&!this.day&&!this.days){k=Date[this.weekday]();this.day=k.getDate();if(k.getMonth()!==b.getMonth())this.month=k.getMonth()}if((this.month||this.month===0)&&!this.day)this.day=1;if(!this.orient&&!this.operator&&this.unit=="week"&&this.value&&!this.day&&!this.month)return Date.today().setWeek(this.value);if(g&&this.timezone&&
this.day&&this.days)this.day=this.days;return g?b.add(this):b.set(this)}};var e=h.Parsing.Operators,d=h.Grammar,f=h.Translator,j;d.datePartDelimiter=e.rtoken(/^([\s\-\.\,\/\x27]+)/);d.timePartDelimiter=e.stoken(":");d.whiteSpace=e.rtoken(/^\s*/);d.generalDelimiter=e.rtoken(/^(([\s\,]|at|@|on)+)/);var a={};d.ctoken=function(b){var g=a[b];if(!g){g=i.regexPatterns;for(var k=b.split(/\s+/),l=[],m=0;m<k.length;m++)l.push(e.replace(e.rtoken(g[k[m]]),k[m]));g=a[b]=e.any.apply(null,l)}return g};d.ctoken2=
function(b){return e.rtoken(i.regexPatterns[b])};d.h=e.cache(e.process(e.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),f.hour));d.hh=e.cache(e.process(e.rtoken(/^(0[0-9]|1[0-2])/),f.hour));d.H=e.cache(e.process(e.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),f.hour));d.HH=e.cache(e.process(e.rtoken(/^([0-1][0-9]|2[0-3])/),f.hour));d.m=e.cache(e.process(e.rtoken(/^([0-5][0-9]|[0-9])/),f.minute));d.mm=e.cache(e.process(e.rtoken(/^[0-5][0-9]/),f.minute));d.s=e.cache(e.process(e.rtoken(/^([0-5][0-9]|[0-9])/),f.second));d.ss=
e.cache(e.process(e.rtoken(/^[0-5][0-9]/),f.second));d.hms=e.cache(e.sequence([d.H,d.m,d.s],d.timePartDelimiter));d.t=e.cache(e.process(d.ctoken2("shortMeridian"),f.meridian));d.tt=e.cache(e.process(d.ctoken2("longMeridian"),f.meridian));d.z=e.cache(e.process(e.rtoken(/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/),f.timezone));d.zz=e.cache(e.process(e.rtoken(/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/),f.timezone));d.zzz=e.cache(e.process(d.ctoken2("timezone"),f.timezone));d.timeSuffix=e.each(e.ignore(d.whiteSpace),
e.set([d.tt,d.zzz]));d.time=e.each(e.optional(e.ignore(e.stoken("T"))),d.hms,d.timeSuffix);d.d=e.cache(e.process(e.each(e.rtoken(/^([0-2]\d|3[0-1]|\d)/),e.optional(d.ctoken2("ordinalSuffix"))),f.day));d.dd=e.cache(e.process(e.each(e.rtoken(/^([0-2]\d|3[0-1])/),e.optional(d.ctoken2("ordinalSuffix"))),f.day));d.ddd=d.dddd=e.cache(e.process(d.ctoken("sun mon tue wed thu fri sat"),function(b){return function(){this.weekday=b}}));d.M=e.cache(e.process(e.rtoken(/^(1[0-2]|0\d|\d)/),f.month));d.MM=e.cache(e.process(e.rtoken(/^(1[0-2]|0\d)/),
f.month));d.MMM=d.MMMM=e.cache(e.process(d.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),f.month));d.y=e.cache(e.process(e.rtoken(/^(\d\d?)/),f.year));d.yy=e.cache(e.process(e.rtoken(/^(\d\d)/),f.year));d.yyy=e.cache(e.process(e.rtoken(/^(\d\d?\d?\d?)/),f.year));d.yyyy=e.cache(e.process(e.rtoken(/^(\d\d\d\d)/),f.year));j=function(){return e.each(e.any.apply(null,arguments),e.not(d.ctoken2("timeContext")))};d.day=j(d.d,d.dd);d.month=j(d.M,d.MMM);d.year=j(d.yyyy,d.yy);d.orientation=e.process(d.ctoken("past future"),
function(b){return function(){this.orient=b}});d.operator=e.process(d.ctoken("add subtract"),function(b){return function(){this.operator=b}});d.rday=e.process(d.ctoken("yesterday tomorrow today now"),f.rday);d.unit=e.process(d.ctoken("second minute hour day week month year"),function(b){return function(){this.unit=b}});d.value=e.process(e.rtoken(/^\d\d?(st|nd|rd|th)?/),function(b){return function(){this.value=b.replace(/\D/g,"")}});d.expression=e.set([d.rday,d.operator,d.value,d.unit,d.orientation,
d.ddd,d.MMM]);j=function(){return e.set(arguments,d.datePartDelimiter)};d.mdy=j(d.ddd,d.month,d.day,d.year);d.ymd=j(d.ddd,d.year,d.month,d.day);d.dmy=j(d.ddd,d.day,d.month,d.year);d.date=function(b){return(d[i.dateElementOrder]||d.mdy).call(this,b)};d.format=e.process(e.many(e.any(e.process(e.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(b){if(d[b])return d[b];else throw h.Parsing.Exception(b);}),e.process(e.rtoken(/^[^dMyhHmstz]+/),function(b){return e.ignore(e.stoken(b))}))),
function(b){return e.process(e.each.apply(null,b),f.finishExact)});var c={};d.formats=function(b){if(b instanceof Array){for(var g=[],k=0;k<b.length;k++)g.push(c[b[k]]=c[b[k]]||d.format(b[k])[0]);return e.any.apply(null,g)}else return c[b]=c[b]||d.format(b)[0]};d._formats=d.formats(['"yyyy-MM-ddTHH:mm:ssZ"',"yyyy-MM-ddTHH:mm:ssZ","yyyy-MM-ddTHH:mm:ssz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mmZ","yyyy-MM-ddTHH:mmz","yyyy-MM-ddTHH:mm","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","MMddyyyy",
"ddMMyyyy","Mddyyyy","ddMyyyy","Mdyyyy","dMyyyy","yyyy","Mdyy","dMyy","d"]);d._start=e.process(e.set([d.date,d.time,d.expression],d.generalDelimiter,d.whiteSpace),f.finish);d.start=function(b){try{var g=d._formats.call({},b);if(g[1].length===0)return g}catch(k){}return d._start.call({},b)};h._parse=h.parse;h.parse=function(b){var g=null;if(!b)return null;if(b instanceof Date)return b;try{g=h.Grammar.start.call({},b.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1"))}catch(k){return null}return g[1].length===
0?g[0]:null};h.getParseFunction=function(b){var g=h.Grammar.formats(b);return function(k){var l=null;try{l=g.call({},k)}catch(m){return null}return l[1].length===0?l[0]:null}};h.parseExact=function(b,g){return h.getParseFunction(g)(b)}})();

;eval(function(e,f,a,d,c,g){c=function(b){return(b<f?"":c(parseInt(b/f)))+((b%=f)>35?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){for(;a--;)g[c(a)]=d[a]||c(a);d=[function(b){return g[b]}];c=function(){return"\\w+"};a=1}for(;a--;)if(d[a])e=e.replace(RegExp("\\b"+c(a)+"\\b","g"),d[a]);return e}("k={1Y:{2f:\"25 1X\",1O:1.5,24:\"22 1W (1U://1N.1J)\",2d:\"2c 27 26\"},m:[],t:{19:17,1z:1V,z:'1S',Z:0,1d:0},1r:D(){v a=29.1D('1C'),i;M(i=0;i<a.F;i++){v b=a[i].V.S(' '),q=18;l(k.C(b,k.t.z+'B')){q='B'}E l(k.C(b,k.t.z+'T')){q='T'}E l(k.C(b,k.t.z+'r')){q='r'}E l(k.C(b,k.t.z+'Q')){q='Q'}l(q){k.1w(a[i],q)}}l(!k.19){l(k.m.F>0){k.Y();l(k.t.Z){M(i=0;i<k.m.F;i++){l(k.m[i][11]>0){K.1L(\"k.Z(\"+k.m[i][11]+\",0)\",k.m[i][11])}}}l(k.t.1d===0){k.N(K,'1K',k.1f);k.N(K,'1I',k.Y);k.N(K,'1H',k.Y);k.N(K,'1G',k.Y)}}}},1w:D(a,b){v i,1c=17;l(a&&b){l(k.m.F>0){M(i=0;i<k.m.F;i++){l(k.m[i][2]===a){k.m[i][8]=b;1c=1F}}}}E{1c=1F}l(!1c){v c=0,p=1,U=0,x=0,X=0,o=a,O=o.V.S(' '),y=a.1m,w=18,1l=18,1b=18,1k=D(e){k.1j(e,0)},1i=D(e){k.1j(e,1)};l(y.V.1a('23')>=0){y=y.1m}l(y){y.n.1h='21';y.n.20='1Z';v d=y.1D('1C');M(i=0;i<d.F;i++){v f=d[i].V.S(' ');l(k.C(f,k.t.z+b+'1B')){w=d[i]}}l(o){o.n.1h='1A';o.n.R=o.n.r=0;W(b){s\"B\":o.n.R=(o.L*-1)+y.L+'u';A;s\"Q\":o.n.r=(o.I*-1)+y.I+'u';A}W(b){s\"B\":s\"T\":o.n.1y=y.I+'u';A;s\"Q\":s\"r\":o.n.1x=y.L+'u';A}l(w){w.n.1h='1A';1l=w.I;1b=w.L;W(b){s\"B\":w.n.R=1b*-1+'u';A;s\"T\":w.n.R=o.L+'u';A;s\"r\":w.n.r=o.I+'u';A;s\"Q\":w.n.r=o.I*-1+'u';A}W(b){s\"B\":s\"T\":w.n.r=0;w.n.1y=y.I+'u';A;s\"r\":s\"Q\":w.n.R=0;w.n.1x=y.L+'u';A}}}l(k.C(O,k.t.z+'p-',1)){p=14(k.C(O,k.t.z+'p-',1)||10)/10;l(K.1e&&p<1){p=1}}l(k.C(O,k.t.z+'1T')){k.t.1d=1}l(k.C(O,k.t.z+'x')){x=1}l(k.C(O,k.t.z+'X')){X=1}l(k.C(O,k.t.z+'16-',1)){U=1;k.t.Z=1;c=k.C(O,k.t.z+'16-',1)*1R}l(k.C(O,k.t.z+'1v')){k.N(o,'1u',1i);k.N(o,'1t',1k);l(w){k.N(w,'1u',1i);k.N(w,'1t',1k)}}k.m.1M([y.L,y.I,o,o.L,o.I,w,1b,1l,b,p,U,c,x,X])}}},1P:D(a){l(a){M(v i=0;i<k.m.F;i++){l(k.m[i][2]===a){k.m.1Q(i,1)}}l(k.m.F<=0){k.1f()}}},1s:D(){M(v i=0;i<k.m.F;i++){v a=k.m[i][0],H=k.m[i][1],o=k.m[i][2],G=k.m[i][3],J=k.m[i][4],P=k.m[i][5],1o=k.m[i][6],1g=k.m[i][7],q=k.m[i][8],p=k.m[i][9],U=k.m[i][10],16=k.m[i][11],x=k.m[i][12],X=k.m[i][13];l(!U&&!16){l(X){G=k.m[i][3]=o.L;J=k.m[i][4]=o.I;l(P){1o=k.m[i][6]=P.L;1g=k.m[i][7]=P.I}}W(q){s'B':s'T':v b=14(o.n.R.S('u')[0]);b=(x===2)?((q==='B')?b-p:b+p):((q==='B')?b+p:b-p);l(P&&!x){b=k.1q(q,'R',b,P,G,a,1o,p,x)}E{l(x){l(x===((q==='B')?1:2)&&((G>a&&b+p>0)||(G<a&&b+G+p>a))){k.m[i][12]=((q==='B')?2:1)}l(x===((q==='B')?2:1)&&((G>a&&b+G<a+p)||(G<a&&b<0))){k.m[i][12]=((q==='B')?1:2)}}E{l(q==='B'){l(b>H){b=(G)*-1}}E{l(b<G*-1){b=a}}}}o.n.R=b+'u';A;s'r':s'Q':v c=14(o.n.r.S('u')[0]);c=(x===2)?((q==='r')?c+p:c-p):(q==='r')?c-p:c+p;l(P&&!x){c=k.1q(q,'r',c,P,J,H,1g,p,x)}E{l(x){l(x===((q==='r')?2:1)&&((J>H&&c+p>0)||(J<H&&c+J+p>H))){k.m[i][12]=((q==='r')?1:2)}l(x===((q==='r')?1:2)&&((J>H&&c+J<H+p)||(J<H&&c-p<0))){k.m[i][12]=((q==='r')?2:1)}}E{l(q==='r'){l(c<J*-1){c=H}}E{l(c>H){c=(J)*-1}}}}o.n.r=c+'u';A}}}},1q:D(a,b,c,d,e,f,g,h,i){v j;W(a){s'B':s'Q':j=14(d.n[b].S('u')[0])+h;l(c>0&&c<=f){d.n[b]=c-g+'u'}l(j+g>=f&&j<=f+h){d.n[b]=j+'u';c=j+e*-1}1p c;s'T':s'r':j=14(d.n[b].S('u')[0])-h;l(c+e<=f){d.n[b]=c+e+'u'}l(j+g<=f&&j+g+h>=0){d.n[b]=j+'u';c=j+g}1p c}},Y:D(e){l(!k.15){k.19=k.15=K.2b(k.1s,k.t.1z)}},1f:D(e){l(k.15){K.2a(k.15);k.19=k.15=17}},1j:D(e,a){l(e.1n||e.1E){v b=e.1n?e.1n:e.1E;M(v i=0;i<5;i++){l(b.V.1a(k.t.z+'1v')<0&&b.V.1a('1B')<0){b=b.1m}E{A}}k.U(b,a)}},Z:D(a){l(a>0){M(v i=0;i<k.m.F;i++){l(a===k.m[i][11]){k.m[i][10]=k.m[i][11]=0}}}},U:D(a,b){l(a&&b>=0){M(v i=0;i<k.m.F;i++){l(a===k.m[i][2]||a===k.m[i][5]){k.m[i][10]=b}}}},C:D(a,b,c){v d='';l(a&&b){M(v i=0;i<a.F;i++){l(c&&a[i].1a(b)>=0){d=a[i].S(b)[1];A}E l(a[i]===b){d=a[i];A}}}1p d},N:D(a,b,c){l(a&&b&&c){l(K.1e){a.1e(\"28\"+b,c)}E{a.2e(b,c,17)}}}};k.N(K,'2g',k.1r);",
62,141,"||||||||||||||||||||ByRei_jScroller2|if|obj|style|child_div|speed|direction|left|case|cache|px|var|child_endless|alternate|parent_div|prefix|break|down|check_array|function|else|length|child_div_height|parent_div_width|clientWidth|child_div_width|window|clientHeight|for|set_eventListener|child_div_classNames|endless_div|right|top|split|up|pause|className|switch|dynamic|start|delayer|||||parseFloat|timer|delay|false|null|active|indexOf|child_endless_Height|error|ileave|attachEvent|stop|endless_div_width|position|func_stop|start_stop|func_start|child_endless_Width|parentNode|target|endless_div_height|return|check_endless|init|scroller|mouseout|mouseover|mousemove|add|height|width|refreshtime|absolute|_endless|div|getElementsByTagName|srcElement|true|scroll|resize|focus|de|blur|setTimeout|push|markusbordihn|Version|remove|splice|1000|jscroller2_|ignoreleave|http|150|Bordihn|jScroller2|info|hidden|overflow|relative|Markus|jscroller2|Author|ByRei|Autoscroller|Generation|on|document|clearInterval|setInterval|Next|Description|addEventListener|Name|load".split("|"),
0,{}));

;function meineGemeindeBoxStatsCount(currentCity){if(currentCity!=MeineGemeindeBoxSettings.emptyvalue){if(typeof dcsMeineGemeinde=='function')
dcsMeineGemeinde(currentCity);$(document).ready(function(){if(typeof _gaq!='undefined'){_gaq.push(['_trackEvent','MyTown','ShowBox',currentCity]);}});}}
var MeineGemeindeBoxSettings={loaduri:"/engine.aspx?page=fragment-meinegemeinde-article-index&non=10&dc=tp:meinegemeinde:",emptyvalue:"*",cookiedomain:"vol.at",redirectto:"http://%currenttown%.vol.at"};
;function loadMeineGemeindeBox(containerId){var currentCity=$.cookie('CurrentCity');var currentCityToolTip=$.cookie('CurrentCityToolTip');if(currentCity==null||$.inArray(currentCity,mytowncities)==-1)
currentCity=MeineGemeindeBoxSettings.emptyvalue;$.ajax({url:MeineGemeindeBoxSettings.loaduri+currentCity,async:true,success:function(result){$("#"+containerId).html(result);if(currentCity==MeineGemeindeBoxSettings.emptyvalue&&currentCityToolTip==null){var toolTipContainerId="MGToolTip";var toolTipCitySelectorId="MGCitySelectorToolTip";$("#Body .Content").before("<div style=\"position:relative;z-index:300;\"><div id=\""+toolTipContainerId+"\" style=\"display:none;\"><a class=\"Close\" href=\"#\"> </a></div></div>");$(document).ready(function(){if(typeof tooltip_text!="undefined")
$(tooltip_text).appendTo("#"+toolTipContainerId);$("#MGCitySelector").clone().appendTo("#"+toolTipContainerId).attr("id",toolTipCitySelectorId);$('#MGToolTip').parent().css("top",$('#MeineGemeindeNewsBox').position().top);$("#"+toolTipContainerId).fadeIn('slow');$("#"+toolTipCitySelectorId).val('-1');$("#"+toolTipCitySelectorId).removeAttr("onchange");$("#"+toolTipCitySelectorId).change(function(){setMeineGemeindeCookie($(this).find(":selected").val());loadMeineGemeindeBox(containerId);$("#"+toolTipContainerId).fadeOut('slow');NnpNavigation.setTownTab();NnpNavigation.setTownSubNavigation();});});$("#MGCitySelector").click(function(){$("#"+toolTipContainerId).hide();});$.cookie('CurrentCityToolTip',"true",{path:'/',expires:new Date().add({hours:2})});}
var ab=new ArticleBox($("#"+containerId).find(".ArticleBox"));ab.Init();}});meineGemeindeBoxStatsCount(currentCity);}
function setMeineGemeindeCookie(value){var days=30*365;if(value!='meinegemeinde')
$.cookie('CurrentCity',value,{path:'/',expires:days,domain:MeineGemeindeBoxSettings.cookiedomain});}
function doMeineGemeindeRedirect(){var value=document.getElementById('MGCitySelector').options[document.getElementById('MGCitySelector').options.selectedIndex].value
if(value!=-1){setMeineGemeindeCookie(value);window.location.href=MeineGemeindeBoxSettings.redirectto.replace(/%currenttown%/,value);}}
;if(com==null||typeof(com)!="object")var com=new Object();if(com.medienhaus==null||typeof(com.medienhaus)!="object")com.medienhaus=new Object();if(com.medienhaus.nnp==null||typeof(com.medienhaus.nnp)!="object")com.medienhaus.nnp=new Object();
;com.medienhaus.nnp.navigationconfig=new Object();com.medienhaus.nnp.navigationconfig.portalDomain="vol.at";com.medienhaus.nnp.navigationconfig.directoryName="/gemeinde/";com.medienhaus.nnp.navigationconfig.mainCity="bregenz";com.medienhaus.nnp.navigationconfig.myTownPortalname="Gemeinde"
com.medienhaus.nnp.navigationconfig.townTabSelector=".townTab a:first";com.medienhaus.nnp.navigationconfig.classifiedsTabSelector="#MNB2Kleinanzeigen a";com.medienhaus.nnp.navigationconfig.helpTabSelector="#MNB2Hilfe a";com.medienhaus.nnp.navigationconfig.editorTabSelector="#MNB2Beitragerstellen a";com.medienhaus.nnp.navigationconfig.classifiedsExtension="/kleinanzeigen";com.medienhaus.nnp.navigationconfig.helpExtension="/hilfe";com.medienhaus.nnp.navigationconfig.editorExtension="/neuer-artikel";var mytowncities=["alberschwende","altach","andelsbuch","au","bartholomaeberg","bezau","bildstein","bizau","blons","bludenz","bludesch","brand","bregenz","buch","buers","buerserberg","dalaas","damuels","doren","dornbirn","duens","duenserberg","egg","eichenberg","feldkirch","fontanella","frastanz","fraxern","fussach","gaissau","gaschurn","goefis","goetzis","hard","hittisau","hohenems","hohenweiler","hoechst","hoerbranz","innerbraz","kennelbach","klaus","kloesterle","koblach","krumbach","langen","langenegg","laterns","lauterach","lech","lingenau","lochau","loruens","ludesch","lustenau","meiningen","mellau","mittelberg","maeder","moeggers","nenzing","nueziders","raggal","rankweil","reuthe","riefensberg","roens","roethis","stanton","stgallenkirch","stgerold","satteins","schlins","schnepfau","schnifis","schoppernau","schruns","schroecken","schwarzach","schwarzenberg","sibratsgfaell","silbertal","sonntag","stallehr","sulz","sulzberg","thueringen","thueringerberg","tschagguns","uebersaxen","vandans","viktorsberg","warth","weiler","wolfurt","zwischenwasser"];TownShortcuts=new Object();TownShortcuts.alberschwende="Alberschw.";TownShortcuts.altach="Altach";TownShortcuts.andelsbuch="Andelsb.";TownShortcuts.au="Au";TownShortcuts.bartholomaeberg="Bartholom.";TownShortcuts.bezau="Bezau";TownShortcuts.bildstein="Bildstein";TownShortcuts.bizau="Bizau";TownShortcuts.blons="Blons";TownShortcuts.bludenz="Bludenz";TownShortcuts.bludesch="Bludesch";TownShortcuts.brand="Brand";TownShortcuts.bregenz="Bregenz";TownShortcuts.buch="Buch";TownShortcuts.buers="Bürs";TownShortcuts.buerserberg="Bürserb.";TownShortcuts.dalaas="Dalaas";TownShortcuts.damuels="Damüls";TownShortcuts.doren="Doren";TownShortcuts.dornbirn="Dornbirn";TownShortcuts.duens="Düns";TownShortcuts.duenserberg="Dünserb.";TownShortcuts.egg="Egg";TownShortcuts.eichenberg="Eichenb.";TownShortcuts.feldkirch="Feldkirch";TownShortcuts.fontanella="Fontanella";TownShortcuts.frastanz="Frastanz";TownShortcuts.fraxern="Fraxern";TownShortcuts.fussach="Fußach";TownShortcuts.gaissau="Gaissau";TownShortcuts.gaschurn="Gaschurn";TownShortcuts.goefis="Göfis";TownShortcuts.goetzis="Götzis";TownShortcuts.hard="Hard";TownShortcuts.hittisau="Hittisau";TownShortcuts.hohenems="Hohenems";TownShortcuts.hohenweiler="Hohenw.";TownShortcuts.hoechst="Höchst";TownShortcuts.hoerbranz="Hörbranz";TownShortcuts.innerbraz="Innerbraz";TownShortcuts.kennelbach="Kennelbach";TownShortcuts.klaus="Klaus";TownShortcuts.kloesterle="Klösterle";TownShortcuts.koblach="Koblach";TownShortcuts.krumbach="Krumbach";TownShortcuts.langen="Langen";TownShortcuts.langenegg="Langenegg";TownShortcuts.laterns="Laterns";TownShortcuts.lauterach="Lauterach";TownShortcuts.lech="Lech";TownShortcuts.lingenau="Lingenau";TownShortcuts.lochau="Lochau";TownShortcuts.loruens="Lorüns";TownShortcuts.ludesch="Ludesch";TownShortcuts.lustenau="Lustenau";TownShortcuts.meiningen="Meiningen";TownShortcuts.mellau="Mellau";TownShortcuts.mittelberg="Mittelberg";TownShortcuts.maeder="Mäder";TownShortcuts.moeggers="Möggers";TownShortcuts.nenzing="Nenzing";TownShortcuts.nueziders="Nüziders";TownShortcuts.raggal="Raggal";TownShortcuts.rankweil="Rankweil";TownShortcuts.reuthe="Reuthe";TownShortcuts.riefensberg="Riefensberg";TownShortcuts.roens="Röns";TownShortcuts.roethis="Röthis";TownShortcuts.stanton="St. Anton";TownShortcuts.stgallenkirch="St. Gallenk.";TownShortcuts.stgerold="St. Gerold";TownShortcuts.satteins="Satteins";TownShortcuts.schlins="Schlins";TownShortcuts.schnepfau="Schnepfau";TownShortcuts.schnifis="Schnifis";TownShortcuts.schoppernau="Schoppern.";TownShortcuts.schruns="Schruns";TownShortcuts.schroecken="Schröcken";TownShortcuts.schwarzach="Schwarzach";TownShortcuts.schwarzenberg="Schwarzenb.";TownShortcuts.sibratsgfaell="Sibratsgfäll";TownShortcuts.silbertal="Silbertal";TownShortcuts.sonntag="Sonntag";TownShortcuts.stallehr="Stallehr";TownShortcuts.sulz="Sulz";TownShortcuts.sulzberg="Sulzberg";TownShortcuts.thueringen="Thüringen";TownShortcuts.thueringerberg="Thüringerb.";TownShortcuts.tschagguns="Tschagguns";TownShortcuts.uebersaxen="Übersaxen";TownShortcuts.vandans="Vandans";TownShortcuts.viktorsberg="Viktorsberg";TownShortcuts.warth="Warth";TownShortcuts.weiler="Weiler";TownShortcuts.wolfurt="Wolfurt";TownShortcuts.zwischenwasser="Zwischenw.";TownShortcuts.meinegemeinde="Gemeinde";
;com.medienhaus.nnp.Navigation=function(nodeId1,nodeId2){var that=this;this.navigationNode=$("ul[id='MainNavigationBar']");this.nodeId1=nodeId1;this.nodeId2=nodeId2;this.node1=null;this.node2=null;this.hoverTimeout=null;this.noderHoverTo=null;this.update=function(nodeId1,nodeId2){that.nodeId1=nodeId1;that.nodeId2=nodeId2;that.setActiveNodes();}
this.setActiveNodes=function(){if(that.nodeId1!=""){that.node1=that.navigationNode.find("li[id ="+that.nodeId1+"]");if(that.node1&&that.node1!=null){that.node2=that.node1.find("li[id ="+that.nodeId2+"]");}}
if(that.node1==null){that.setActiveNodesByLocation();}
if(that.node1==null){that.node1=that.navigationNode.find("li:first");}
if(that.node1&&that.node1!=null){that.navigationNode.find("li.Selected").removeClass("Selected").removeClass("Active");that.node1.addClass("Selected Active");}
if(that.node2&&that.node2!=null){that.node1.find("li.Selected2").removeClass("Selected2").removeClass("Active");that.node2.addClass("Selected2 Active");}}
this.setActiveNodesByLocation=function(){var currentLocation=document.location.href.replace('?debugscript=1','');that.navigationNode.find('li[id^="MNB"] a').each(function(){var navigationLink=$(this);if(currentLocation==navigationLink.attr('href')){if(navigationLink.parent().attr('id').indexOf("MNB1")>=0){that.nodeId1=navigationLink.parent().attr('id');that.nodeId2='';return;}else{that.nodeId1=navigationLink.parent().parent().parent().attr('id');that.nodeId2=navigationLink.parent().attr('id');return;}}});if(that.nodeId1!=""){that.node1=that.navigationNode.find("li[id ="+that.nodeId1+"]");if(that.node1&&that.node1!=null){that.node2=that.node1.find("li[id ="+that.nodeId2+"]");}}}
this.setTownTab=function(){try{var currentCity=null;if($("#PageContainer").attr('class')){currentCity=$("#PageContainer").attr('class');tmpCurrentCity=currentCity.substr(1,currentCity.length);if(parseInt(tmpCurrentCity))
currentCity=tmpCurrentCity;}else if($.cookie('CurrentCity')){currentCity=that.returnCityFromCookie('CurrentCity');}else{currentCity=com.medienhaus.nnp.navigationconfig.myTownPortalname;}
if($.inArray(currentCity,mytowncities)>-1){var cityShort="";if(parseInt(currentCity))
cityShort=TownShortcuts["b"+currentCity];else
cityShort=TownShortcuts[currentCity];if(cityShort==null||cityShort==undefined){currentCity=that.translateToUmlauts(currentCity);currentCity=currentCity.charAt(0).toUpperCase()+currentCity.slice(1);$(com.medienhaus.nnp.navigationconfig.townTabSelector).text(currentCity);}else{$(com.medienhaus.nnp.navigationconfig.townTabSelector).text(cityShort);}
if(currentCity!=com.medienhaus.nnp.navigationconfig.myTownPortalname){domain='http://'+that.returnCityForMytownLink(currentCity)+'.'+com.medienhaus.nnp.navigationconfig.portalDomain;if(typeof com.medienhaus.nnp.navigationconfig.directoryName!="undefined")
domain='http://www.'+com.medienhaus.nnp.navigationconfig.portalDomain+com.medienhaus.nnp.navigationconfig.directoryName+that.returnCityForMytownLink(currentCity);$(com.medienhaus.nnp.navigationconfig.townTabSelector).attr('href',domain);}}else{$(com.medienhaus.nnp.navigationconfig.townTabSelector).text(com.medienhaus.nnp.navigationconfig.myTownPortalname);$(com.medienhaus.nnp.navigationconfig.townTabSelector).attr('href','http://'+com.medienhaus.nnp.navigationconfig.mainCity+'.'+com.medienhaus.nnp.navigationconfig.portalDomain);}}catch(e){}}
this.setTownSubNavigation=function(){var city=null;if($("#PageContainer").attr('class')){city=$("#PageContainer").attr('class');tmpCity=city.substr(1,city.length);if(parseInt(tmpCity))
city=tmpCity;}else if($.cookie('CurrentCity')){city=that.returnCityFromCookie('CurrentCity');}else{city=com.medienhaus.nnp.navigationconfig.mainCity;}
if(city){domain='http://'+that.returnCityForMytownLink(city)+'.'+com.medienhaus.nnp.navigationconfig.portalDomain;if(typeof com.medienhaus.nnp.navigationconfig.directoryName!="undefined")
domain='http://www.'+com.medienhaus.nnp.navigationconfig.portalDomain+com.medienhaus.nnp.navigationconfig.directoryName+that.returnCityForMytownLink(city);$(com.medienhaus.nnp.navigationconfig.classifiedsTabSelector).attr('href',domain+com.medienhaus.nnp.navigationconfig.classifiedsExtension);$(com.medienhaus.nnp.navigationconfig.helpTabSelector).attr('href',domain+com.medienhaus.nnp.navigationconfig.helpExtension);$(com.medienhaus.nnp.navigationconfig.editorTabSelector).attr('href',domain+com.medienhaus.nnp.navigationconfig.editorExtension);}}
this.setEventhandler=function(){that.navigationNode.find("li").hover(function(){that.hoverFlag=true;$(this).addClass("Hovered");if($(this).is(".Vertical")){$(this).addClass("VerticalHovered");}
that.noderHoverTo=$(this).attr("id");clearTimeout(that.hoverTimeout);that.hoverTimeout=setTimeout(function(){that.goTo(that.noderHoverTo);},500);},function(){that.hoverFlag=false;$(this).removeClass("Hovered");$(this).removeClass("VerticalHovered");clearTimeout(that.hoverTimeout);that.hoverTimeout=setTimeout(function(){that.goBack();},2500);}).find("li").mouseover(function(){that.navigationNode.find("li").find("li.Selected2").toggleClass("Selected2");$(this).toggleClass("Selected2")});}
this.goTo=function(){if(that.hoverFlag==false)return;that.navigationNode.find("li.Selected").toggleClass("Selected");that.navigationNode.find(".Hovered").toggleClass("Selected");that.navigationNode.find("li.VertAndSel").toggleClass("VertAndSel");if($(".Hovered").is(".Vertical"))
{$(".Hovered").toggleClass("VertAndSel");};}
this.goBack=function(){if(that.hoverFlag)return;var activeNodes=that.navigationNode.find("li.Active");if(that.navigationNode.find("li.Selected").is(".VertAndSel"))
{that.navigationNode.find("li.Selected").toggleClass("VertAndSel");}
if(that.navigationNode.find("li.Selected2").not(".Active"))
{that.navigationNode.find("li.Selected2").toggleClass("Selected2");$(activeNodes[1]).toggleClass("Selected2");}
that.navigationNode.find("li.Selected").toggleClass("Selected");$(activeNodes[0]).toggleClass("Selected");$(".Hovered").toggleClass("Hovered");}
this.returnCityFromCookie=function(name){return $.cookie(name);}
this.returnCityForMytownLink=function(city){if(city=="meinegemeinde"){return com.medienhaus.nnp.navigationconfig.mainCity;}else{return city;}}
this.translateToUmlauts=function(municipal){municipal=municipal.replace("ue","ü");municipal=municipal.replace("oe","ö");municipal=municipal.replace("ae","ä");return municipal;}
var init=function(){that.setActiveNodes();that.setTownTab();that.setTownSubNavigation();that.setEventhandler();}
init();}
;$(document).ready(function(){$(".Showonclick").hide();$("#message_feedback").css("height","25px");var errormessages=FeedbackFooterBoxI18n;var ajaxurl=FeedbackFooterBoxI18n.ajax_url;var validation={rules:{ffname:"required",ffmailaddress:{required:true,email:true},ffsuggestion:{required:true,maxlength:500}},messages:errormessages};$("#ffsubmit").click(function(){var isvalid=true;if($("#message_feedback").val()==""){alert(errormessages.ffsuggestion);isvalid=false;}
if($("#ffname").val()==""){alert(errormessages.ffname);isvalid=false;}
if(!isEmail($("#ffmailaddress").val())){alert(errormessages.ffmailaddress);isvalid=false;}
if(isvalid){var dataString="action=footer_feedback&ffsuggestion="+$("#message_feedback").val()+"&"+"ffname="+$("#ffname").val()+"&"+"ffmailaddress="+$("#ffmailaddress").val()+"&"+"ffcity="+$("#ffcity").val()+"&"+"ffportal="+$("#ffportal").val();jQuery.post(ajaxurl,dataString,function(data){$("#successmessage").html(data);});$("#ffsubmit").attr("disabled","true");$("#ffsubmit").css("background-position","-198px -558px");$("#ffsubmit").css("cursor","auto");$(".Showonclick").hide();$("#message_feedback").val("");$("#message_feedback").css("height","25px");return false;}});$("#message_feedback").click(function(){this.value='';this.style.color='#000000'
$("#message_feedback").focus();$("#message_feedback").css("height","95px");$(".Showonclick").show();document.getElementById("bottomlink").scrollIntoView(false);});});
;$(document).ready(function(){$("div.ArticleBox").each(function(i){var ab=new ArticleBox($(this));ab.Init();});$("div.VideoBox").each(function(i){var vb=new VideoBox($(this));vb.Init();});$("div.Newsticker").each(function(i){var nt=new Newsticker($(this));nt.Init();});$("div.iReporter_BoxRight").each(function(i){var ir=new iReporter($(this));ir.Init();});$("div.TopBox").each(function(i){var tb=new TopBox($(this));tb.Init();});$("div#TopCompanies").each(function(i){var tc=new TopCompanies($(this));tc.Init();});$("#SearchCompanies input[type='text']").focus(function(){if($(this).val('Profis oder Branche suchen')){$(this).val('');$(this).css('color','#000000');};})
var cp=new CityPortraitBox($("#CityPortrait"));cp.Init();if($("#ImmoDataHolder #ImageBox")||$("#ImageContainer #ImageBox")){ImageBoxSettings=new Object();ImageBoxSettings.scrolled=0;ImageBoxSettings.visiblepics=0;ImageBoxSettings.maxpics=0;ImageBoxSettings.nrofpics=0;ImageBoxSettings.scrollspeed="fast";ImageBoxSettings.leftmargin=0;ImageBoxSettings.picwidth=0;ImageBoxSettings.scrolloffset=0;ImageBoxSettings.scrollablepics=0;ImageBoxSettings.active="transparent";ImageBoxSettings.disabled="transparent";}
if($("#ImageBox").hasClass("ImmoImageBox")){}else{var ib=new ImageBox($("#ImageContainer #ImageBox"));ib.Init();}});function ArticleBox(box){this.oBox=box;}
ArticleBox.prototype.Init=function(){$(this.oBox).mcomClickableBox();};function VideoBox(box){this.oBox=box;}
VideoBox.prototype.Init=function(){$(this.oBox).find(".Rounded").jrcorner("5px");$(this.oBox).find(".Item a").hover(function(){$(this).addClass("ui-hover");$(this).find(".Rounded").jrcorner("#26637A 5px bottom");},function(){$(this).removeClass("ui-hover");$(this).find(".Rounded").jrcorner("5px");});};function Newsticker(box){this.oBox=box;}
Newsticker.prototype.Init=function(){$(this.oBox).mcomClickableBox();};function iReporter(box){this.oBox=box;}
iReporter.prototype.Init=function(){$(this.oBox).mcomClickableBox();};function TopBox(box){this.oBox=box;}
TopBox.prototype.Init=function(){$(this.oBox).mcomClickableBox();};function TopCompanies(box){this.oBox=box;}
TopCompanies.prototype.Init=function(){$(this.oBox).mcomClickableBox();};function CityPortraitBox(box){this.oBox=box;}
CityPortraitBox.prototype.Init=function(){if($(this.oBox).length>0){$(this.oBox).jrcorner("12px");}};jQuery.fn.disableArrow=function(){$(this).css('background-color',ImageBoxSettings.disabled);$(this).css('cursor','default');if($("#ImageBox").hasClass("ImmoImageBox")){$(this).css('display','none');}};jQuery.fn.enableArrow=function(){$(this).css('background-color',ImageBoxSettings.active);$(this).css('cursor','pointer');$(this).css('display','block');};function ImageBox(box){this.oBox=box;}
ImageBox.prototype.Init=function(){ImageBoxSettings.visiblepics=6;ImageBoxSettings.maxpics=15;ImageBoxSettings.nrofpics=$(this.oBox).find(".Image").size();ImageBoxSettings.leftmargin=parseInt($(this.oBox).find("img").css('margin-left'));ImageBoxSettings.active="#026196";ImageBoxSettings.disabled="#CCCCCC";ImageBoxSettings.picwidth=80;ImageBoxSettings.scrolloffset=ImageBoxSettings.leftmargin+ImageBoxSettings.picwidth;ImageBoxSettings.scrollablepics=0;if(ImageBoxSettings.nrofpics==0){$("#ImageContainer").css("display","none");}else if(ImageBoxSettings.nrofpics<ImageBoxSettings.maxpics){ImageBoxSettings.nrofpics=$("#ImageBox .Image").size();}else{ImageBoxSettings.nrofpics=ImageBoxSettings.maxpics;}
ImageBoxSettings.scrollablepics=ImageBoxSettings.nrofpics-ImageBoxSettings.visiblepics;if(ImageBoxSettings.nrofpics<=ImageBoxSettings.visiblepics){$("#ArrowRight").disableArrow();}else{$("#ArrowRight").enableArrow();}
$("#ArrowLeft").disableArrow();}
function loadSingleVideoBox(currentCat,portal){if(currentCat==null||currentCat=="")
{currentCat="*";}
var loaduri=encodeURIComponent("http://"+portal+"/rss.php?tag="+currentCat);$.get("/SysRes/GLOBALSkin/PageLoader.aspx?url="+loaduri,BuildSingleVideoBox,"xml");}
function BuildSingleVideoBox(xml){var nodeVideoBox=$("#VideoContainer");var nodeFirstItem=$(xml).find("item:first");if(nodeFirstItem!=""&&nodeFirstItem.length!=0){var imgTitle=nodeFirstItem.find("title").text();var imgSrc=nodeFirstItem.find('*[url*="_large"]').attr("url");var imgLink=nodeFirstItem.find("link").text();nodeVideoBox.append("<a href='"+imgLink+"'><span class='SingleVideoPlayOverlay'> </span><span class='TransparentTitle'>"+imgTitle+"</span><span><img class='' alt='"+imgTitle+"' src='http://thumbs.vol.at/?w=288&url="+imgSrc+"'/></span></a>");$("#SingleVideoBoxHeadline").show();$("#SingleVideoBox").show();};}
function checkLength(){returnval=true;if(document.getElementById('keyword').value.length<3)
{alert("Bitte geben Sie mindestens 3 Zeichen ein.");document.getElementById('keyword').focus();returnval=false;}
return returnval;}
function checkAndSubmit(email){if(email.value!=""&&email.value!="E-Mail Adresse"){if(isEmail(email.value)==true){email.value=email.value.toLowerCase();return true;}else{alert("Bitte überprüfen Sie die eingegebene E-Mailadresse. Möglicherweise haben Sie sich verschrieben.");email.focus();return false;}}else{alert("Bitte geben Sie die E-Mailadresse ein, an welche Sie den Newsletter erhalten möchten!");email.focus();return false;}}
function isEmail(s){var a=false;var res=false;if(typeof(RegExp)=='function'){var b=new RegExp('abc');if(b.test('abc')==true){a=true;}}
if(a==true){reg=new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)'+'(\\@)([a-zA-Z0-9\\-\\.]+)'+'(\\.)([a-zA-Z]{2,4})$');res=(reg.test(s));}else{res=(s.search('@')>=1&&s.lastIndexOf('.')>s.search('@')&&s.lastIndexOf('.')>=s.length-5);}
return(res);}
$(document).ready(function(){$('#ArrowLeft').click(function(){if($("#ImageBox").hasClass("ImmoImageBox")){var elementToScroll=$("#ImageBox .Article");}else{var elementToScroll=$("#ImageBox .Image");};if(ImageBoxSettings.scrolled==0){}else if(ImageBoxSettings.scrolled==1){$(elementToScroll).animate({"left":"+="+ImageBoxSettings.scrolloffset+"px"},ImageBoxSettings.scrollspeed);$("#ArrowLeft").disableArrow();$("#ArrowRight").enableArrow();ImageBoxSettings.scrolled--;}else{$(elementToScroll).animate({"left":"+="+ImageBoxSettings.scrolloffset+"px"},ImageBoxSettings.scrollspeed);$("#ArrowLeft").enableArrow();$("#ArrowRight").enableArrow();ImageBoxSettings.scrolled--;}});$('#ArrowRight').click(function(){if($("#ImageBox").hasClass("ImmoImageBox")){var elementToScroll=$("#ImageBox .Article");}else{var elementToScroll=$("#ImageBox .Image");};if((ImageBoxSettings.scrolled==0)&&(ImageBoxSettings.nrofpics>(ImageBoxSettings.visiblepics))){$(elementToScroll).animate({"left":"-="+ImageBoxSettings.scrolloffset+"px"},ImageBoxSettings.scrollspeed);$("#ArrowLeft").enableArrow();if(ImageBoxSettings.scrolled==(ImageBoxSettings.scrollablepics-1)){$("#ArrowRight").disableArrow();}
ImageBoxSettings.scrolled++;}else if(ImageBoxSettings.scrolled>0&&(ImageBoxSettings.scrolled<(ImageBoxSettings.scrollablepics-1))){$(elementToScroll).animate({"left":"-="+ImageBoxSettings.scrolloffset+"px"},ImageBoxSettings.scrollspeed);$("#ArrowLeft").enableArrow();$("#ArrowRight").enableArrow();ImageBoxSettings.scrolled++;}else if(ImageBoxSettings.scrolled==(ImageBoxSettings.scrollablepics-1)){$(elementToScroll).animate({"left":"-="+ImageBoxSettings.scrolloffset+"px"},ImageBoxSettings.scrollspeed);$("#ArrowRight").disableArrow();ImageBoxSettings.scrolled++;}else{}});});TeamdealNewsletterBoxSettings=new Object();TeamdealNewsletterBoxSettings.strInputText="E-Mail-Adresse eingeben";TeamdealNewsletterBoxSettings.strCloseButton="Schließen";TeamdealNewsletterBoxSettings.strHideButton="Schließen";TeamdealNewsletterBoxSettings.strSubmitButton="Newsletter anmelden";TeamdealNewsletterBoxSettings.proxyUrl="/teamdeal_subscribe";TeamdealNewsletterBoxSettings.errorMessage="Bei der Anmeldung ist ein Fehler aufgetreten.";function TeamdealNewsletterBox(){this.Box=null;this.strInputString=TeamdealNewsletterBoxSettings.strInputText;this.strCloseButton=TeamdealNewsletterBoxSettings.strCloseButton;this.strHideButton=TeamdealNewsletterBoxSettings.strHideButton;this.strSubmitButton=TeamdealNewsletterBoxSettings.strSubmitButton;}
TeamdealNewsletterBox.prototype.Init=function(){this.Box=$("div[id='nl_teamdeal']");var thisBox=this;if(getCookie("ShowTeamDeal_nl")==""){var closeButton=thisBox.Box.find("a.close");var submitButton=thisBox.Box.find("input.ButtonTeamDeal");var str1=thisBox.Box.find("input[name='emailnews']");str1.attr("value",this.strInputString);closeButton.text(this.strCloseButton);submitButton.attr("value",this.strSubmitButton);thisBox.Box.css("display","block");}else{thisBox.Box.css("display","none");}};$(document).ready(function(){$("#nl_teamdeal").each(function(i){var td=new TeamdealNewsletterBox($(this));td.Init();});$("#nl_teamdeal a.close").click(function(){_gaq.push(["_trackEvent","TeamDealNewsletter","Close"]);setCookie("ShowTeamDeal_nl","false",365);$("div#nl_teamdeal").css("display","none");});$("#nl_teamdeal a.hide").click(function(){_gaq.push(["_trackEvent","TeamDealNewsletter","Hide"]);setCookie("ShowTeamDeal_nl","false",365);$("div#nl_teamdeal").css("display","none");});$("#nl_teamdeal input.button").click(function(){if(isEmail($("#nl_teamdeal input[name='emailnews']").attr("value"))){$("#nl_teamdeal input[name='emailnews']").css("background-color","#ffffff");var url=TeamdealNewsletterBoxSettings.proxyUrl;var sdata="emailnews="+$("#nl_teamdeal input[name='emailnews']").val()+"&stadtnews="+$("#nl_teamdeal input[name='stadtnews']").val()+"&aktion="+$("#nl_teamdeal input[name='aktion']").val()+"&sub_aktion="+$("#nl_teamdeal input[name='sub_aktion']").val();$.ajax({type:"POST",url:url,data:sdata,success:function(data){$("#nl_teamdeal").addClass("submitted");$("#nl_teamdeal #form_2").css("display","none");$("#nl_teamdeal .close").addClass("hide");$("#nl_teamdeal .close").text(TeamdealNewsletterBoxSettings.strHideButton);$("#nl_teamdeal .close").removeClass("close");},error:function(xhr,ajaxOptions,thrownError){alert(TeamdealNewsletterBoxSettings.errorMessage);}});}else{$("#nl_teamdeal input[name='emailnews']").css("background-color","#cf3f61");};});});function resize_iframe_to_correct_height(height){document.getElementById('iframetoresize').height=parseInt(height)+5;}
;function SearchBox(id){SB=this;$("#SearchSelector").val(id);$("#SearchSelector").mcomSelector({mode:"submit",selectCallback:SB.select,submitCallback:SB.submitCallback});SB.select({value:id});}
SearchBox.prototype.select=function(vals){var searchPhrase=$("#ActiveSearch fieldset:first input:first").val();$("#ActiveSearch").attr("action",$("#"+vals.value).attr("action"));$("#ActiveSearch").attr("method",$("#"+vals.value).attr("method"));$("#ActiveSearch fieldset:first").empty();$("#"+vals.value+" fieldset > *").clone().prependTo($("#ActiveSearch fieldset:first"));if(typeof(searchPhrase)!="undefined"&&searchPhrase!=""){$("#ActiveSearch fieldset:first input:first").val(searchPhrase);$("#ActiveSearch fieldset:first input:first").addClass("Focus");}
$("#ActiveSearch fieldset:first input:first").focus(function(){$("#ActiveSearch fieldset:first input:first").addClass("Focus");});$("#ActiveSearch fieldset:first input:first").blur(function(){if(typeof($("#ActiveSearch fieldset:first input:first").val())=="undefined"||$("#ActiveSearch fieldset:first input:first").val()=="")
$("#ActiveSearch fieldset:first input:first").removeClass("Focus");});};SearchBox.prototype.submitCallback=function(vals){var searchPhrase=$("#ActiveSearch fieldset:first input:first").val();if(typeof(searchPhrase)=="undefined"||searchPhrase=='')
return false;else
return true;}
function initSearchBox(){$("#SearchBox.TabBox input.Text").focus(function(){$("#SearchBox.TabBox input.Text").addClass("Focus");});$("#SearchBox.TabBox input.Text").blur(function(){if(typeof($(this).val())=="undefined"||$(this).val()==""){$("#SearchBox.TabBox input.Text").removeClass("Focus");}
$("#SearchBox.TabBox input.Text").val($(this).val());});}
;function MostViewedBox(strContainerId,iBoxHeight){this.strContainerId=strContainerId;this.iBoxHeight=iBoxHeight;}
MostViewedBox.prototype.Render=function(){var box=$("#"+this.strContainerId);$(box).tabs();$(box).find("div[id!='']").each(function(i){hover($(this).find("div:first"))});$(box).find("div.Item").hoverIntent({over:function(){hover(this);},out:function(){}});$(box).mcomClickableBox();function hover(object){$(object).parent().find(".ui-hover").each(function(i){unhover(this)});$(object).addClass("ui-hover");$(object).find("span.Pic").jrcorner("5px");}
function unhover(object){$(object).removeClass("ui-hover");$(object).find("td:hidden").show();$(object).find("td.Detail").hide();}}
function PromiBlogBox(strContainerId,iBoxHeight){this.strContainerId=strContainerId;this.iBoxHeight=iBoxHeight;}
PromiBlogBox.prototype.Render=function(){var box=$("#"+this.strContainerId);$(box).mcomClickableBox();$(box).find("span.Pic").jrcorner("5px");}
;function loadLeadLink(event,url){var e=event||window.event;var source;if(e.target)
source=e.target;else
source=e.srcElement;if(source.localName.toLowerCase()=='a'){document.location.href=url;}
return false;}
var blank_page="about:blank";function open_window(targetX,name,width,height,posx,posy,windowoptions,init_target){var it,wo,px,py,host,target;it=targetX;wo="location=no,toolbar=no,status=no,statusbar=no,scrollbars=no,resizable=no,dependent=yes";px=py=0;target=targetX;if(typeof new_window!="undefined"){if(new_window.closed!=true){new_window.close();}}
if(typeof posx!="undefined")px=posx;if(typeof posy!="undefined")py=posy;if((typeof windowoptions!="undefined")&&(windowoptions!=""))wo=windowoptions;if(typeof init_target!="undefined"){it=init_target;}else{if(targetX.indexOf("http://")!=-1){host="http://"+window.location.hostname;if(navigator.appName!="Opera"){if(targetX.indexOf(host)==-1)it=blank_page;}}}
new_window=window.open(it,name,"width="+width+",height="+height+","+wo);new_window.location.replace(targetX);new_window.focus();return false;}
function open_window_astitle(target,name,width,height){void(open_window(target,name,width,height));}
function realmedia(path,name,content){var datestr=new Date();url='http://apps.vol.at/tools/realaudio/embed.asp?cont='+content+'&title='+escape(name)+'&file='+escape(path)+"&"+escape(datestr.toLocaleString());if(content=='video'){var rc_video=window.open(url,'rc_video','width=230,height=310,resizable=yes');rc_video.focus();}else{var rc_audio=window.open(url,'rc_audio','width=400,height=40');rc_audio.focus();}}
function CountIt(what)
{var OEWA1="http://austria.oewabox.at/cgi-bin/ivw/CP/"+what;var OEWA2="http://a-vol.oewabox.at/cgi-bin/ivw/CP/"+what;var counter1=new Image;var counter2=new Image;counter1.src=OEWA1+"?r="+escape(document.referrer);counter2.src=OEWA2+"?r="+escape(document.referrer);}
$(document).ready(function(){$("#lf-company .header .link-right").click(function(){if($("#lf-company .details").is(":hidden")){$("#lf-company .details").show("slow");$(this).toggleClass("minimize");$(this).text("minimieren");}else{$("#lf-company .details").slideUp();$(this).toggleClass("minimize");$(this).text("maximieren");}});$('div[id^="nnp-link-right-"]').click(function(){var id=jQuery(this).attr('id').replace('nnp-link-right-','');var comp_div='#nnp-lf-company-'+id;var comp_div_det='#nnp-lf-company-'+id+' .details';if($(comp_div_det).is(":hidden")){$(comp_div_det).show("slow");$(this).toggleClass("minimize");$(this).text("minimieren");}else{$(comp_div_det).slideUp();$(this).toggleClass("minimize");$(this).text("maximieren");}});})
;function forumStatsCount(id){var ivw_px=new Image();var ivw_path=OEWA.replace(OEWA.substr(OEWA.lastIndexOf('/')),id+OEWA.substr(OEWA.lastIndexOf('/')));ivw_px.src=ivw_path+"?r="+escape(document.referrer)+"&d="+(new Date()).getTime();_gaq.push(['_trackEvent','Forum','Rating',id]);}
var forumBadWords=/Anus|Arsch|\bAss\b|Asshole|\bAssi\b|Bastard|Bitch|Blowjob|Bonehead|\bdamn\b|Dildo|Dummkopf|fuck|Fucking|Hure|hurensohn|Idiot|Lesbe|Nerd|Penis|schlampe|schwanz|Shit|Slut/gi;
;function AddArticleForumComments(cn,errorit){if($("#ArticleForumMessages")&&cn!=''){var formPath="/engine.aspx?page=forum-message-list-per-article&cn="+cn+"&forcerefresh=1";$.ajax({url:formPath,async:true,cache:false,success:function(result){var ligatusframe=$("#ArticleForumMessages #Ad_2 .Ligatus iframe").clone();$("#ArticleForumMessages").children().remove();$("#ArticleForumMessages").append(result);$("#ArticleForumMessages > div:eq(1)").after(ligatusframe);InitArticleForum();},error:function(){errorit--;if(errorit>0){AddArticleForumComments(cn,errorit);}else{}}});}}
function InitArticleForum(){$("#descLink").fancybox({'width':'90%','height':'90%','autoScale':false,'transitionIn':'none','transitionOut':'none','type':'iframe'});$("a#fbtrigger").fancybox({'width':480,'height':160,'autoScale':false,'transitionIn':'none','transitionOut':'none','showCloseButton':false,'type':'iframe'});if($('#ModeratedForum').length==1){$('#ForumInfoBox').css('display','block');}
var forumRating=$.cookie('forumRating');if(forumRating!=null){$("select[id='BlendoutForumComments']").val($.cookie('forumRating'));}else{$.cookie('forumRating',$("select[id='BlendoutForumComments']").val(),{expires:730,path:'/'});}
blendComments();if($.cookie('forumFilterHidden')=='true')
{$(".FilterComments").hide();}
$("#FilterComments").click(function(){$(".FilterComments").show();$.cookie('forumFilterHidden',null,{path:'/'});});$("#CloseFilterComments").click(function(){$(".FilterComments").hide();$.cookie('forumFilterHidden',"true",{expires:365,path:'/'});});$("a.FilterHelp").mouseover(function(){$("#FilterHelpText").show();}).mouseout(function(){$("#FilterHelpText").hide();});$("a[href='#forumform']").each(function(){$(this).click(function(){$("#ForumPostForm input[name='replyid']").val($(this).attr("id").replace(/Reply/gi,''));});});if($("#forum_topicid").length>0){var formPath="/engine.aspx?page=forum-post-message";$.ajax({url:formPath,async:true,cache:false,success:function(result){$("#ForumPostForm_Target").html(result);$("#ForumPostForm_Target #Message").val("");$("#ForumPostForm_Target input[name='topicid']").val($("#forum_topicid").val());$("#ForumPostForm_Target input[name='contentid']").val($("#forum_contentid").val());var replyfound=location.href.match(/(replyid\/)(\d+)/g);if(replyfound!=null){var repid=replyfound[0].match(/\d+/g);if(repid!=null){$("#ForumPostForm_Target input[name='replyid']").val(repid);}}
$("#ForumPostForm_Target #ForumLoginForm input:submit").click(function(){var replyid=$("#ForumPostForm_Target input[name='replyid']").val();var errorContainerId="ForumLoginMessage";if(replyid!=''){var successCallback=function(){var loc=location.href.replace(/\/#/g,"#");location.href=loc.replace(/#/g,"/replyid/"+replyid+"#");}}
Navigation.SSOAuthenticateUser($('#ForumLoginUsername').val(),$('#ForumLoginPassword').val(),false,errorContainerId,(replyid==''),successCallback);return false;});$("#ForumPostForm_Target #AddMessage").validate({rules:{Title:{required:true,maxlength:300},Message:"required"},messages:{Title:$("#TitleErrorText").val(),Message:$("#MessageErrorText").val()},errorPlacement:function(error,element){error.insertAfter(element);}});if($("#ForumPostForm_Target #ForumLoginForm").length==0){var checkPath="/engine.aspx?page=forum-moderation-check";$.ajax({url:checkPath,async:true,cache:false,success:function(result){$("#ForumPostForm_Target").append(result);}});}
$("#ForumPostForm_Target #Add").click(function(){if($("#ForumPostForm_Target #AddMessage").valid()){$(this).attr("disabled","disabled");var formvalues=$("#ForumPostForm_Target #AddMessage").serialize()+"&post=1";var response=$.ajax({url:formPath,data:formvalues,async:false,cache:false,type:"POST"}).responseText;if(isNaN(response)){location.refresh();}
else{var loc=location.href;loc=loc.replace(/#(.*)$/gi,"");loc=loc.replace(/\/forcerefresh\/1/gi,"");loc=loc.replace(/\/unique\/(\d)*/gi,"");loc=loc.replace(/\/replyid\/(\d)*/gi,"");if(Navigation.User!=null){$.ajax({url:"/community-service/?method=article.comment",data:{username:Navigation.User.strUserName,password:Navigation.User.strPasswordHash,article_url:loc,article_title:$("h1:first").text(),comment_id:response},async:false,cache:false,type:"POST"});}
forum_rn=new String(Math.random());if($('#ModeratedForum').length==1){$("#fbtrigger").click();$(':input','#AddMessage').not('#Add').val('');}else{location.href=loc+"/forcerefresh/1/unique/"+forum_rn.substring(2,11)+"#fb"+response;}}}});}});}
var hideBadWords=$.cookie('forumHideBadWords');if(hideBadWords!=null){$(".FilterComments #HideBadWords").attr("checked",true);filterBadWords();}
$(".FilterComments #HideBadWords").click(function(){if($(this).is(':checked')){$.cookie('forumHideBadWords','true',{expires:365,path:'/'});filterBadWords();}
else{$.cookie('forumHideBadWords',null,{path:'/'});$("span.Bad").each(function(){$(this).replaceWith($(this).text());});$("span.BadStars").remove();}});var hideComments=$.cookie('forumHideAllComments');if(hideComments!=null){$(".FilterComments #HideAllComments").attr("checked",true);hideAllComments();}
$(".FilterComments #HideAllComments").click(function(){if($(this).is(':checked')){$.cookie('forumHideAllComments','true',{expires:365,path:'/'});hideAllComments();}
else{$.cookie('forumHideAllComments',null,{path:'/'});$("#ArticleForumMessages").show();$("#BlendoutForumComments").removeAttr("disabled");$("#HideBadWords").removeAttr("disabled");}});if(Navigation.User!=null){$(".ArticleForumMessage input[name='usrid'][value='"+Navigation.User.strUserName+"']").each(function(){var msgid=$(this).parent().find("input[name='msgid']").val();var link=$(this).parent().find(".Report");$(link).text("löschen");$(link).removeClass("Report");$(link).addClass("Delete");$(link).click(function(){var status=$.ajax({url:"/engine.aspx?page=forum-rate-message",data:"delete=1&deletemessageid="+msgid,cache:false,async:false}).responseText;if(status=="ok"){$(this).parents(".ArticleForumMessage").hide();}});});}
$("a.Report").each(function(){$(this).click(function(e){var topicid=$("#forum_topicid").val();var replyid=$(this).attr("id").replace(/Report/gi,'');var html=$.ajax({url:"/engine.aspx?page=forum-report-message",data:"topicid="+topicid+"&replyid="+replyid,cache:false,async:false}).responseText;$.blockUI({centerY:true,centerX:true,message:html,css:{top:'-10px',background:'none',border:'none',cursor:'auto'}});$('.blockOverlay').css("cursor","pointer");$("#ForumReportForm input[name='form-redirekt']").val(window.location.href);$("#ForumReportForm input[name='articleurl']").val(window.location.href.replace(/#(.*)$/gi,"")+$("#ForumReportForm input[name='articleurl']").val());$("#ForumReportForm #Report").click(function(){});$('.blockOverlay').click(function(){$.unblockUI();});});});if(location.href.indexOf('#ForumInfoBox')!=-1){}}
function getRating(msgId,rate,countAll,countPos){if(cookiesEnabled()){var sUrl="/engine.aspx?page=forum-rate-message&messageid="+msgId+"&rate="+rate;forumStatsCount("/forumRating");ajaxRating(msgId,rate,countAll,countPos,sUrl);}}
function cookiesEnabled(){$.cookie('testcookiesenabled',null);$.cookie('testcookiesenabled','enabled');if($.cookie('testcookiesenabled')=='enabled'){$.cookie('testcookiesenabled',null);return true;}else{return false;}}
function ajaxRating(msgId,rate,countAll,countPos,url){$.ajax({url:url,async:false,cache:false,success:function(result){var messageContainer=$("#msg"+msgId);if(result=="ok"){countAll++;if(rate=="p"){countPos++;var ratingCounterForm=document.getElementById("NumberOfVotes_"+msgId).num_p
ratingCounterForm.value++;var rateValue=1;$(messageContainer).find(".MessageRatingBar").addClass("positive");$(messageContainer).find(".MessageRatingBar .MessageRatingButton.positive").addClass("ui-hover");}else{var ratingCounterForm=document.getElementById("NumberOfVotes_"+msgId).num_n
ratingCounterForm.value++;var rateValue=-1;$(messageContainer).find(".MessageRatingBar").addClass("negative");$(messageContainer).find(".MessageRatingBar .MessageRatingButton.negative").addClass("ui-hover");}
$(messageContainer).find(".Controls .MessageRatingButton").each(function(){$(this).attr("href","javascript:void(0);");});var ratingCounter=document.getElementById("MessageRatingPaneCount_"+msgId);ratingCounter.innerHTML=Number(ratingCounter.innerHTML)+rateValue;if(Number(ratingCounter.innerHTML)>0){$(ratingCounter).removeClass("negative");$(ratingCounter).addClass("positive");ratingCounter.innerHTML="+"+ratingCounter.innerHTML;}
else if(Number(ratingCounter.innerHTML)<0){$(ratingCounter).removeClass("positive");$(ratingCounter).addClass("negative");}
else{$(ratingCounter).removeClass("positive");$(ratingCounter).removeClass("negative");}
var ratingBar=document.getElementById("NegativeBar_"+msgId);var widthPositiveBar=Math.floor(100*countPos/countAll);ratingBar.innerHTML="<div class='PositiveBar' style='width: "+widthPositiveBar+"px;'> </div>";blendoutForumComments($.cookie('forumRating'));}}});return false;}
function blendComments(){blendoutForumComments($("#BlendoutForumComments").val());}
function blendoutComment(msgId){$("#msg"+msgId).addClass("Inactive");}
function blendinComment(msgId){$("#msg"+msgId).removeClass("Inactive");}
function blendoutForumComments(selVal){$(".ArticleForumMessage").find("form[id^='NumberOfVotes_']").each(function(i){var CommentId=$(this).find("input[name='CommentId']").val();var points=Number($(this).parent().find(".MessageRatingPaneCount").html());if(points<Number(selVal)){blendoutComment(CommentId);}
else{blendinComment(CommentId);}});}
function hideAllComments(){$("#ArticleForumMessages").hide();$(".FilterComments").hide();$("#BlendoutForumComments").attr("disabled","disabled");$("#HideBadWords").attr("disabled","disabled");}
function filterBadWords(){$("#ArticleForumMessages .Message").each(function(){var headLine=$(this).find("h5 span");var bodyText=$(this).find(".Body .Text");headLine.html(replaceBadWords(headLine.html()));bodyText.html(replaceBadWords(bodyText.html()));});return false;}
function replaceBadWords(s){if(s!=null){return s.replace(forumBadWords,function(string2){return"<span class=\"Bad\" style=\"display:none;\">"+string2+"</span><span class=\"BadStars\">"+string2.replace(/(.)/g,"*")+"</span>";});}
else{return"";}}
function toggle(id){var message=$("#"+id);var inactive=$("#"+id+".Inactive").length>0;if(inactive){$(message).removeClass("Inactive");forumStatsCount("/forumRating");}
else{$(message).addClass("Inactive");}
return false;}
;function sendYahooLink(){document.getElementById("YMsend").href="ymsgr:im?+&msg="+location.href;}
$(document).ready(function(){$(".fb_share_no_count .fb_share_count_inner").text("0");$(".fb_share_no_count").removeClass("fb_share_no_count");});function McomWidgetFacebookShare(widgetTarget){var that=this;this.widgetTarget=null;this.contentUrl=null;this.shareCount=null;if(typeof(widgetTarget)!='undefined'&&widgetTarget!=null&&widgetTarget!=""){this.widgetTarget=widgetTarget;}else{this.widgetTarget='.McomWidgetFacebookShare';}
this.getShareCount=function(){fqlUrl="/facebook-api/method/fql.query?query=select like_count, total_count, share_count, click_count from link_stat where url=\""+that.contentUrl+"\"";try{$.ajax({url:fqlUrl,success:function(data,textStatus,xmlHttpRequest){that.shareCount=$(data).find('link_stat > share_count').text();if(that.shareCount==''){that.shareCount=0;}
that.displayShareCount();},dataType:"xml"});}
catch(e){}}
this.displayShareCount=function(){if(that.shareCount<=1000){$(that.widgetTarget+" span").text(that.shareCount);}else{$(that.widgetTarget+" span").text('> 1000');}}
var widgetInitialize=function(){if(typeof(FB.ui)=='function'){that.contentUrl=window.location.href;that.getShareCount();var uiParameters={method:'stream.share',display:'popup',u:that.contentUrl};$(that.widgetTarget).unbind();$(that.widgetTarget).click(function(){FB.ui(uiParameters,function(){that.shareCount++;that.displayShareCount();});});$(that.widgetTarget).show();}}
widgetInitialize();}
;$(document).ready(function(){$("#townsuggestions").mousedown(function(){if(this.value=!''){this.value='';this.style.color='#000000'}
$("#townsuggestions").focus();});var data={action:'get_mht_data'};ajaxurl=report_resources.ajax_url;jQuery.post(ajaxurl,data,function(response){var municipals=response.split('&');$("#townsuggestions").autocomplete(municipals);});});;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value;};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options);});},result:function(handler){return this.bind("result",handler);},search:function(handler){return this.trigger("search",[handler]);},flushCache:function(){return this.trigger("flushCache");},setOptions:function(options){return this.trigger("setOptions",[options]);},unautocomplete:function(){return this.trigger("unautocomplete");}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:false};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=false;return false;}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){hasFocus=1;lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev();}else{onChange(0,true);}
break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next();}else{onChange(0,true);}
break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp();}else{onChange(0,true);}
break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown();}else{onChange(0,true);}
break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=true;var municipal=input.value;rederect(municipal);return false;}
break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break;}}).focus(function(){hasFocus++;}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults();}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,true);}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i<data.length;i++){if(data[i].result.toLowerCase()==q.toLowerCase()){result=data[i];break;}}}
if(typeof fn=="function")fn(result);else $input.trigger("result",result&&[result.data,result.value]);}
$.each(trimWords($input.val()),function(i,value){request(value,findValueCallback,findValueCallback);});}).bind("flushCache",function(){cache.flush();}).bind("setOptions",function(){$.extend(options,arguments[1]);if("data"in arguments[1])
cache.populate();}).bind("unautocomplete",function(){select.unbind();$input.unbind();$(input.form).unbind(".autocomplete");});function selectCurrent(){var selected=select.selected();if(!selected)
return false;var v=selected.result;previousValue=v;if(options.multiple){var words=trimWords($input.val());if(words.length>1){var seperator=options.multipleSeparator.length;var cursorAt=$(input).selection().start;var wordAt,progress=0;$.each(words,function(i,word){progress+=word.length;if(cursorAt<=progress){wordAt=i;return false;}
progress+=seperator;});words[wordAt]=v;v=words.join(options.multipleSeparator);}
v+=options.multipleSeparator;}
$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return true;}
function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return;}
var currentValue=$input.val();if(!skipPrevCheck&&currentValue==previousValue)
return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase)
currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow);}else{stopLoading();select.hide();}};function trimWords(value){if(!value)
return[""];if(!options.multiple)
return[$.trim(value)];return $.map(value.split(options.multipleSeparator),function(word){return $.trim(value).length?$.trim(word):null;});}
function lastWord(value){if(!options.multiple)
return value;var words=trimWords(value);if(words.length==1)
return words[0];var cursorAt=$(input).selection().start;if(cursorAt==value.length){words=trimWords(value)}else{words=trimWords(value.replace(value.substring(cursorAt),""));}
return words[words.length-1];}
function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$(input).selection(previousValue.length,previousValue.length+sValue.length);}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200);};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""));}
else{$input.val("");$input.trigger("result",null);}}});}};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show();}else{hideResultsNow();}};function request(term,success,failure){if(!options.matchCase)
term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data);}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param;});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({q:lastWord(term),limit:options.max},extraParams),success:function(data){var parsed=options.parse&&options.parse(data)||parse(data);cache.add(term,parsed);success(term,parsed);}});}else{select.emptyList();failure(term);}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i<rows.length;i++){var row=$.trim(rows[i]);if(row){row=row.split("|");parsed[parsed.length]={data:row,value:row[0],result:options.formatResult&&options.formatResult(row,row[0])||row[0]};}}
return parsed;};function stopLoading(){$input.removeClass(options.loadingClass);};};$.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(row){return row[0];},formatMatch:null,autoFill:false,width:192,multiple:false,multipleSeparator:", ",highlight:function(value,term){return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");},scroll:true,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase)
s=s.toLowerCase();var i=s.indexOf(sub);if(options.matchContains=="word"){i=s.toLowerCase().search("\\b"+sub.toLowerCase());}
if(i==-1)return false;return i==0||options.matchContains;};function add(q,value){if(length>options.cacheLength){flush();}
if(!data[q]){length++;}
data[q]=value;}
function populate(){if(!options.data)return false;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i<ol;i++){var rawValue=options.data[i];rawValue=(typeof rawValue=="string")?[rawValue]:rawValue;var value=options.formatMatch(rawValue,i+1,options.data.length);if(value===false)
continue;var firstChar=value.charAt(0).toLowerCase();if(!stMatchSets[firstChar])
stMatchSets[firstChar]=[];var row={value:value,data:rawValue,result:options.formatResult&&options.formatResult(rawValue)||value};stMatchSets[firstChar].push(row);if(nullData++<options.max){stMatchSets[""].push(row);}};$.each(stMatchSets,function(i,value){options.cacheLength++;add(i,value);});}
setTimeout(populate,25);function flush(){data={};length=0;}
return{flush:flush,add:add,populate:populate,load:function(q){if(!options.cacheLength||!length)
return null;if(!options.url&&options.matchContains){var csub=[];for(var k in data){if(k.length>0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x);}});}}
return csub;}else
if(data[q]){return data[q];}else
if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x;}});return csub;}}}
return null;}};};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=true,element,list;function init(){if(!needsInit)
return;element=$("<div/>").hide().addClass(options.resultsClass).css("position","absolute").appendTo(document.body);list=$("<ul/>").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE);}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();var municipal=input.value;rederect(municipal);return false;}).mousedown(function(){config.mouseDownOnSelect=true;}).mouseup(function(){config.mouseDownOnSelect=false;});if(options.width>0)
element.css("width",options.width);needsInit=false;}
function target(event){var element=event.target;while(element&&element.tagName!="LI")
element=element.parentNode;if(!element)
return[];return element;}
function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight;});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight());}else if(offset<list.scrollTop()){list.scrollTop(offset);}}};function movePosition(step){active+=step;if(active<0){active=listItems.size()-1;}else if(active>=listItems.size()){active=0;}}
function limitNumberOfItems(available){return options.max&&options.max<available?options.max:available;}
function fillList(){list.empty();var max=limitNumberOfItems(data.length);for(var i=0;i<max;i++){if(!data[i])
continue;var formatted=options.formatItem(data[i].data,i+1,max,data[i].value,term);if(formatted===false)
continue;var li=$("<li/>").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i]);}
listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0;}
if($.fn.bgiframe)
list.bgiframe();}
return{display:function(d,q){init();data=d;term=q;fillList();},next:function(){moveSelect(1);},prev:function(){moveSelect(-1);},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active);}else{moveSelect(-8);}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active);}else{moveSelect(8);}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1;},visible:function(){return element&&element.is(":visible");},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0]);},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:$(input).width(),top:offset.top+input.offsetHeight,left:offset.left}).show();if(options.scroll){list.scrollTop(0);list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight;});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")));}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data");},emptyList:function(){list&&list.empty();},unbind:function(){element&&element.remove();}};};$.fn.selection=function(start,end){if(start!==undefined){return this.each(function(){if(this.createTextRange){var selRange=this.createTextRange();if(end===undefined||start==end){selRange.move("character",start);selRange.select();}else{selRange.collapse(true);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select();}}else if(this.setSelectionRange){this.setSelectionRange(start,end);}else if(this.selectionStart){this.selectionStart=start;this.selectionEnd=end;}});}
var field=this[0];if(field.createTextRange){var range=document.selection.createRange(),orig=field.value,teststring="<->",textLength=range.text.length;range.text=teststring;var caretAt=field.value.indexOf(teststring);field.value=orig;this.selection(caretAt,caretAt+textLength);return{start:caretAt,end:caretAt+textLength}}else if(field.selectionStart!==undefined){return{start:field.selectionStart,end:field.selectionEnd}}};function rederect(municipal){municipal=replmunicipalumlauts(municipal);var normalizedtownname=municipal.toLowerCase();if(normalizedtownname=="st. anton"){normalizedtownname="stanton";}else if(normalizedtownname=="st. gallenkirch"){normalizedtownname="stgallenkirch";}else if(normalizedtownname=="st. gerold"){normalizedtownname="stgerold";}
setMeineGemeindeCookie(normalizedtownname);var data={action:'get_mht_domain'};ajaxurl=report_resources.ajax_url;jQuery.post(ajaxurl,data,function(response){window.location="http://"+normalizedtownname+"."+response;});}
function replmunicipalumlauts(municipal){municipal=municipal.replace("ă","a");municipal=municipal.replace("â","a");municipal=municipal.replace("î","i");municipal=municipal.replace("ţ","t");municipal=municipal.replace("ş","s");municipal=municipal.replace("á","a");municipal=municipal.replace("é","e");municipal=municipal.replace("ő","o");municipal=municipal.replace("ó","o");municipal=municipal.replace("ú","u");municipal=municipal.replace("ű","u");municipal=municipal.replace("ä","ae");municipal=municipal.replace("ü","ue");municipal=municipal.replace("ö","oe");municipal=municipal.replace("Ä","ae");municipal=municipal.replace("Ü","ue");municipal=municipal.replace("Ö","oe");municipal=municipal.replace("ß","ss");return municipal;}
function setMeineGemeindeCookie(value){var days=30*365;if(value!='meinegemeinde')
var data={action:'get_mht_domain'};ajaxurl=report_resources.ajax_url;jQuery.post(ajaxurl,data,function(response){$.cookie('CurrentCity',value,{path:'/',expires:days,domain:response});});}})(jQuery);
;addComment={moveForm:function(d,f,i,c){var m=this,a,h=m.I(d),b=m.I(i),l=m.I("cancel-comment-reply-link"),j=m.I("comment_parent"),k=m.I("comment_post_ID");if(!h||!b||!l||!j){return}m.respondId=i;c=c||false;if(!m.I("wp-temp-form-div")){a=document.createElement("div");a.id="wp-temp-form-div";a.style.display="none";b.parentNode.insertBefore(a,b)}h.parentNode.insertBefore(b,h.nextSibling);if(k&&c){k.value=c}j.value=f;l.style.display="";l.onclick=function(){var n=addComment,e=n.I("wp-temp-form-div"),o=n.I(n.respondId);if(!e||!o){return}n.I("comment_parent").value="0";e.parentNode.insertBefore(o,e);e.parentNode.removeChild(e);this.style.display="none";this.onclick=null;return false};try{m.I("comment").focus()}catch(g){}return false},I:function(a){return document.getElementById(a)}};
;$(window).scroll(function(){try{var startposSticky=1075;var startposSticky2=4010;var superbannerHeight=0;if($('#Ad_SuperBannerXL'))
superbannerHeight=$('#Ad_SuperBannerXL').height();if($('#Ad_Sticky').length){if($(window).scrollTop()-superbannerHeight>startposSticky&&$(window).scrollTop()+$('#Ad_Sticky').height()<startposSticky2){$('#Ad_Sticky').animate({top:($(window).scrollTop()-superbannerHeight)},"fast","linear");}
else if($(window).scrollTop()-superbannerHeight<=startposSticky&&($('#Ad_Sticky').position().top!=startposSticky)){$('#Ad_Sticky').animate({top:startposSticky},"fast","linear");}}
if($('#Ad_Sticky2').length){if(!isScrollBottom()&&$(window).scrollTop()>startposSticky2){$('#Ad_Sticky2').animate({top:($(window).scrollTop()-superbannerHeight)},"fast","linear");}
else if($(window).scrollTop()-superbannerHeight<=startposSticky2&&($('#Ad_Sticky2').position().top!=startposSticky2)){$('#Ad_Sticky2').animate({top:startposSticky2},"fast","linear");}}}catch(c){}});function isScrollBottom(){var documentHeight=$(document).height();var scrollPosition=$(window).height()+$(window).scrollTop()+$('#Ad_Sticky2').scrollTop();return(documentHeight==scrollPosition);}
;function ajaxLiveTicker(url,elementId,speed){var ticker_request=false;if(elementId.indexOf('Raiba')>-1){checkRaibaCookie();}
try{ticker_request=new XMLHttpRequest();}catch(trymicrosoft){try{ticker_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{ticker_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}
ticker_request.onreadystatechange=function(){loadLiveTicker(ticker_request,elementId,speed)}
ticker_request.open("GET",url,true);ticker_request.send(null);}
function loadLiveTicker(ticker_request,elementId,speed){if(ticker_request.readyState==4&&(ticker_request.status==200||window.location.href.indexOf("http")==-1)){var ticker_text=clearTickerString(ticker_request.responseText);var ticker_start=0;if(ticker_text.length>=45&&ticker_text.lastIndexOf("++")!=(ticker_text.length-2)){ticker_text=ticker_text+" +++ ";}
if(ticker_text.length<50){while(ticker_text.length<50){ticker_text=" "+ticker_text+" ";}}
var ticker_stop=ticker_text.length;displayTicker(ticker_text,ticker_start,ticker_stop,elementId,speed);}}
function displayTicker(ticker_text,ticker_start,ticker_stop,elementId,speed){document.getElementById(elementId).value=""+ticker_text.substring(ticker_start,ticker_stop)+" "+ticker_text.substring(0,ticker_start);ticker_start++;if(ticker_start>=ticker_stop){ticker_start=0;}
ticker_text=ticker_text.replace("'","\\'");setTimeout("displayTicker('"+ticker_text+"',"+ticker_start+","+ticker_stop+", '"+elementId+"', "+speed+")",speed);}
function clearTickerString(s){s=s.replace(/^(\s|\n|\r)*((.|\n|\r)*?)(\s|\n|\r)*$/g,"$2");s=s.replace(/(\s(?!(\n|\r))(?=\s))+/g,"");s=s.replace(/(\n|\r)+/g,"\n\r");s=s.replace(/(\n|\r)\s/g,"$1");s=s.replace(/\s(\n|\r)/g,"$1");return(s);}
function checkRaibaCookie(){if(parseInt($.cookie("raibaticker"))==3){$("#Ad_RaibaTicker .RaibaTicker").css({backgroundPosition:"left -250px"});$("#Ad_RaibaTicker input").css({display:"none"});}}
function fill_static_text(url,elementId){var text_request=false;try{text_request=new XMLHttpRequest();}catch(trymicrosoft){try{ttext_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{text_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}
text_request.onreadystatechange=function(){if(text_request.readyState==4&&(text_request.status==200||window.location.href.indexOf("http")==-1)){var text=text_request.responseText;document.getElementById(elementId).innerHTML=text;}}
text_request.open("GET",url,true);text_request.send(null);}
$(document).ready(function(){if(parseInt($.cookie("raibaticker"))==3){$("#Ad_RaibaTicker a").attr("href","http://www.raiba.at/mail2.asp?c=/pages/webtv.htm");};$("#Ad_RaibaTicker a").click(function(){if($.cookie('raibaticker')==""){$.cookie('raibaticker',0,{path:'/',expires:1});}
var cookieValue=parseInt($.cookie('raibaticker'));if(cookieValue<3)
{cookieValue=cookieValue+1;}else{cookieValue=1;}
$.cookie('raibaticker',cookieValue,{path:'/',expires:1})});});
;var prefix="galerie-anzeigen";var internalPrefix="show-gallery";var galleryAdverserveAdId="Top2";var gallerySlideshowSettings={displayAdverserveAd:true,gallerylink:null,displayThumbnailsNavigationArrows:false,numberOfThumbnails:0,imageWidth:930,imageHeight:600,imageResizerUrl:"http://thumbs.tele.net/?maxh=600&maxw=930&url=",forceResize:true,loadIndicator:true,useGA:true,usePiwik:true,useWT:true,useOEWA:true};
;$('a[href*="'+prefix+'"]').live("click",function(){if(typeof disabled_event=="undefined"||disabled_event==false){showGalleryLightbox((this.href).replace(prefix,internalPrefix),gallerySlideshowSettings);this.onclick=function(){return false};}
return false;});$(document).ready(function(){try{loaderBar=new Image();loaderBar.src="http://www.vol.at/SysRes/GLOBALSkin/Groups/GalleryViewer/loadingAnimation.gif";}
catch(e){}
$(document).ajaxError(function(event,request,settings){removeGalleryLightboxOnError();});});function showGalleryLightbox(url,gallerySlideshowSettings){if(!($("#galleryLightbox").length))
{adverserveurl="/galleryLightboxAd/"+OAS_sitepage+"/1"+new Date().getTime()+"@"+galleryAdverserveAdId;try{$.ajax({url:adverserveurl,cache:true,async:false,success:function(html){if(html.indexOf("default/empty.gif")>-1){gallerySlideshowSettings.displayAdverserveAd=false;};}});}catch(e){gallerySlideshowSettings.displayAdverserveAd=false;};if(!($("#galleryLightboxOverlay").length))
{$("body").append("<div id='galleryLightboxOverlay'></div><div id='galleryLightboxLoader'><img src='"+loaderBar.src+"' /></div>");}
$("#galleryLightboxOverlay, #galleryLightboxLoader").fadeIn(500,function(){if(typeof OAS_listpos!="undefined"){adPositions=OAS_listpos.split(",");for(var i=0;i<adPositions.length;i++){$("#AdContainer_"+adPositions[i]).fadeTo("slow",0.1,function(){$(this).css({'visibility':'hidden'});});}}
$("#Ad_Win2day").fadeTo("slow",0.1,function(){$(this).css({'visibility':'hidden'});});$('embed, iframe, object').each(function(){$(this).fadeTo("slow",0.1,function(){$(this).css({'visibility':'hidden'});});});$('#PortalMainNavigation').css({'z-index':'1'});var link=getparameter("link",url);if(link!=null){link=link.replace(/%2F/g,"/");gallerySlideshowSettings.gallerylink="<a href='"+link+"'> << Zum Artikel</a>";}});var ie6=$.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);if(ie6)
{var galleryLightboxOverlay=$('#galleryLightboxOverlay');galleryLightboxOverlay.css('position','absolute');$.each([galleryLightboxOverlay[0]],function(i,o){var s=o.style;s.position='absolute';s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) + "px"');});}
try{$.ajax({url:url,cache:true,async:true,success:function(html){$("#galleryLightbox").remove();$("body").append('<div id="galleryLightbox"></div>');$("#galleryLightbox").append(html);if(gallerySlideshowSettings.displayAdverserveAd){$('#galleryLightbox').css({'left':'0px'});$('#galleryLightbox').css({'margin-left':'5px'});}
if(ie6)
{var galleryLightbox=$('#galleryLightbox');var galleryLightboxLoader=$('#galleryLightboxLoader');$.each([galleryLightbox[0],galleryLightboxLoader[0]],function(i,o){var s=o.style;s.position='absolute';s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (bla = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');});}
$("#galleryLightbox").fadeIn("slow");$(".close").click(removeGalleryLightbox);$("#gallery-wrapper").ready(function(){$("#gallery-wrapper").gallery(gallerySlideshowSettings);$("#galleryLightboxLoader").fadeOut("fast");});}});$("#galleryLightboxOverlay").click(removeGalleryLightbox);document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}
else{keycode=e.which;}
if(keycode==27){removeGalleryLightbox();}};}
catch(e)
{removeGalleryLightboxOnError();}
return false;}}
function removeGalleryLightbox(){$("#galleryLightboxOverlay").unbind("click");$("#galleryLightbox").fadeOut("slow",function(){$('#galleryLightbox, #galleryLightboxOverlay, #galleryLightboxLoader').unbind().remove();if(typeof OAS_listpos!="undefined")
{adPositions=OAS_listpos.split(",");for(var i=0;i<adPositions.length;i++)
{$("#AdContainer_"+adPositions[i]).css({'visibility':'visible'}).fadeTo("slow",1);}}
$("#Ad_Win2day").css({'visibility':'visible'}).fadeTo("slow",1);$('embed, iframe, object').each(function(){$(this).css({'visibility':'visible'}).fadeTo("slow",1);});$('#PortalMainNavigation').css({'z-index':'10001'});});document.onkeydown="";return false;}
function removeGalleryLightboxOnError(){$('#galleryLightboxOverlay, #galleryLightboxLoader').unbind().remove();return false;}
function getparameter(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);if(results==null)
return null;else
return results[1];}
;(function($){$.fn.gallery=function(options){var defaults={imageIndex:0,pageIndex:0,useKeyboardShortcuts:false,displayImageNavigationArrows:true,displayThumbnailsNavigationArrows:true,numberOfThumbnails:4,imageFading:true,imageFadeInSpeed:400,thumbsFadeInSpeed:600,thumbsFadeInInterval:75,thumbsFadeOutSpeed:400,loadIndicator:false,imageWidth:590,imageHeight:390,imageResizerUrl:"http://thumbs.tele.net/?maxh=390&maxw=590&url=",forceResize:false,useGA:true,usePiwik:true,useWT:true,useOEWA:true,displayAdverserveAd:false,displayDescription:true,cache:true};var opts=$.extend(defaults,options);var galleryName=$('#gallery-wrapper').attr("name");var currentImage=parseInt(opts.imageIndex);var currentPage=parseInt(opts.pageIndex);var click_count=0;var totalImages=parseInt($('.gallery-more ul').children().length);var totalPages=parseInt((totalImages-1)/opts.numberOfThumbnails);return this.each(function(){$this=$(this);var o=$.meta?$.extend({},opts,$this.data()):opts;images=[];imageObjects=[];$('.gallery-pagination .total-pos').html(totalImages);thumblinks=$(".gallery-more ul li a");for(var x=0;x<thumblinks.length;x++){thumblink=thumblinks.eq(x);thumblink.addClass("t"+x);images.push({url:(o.cache)?thumblink.attr("href"):thumblink.attr("href")+"?c="+(new Date()).getTime(),title:unescape(thumblink.children("img").attr("alt")),imageHeight:parseInt(thumblink.attr("height")),imageWidth:parseInt(thumblink.attr("width"))});}
if(o.useOEWA&&navigator.userAgent.match(/iPad/i)==null){oewaImg=new Image();oewaImg.id="oewaLoader";oewaImg.src="";$('#gallery-wrapper').append(oewaImg);}
showImage(images[0]);if(o.numberOfThumbnails>0)
showThumbnails(0);if(o.displayImageNavigationArrows)
updateImageNav();else
$('a.prev, a.next').hide();if(o.displayThumbnailsNavigationArrows&&totalPages>0)
updateThumbsNav(0);else
$('a.more-prev, a.more-next').hide();if(!o.displayDescription)
$('div.gallery-title').hide();$('.gallery-more ul li a',this).click(function(){$(this).removeClass('active');var thumbClass=$(this).attr("class");var thumbId=parseInt(thumbClass.slice(1,thumbClass.length));currentImage=thumbId;$(this).addClass('active');showImage(images[currentImage]);updateImageNav();return false;});$('.gallery-hover-nav span',this).click(function(){$('.gallery-more ul li a').removeClass('active');var thumbId=parseInt($(this).attr("rel"));$('.gallery-more ul li a.t'+thumbId).addClass('active');currentImage=thumbId;showImage(images[currentImage]);updateImageNav();imgOnPage=parseInt(currentImage/o.numberOfThumbnails);if(currentPage!=imgOnPage){showThumbnails(imgOnPage);updateThumbsNav(imgOnPage);}
return false;});$('.gallery-more-paging a',this).click(function(){var page=$(this).attr("rel");showThumbnails(page);updateThumbsNav(page);return false;});$('.gallery-hover-nav a.prev',this).click(function(){$('.gallery-hover-nav span.prev').click();return false;});$('.gallery-hover-nav a.next',this).click(function(){$('.gallery-hover-nav span.next').click();return false;});function showImage(img){if(o.loadIndicator){$("#galleryLightboxLoader").show();}
var img_alt=null;if(gallerySlideshowSettings.gallerylink!=null){if(img.title==""){img_alt=gallerySlideshowSettings.gallerylink;}else{img_alt=(gallerySlideshowSettings.gallerylink+" - ").concat(img.title);}}else{img_alt=img.title;}
var img_url=img.url;$('.gallery-title').css({'color':'#ffffff'});$('.gallery-title').html(img_alt);if(o.imageFading){$('#gallery-image img').fadeOut("fast");}
$('#gallery-wrapper .Download').attr("href",img_url.replace("galerie-anzeigen","galerie-speichern"));if(img.imageWidth>o.imageWidth||img.imageHeight>o.imageHeight||o.forceResize)
img_url=getImgSrc(img_url);var img=new Image();$(img).load(function(){if(o.imageFading){$(this).hide();}
$('#gallery-image img').after(this).remove();if(o.imageFading){$(this).fadeIn(o.imageFadeInSpeed);if(o.loadIndicator){$("#galleryLightboxLoader").fadeOut("fast");}}
else{$(this).css("display","block");if(o.loadIndicator){$("#galleryLightboxLoader").hide();}}
if(img_alt.length>0||typeof img_alt=="undefined"){$('.gallery-title').css({'color':'#666666'});}
if(currentImage<totalImages-1){preImg=images[currentImage+1];preImg_url=preImg.url;tmp_preImg=new Image();if(preImg.imageWidth>o.imageWidth||preImg.imageHeight>o.imageHeight||o.forceResize)
preImg_url=getImgSrc(preImg_url);tmp_preImg.src=preImg_url;}}).error(function(){}).attr('src',img_url);updateStatistics();};function getImgSrc(img_url){var portal_domain=new String(location.host);domain=portal_domain.match(/(.*)?(.vol.at)/);if(typeof domain!="undefined"&&domain!=null){if(domain[1]!="www"&&domain[1]!="redesign"&&domain[1]!="meinegemeinde"&&domain[1]!="livecams"&&domain[1]!="livecams-dev"&&domain[1]!="girl"&&domain[1]!="girl-dev"){portal_domain="gemeinde"+domain[2];}}
if(img_url.indexOf("http://")>-1){img_url=img_url.replace(/http:\/\//,"");img_url=img_url.substring(img_url.indexOf("/"),img_url.length);}
return o.imageResizerUrl+urlencode("http://"+portal_domain+img_url);}
function showThumbnails(thumbsPage){thumbsActive=$('.gallery-more .activeThumb, .gallery-more-paging');if(thumbsActive.length>0){thumbsActive.fadeOut(o.thumbsFadeOutSpeed,function(){setTimeout(function(){thumbs=$('.gallery-more ul li');for(var j=0;j<o.numberOfThumbnails;j++){elem=(thumbsPage*o.numberOfThumbnails)+j;thumbs.eq(elem).addClass("activeThumb");setTimeout('thumbs.eq('+elem+').fadeIn('+o.thumbsFadeInSpeed+')',o.thumbsFadeInInterval*j);}},300);});}
else{setTimeout(function(){thumbs=$('.gallery-more ul li');for(var j=0;j<o.numberOfThumbnails;j++){elem=(thumbsPage*o.numberOfThumbnails)+j;thumbs.eq(elem).addClass("activeThumb");setTimeout('thumbs.eq('+elem+').fadeIn('+o.thumbsFadeInSpeed+')',o.thumbsFadeInInterval*j);}},300);}
if(o.displayThumbnailsNavigationArrows){$('.gallery-more-paging').fadeIn(' + o.thumbsFadeInSpeed + ');}
else{$('.gallery-more-paging').hide();}};function updateImageNav(){$('.gallery-pagination .current-pos').html(currentImage+1);var prev_image_thumb=currentImage;if(currentImage<=0){prev_image_thumb=totalImages-1;}else{prev_image_thumb=currentImage-1;}
var next_image_thumb=currentImage;if(currentImage>=totalImages-1){next_image_thumb=0;}else{next_image_thumb=currentImage+1;}
$('.gallery-hover-nav span.prev').attr("rel",prev_image_thumb);$('.gallery-hover-nav span.next').attr("rel",next_image_thumb);};function updateThumbsNav(thumbsPage){thumbsPage=parseInt(thumbsPage);currentPage=thumbsPage;pagePrev=thumbsPage-1;pageNext=thumbsPage+1;if(pagePrev<0){pagePrev=totalPages;}
if(pageNext>totalPages){pageNext=0;}
$('.gallery-more-paging a.more-prev').attr("rel",pagePrev);$('.gallery-more-paging a.more-next').attr("rel",pageNext);};function urlencode(str){return escape(str).replace(/\+/g,'%2B').replace(/%20/g,'+').replace(/\*/g,'%2A').replace(/\//g,'%2F').replace(/@/g,'%40');}
function gup(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)
return"";else
return results[1];}
if(o.useKeyboardShortcuts){document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}
else{keycode=e.which;}
switch(keycode){case 37:$('.gallery-hover-nav span.prev').click();break;case 39:$('.gallery-hover-nav span.next').click();break;}};}
function updateStatistics(){var statGalleryStr="/bildserie/"+(galleryName).replace(/[^a-zA-Z0-9]/g,'_');var statStr=statGalleryStr+"/"+parseInt(currentImage+1);click_count=click_count+1;if(o.useGA){try{_gaq.push(["_setCustomVar",1,"Editor",stats.author,3],["_setCustomVar",3,"Gallery",stats.id,3]);_gaq.push(['_trackPageview']);}catch(c){}}
if(o.usePiwik){try{var gallery={'editor':stats.author,'id':stats.id,'group':stats.parentAlbum,'title':stats.title,'start':stats.date};var data={'gallery':gallery};piwikTracker.setCustomData(data);piwikTracker.trackPageView();}catch(c){}}
if(o.useOEWA&&navigator.userAgent.match(/iPad/i)==null){modOEWA=OEWA.replace("http://","");agency=modOEWA.substring(modOEWA.lastIndexOf("/")+1);elements=modOEWA.split("/");if(modOEWA.indexOf("Homepage")>-1){elements[5]="Nachrichten";elements[6]="LokaleNachrichten";}
oewaPixelUrl="http://"+elements[0]+"/"+elements[1]+"/"+elements[2]+"/"+elements[3]+"/"+elements[4]+"/"+elements[5]+"/"+elements[6]+statGalleryStr+"/"+agency;oewaPixel=$("#oewaLoader");oewaPixel.attr("src",oewaPixelUrl+"?"+(new Date()).getTime());}
if(o.useWT){dcsMultiTrack("DCS.dcsuri","/galleries","DCSext.diashow_page",galleryName,"DCSext.img_cat_1",location.hostname,"DCSext.img_cat_2",galleryName,"DCSext.img_cat_3",parseInt(currentImage+1)+"/"+totalImages);}
if(o.displayAdverserveAd&&typeof OAS_sitepage!="undefined"){adverserveurl="http://austria1.adverserve.net/RealMedia/ads/adstream_sx.ads/"+OAS_sitepage+"/1"+new Date().getTime()+"@"+galleryAdverserveAdId;if($('#AdContainer_Top2').attr("src")==''||(parseInt(click_count)%10==0)){$('#AdContainer_Top2').attr("src",adverserveurl);};}
else{$('#AdverserveContainer').remove();}}});};})(jQuery);
;if(window.location.pathname.indexOf(prefix)>=0)
$(document).ready(function(){showGalleryLightbox((window.location.pathname).replace(prefix,internalPrefix),gallerySlideshowSettings);});
;function toggleCharts(id){$("#List_"+id+"  li:gt(9)").toggle();$("#More_"+id).toggle();}
;function toggleTableRows(linkID,tableID){var a=$("#"+linkID);var table=$("."+tableID);if(a.is(".More")){table.find("tr").show();}else{table.find("tr").each(function(i){if(i>10){$(this).hide();};});};a.toggleClass("More").toggleClass("Less");}
$(document).ready(function(){$(".zeile").mouseover(function(){$(this).addClass("Over");}).mouseout(function(){$(this).removeClass("Over");});$(".TROW1").mouseover(function(){$(this).addClass("Over");}).mouseout(function(){$(this).removeClass("Over");});$(".TROW2").mouseover(function(){$(this).addClass("Over");}).mouseout(function(){$(this).removeClass("Over");});var i=0;$(".SoccerTable").each(function(a){if(!($(this).is(".SoccerRankings"))){i=0;$(this).find("tr").each(function(i){if(i>11){$(this).hide();};});};});$("a").click(function(){if($(this).attr("id")=="SoccerLink_Schedules"){toggleTableRows($(this).attr("id"),"SoccerSchedules");}
if($(this).attr("id")=="SoccerLink_Results"){toggleTableRows($(this).attr("id"),"SoccerResults");}
if($(this).attr("id")=="SoccerLink_Scorers"){toggleTableRows($(this).attr("id"),"SoccerScorers");}});});
;$(document).ready(function(){var now=new Date();if(now.getDate()==31&&now.getMonth()==9){$("#Logo a").append("<div class=\"Halloween\"> </div>");}});
;StartpageBoxSettings=new Object();StartpageBoxSettings.strPortalDomain="vol.at";StartpageBoxSettings.str1="Noch schneller informiert";StartpageBoxSettings.str2="Machen Sie VOL.at zu Ihrer Startseite.";StartpageBoxSettings.strCloseButton="schließen";StartpageBoxSettings.strButton="VOL.at als Startseite";function asStartpageBox(){this.Box=null;this.strPortalDomain=StartpageBoxSettings.strPortalDomain;this.str1=StartpageBoxSettings.str1;this.str2=StartpageBoxSettings.str2;this.strCloseButton=StartpageBoxSettings.strCloseButton;this.strButton=StartpageBoxSettings.strButton;}
function IEAsUserAgent(){var ff=/Firefox/;var op=/Opera/;var ns=/Netscape/;var s=/Safari/;if(!(ff.exec(navigator.userAgent))&&!(op.exec(navigator.userAgent))&&!(ns.exec(navigator.userAgent))&&!(s.exec(navigator.userAgent)))
{return true;}else{return false;}}
function setCookie(c_name,value,expiredays)
{var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+
((expiredays==null)?"":";expires="+exdate.toGMTString());}
function getCookie(c_name)
{if(document.cookie.length>0)
{c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1)
{c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
asStartpageBox.prototype.Init=function(){this.Box=$("div[id='asStartpageIE']");var thisBox=this;if(IEAsUserAgent()==true){if(getCookie("showAsStartpageBox")==""){setCookie("showAsStartpageBox","true",356);}
if(getCookie("showAsStartpageBox")=="true")
{var str1=thisBox.Box.find("div.str1");var str2=thisBox.Box.find("div.str2");var Button1=thisBox.Box.find("a.close");var Button2=thisBox.Box.find("a.asStartpageButton");str1.text(this.str1);str2.text(this.str2);Button1.text(this.strCloseButton);Button2.text(this.strButton);Button2.attr("href","#");thisBox.Box.css("display","block");}else{thisBox.Box.css("display","none");}}else{thisBox.Box.css("display","none");}}
$(document).ready(function(){$("#asStartpageIE a.close").click(function(){_gaq.push(["_trackEvent","SetAsStartpage","Cose"]);setCookie("showAsStartpageBox","false",365);$("div#asStartpageIE").css("display","none");});$("#asStartpageIE a.asStartpageButton").click(function(){if(IEAsUserAgent()==true){this.style.behavior='url(#default#Homepage)';this.setHomepage('http://www.'+StartpageBoxSettings.strPortalDomain);this.href="#";_gaq.push(["_trackEvent","SetAsStartpage","Submit"]);$("div#asStartpageIE").css("display","none");}});});
;(function(b){var i=b.browser.msie&&parseInt(b.browser.version)==6&&typeof window.XMLHttpRequest!="object",j=null,d=[];b.modal=function(a,c){return b.modal.impl.init(a,c)};b.modal.close=function(){b.modal.impl.close()};b.fn.modal=function(a){return b.modal.impl.init(this,a)};b.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,
maxWidth:null,autoResize:false,autoPosition:true,zIndex:1E3,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:true,overlayClose:false,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null};b.modal.impl={o:null,d:{},init:function(a,c){if(this.d.data)return false;j=b.browser.msie&&!b.boxModel;this.o=b.extend({},b.modal.defaults,c);this.zIndex=this.o.zIndex;this.occb=false;if(typeof a=="object"){a=a instanceof jQuery?a:b(a);
this.d.placeholder=false;if(a.parent().parent().size()>0){a.before(b("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"}));this.d.placeholder=true;this.display=a.css("display");if(!this.o.persist)this.d.orig=a.clone(true)}}else if(typeof a=="string"||typeof a=="number")a=b("<div></div>").html(a);else{alert("SimpleModal Error: Unsupported data type: "+typeof a);return this}this.create(a);this.open();b.isFunction(this.o.onShow)&&this.o.onShow.apply(this,[this.d]);return this},
create:function(a){d=this.getDimensions();if(this.o.modal&&i)this.d.iframe=b('<iframe src="javascript:false;"></iframe>').css(b.extend(this.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:d[0],width:d[1],zIndex:this.o.zIndex,top:0,left:0})).appendTo(this.o.appendTo);this.d.overlay=b("<div></div>").attr("id",this.o.overlayId).addClass("simplemodal-overlay").css(b.extend(this.o.overlayCss,{display:"none",opacity:this.o.opacity/100,height:this.o.modal?d[0]:0,width:this.o.modal?d[1]:0,position:"fixed",
left:0,top:0,zIndex:this.o.zIndex+1})).appendTo(this.o.appendTo);this.d.container=b("<div></div>").attr("id",this.o.containerId).addClass("simplemodal-container").css(b.extend(this.o.containerCss,{display:"none",position:"fixed",zIndex:this.o.zIndex+2})).append(this.o.close&&this.o.closeHTML?b(this.o.closeHTML).addClass(this.o.closeClass):"").appendTo(this.o.appendTo);this.d.wrap=b("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(this.d.container);
this.d.data=a.attr("id",a.attr("id")||this.o.dataId).addClass("simplemodal-data").css(b.extend(this.o.dataCss,{display:"none"})).appendTo("body");this.setContainerDimensions();this.d.data.appendTo(this.d.wrap);if(i||j)this.fixIE()},bindEvents:function(){var a=this;b("."+a.o.closeClass).bind("click.simplemodal",function(c){c.preventDefault();a.close()});a.o.modal&&a.o.close&&a.o.overlayClose&&a.d.overlay.bind("click.simplemodal",function(c){c.preventDefault();a.close()});b(document).bind("keydown.simplemodal",
function(c){if(a.o.modal&&a.o.focus&&c.keyCode==9)a.watchTab(c);else if(a.o.close&&a.o.escClose&&c.keyCode==27){c.preventDefault();a.close()}});b(window).bind("resize.simplemodal",function(){d=a.getDimensions();a.setContainerDimensions(true);if(i||j)a.fixIE();else if(a.o.modal){a.d.iframe&&a.d.iframe.css({height:d[0],width:d[1]});a.d.overlay.css({height:d[0],width:d[1]})}})},unbindEvents:function(){b("."+this.o.closeClass).unbind("click.simplemodal");b(document).unbind("keydown.simplemodal");b(window).unbind("resize.simplemodal");
this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var a=this.o.position;b.each([this.d.iframe||null,!this.o.modal?null:this.d.overlay,this.d.container],function(c,h){if(h){var e=h[0].style;e.position="absolute";if(c<2){e.removeExpression("height");e.removeExpression("width");e.setExpression("height",'document.body.scrollHeight > document.body.clientHeight ? document.body.scrollHeight : document.body.clientHeight + "px"');e.setExpression("width",'document.body.scrollWidth > document.body.clientWidth ? document.body.scrollWidth : document.body.clientWidth + "px"')}else{var f,
g;if(a&&a.constructor==Array){f=a[0]?typeof a[0]=="number"?a[0].toString():a[0].replace(/px/,""):h.css("top").replace(/px/,"");f=f.indexOf("%")==-1?f+' + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"':parseInt(f.replace(/%/,""))+' * ((document.documentElement.clientHeight || document.body.clientHeight) / 100) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';if(a[1]){g=
typeof a[1]=="number"?a[1].toString():a[1].replace(/px/,"");g=g.indexOf("%")==-1?g+' + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"':parseInt(g.replace(/%/,""))+' * ((document.documentElement.clientWidth || document.body.clientWidth) / 100) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}}else{f='(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';
g='(document.documentElement.clientWidth || document.body.clientWidth) / 2 - (this.offsetWidth / 2) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}e.removeExpression("top");e.removeExpression("left");e.setExpression("top",f);e.setExpression("left",g)}}})},focus:function(a){a=b(":input:enabled:visible:"+(a||"first"),this.d.wrap);a.length>0?a.focus():this.d.wrap.focus()},getDimensions:function(){var a=b(window);return[b.browser.opera&&
b.browser.version>"9.5"&&b.fn.jquery<="1.2.6"?document.documentElement.clientHeight:b.browser.opera&&b.browser.version<"9.5"&&b.fn.jquery>"1.2.6"?window.innerHeight:a.height(),a.width()]},getVal:function(a){return a=="auto"?0:a.indexOf("%")>0?a:parseInt(a.replace(/px/,""))},setContainerDimensions:function(a){if(!a||a&&this.o.autoResize){a=b.browser.opera?this.d.container.height():this.getVal(this.d.container.css("height"));var c=b.browser.opera?this.d.container.width():this.getVal(this.d.container.css("width")),
h=this.d.data.outerHeight(true),e=this.d.data.outerWidth(true),f=this.o.maxHeight&&this.o.maxHeight<d[0]?this.o.maxHeight:d[0],g=this.o.maxWidth&&this.o.maxWidth<d[1]?this.o.maxWidth:d[1];a=a?a>f?f:a:h?h>f?f:h<this.o.minHeight?this.o.minHeight:h:this.o.minHeight;c=c?c>g?g:c:e?e>g?g:e<this.o.minWidth?this.o.minWidth:e:this.o.minWidth;this.d.container.css({height:a,width:c});if(h>a||e>c)this.d.wrap.css({overflow:"auto"})}this.o.autoPosition&&this.setPosition()},setPosition:function(){var a,c;a=d[0]/
2-this.d.container.outerHeight(true)/2;c=d[1]/2-this.d.container.outerWidth(true)/2;if(this.o.position&&Object.prototype.toString.call(this.o.position)==="[object Array]"){a=this.o.position[0]||a;c=this.o.position[1]||c}else{a=a;c=c}this.d.container.css({left:c,top:a})},watchTab:function(a){var c=this;if(b(a.target).parents(".simplemodal-container").length>0){c.inputs=b(":input:enabled:visible:first, :input:enabled:visible:last",c.d.data[0]);if(!a.shiftKey&&a.target==c.inputs[c.inputs.length-1]||
a.shiftKey&&a.target==c.inputs[0]||c.inputs.length==0){a.preventDefault();var h=a.shiftKey?"last":"first";setTimeout(function(){c.focus(h)},10)}}else{a.preventDefault();setTimeout(function(){c.focus()},10)}},open:function(){this.d.iframe&&this.d.iframe.show();if(b.isFunction(this.o.onOpen))this.o.onOpen.apply(this,[this.d]);else{this.d.overlay.show();this.d.container.show();this.d.data.show()}this.focus();this.bindEvents()},close:function(){if(!this.d.data)return false;this.unbindEvents();if(b.isFunction(this.o.onClose)&&
!this.occb){this.occb=true;this.o.onClose.apply(this,[this.d])}else{if(this.d.placeholder){var a=b("#simplemodal-placeholder");if(this.o.persist)a.replaceWith(this.d.data.removeClass("simplemodal-data").css("display",this.display));else{this.d.data.hide().remove();a.replaceWith(this.d.orig)}}else this.d.data.hide().remove();this.d.container.hide().remove();this.d.overlay.hide().remove();this.d.iframe&&this.d.iframe.hide().remove();this.d={}}}}})(jQuery);

;ssoConfig=new Object();ssoConfig.ajaxServicePath='/snpeservice.asmx/mhcom_account_ajax/';ssoConfig.ajaxServiceSignUpMethod='create_account_from_facebook_user';ssoConfig.ajaxServiceSetIconMethod='set_icon_from_facebook_user';ssoConfig.oAuthAppId='119571164772886';ssoConfig.oAuthAvatarUrlPattern='https://graph.facebook.com/{id}/picture';ssoConfig.ssoAvatarUrlPattern='http://freunde.vol.at/mod/mhcom_elggtheme/icondirect.php?size={size}&username={username}'
ssoConfig.ssoProfileUrlPattern='http://freunde.vol.at/{username}/';ssoConfig.ssoServiceOAuthCheckConnectionMethod='CheckFacebookConnectionStatus';ssoConfig.ssoServiceOAuthSetConnectionMethod='SetFacebookConnection';ssoConfig.ssoServiceOAuthLoginMethod='AuthenticateAsObjectAndLoginViaFacebook';ssoConfig.ssoServicePath='/snpeservice.asmx/';ssoConfig.ssoServiceSSOLoginMethod='AuthenticateAsObjectAndLogin';ssoConfig.ssoServiceSSOLogoutMethod='Logout';ssoConfig.ssoServiceSSOPublicProfileMethod='GetPublicProfile';ssoConfig.ssoRegistrationPage='http://freunde.vol.at/register.html';ssoConfig.ssoLoginErrorMessage='Benutzername oder Passwort falsch';ssoConfig.validateInputRequired='darf nicht leer sein';ssoConfig.validatePasswordTooShort='zu kurz (min. 6 Zeichen)';ssoConfig.validateChecking='überprüfe...';ssoConfig.validateEmailNotValid='muss eine gültige E-Mail-Adresse sein';ssoConfig.validateUsernameNotValid='ungültig oder schon in Verwendung';ssoConfig.validateOk='OK!';ssoConfig.contentTargets={loginButton:'a.SSOLoginLink',logoutButton:'#SSOLogoutLink',fragmentLoggedOut:'#SSOLoggedOutFragment',fragmentLoggedIn:'#SSOLoggedInFragment',userName:'#UserProfileDataName',profileLink:'#UserProfileLink',profileAvatar:'#UserIconProfileImage',showOAuthConnectButton:'.ButtonOAuthDirectConnect',showOAuthRegisterButton:'.ButtonOAuthDirectRegister'};ssoConfig.channelUrl='www.vol.at/xd_receiver.html';
;function McomSSOUser(userName,passwordHash,fullName,active){this.userName=null;this.passwordHash=null;this.fullName=null;this.active=null;this.avatarUrl=null;if(userName&&userName!=""){this.userName=userName;this.avatarUrl=ssoConfig.ssoAvatarUrlPattern.replace(/{username}/g,this.userName);}
if(passwordHash&&passwordHash!="")this.passwordHash=passwordHash;if(fullName&&fullName!="")this.fullName=fullName;this.active=(active)?true:false;}
function OAuthUser(id,userName,firstName,lastName,token){this.id=null;this.userName=null;this.firstName=null;this.lastName=null;this.token=null;this.avatarUrl=null;if(id&&id!=""){this.id=id;this.avatarUrl=ssoConfig.oAuthAvatarUrlPattern.replace(/{id}/g,this.id);}
if(userName&&userName!="")this.userName=userName;if(firstName&&firstName!="")this.firstName=firstName;if(lastName&&lastName!="")this.lastName=lastName;if(token&&token!="")this.token=token;}
function McomSSO(contentTargets,useOAuth){var that=this;this.showActiveForm=null;this.formPreference=null;this.handleErrors=null;this.ssoUser=null;this.oAuthUser=null;this.useOAuth=(useOAuth)?true:false;this.isTriggered=false;this.contentTargets=contentTargets;this.connectionMode='connect'
this.readSSOCookie=function(){var ssoCookie=null;var ssoUser=null;var ssoCookieValues=null;var ssoUserName=null;var ssoPasswordHash=null;var ssoFullName=null;var ssoActive=null;ssoCookie=that.getCookie('SsoSessionCookie');if(ssoCookie==null)return null;ssoCookieValues=ssoCookie.split(/\&/);for(var i=0;i<ssoCookieValues.length;i++){var value=ssoCookieValues[i].split(/\=/);if(value[0]=='username'){ssoUserName=value[1].replace(/ /,'\\20');}
if(value[0]=='passwordhash'){ssoPasswordHash=value[1]+'==';}
if(value[0]=='fullname'){ssoFullName=decodeURI(value[1]).replace(/\+/g,' ');}
if(value[0]=='active'){ssoActive=(value[1]=='True')?true:false;}}
if(ssoUserName!='guest'){ssoUser=new McomSSOUser(ssoUserName,ssoPasswordHash,ssoFullName,ssoActive);}
return ssoUser;}
this.getCookie=function(cookiename){var searchphrase=cookiename+"=";var i=0;var cook=null;while(i<document.cookie.length){if(document.cookie.substring(i,i+searchphrase.length)==searchphrase){var end=document.cookie.indexOf(";",i+searchphrase.length);end=(end>-1)?end:document.cookie.length;cook=unescape(document.cookie.substring(i+searchphrase.length,end));}
i++;}
return cook;}
this.onOAuthGetLoginStatus=function(response,isTriggered){that.isTriggered=isTriggered;switch(response.status){case'connected':if(typeof(FB.api)!=='undefined'){FB.api('/me',function(response){var oAuthCookie=null;var oAuthCookieValues=null;var oAuthToken=null;oAuthCookie=that.getCookie('fbs_'+ssoConfig.oAuthAppId);oAuthCookie=oAuthCookie.replace(/\"/g,'');oAuthCookieValues=oAuthCookie.split(/\&/);for(var i=0;i<oAuthCookieValues.length;i++){var value=oAuthCookieValues[i].split(/\=/);if(value[0]=='access_token')oAuthToken=value[1];}
if(oAuthToken!=null){that.oAuthUser=new OAuthUser(response.id,response.name,response.first_name,response.last_name,oAuthToken);if(that.ssoUser==null||that.ssoUser.active==false){$.ajax({url:ssoConfig.ssoServicePath+ssoConfig.ssoServiceOAuthCheckConnectionMethod,data:{facebookProfileId:that.oAuthUser.id,facebookAppId:ssoConfig.oAuthAppId},success:that.onOAuthCheckConnection,dataType:"xml"});}}});}
break;default:that.oAuthUser=null;that.showActiveForm=that.showLoginForm;break;}}
this.onOAuthCheckConnection=function(data,textStatus,xmlHttpRequest){var connectedUserName;connectedUserName=$(data).children("string").text()
if(connectedUserName==''){if(that.ssoUser!=null&&that.ssoUser.active==false){that.showActiveForm=that.showOAuthConnectForm}else{that.showActiveForm=that.showOAuthRegisterForm;}
if(that.formPreference!=null){that.showActiveForm=that.formPreference;}
if(that.isTriggered){that.showActiveForm();}}else{if(that.ssoUser!=null&&that.ssoUser.active==true&&that.ssoUser.userName==connectedUserName){}else{that.authenticateViaOAuthToken();}}}
this.authenticateViaCredentials=function(ssoUserName,ssoPassword,ssoKeepLoggedIn){try{$.ajax({url:ssoConfig.ssoServicePath+ssoConfig.ssoServiceSSOLoginMethod,data:{user:ssoUserName,pass:ssoPassword,bKeepLoggedIn:ssoKeepLoggedIn},success:that.onAuthenticateViaCredentials,dataType:"xml"});}
catch(e){}}
this.onAuthenticateViaCredentials=function(data,textStatus,xmlHttpRequest){authenticatedUserName=$(data).find('user > user-name').text();if(authenticatedUserName!=''){location.reload();}else{that.handleErrors(data);}}
this.authenticateViaOAuthToken=function(){if(that.oAuthUser!=null){$.ajax({url:ssoConfig.ssoServicePath+ssoConfig.ssoServiceOAuthLoginMethod,data:{facebookProfileId:that.oAuthUser.id,facebookAppId:ssoConfig.oAuthAppId,authToken:that.oAuthUser.token},success:function(data,textStatus,XMLHttpRequest){if(data.getElementsByTagName("user")[0]){location.reload();}},dataType:"xml"});}}
this.authenticateForOAuthConnection=function(ssoUserName,ssoPassword,ssoKeepLoggedIn){try{$.ajax({url:ssoConfig.ssoServicePath+ssoConfig.ssoServiceOAuthSetConnectionMethod,data:{user:ssoUserName,pass:ssoPassword,facebookProfileId:that.oAuthUser.id,facebookAppId:ssoConfig.oAuthAppId,bKeepLoggedIn:ssoKeepLoggedIn},success:that.onAuthenticateForOAuthConnection,dataType:"xml"});}
catch(e){}}
this.onAuthenticateForOAuthConnection=function(data,textStatus,xmlHttpRequest){returnCode=$(data).children("int").text()
if(returnCode=='1'){that.ssoUser=that.readSSOCookie();that.showActiveForm=that.showOAuthPreferencesForm;that.showActiveForm();}
else{that.handleErrors(data);}}
this.registerForOAuthConnection=function(ssoUserName,ssoPassword,ssoFirstName,ssoLastName,ssoEmail,ssoMarketing,ssoTermsAndConditions){try{$.ajax({url:ssoConfig.ajaxServicePath+ssoConfig.ajaxServiceSignUpMethod,data:{username:ssoUserName,password:ssoPassword,firstname:ssoFirstName,lastname:ssoLastName,email:ssoEmail,marketing:ssoMarketing,termsandconditions:ssoTermsAndConditions,fbid:that.oAuthUser.id,fbtoken:that.oAuthUser.token},success:that.onRegisterForOAuthConnection,dataType:"json"});}
catch(e){alert("SignUp failed: "+e);}}
this.onRegisterForOAuthConnection=function(data,textStatus,xmlHttpRequest){if(data.errors==null&&data.user!=null){that.ssoUser=new McomSSOUser(data.user.username,data.user.password,data.user.fullname,data.user.active);that.showActiveForm=that.showOAuthPreferencesForm;that.showActiveForm();}else{that.handleErrors(data);}}
this.setOAuthPreferences=function(oAuthUseAvatar){switch(oAuthUseAvatar){case'true':try{$.ajax({url:ssoConfig.ajaxServicePath+ssoConfig.ajaxServiceSetIconMethod,data:{username:that.ssoUser.userName,password:that.ssoUser.passwordHash,fbid:that.oAuthUser.id,fbtoken:that.oAuthUser.token},success:that.onSetOAuthPreferences,dataType:"json"});}
catch(e){$.modal.close();location.reload();}
break;default:$.modal.close();location.reload();break;}}
this.onSetOAuthPreferences=function(data){that.showActiveForm=that.showOAuthConfirmationForm;that.showActiveForm();}
this.confirmConnection=function(){$.modal.close();location.reload();}
this.logout=function(){if(that.useOAuth&&that.oAuthUser!=null){FB.logout(function(response){try{$.ajax({url:ssoConfig.ssoServicePath+ssoConfig.ssoServiceSSOLogoutMethod,success:that.onLogout,dataType:"xml"});}
catch(e){alert("Logout failed!");}});}
else{try{$.ajax({url:ssoConfig.ssoServicePath+ssoConfig.ssoServiceSSOLogoutMethod,success:that.onLogout,dataType:"xml"});}
catch(e){alert("Logout failed!");}}}
this.onLogout=function(data){$.modal.close();if(ssoConfig.redironlogout!=undefined){window.location=ssoConfig.redironlogout;}else{location.reload();}}
this.showLoginForm=function(){that.handleErrors=that.handleLoginFormErrors;$('#McomSSOLoginForm .SSOFieldMessage').text('');$('#McomSSOLoginForm .SSOFieldMessage').hide();$.modal.close()
$('#McomSSOLoginForm #OAuthLoginButton').unbind();$('#McomSSOLoginForm #OAuthLoginButton').click(function(){FB.login(function(response){that.onOAuthGetLoginStatus(response,true);});});$('#McomSSOLoginForm').unbind();$('#McomSSOLoginForm').submit(function(){that.authenticateViaCredentials($('#SSOUserLogin').val(),$('#SSOPasswordLogin').val(),document.getElementById('SSOKeepLoggedInLogin').checked);return false;});$('#McomSSOLoginForm').modal({zIndex:5001});}
this.handleLoginFormErrors=function(returnData){$('#McomSSOLoginForm .SSOFieldMessage').text('');$('#McomSSOLoginForm .SSOFieldMessage').hide();$('#McomSSOLoginForm .SSOFieldMessage').text(ssoConfig.ssoLoginErrorMessage);$('#McomSSOLoginForm .SSOFieldMessage').addClass('Error');$('#McomSSOLoginForm .SSOFieldMessage').removeClass('Success');$('#McomSSOLoginForm .SSOFieldMessage').show();}
this.showOAuthConnectForm=function(){that.handleErrors=that.handleOAuthConnectFormErrors;that.connectionMode='connect';$('#McomOAuthConnectForm .SSOFieldMessage').text('');$('#McomOAuthConnectForm .SSOFieldMessage').hide();$.modal.close()
$('#McomOAuthConnectForm .OAuthAvatar').attr('src',that.oAuthUser.avatarUrl);$('#McomOAuthConnectForm .OAuthUsername').text($('#McomOAuthConnectForm .OAuthUsername').text().replace(/{username}/g,that.oAuthUser.userName));;$('#McomOAuthConnectForm').unbind();$('#McomOAuthConnectForm').submit(function(){that.authenticateForOAuthConnection($('#SSOUserConnect').val(),$('#SSOPasswordConnect').val(),document.getElementById('SSOKeepLoggedInConnect').checked);return false;});$('#SSORegisterConnect, #SSORegisterTopConnect').unbind();$('#SSORegisterConnect, #SSORegisterTopConnect').click(function(){that.showOAuthRegisterForm();return false;});$('#McomOAuthConnectForm').modal({zIndex:5001});}
this.handleOAuthConnectFormErrors=function(returnData){$('#McomOAuthConnectForm .SSOFieldMessage').text('');$('#McomOAuthConnectForm .SSOFieldMessage').hide();$('#McomOAuthConnectForm .SSOFieldMessage').text(ssoConfig.ssoLoginErrorMessage);$('#McomOAuthConnectForm .SSOFieldMessage').addClass('Error');$('#McomOAuthConnectForm .SSOFieldMessage').removeClass('Success');$('#McomOAuthConnectForm .SSOFieldMessage').show();}
this.showOAuthRegisterForm=function(){that.handleErrors=that.handleOAuthRegisterFormErrors;that.connectionMode='register';$('#McomOAuthRegisterForm .SSOFieldMessage').text('');$('#McomOAuthRegisterForm .SSOFieldMessage').hide();$.modal.close()
$('#McomOAuthRegisterForm .OAuthAvatar').attr('src',that.oAuthUser.avatarUrl);$('#McomOAuthRegisterForm .OAuthUsername').text($('#McomOAuthRegisterForm .OAuthUsername').text().replace(/{username}/g,that.oAuthUser.userName));$('#SSOFirstNameSignUp').val(that.oAuthUser.firstName);$('#SSOLastNameSignUp').val(that.oAuthUser.lastName);$('#McomOAuthRegisterForm').unbind();$('#McomOAuthRegisterForm').submit(function(){that.registerForOAuthConnection($('#SSOUserSignUp').val(),$('#SSOPasswordSignUp').val(),$('#SSOFirstNameSignUp').val(),$('#SSOLastNameSignUp').val(),$('#SSOEmailSignUp').val(),document.getElementById('SSOMarketingSignUp').checked,document.getElementById('SSOTermsAndConditionsSignUp').checked);return false;});$('#SSOLoginSignUp, #SSOLoginTopSignUp').unbind();$('#SSOLoginSignUp, #SSOLoginTopSignUp').click(function(){that.showOAuthConnectForm();return false;});$('#SSOFirstNameSignUp, #SSOLastNameSignUp, #SSOEmailSignUp, #SSOPasswordSignUp').unbind();$('#SSOFirstNameSignUp, #SSOLastNameSignUp, #SSOEmailSignUp, #SSOPasswordSignUp').blur(function(){inputField=this;that.validateOAuthRegisterForm(inputField.id);});$('#SSOUserSignUp').unbind();$('#SSOUserSignUp').keydown(function(e){inputField=this;if(that.isValidChar(e)){that.validateOAuthRegisterForm(inputField.id);return true;}
return false;});$('#McomOAuthRegisterForm').modal({zIndex:5001});$('#SSOEmailSignUp').focus();}
this.validateOAuthRegisterForm=function(fieldId){switch(fieldId){case'SSOFirstNameSignUp':that.validateName(fieldId);break;case'SSOLastNameSignUp':that.validateName(fieldId);break;case'SSOEmailSignUp':that.validateEmail(fieldId);break;case'SSOUserSignUp':that.validateUser(fieldId);break;case'SSOPasswordSignUp':that.validatePassword(fieldId);break;}}
this.validateName=function(fieldId){fieldNode=$('#'+fieldId);msgNode=$('#'+fieldId).closest('fieldset').find('p.SSOFieldMessage');if(fieldNode.val().replace(/ /g,"")!=''){msgNode.text(ssoConfig.validateOk);msgNode.addClass('Success');msgNode.removeClass('Error');msgNode.show();}else{msgNode.text(ssoConfig.validateSSOInputRequired);msgNode.addClass('Error');msgNode.removeClass('Success');msgNode.show();}}
this.validateEmail=function(fieldId){fieldNode=$('#'+fieldId);msgNode=$('#'+fieldId).closest('fieldset').find('p.SSOFieldMessage');descNode=$('#'+fieldId).closest('fieldset').find('p.SSOFieldDescription');emailFilter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(fieldNode.val().search(emailFilter)>-1){msgNode.text(ssoConfig.validateOk);msgNode.addClass('Success');msgNode.removeClass('Error');descNode.hide();msgNode.show();}else{msgNode.text(ssoConfig.validateEmailNotValid);msgNode.addClass('Error');msgNode.removeClass('Success');descNode.hide();msgNode.show();}}
this.validateUser=function(fieldId){if(that.availabilityTimeout!=0){window.clearTimeout(that.availabilityTimeout);}
that.availabilityTimeout=window.setTimeout(function(){that.checkUsername(fieldId);},500);}
that.isValidChar=function(e){var key;var isCrtl=false;var isShift=false;if(window.event){key=e.keyCode;isCrtl=window.event.crtlKey;isShift=window.event.shiftKey;}else if(e.which){key=e.which;isCrtl=e.crtlKey;isShift=e.shiftKey;}
return((key==35||key==36||key==37||key==39||key==9||key==8||key==46)||(key>=65&&key<=90)||(!isShift&&key>=48&&key<=57)||key==109||key==95||key==189);}
that.checkUsername=function(fieldId){fieldNode=$('#'+fieldId);msgNode=$('#'+fieldId).closest('fieldset').find('p.SSOFieldMessage');descNode=$('#'+fieldId).closest('fieldset').find('p.SSOFieldDescription');if(fieldNode.val().search(/[^A-Za-z0-9\_\-]/)>-1||fieldNode.val()==''||fieldNode.val().length<4||fieldNode.val().length>32){msgNode.text(ssoConfig.validateUsernameNotValid);msgNode.addClass('Error');msgNode.removeClass('Success');descNode.hide();msgNode.show();return;}else{msgNode.text(ssoConfig.validateChecking);msgNode.removeClass('Error');msgNode.removeClass('Success');descNode.hide();msgNode.show();$.post(ssoConfig.ssoServicePath+ssoConfig.ssoServiceSSOPublicProfileMethod,{'user':fieldNode.val(),'caller':''},function(response){if(response.indexOf('SnpeWebServiceError')>-1){msgNode.text(ssoConfig.validateOk);msgNode.addClass('Success');msgNode.removeClass('Error');descNode.hide();msgNode.show();}else{msgNode.text(ssoConfig.validateUsernameNotValid);msgNode.addClass('Error');msgNode.removeClass('Success');descNode.hide();msgNode.show();}},'text');}}
this.validatePassword=function(fieldId){fieldNode=$('#'+fieldId);msgNode=$('#'+fieldId).closest('fieldset').find('p.SSOFieldMessage');descNode=$('#'+fieldId).closest('fieldset').find('p.SSOFieldDescription');if(fieldNode.val().replace(/ /g,"").length>=6){msgNode.text(ssoConfig.validateOk);msgNode.addClass('Success');msgNode.removeClass('Error');descNode.hide();msgNode.show();}else{msgNode.text(ssoConfig.validatePasswordTooShort);msgNode.addClass('Error');msgNode.removeClass('Success');descNode.hide();msgNode.show();}}
this.handleOAuthRegisterFormErrors=function(returnData){that.validateOAuthRegisterForm('SSOFirstNameSignUp');that.validateOAuthRegisterForm('SSOLastNameSignUp');that.validateOAuthRegisterForm('SSOEmailSignUp');that.validateOAuthRegisterForm('SSOUserSignUp');that.validateOAuthRegisterForm('SSOPasswordSignUp');if(returnData.errors.length>0){var msgNode=null;var descNode=null;for(var i=0;i<returnData.errors.length;i++){if(returnData.errors[i].field!=null){switch(returnData.errors[i].field){case"firstname":msgNode=$('#McomOAuthRegisterForm .SSOFirstNameSignUp .SSOFieldMessage');descNode=$('#McomOAuthRegisterForm .SSOFirstNameSignUp .SSOFieldDescription');break;case"lastname":msgNode=$('#McomOAuthRegisterForm .SSOLastNameSignUp .SSOFieldMessage');descNode=$('#McomOAuthRegisterForm .SSOLastNameSignUp .SSOFieldDescription');break;case"email":msgNode=$('#McomOAuthRegisterForm .SSOEmailSignUp .SSOFieldMessage');descNode=$('#McomOAuthRegisterForm .SSOEmailSignUp .SSOFieldDescription');break;case"username":msgNode=$('#McomOAuthRegisterForm .SSOUserSignUp .SSOFieldMessage');descNode=$('#McomOAuthRegisterForm .SSOUserSignUp .SSOFieldDescription');break;case"password":msgNode=$('#McomOAuthRegisterForm .SSOPasswordSignUp .SSOFieldMessage');descNode=$('#McomOAuthRegisterForm .SSOPasswordSignUp .SSOFieldDescription');break;case"marketing":msgNode=$('#McomOAuthRegisterForm .SSOMarketingSignUp .SSOFieldMessage');descNode=$('#McomOAuthRegisterForm .SSOMarketingSignUp .SSOFieldDescription');break;case"termsandconditions":msgNode=$('#McomOAuthRegisterForm .SSOTermsAndConditionsSignUp .SSOFieldMessage');descNode=$('#McomOAuthRegisterForm .SSOTermsAndConditionsSignUp .SSOFieldDescription');break;default:msgNode=$('#McomOAuthRegisterForm .SSOTermsAndConditionsSignUp .SSOFieldMessage');descNode=$('#McomOAuthRegisterForm .SSOTermsAndConditionsSignUp .SSOFieldDescription');break;}}else{msgNode=$('#McomOAuthRegisterForm .SSOTermsAndConditionsSignUp .SSOFieldMessage');descNode=$('#McomOAuthRegisterForm .SSOTermsAndConditionsSignUp .SSOFieldDescription');}
msgNode.text(returnData.errors[i].msg);msgNode.addClass('Error');msgNode.removeClass('Success');descNode.hide();msgNode.show();}}}
this.showOAuthPreferencesForm=function(){$.modal.close()
$('#McomOAuthPreferencesForm .OAuthUsername').text($('#McomOAuthPreferencesForm .OAuthUsername').text().replace(/{username}/g,that.oAuthUser.userName));$('#McomOAuthPreferencesForm .OAuthAvatar').attr('src',that.oAuthUser.avatarUrl);$('#McomOAuthPreferencesForm .SSOAvatar').attr('src',that.ssoUser.avatarUrl.replace(/{size}/g,'small'));$('#McomOAuthPreferencesForm .OAuthAvatarChooser img, #McomOAuthPreferencesForm .OAuthAvatarChooser label').unbind();$('#McomOAuthPreferencesForm .OAuthAvatarChooser img, #McomOAuthPreferencesForm .OAuthAvatarChooser label').click(function(){$('#OAuthPreferenceOAuthUseAvatar').val('true');$('#McomOAuthPreferencesForm .SSOAvatar').removeClass('Active');$('#McomOAuthPreferencesForm .OAuthAvatar').addClass('Active');});$('#McomOAuthPreferencesForm .SSOAvatarChooser img, #McomOAuthPreferencesForm .SSOAvatarChooser label').unbind();$('#McomOAuthPreferencesForm .SSOAvatarChooser img, #McomOAuthPreferencesForm .SSOAvatarChooser label').click(function(){$('#OAuthPreferenceOAuthUseAvatar').val('false');$('#McomOAuthPreferencesForm .OAuthAvatar').removeClass('Active');$('#McomOAuthPreferencesForm .SSOAvatar').addClass('Active');});$('#McomOAuthPreferencesForm').unbind();$('#McomOAuthPreferencesForm').submit(function(){that.setOAuthPreferences($('#OAuthPreferenceOAuthUseAvatar').val());return false;});$('#McomOAuthPreferencesForm').modal({zIndex:5001});}
this.showOAuthConfirmationForm=function(){$.modal.close()
if(that.connectionMode=='register'){$('#McomOAuthConfirmation .RegistrationComplete').show();$('#McomOAuthConfirmation .ConnectionComplete').hide();}else{$('#McomOAuthConfirmation .RegistrationComplete').hide();$('#McomOAuthConfirmation .ConnectionComplete').show();}
$('#McomOAuthConfirmation').unbind();$('#McomOAuthConfirmation').submit(function(){that.confirmConnection();return false;});$('#McomOAuthConfirmation').modal({zIndex:5001});}
this.displayUserStatus=function(){if(that.ssoUser!=null&&that.ssoUser.active){$(that.contentTargets.userName).text(that.ssoUser.fullName);$(that.contentTargets.profileLink).attr('href',ssoConfig.ssoProfileUrlPattern.replace(/{username}/,encodeURI(that.ssoUser.userName)));$(that.contentTargets.profileAvatar).attr('src',that.ssoUser.avatarUrl.replace(/{size}/g,'tiny'));$(that.contentTargets.fragmentLoggedOut).hide();$(that.contentTargets.fragmentLoggedIn).show();}else{$(that.contentTargets.fragmentLoggedIn).hide();$(that.contentTargets.fragmentLoggedOut).show();}}
var ssoInitialize=function(){that.ssoUser=that.readSSOCookie();if(useOAuth&&typeof(FB.getLoginStatus)!=='undefined'){FB.getLoginStatus(function(response){that.onOAuthGetLoginStatus(response);});}
that.showActiveForm=that.showLoginForm;if(typeof(that.contentTargets.loginButton)!=='undefined'){$(that.contentTargets.loginButton).unbind();$(that.contentTargets.loginButton).click(function(){that.showActiveForm();return false;});}
if(typeof(that.contentTargets.showOAuthConnectButton)!=='undefined'){$(that.contentTargets.showOAuthConnectButton).unbind();$(that.contentTargets.showOAuthConnectButton).click(function(){FB.login(function(response){that.formPreference=that.showOAuthConnectForm;that.onOAuthGetLoginStatus(response,true);});});}
if(typeof(that.contentTargets.showOAuthRegisterButton)!=='undefined'){$(that.contentTargets.showOAuthRegisterButton).unbind();$(that.contentTargets.showOAuthRegisterButton).click(function(){FB.login(function(response){that.formPreference=that.showOAuthRegisterForm;that.onOAuthGetLoginStatus(response,true);});});}
if(typeof(that.contentTargets.logoutButton)!=='undefined'){$(that.contentTargets.logoutButton).unbind();$(that.contentTargets.logoutButton).click(function(){that.logout();return false;});}
that.displayUserStatus();}
ssoInitialize();}
;$(document).ready(function(){$('#showHideLogin').click(function()
{$('#loginBox').slideToggle("normal");this.blur();return false;});if($.browser.msie&&$.browser.version=="6.0")
{$.fn.over=function()
{return this.hover(function()
{$(this).addClass('over');},function()
{$(this).removeClass('over');});};$('ul#mainNavigationBar li').over();}
$("#mainNavigationBar li").hover(function()
{$(this).addClass('active');$(this).siblings().removeClass('active');$("#mainNavigationBar li ul > li").removeClass('active');},function(){$(this).addClass('active');});var tld=$(location).attr('host').split('.').reverse()[0];var dom=$(location).attr('host').split('.').reverse()[1];var domain='.'+dom+'.'+tld;if($.cookie('startsite')==null||$.cookie('startsite')==0){$.cookie('startsite',0,{expires:7,path:'/',domain:domain});$('.startPage').show();}
$('#set_as_homepage').live('click',function(event){if($.browser.msie){document.setHomePage('http://www.'+domain);}
$.cookie('startsite',1,{expires:700000,path:'/',domain:domain});});$('#dont_set_as_homepage').live('click',function(){$.cookie('startsite',1,{expires:14,path:'/',domain:domain});$('.startPage').hide();})});
;$(document).ready(function(){if(document.all){mouse_is_inside=true;}else{$('#general_feedback_box').hover(function(){mouse_is_inside=true;},function(){mouse_is_inside=false;});}
show_ch=function(){window.open('/special/chestionar','form');}
close_ch=function(){$('#feedback').animate({top:'230px',width:'30px'},{queue:false,duration:'fast'});$("#general_feedback_box").animate({width:'0px',height:'0px'},{queue:false,duration:'fast'});$("#general_feedback_box").css({'background-color':'','border':''});$("#general_feedback_box").hide();if(document.all){$("#chestionar").hide();$("#response").hide();}
$("#inchide_ch").hide();$("#chestionar_img").hide();}
send_ch=function(){var chestionar_1=$("input[name='chestionar_1']:checked").val();var chestionar_2=$("input[name='chestionar_2']:checked").val();var chestionar_3=[];$("input[name='chestionar_3']:checked").each(function(){chestionar_3.push($(this).val());});var chestionar_4=[];$("input[name='chestionar_4']:checked").each(function(){chestionar_4.push($(this).val());});var chestionar_5=$("textarea[name='chestionar_5']").val();var chestionar_6=$("select[name='chestionar_6']").val();var chestionar_7=$("select[name='chestionar_7']").val();var chestionar_8=$("select[name='chestionar_8']").val();var chestionar_9=$("select[name='chestionar_9']").val();var chestionar_email=$("input[name='chestionar_email']").val();BrowserDetect.init();var browser=BrowserDetect.browser+' '+BrowserDetect.version+' / '+BrowserDetect.OS;var rez=screen.width+'x'+screen.height;var loc=$(location).attr('href');var filter=/^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*\s+&lt;(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})&gt;$|^(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})$/;if(filter.test(chestionar_email)){$("#general_feedback_box").html("<div class='response' id='response'>Iti multumim. <br /><br /><div id='inchide_ch'><a>[x] Inchide</a></div></div>");setTimeout(close_ch,3000);$.post("/ajax.php?sec=chestionar",{send:true,chestionar_1:chestionar_1,chestionar_2:chestionar_2,chestionar_3:chestionar_3,chestionar_4:chestionar_4,chestionar_5:chestionar_5,chestionar_6:chestionar_6,chestionar_7:chestionar_7,chestionar_8:chestionar_8,chestionar_9:chestionar_9,chestionar_email:chestionar_email,browser:browser,resolution:rez,loc:loc},function(data){});}else{alert('Adresa de email este incorecta!');}}
$('#feedback img').toggle(function(){show_ch();$(document).mouseup(function(){if(!mouse_is_inside){close_ch();}});},function(){close_ch();});$('#inchide_ch a').live('click',function(){close_ch();});$(".label_td").live('click',function(){if($(this).prev('td').children('input').is(":checked")){$(this).prev('td').children('input').attr('checked',false);}else{$(this).prev('td').children('input').attr('checked',true);}});});var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)
return data[i].identity;}
else if(dataProp)
return data[i].identity;}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};
;jQuery(document).ready(function(){jQuery('#MainNavigationBar [id^="MNB1"]:not(:has( ul ))').each(function(index){jQuery(this).append('<ul><li class="Empty">&nbsp;</li></ul>');})})
;var forumBadWords=/Anus|Arsch|\bAss\b|Asshole|\bAssi\b|Bastard|Bitch|Blowjob|Bonehead|\bdamn\b|Dildo|Dummkopf|fuck|Fucking|Hure|hurensohn|Idiot|Lesbe|Nerd|Penis|schlampe|schwanz|Shit|Slut/gi;function comment_login_error(obj){if(obj.error){$('#ForumLoginMessage').show();$('#ForumLoginMessage').html(obj.message);}
else{res_mess=obj.message;jQuery('#SSOLoggedInFragment').append(res_mess);jQuery('#ForumLoginForm').hide();}}
function blendComments(){blendoutForumComments($("#BlendoutForumComments").val());}
function blendoutComment(msgId){$("#msg"+msgId).addClass("Inactive");}
function blendinComment(msgId){$("#msg"+msgId).removeClass("Inactive");}
function blendoutForumComments(selVal){$(".ArticleForumMessage").find("form[id^='NumberOfVotes_']").each(function(i){var CommentId=$(this).find("input[name='CommentId']").val();var points=Number($(this).parent().find(".MessageRatingPaneCount").html());if(points<Number(selVal)){blendoutComment(CommentId);}
else{blendinComment(CommentId);}});}
function moveCommentAds(){$("#get_comments_from_ajax > div").each(function(){var ad_frame=$(this).find(".Ligatus iframe").clone();var pos=parseInt($(this).attr("position"))-1;$(this).remove();$('#ArticleForumMessages ol .li-comment:eq('+pos+') .div-comment .ArticleForumMessage').after(ad_frame);});};function hideAllComments(){$("#ArticleForumMessages").hide();$(".FilterComments").hide();$("#BlendoutForumComments").attr("disabled","disabled");$("#HideBadWords").attr("disabled","disabled");}
function filterBadWords(){$("#ArticleForumMessages .Message").each(function(){var headLine=$(this).find("h5 span");var bodyText=$(this).find(".Body .Text");headLine.html(replaceBadWords(headLine.html()));bodyText.html(replaceBadWords(bodyText.html()));});return false;}
function replaceBadWords(s){if(s!=null){return s.replace(forumBadWords,function(string2){return"<span class=\"Bad\" style=\"display:none;\">"+string2+"</span><span class=\"BadStars\">"+string2.replace(/(.)/g,"*")+"</span>";});}
else{return"";}}
function toggle(id){var message=$("#"+id);var inactive=$("#"+id+".Inactive").length>0;if(inactive){$(message).removeClass("Inactive");forumStatsCount("/forumRating");}
else{$(message).addClass("Inactive");}
return false;}
function ratePositive(id){var messageContainer=$("#msg"+id);var ratingBar=document.getElementById("NegativeBar_"+id);ajaxurl=report_resources.ajax_url;data={id:id,action:'rate_positive'}
jQuery.post(ajaxurl,data,function(response){var split_resp=response.split('&');var rating_p=split_resp[0];var rating_n=split_resp[1];var bar_w=split_resp[2];var rating=parseInt(rating_p)-parseInt(rating_n);if(rating==0){$('#MessageRatingPaneCount_'+id).removeClass('negative');$('#MessageRatingPaneCount_'+id).removeClass('positive');}
if(rating>0){rating='+'+rating.toString();$('#MessageRatingPaneCount_'+id).removeClass('negative');$('#MessageRatingPaneCount_'+id).addClass('positive');}
if(rating<0){rating=rating.toString();$('#MessageRatingPaneCount_'+id).removeClass('positive');$('#MessageRatingPaneCount_'+id).addClass('negative');}
$('#MessageRatingPaneCount_'+id).text(rating);ratingBar.innerHTML="<div class='PositiveBar' style='width: "+bar_w+"px;'> </div>";});$(messageContainer).find(".Controls .MessageRatingButton").each(function(){$(this).attr("href","javascript:void(0);");});}
function rateNegative(id){var messageContainer=$("#msg"+id);var ratingBar=document.getElementById("NegativeBar_"+id);ajaxurl=report_resources.ajax_url;data={id:id,action:'rate_negative'}
jQuery.post(ajaxurl,data,function(response){var split_resp=response.split('&');var rating_p=split_resp[0];var rating_n=split_resp[1];var bar_w=split_resp[2];var rating=parseInt(rating_p)-parseInt(rating_n);if(rating==0){$('#MessageRatingPaneCount_'+id).removeClass('negative');$('#MessageRatingPaneCount_'+id).removeClass('positive');}
if(rating>0){rating='+'+rating.toString();$('#MessageRatingPaneCount_'+id).removeClass('negative');$('#MessageRatingPaneCount_'+id).addClass('positive');}
if(rating<0){rating=rating.toString();$('#MessageRatingPaneCount_'+id).removeClass('positive');$('#MessageRatingPaneCount_'+id).addClass('negative');}
$('#MessageRatingPaneCount_'+id).text(rating);ratingBar.innerHTML="<div class='PositiveBar' style='width: "+bar_w+"px;'> </div>";});$(messageContainer).find(".Controls .MessageRatingButton").each(function(){$(this).attr("href","javascript:void(0);");});}
function rate_comment_positive_negative(id,rating_type){ajaxurl=report_resources.ajax_url;data={action:'nnp-check-comment-deleted',id:id}
jQuery.post(ajaxurl,data,function(response){if(response==1){disable_comment_voting_button(id);return false;}
var forum_cookie=$.cookie('forumVotes');if(forum_cookie!=null){comment_votes_id=forum_cookie.split('&');if(jQuery.inArray(id,comment_votes_id)>=0){disable_comment_voting_button(id);return false}
else{forum_cookie=forum_cookie+'&'+id;$.cookie('forumVotes',forum_cookie,{expires:365,path:'/'});}}
else{$.cookie('forumVotes',id,{expires:365,path:'/'});}
var messageContainer=$("#msg"+id);var ratingBar=document.getElementById("NegativeBar_"+id);data={action:rating_type,id:id}
jQuery.post(ajaxurl,data,function(response){var split_resp=response.split('&');var rating_p=split_resp[0];var rating_n=split_resp[1];var bar_w=split_resp[2];var rating=parseInt(rating_p)-parseInt(rating_n);if(rating==0){$('#MessageRatingPaneCount_'+id).removeClass('negative');$('#MessageRatingPaneCount_'+id).removeClass('positive');}
if(rating>0){rating='+'+rating.toString();$('#MessageRatingPaneCount_'+id).removeClass('negative');$('#MessageRatingPaneCount_'+id).addClass('positive');}
if(rating<0){rating=rating.toString();$('#MessageRatingPaneCount_'+id).removeClass('positive');$('#MessageRatingPaneCount_'+id).addClass('negative');}
$('#MessageRatingPaneCount_'+id).text(rating);ratingBar.innerHTML="<div class='PositiveBar' style='width: "+bar_w+"px;'> </div>";disable_comment_voting_button(id);})});}
function disable_comment_voting_button(id){$('#rate_comment_positive-'+id).click(function(){return false;});$('#rate_comment_negative-'+id).click(function(){return false;});$('#rate_comment_positive-'+id).addClass('opacity');$('#rate_comment_negative-'+id).addClass('opacity');}
$(document).ready(function(){jQuery('#submit_comment').click(function(event){var but=jQuery(this);event.preventDefault();if(sso.ssoUser==null){sso.showLoginForm();return false;}
var elem_title=jQuery.trim(jQuery('#title').val());var elem_message=jQuery.trim(jQuery('#Message').val());if(elem_title==''){return false;}
else{}
if(elem_message==''){return false;}
else{}
jQuery('#AddMessage').submit();});var get_from_ajax=$('#get_comments_from_ajax').val();if(get_from_ajax!=null){var post_ID=$('#post_ID').val();var page_name=$('#page_name');var data={action:'nnp_display_comments_from_ajax',post_ID:post_ID,}
ajaxurl='/ajax-call.php';$.post(ajaxurl,data,function(response){$('#ArticleForumMessages').append(response);moveCommentAds()
blendComments();if(location.href.search('#ForumPostForm_Target')>0){location.href="#ForumPostForm_Target";}});}
$('#ForumLoginForm').submit(function(){sso.authenticateViaCredentials($('#SSOUserLoginID').val(),$('#SSOPasswordLoginID').val(),0);return false;})
var forumRating=$.cookie('forumRating');if(forumRating!=null){$("select[id='BlendoutForumComments']").val($.cookie('forumRating'));}else{$.cookie('forumRating',$("select[id='BlendoutForumComments']").val(),{expires:730,path:'/'});}
blendComments();$("select[id='BlendoutForumComments']").change(function(){$.cookie('forumRating',this.value,{expires:720,path:'/'});blendComments();});var hideBadWords=$.cookie('forumHideBadWords');if(hideBadWords!=null){$(".FilterComments #HideBadWords").attr("checked",true);filterBadWords();}
$(".FilterComments #HideBadWords").click(function(){if($(this).is(':checked')){$.cookie('forumHideBadWords','true',{expires:365,path:'/'});filterBadWords();}
else{$.cookie('forumHideBadWords',null,{path:'/'});$("span.Bad").each(function(){$(this).replaceWith($(this).text());});$("span.BadStars").remove();}});var hideComments=$.cookie('forumHideAllComments');if(hideComments!=null){$(".FilterComments #HideAllComments").attr("checked",true);hideAllComments();}
$(".FilterComments #HideAllComments").click(function(){if($(this).is(':checked')){$.cookie('forumHideAllComments','true',{expires:365,path:'/'});hideAllComments();}
else{$.cookie('forumHideAllComments',null,{path:'/'});$("#ArticleForumMessages").show();$("#BlendoutForumComments").removeAttr("disabled");$("#HideBadWords").removeAttr("disabled");}});if($.cookie('forumFilterHidden')=='true'){$(".FilterComments").hide();}
$("#FilterComments").click(function(){$(".FilterComments").show();});$("#CloseFilterComments").click(function(){$(".FilterComments").hide();});$("a.FilterHelp").mouseover(function(){$("#FilterHelpText").show();}).mouseout(function(){$("#FilterHelpText").hide();});$('.MessageRatingPaneCount').hover(function(){$(this).addClass("ui-hover");},function(){$(this).removeClass("ui-hover");});$(".Report").live('click',function(){var html=$('div#ReportFormContainer').html();jQuery('form[name=reportform]').append('<input type="hidden" id="hiddenid" name="comid" value="'+$(this).attr('id')+'" />');$.blockUI({centerY:true,centerX:true,message:html,css:{top:'-10px',background:'none',border:'none',cursor:'auto'}});$('.blockOverlay').css("cursor","pointer");$('.blockOverlay').click(function(){$('#hiddenid').remove();$.unblockUI();});});$(".SendReportCom").live('click',function(){ajaxurl=report_resources.ajax_url;var data=jQuery('form[name=reportform]').serialize();data=data+'&action=report_comment&commentcontent='+jQuery('#msg'+jQuery('input[name=comid]').val()+' div.Message div.Body div.Text').html();jQuery.post(ajaxurl,data,function(response){$('#hiddenid').remove();$.unblockUI();});});$(".deleteComment").live('click',function(){var this_link=jQuery(this);var this_id_arr=this_link.attr('id').split('-');var this_comment_id=this_id_arr[1];ajaxurl=report_resources.ajax_url;data={action:'nnp-delete-user-comment',comment_id:this_comment_id};jQuery.post(ajaxurl,data,function(response){switch(response)
{case'comment-error-0':sso.showLoginForm();return false;break;case'0':location.reload();break;default:}});})
$('#title').live('keyup',function(){max_title_chars=42;var chars_left=max_title_chars-jQuery(this).val().length;if(0>chars_left){var title=$('#title').val().split('',max_title_chars).join('');$('#title').val(title);chars_left=0;jQuery('#title_char_count').css('border-color','red');jQuery('#title_char_count').css('background-color','#FFE0E1');jQuery('#title_char_count').css('color','#aaaaaa');}
else{jQuery('#title_char_count').css('border-color','#CCCCCC');jQuery('#title_char_count').css('background-color','#fff');jQuery('#title_char_count').css('color','#CCCCCC');}
localized_str='{l8_char_count}'.replace('{l8_char_count}',report_resources.l8_char_count);jQuery('#title_char_count').html(chars_left+localized_str);})
$('a[id^="rate_comment_"]').live('click',function(){var this_a=jQuery(this);var rating_type='rate_negative';if(this_a.attr('id').search('positive')>=0){rating_type='rate_positive';};var comment_id_arr=this_a.attr('id').split('-');var this_coment_id=comment_id_arr[1];rate_comment_positive_negative(this_coment_id,rating_type);})
$('a[id^="forum_login_form-"]').live('click',function(){var this_a=jQuery(this);var comment_id_arr=this_a.attr('id').split('-');var comment_id=comment_id_arr[1];$('#commentIdForReply').attr('name',comment_id);$('#comment_parent').attr('value',comment_id);})});
;var map=null;var geocoder=null;var showmap=false;var bounds=null;var addresses=null;function mapload(){if(GBrowserIsCompatible()){map=new GMap2(document.getElementById("map"));map.addControl(new GSmallMapControl());map.addControl(new GMapTypeControl());geocoder=new GClientGeocoder();bounds=new GLatLngBounds();}}
function showAddress(gmapAddress){var description=null;var currAddress=null;var currPoint=null;var lat=null;var lang=null;var Exp1=/(.+)\|(.+)/;var Exp2=/\((.+),(.+)\)/;addresses=gmapAddress.split(/\n/);for(i=0;i<addresses.length;i++){if(Exp1.exec(addresses[i])!=null){description=RegExp.$1;currAddress=RegExp.$2;}
else{description=null;currAddress=addresses[i];}
if(Exp2.exec(currAddress)!=null){lat=RegExp.$1;lang=RegExp.$2;currPoint=new GLatLng(parseFloat(lat),parseFloat(lang));addGeocodedPoint(currPoint,description);}
else{addAddress(currAddress,description);}}}
function addGeocodedPoint(point,description){map.setCenter(point);var marker=new GMarker(point);map.addOverlay(marker);GEvent.addListener(marker,"click",function(){marker.openInfoWindowHtml(description);});bounds.extend(new GLatLng(point.y,point.x));redraw();}
function addAddress(currAddress,description){if(geocoder){geocoder.getLatLng(currAddress,function(point){if(!point){}else{map.setCenter(point);var marker=new GMarker(point);map.addOverlay(marker);if(description!=null){GEvent.addListener(marker,"click",function(){marker.openInfoWindowHtml("<b>"+description+"</b><br/>"+currAddress);});}
else{GEvent.addListener(marker,"click",function(){marker.openInfoWindowHtml("<b>"+currAddress.replace(/,/g,'<br>')+"</b>");});}
bounds.extend(new GLatLng(point.y,point.x));redraw();}});}}
function redraw(){map.setCenter(bounds.getCenter(),map.getBoundsZoomLevel(bounds));if(map.getZoom()>15)
map.setZoom(15);}
function mapCallBack(point,currAddress){alert(point);if(!point){document.getElementById("map").style.display='none';}else{map.setCenter(point);var marker=new GMarker(point);map.addOverlay(marker);GEvent.addListener(marker,"click",function(){marker.openInfoWindowHtml("<b>"+currAddress+"</b>");});bounds.extend(new GLatLng(point.y,point.x));redraw();}}
function unloadMap(){GUnload();}
;var poll_id=0;var poll_answer_id="";var is_being_voted=false;pollsL10n.show_loading=parseInt(pollsL10n.show_loading);pollsL10n.show_fading=parseInt(pollsL10n.show_fading);function poll_vote(a){if(!is_being_voted){set_is_being_voted(true);poll_id=a;poll_answer_id="";poll_multiple_ans=0;poll_multiple_ans_count=0;if(jQuery("#poll_multiple_ans_"+poll_id).length){poll_multiple_ans=parseInt(jQuery("#poll_multiple_ans_"+poll_id).val())}jQuery("#polls_form_"+poll_id+" :checkbox, #polls_form_"+poll_id+" :radio").each(function(b){if(jQuery(this).is(":checked")){if(poll_multiple_ans>0){poll_answer_id=jQuery(this).val()+","+poll_answer_id;poll_multiple_ans_count++}else{poll_answer_id=parseInt(jQuery(this).val())}}});if(poll_multiple_ans>0){if(poll_multiple_ans_count>0&&poll_multiple_ans_count<=poll_multiple_ans){poll_answer_id=poll_answer_id.substring(0,(poll_answer_id.length-1));poll_process()}else{if(poll_multiple_ans_count==0){set_is_being_voted(false);alert(pollsL10n.text_valid)}else{set_is_being_voted(false);alert(pollsL10n.text_multiple+" "+poll_multiple_ans)}}}else{if(poll_answer_id>0){poll_process()}else{set_is_being_voted(false);alert(pollsL10n.text_valid)}}}else{alert(pollsL10n.text_wait)}}function poll_process(){if(pollsL10n.show_fading){jQuery("#polls-"+poll_id).fadeTo("def",0,function(){if(pollsL10n.show_loading){jQuery("#polls-"+poll_id+"-loading").show()}jQuery.ajax({type:"POST",url:pollsL10n.ajax_url,data:"vote=true&poll_id="+poll_id+"&poll_"+poll_id+"="+poll_answer_id,cache:false,success:poll_process_success})})}else{if(pollsL10n.show_loading){jQuery("#polls-"+poll_id+"-loading").show()}jQuery.ajax({type:"POST",url:pollsL10n.ajax_url,data:"vote=true&poll_id="+poll_id+"&poll_"+poll_id+"="+poll_answer_id,cache:false,success:poll_process_success})}}function poll_result(a){if(!is_being_voted){set_is_being_voted(true);poll_id=a;if(pollsL10n.show_fading){jQuery("#polls-"+poll_id).fadeTo("def",0,function(){if(pollsL10n.show_loading){jQuery("#polls-"+poll_id+"-loading").show()}jQuery.ajax({type:"GET",url:pollsL10n.ajax_url,data:"pollresult="+poll_id,cache:false,success:poll_process_success})})}else{if(pollsL10n.show_loading){jQuery("#polls-"+poll_id+"-loading").show()}jQuery.ajax({type:"GET",url:pollsL10n.ajax_url,data:"pollresult="+poll_id,cache:false,success:poll_process_success})}}else{alert(pollsL10n.text_wait)}}function poll_booth(a){if(!is_being_voted){set_is_being_voted(true);poll_id=a;if(pollsL10n.show_fading){jQuery("#polls-"+poll_id).fadeTo("def",0,function(){if(pollsL10n.show_loading){jQuery("#polls-"+poll_id+"-loading").show()}jQuery.ajax({type:"GET",url:pollsL10n.ajax_url,data:"pollbooth="+poll_id,cache:false,success:poll_process_success})})}else{if(pollsL10n.show_loading){jQuery("#polls-"+poll_id+"-loading").show()}jQuery.ajax({type:"GET",url:pollsL10n.ajax_url,data:"pollbooth="+poll_id,cache:false,success:poll_process_success})}}else{alert(pollsL10n.text_wait)}}function poll_process_success(a){jQuery("#polls-"+poll_id).html(a);if(pollsL10n.show_loading){jQuery("#polls-"+poll_id+"-loading").hide()}if(pollsL10n.show_fading){jQuery("#polls-"+poll_id).fadeTo("def",1,function(){set_is_being_voted(false)})}else{set_is_being_voted(false)}}function set_is_being_voted(a){is_being_voted=a};
;var tb_pathToImage="/SysRes/ROSkin/Groups/GalleryViewer/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){tb_init('a.thickbox, area.thickbox, input.thickbox');imgLoader=new Image();imgLoader.src=tb_pathToImage;});function tb_init(domChunk){$(domChunk).click(function(){var t=this.title||this.name||null;var a=this.href||this.alt;var g=this.rel||false;tb_show(t,a,g);this.blur();return false;});}
function tb_show(caption,url,imageGroup){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}
if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack");}else{$("#TB_overlay").addClass("TB_overlayBG");}
if(caption===null){caption="";}
$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$('#TB_load').show();var baseURL;if(url.indexOf("?")!==-1){baseURL=url.substr(0,url.indexOf("?"));}else{baseURL=url;}
var urlString=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var urlType=baseURL.toLowerCase().match(urlString);if(urlType=='.jpg'||urlType=='.jpeg'||urlType=='.png'||urlType=='.gif'||urlType=='.bmp'){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(imageGroup){TB_TempArray=$("a[@rel="+imageGroup+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var urlTypeTemp=TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);if(!(TB_TempArray[TB_Counter].href==url)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length);}}}
imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var pagesize=tb_getPageSize();var x=pagesize[0]-150;var y=pagesize[1]-150;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;}}else if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;}}
TB_WIDTH=imageWidth+30;TB_HEIGHT=imageHeight+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>"+"<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function goPrev(){if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,imageGroup);return false;}
$("#TB_prev").click(goPrev);}
if(!(TB_NextHTML==="")){function goNext(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,imageGroup);return false;}
$("#TB_next").click(goNext);}
document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){tb_remove();}else if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";goNext();}}else if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev();}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"});};imgPreloader.src=url;}else{var queryString=url.replace(/^[^\?]+\??/,'');var params=tb_parseQuery(queryString);TB_WIDTH=(params['width']*1)+30||1000;TB_HEIGHT=(params['height']*1)+40||810;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;urlNoQuery=url.split('TB_');$("#TB_iframeContent").remove();$("#TB_window").append("<div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title=''></a></div><iframe allowtransparency='true' frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:1020px;height:"+(ajaxContentH+27)+"px;' > </iframe>");$("#TB_closeWindowButton").click(tb_remove);tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"});}}
if(!params['modal']){document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){tb_remove();}};}}catch(e){}}
function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","");}
document.onkeydown="";document.onkeyup="";return false;}
function tb_position(){$("#TB_window").css({marginLeft:'-'+parseInt((TB_WIDTH/2),10)+'px',width:TB_WIDTH+'px'});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:'-'+parseInt((TB_HEIGHT/2.3),10)+'px'});if($(window).height()<TB_HEIGHT)$("#TB_window").css({marginTop:'-'+parseInt(($(window).height()/2),10)+'px'});}
else{if($(window).height()<TB_HEIGHT){$("#TB_window").css("height",$(window).height()+"px");$("#TB_window").css("overflow","hidden");}}}
function tb_parseQuery(query){var Params={};if(!query){return Params;}
var Pairs=query.split(/[;&]/);for(var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split('=');if(!KeyVal||KeyVal.length!=2){continue;}
var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(/\+/g,' ');Params[key]=val;}
return Params;}
function tb_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;arrayPageSize=[w,h];return arrayPageSize;}
function tb_detectMacXFF(){var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf('mac')!=-1&&userAgent.indexOf('firefox')!=-1){return true;}}
;function EvolverSSO(contentTargets,useOAuth){var that=this;this.contentTargets=contentTargets;this.useOAuth=(useOAuth)?true:false;McomSSO.prototype.constructor.apply(this,[this.contentTargets,this.useOAuth]);if($.cookie("EvoSSO")!=null){var cookie=this._readSSOCookie();if($.cookie("wordpress_logged_in_")==null){var data={action:'sso_create_wp_cookie',ssoUserName:this.get_user_name()};ajaxurl=ssoConfig.ssoServicePath;$.post(ajaxurl,data,function(response){if(!response)
return false;obj=window.JSON.parse(response);var res_error=obj.error;var res_mess=obj.message;if(res_error==1){return false;}
else{return true;}})}
$('#SSOLoggedInFragment').show();$('#simplemodal-container, #simplemodal-overlay, #SSOLoggedOutFragment').hide();$('#ForumLoginForm').hide();}
else{if($.cookie("wordpress_logged_in_")!=null)
$.cookie("wordpress_logged_in_",null,{path:'/'});}
this.authenticateViaCredentials=function(ssoUserName,ssoPassword,ssoKeepLoggedIn){if(!this.checkUserPass(ssoUserName,ssoPassword)){this.handleLoginFormErrors('');return false;}
var data={action:'sso_login_user',user:ssoUserName,pass:ssoPassword};ajaxurl=ssoConfig.ssoServicePath;$.post(ajaxurl,data,function(response){if(!response){$('.SSOFieldMessage').html('Could not connect to login server');return false;};obj=window.JSON.parse(response);var res_error=obj.error;var res_mess=obj.message;if((typeof comment_login_error)=='function')
comment_login_error(obj);if(res_error==1){$('p.SSOFieldMessage').text(res_mess);$('p.SSOFieldMessage').addClass('Error');$('p.SSOFieldMessage').removeClass('Success');$('p.SSOFieldMessage').show();return obj;}
else
if(res_error==0){$('#SSOLoggedInFragment').append(res_mess);$('#SSOLoggedInFragment').show();$('#simplemodal-container, #simplemodal-overlay, #SSOLoggedOutFragment').hide();jQuery('#ForumLoginForm').hide();}
else{this.logout();}});}
this.logout=function(){$.cookie("wordpress_",null,{path:'/'});var ar=location.host.split('.');var dim=location.host.split('.').length;ndomain='.'+ar[dim-2]+'.'+ar[dim-1];$.cookie("EvoSSO",null,{path:'/',domain:ndomain});$.cookie("wordpress_logged_in_",null,{path:'/'});if($.cookie("wordpress_logged_in_")==null){$('#SSOLoggedInFragment').css('display','none');$('#SSOLoggedOutFragment').show();$('#simplemodal-container, #simplemodal-overlay').hide();jQuery('#ForumLoginForm').show();}
var data={action:'sso_logout_user',user:'ssoUserName',pass:'ssoPassword'};ajaxurl=ssoConfig.ssoServicePath;$.post(ajaxurl,data,function(response){if(!response){return false;}
obj=window.JSON.parse(response);var res_error=obj.error;var res_mess=obj.message;if(res_error==1){return false;}
else
if(res_error==0){$('#SSOLoggedInFragment').append(res_mess);return true;}
else{this.logout();}});window.location='http://'+window.location.hostname;}
this.checkUserPass=function(ssoUserName,ssoPassword){if(ssoUserName==''||ssoPassword=='')
return false;else
return true;}
this.onAuthenticateViaCredentials=function(data,textStatus,xmlHttpRequest){}
this.ssoUser=this._readSSOCookie();}
EvolverSSO.prototype=McomSSO.prototype;McomSSO.prototype._readSSOCookie=function(){var ssoCookie=null;var ssoUser=null;var ssoCookieValues=null;var ssoUserName=null;var ssoPasswordHash=null;var ssoFullName=null;var ssoActive=null;var ssoToken=null;ssoCookie=this.getCookie('EvoSSO');if(ssoCookie==null){return null;}
else{ssoActive=true;}
ssoCookieValues=ssoCookie.split(/\&/);for(var i=0;i<ssoCookieValues.length;i++){var value=ssoCookieValues[i].split(/\=/);if(value[0]=='l'){ssoUserName=value[1].replace(/ /,'\\20');}
if(value[0]=='h'){ssoPasswordHash=value[1]+'==';}
if(value[0]=='l'){ssoFullName=decodeURI(value[1]).replace(/\+/g,' ');}
if(value[0]=='t'){ssoToken=decodeURI(value[1]).replace(/\+/g,' ');}}
if(ssoUserName!='guest'){ssoUser=new McomSSOUser(ssoUserName,ssoPasswordHash,ssoFullName,ssoActive);}
return ssoUser;}
McomSSO.prototype.get_user_name=function(){var cook=this.getCookie('EvoSSO');if(cook==null)return null;ssoCookieValues=cook.split(/\&/);for(var i=0;i<ssoCookieValues.length;i++){var value=ssoCookieValues[i].split(/\=/);if(value[0]=='l'){ssoUserName=value[1].replace(/ /,'\\20');}}
return ssoUserName;}
;function checkAndSubmit(email,placeholder,error_text,check_email_error_text){if(email.value!=""&&email.value!=placeholder){if(isEmail(email.value)==true){email.value=email.value.toLowerCase();return true;}else{alert(check_email_error_text);email.focus();return false;}}else{alert(error_text);email.focus();return false;}}
;ssoConfig.ssoServicePath='/ajax-call.php';ssoConfig.ssoServiceSSOLoginMethod='?nnp-login';ssoConfig.ssoServiceSSOLogoutMethod='?nnp-logout';ssoConfig.ssoRegistrationPage='ssologin/register';ssoConfig.ssoLoginErrorMessage='Utilizator sau parola incorecta';ssoConfig.contentTargets={loginButton:'a.SSOLoginLink',logoutButton:'#SSOLogoutLink',fragmentLoggedOut:'#SSOLoggedOutFragment',fragmentLoggedIn:'#SSOLoggedInFragment',userName:'#UserProfileDataName',profileLink:'#UserProfileLink',profileAvatar:'#UserIconProfileImage'};
;if(!window.mrm_google_count){var mrm_google_count=0;}
if((!window.mrm_google_ad_channel)&&(window.google_ad_channel)){var mrm_google_ad_channel=google_ad_channel;}
if((!window.mrm_google_hints)&&(window.google_hints)){var mrm_google_hints=google_hints;}
if((!window.mrm_google_contents)&&(window.google_contents)){var mrm_google_contents=google_contents;}
function ss(w,id){window.status=w;return true;}function cs(){window.status='';}function ha(a){pha=document.getElementById(a);nhi=pha.href.indexOf("&nh=");if(nhi<1){phb=pha.href+"&nh=1";}pha.href=phb;}function ca(a){pha=document.getElementById(a);nci=pha.href.indexOf("&nc=");if(nci<1){phb=pha.href+"&nc=1";}pha.href=phb;window.open(document.getElementById(a).href);}function ga(o,e){if(document.getElementById){a=o.id.substring(1);p="";r="";g=e.target;if(g){t=g.id;f=g.parentNode;if(f){p=f.id;h=f.parentNode;if(h)r=h.id;}}else{h=e.srcElement;f=h.parentNode;if(f)p=f.id;t=h.id;}if(t==a||p==a||r==a)return true;pha=document.getElementById(a);nbi=pha.href.indexOf("&nb=");if(nbi<1){phb=pha.href+"&nb=1";}pha.href=phb;window.open(document.getElementById(a).href);}}
function google_ad_request_done(ads){var s='';var i;if(ads.length==0){return;}
if(ads[0].type=="image"){s+='<div style="width:'+google_image_width+'; position:relative; overflow:hidden;"><div class="adsense-image-box"><div class="adsense-image"><a href="'+ads[0].url+'" target="_blank" title="go to '+ads[0].visible_url+'"><img border="0" src="'+ads[0].image_url+'"width="'+ads[0].image_width+'"height="'+ads[0].image_height+'"></a></div><div class="adsense-image-label"><a href=\"'+google_info.feedback_url+'\" target="_blank" style="background:url('+google_image_label+') no-repeat 18px #666;"><img class="googleinfo" src="http://pagead2.googlesyndication.com/pagead/images/i.png"/></a></div></div></div>';}else if(ads[0].type=="flash"){s+='<div style="width:'+google_image_width+'; position:relative; overflow:hidden;"><div class="adsense-image-box"><div class="adsense-image"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"'+' WIDTH="'+google_ad.image_width+'" HEIGHT="'+google_ad.image_height+'">'+'<PARAM NAME="movie" VALUE="'+google_ad.image_url+'">'+'<PARAM NAME="quality" VALUE="high">'+'<PARAM NAME="AllowScriptAccess" VALUE="never">'+'<EMBED src="'+google_ad.image_url+'" WIDTH="'+google_ad.image_width+'" HEIGHT="'+google_ad.image_height+'" TYPE="application/x-shockwave-flash"'+' AllowScriptAccess="never" '+' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT></div></div></div>';}else if(ads[0].type=="html"){s+='<div style="width:'+google_image_width+'; position:relative; overflow:hidden;">'+ads[0].snippet+'</div>';}else if(ads[0].type=="text"){mrm_google_count+=ads.length;s+='<div class="'+google_style+'" style="font-family:'+google_font_family+'"> <span class="adsense-label"> <a href=\"'+google_info.feedback_url+'\" target="_blank">'+google_text_label+'</a></span>';for(i=0;i<ads.length;++i){s+='<div class="adsense-ad" style="width:'+google_width+'; margin-right:'+google_margin_right+'; margin-top:'+google_margin_top+'; background-color:'+google_background_color+'; border:'+google_border_size+' solid '+google_border_color+'; padding:'+google_padding+'"><span class="adsense-title"><a href="'+ads[i].url+'" target="_blank">'+ads[i].line1+'</a></span><span class="adsense-text1">'+ads[i].line2+'</span><span class="adsense-text2">'+ads[i].line3+'</span><span class="adsense-url"><a href="'+ads[i].url+'" target="_blank">'+ads[i].visible_url+'</a></span></div>';s+='<style>span.adsense-title a {color:'+google_title_color+'; font-size:'+google_title_size+'; text-decoration:'+google_title_decoration+';} span.adsense-title a:hover {color:'+google_title_color_hover+'; text-decoration:'+google_title_decoration_hover+';} span.adsense-url a {font-size:'+google_link_size+'; color:'+google_link_color+'; text-decoration:'+google_link_decoration+';} span.adsense-url a:hover {color:'+google_link_color_hover+'; text-decoration:'+google_link_decoration_hover+';} </style>';}
s+='</div>';}
document.write(s);return;}
;var gConvert=true;var gFpc="WT_FPC";var gDomain="sdc.tele.net";var gDcsId="dcs5237wrxnd92ef0ou8p1z0n_3x9g";var gHref="";var gService=false;var gTimeZone=1;var gI18n=false;if((typeof(gConvert)!="undefined")&&gConvert&&(document.cookie.indexOf(gFpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){document.write("<SCRIPT TYPE='text/javascript' SRC='http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+gDomain+"/"+gDcsId+"/wtid.js'></SCRIPT>")};
;var gHref="";var gService=false;function dcsAdvert(a){if(a){dcsMultiTrack("DCS.dcsuri","/Ads","WT.svl","svl_ad_"+a,"WT.ac",a)}DCS.dcssip=DCS.dcsuri=DCS.dcsqry=WT.ti=WT.svl=WT.ac=""}function dcsAfm(b,d,e){var n;if(d&&typeof(d)!="undefined"&&d.length>=19){n=d.substring(0,19)}else{var h=new Date();var g=(h.getMonth()+1)<10?"0"+(h.getMonth()+1):(h.getMonth()+1);var l=h.getDay()<10?"0"+h.getDay():h.getDay();var m=h.getHours()<10?"0"+h.getHours():h.getHours();var a=h.getMinutes()<10?"0"+h.getMinutes():h.getMinutes();var j=h.getSeconds()<10?"0"+h.getSeconds():h.getSeconds();n=h.getFullYear()+"-"+g+"-"+l+"T"+m+":"+a+":"+j}if(b&&typeof(b)!="undefined"){var f="svl_"+b;var c="DCSext.afm";if(b.length>2){var i=b.split("_");if(i.length==3){if(i[2]>9){i[2]=0}b=i[1]+""+i[2]}}else{if(b.length==2){}else{b="00"}}var k=b+"D"+n+" "+e;dcsMultiTrack("DCS.dcsuri","/Afm","WT.svl",f,c,k);DCS.dcssip=DCS.dcsuri=DCS.dcsqry=WT.ti=WT.svl=c=""}}function dcsTP(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var a="WT_DC";var b="; expires=Thu, 31-Dec-2020 08:00:00 GMT";var d="; path=/";var c="";if((document.cookie.indexOf(a+"=")!=-1)&&(dcsGetCrumb(a,"tsp")=="1")){WT.ttp="1"}if(dcsGetMeta("SmartView_Page")=="1"){WT.tsp="1";document.cookie=a+"=tsp=1"+b+d+c}else{document.cookie=a+"=; expires=Sun, 1-Jan-1995 00:00:00 GMT;"+d+c}}function dcsGetMeta(b){var a;if(document.all){a=document.all.tags("meta")}else{if(document.documentElement){a=document.getElementsByTagName("meta")}}if(typeof(a)!="undefined"){for(var c=1;c<=a.length;c++){var d=a.item(c-1);if(d.name&&(d.name.indexOf(b)==0)){return d.content;break}}}return null}function dcsCookie(){if(typeof(dcsOther)=="function"){dcsOther()}else{if(typeof(dcsPlugin)=="function"){dcsPlugin()}else{if(typeof(dcsFPC)=="function"){dcsFPC(gTimeZone)}}}}function dcsGetCookie(b){var d=document.cookie.indexOf(b+"=");if(d!=-1){var c=d+b.length+1;var a=document.cookie.indexOf(";",c);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(c,a))}return null}function dcsGetCrumb(d,c){var b=dcsGetCookie(d).split(":");for(var e=0;e<b.length;e++){var a=b[e].split("=");if(c==a[0]){return a[1]}}return null}function dcsGetIdCrumb(c,b){var e=dcsGetCookie(c);var f=e.substring(0,e.indexOf(":lv="));var a=f.split("=");for(var d=0;d<a.length;d++){if(b==a[0]){return a[1]}}return null}function dcsIsFpcSet(a,d,c,b){if(d==dcsGetIdCrumb(a,"id")){if(c==dcsGetCrumb(a,"lv")){if(b=dcsGetCrumb(a,"ss")){return true}}}return false}function dcsFPC(g){if(typeof(g)=="undefined"){return}if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var a=gFpc;var l=new Date();var j=(l.getTimezoneOffset()*60000)+(g*3600000);l.setTime(l.getTime()+j);var e=new Date(l.getTime()+315360000000);var k=new Date(l.getTime());WT.co_f=WT.vt_sid=WT.vt_f=WT.vt_f_a=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";if(document.cookie.indexOf(a+"=")==-1){if((typeof(gWtId)!="undefined")&&(gWtId!="")){WT.co_f=gWtId}else{if((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){WT.co_f=gTempWtId;WT.vt_f="1"}else{WT.co_f="2";var m=l.getTime().toString();for(var h=2;h<=(32-m.length);h++){WT.co_f+=Math.floor(Math.random()*16).toString(16)}WT.co_f+=m;WT.vt_f="1"}}if(typeof(gWtAccountRollup)=="undefined"){WT.vt_f_a="1"}WT.vt_f_s=WT.vt_f_d="1";WT.vt_f_tlh=WT.vt_f_tlv="0"}else{var b=dcsGetIdCrumb(a,"id");var d=parseInt(dcsGetCrumb(a,"lv"));var n=parseInt(dcsGetCrumb(a,"ss"));if((b==null)||(b=="null")||isNaN(d)||isNaN(n)){return}WT.co_f=b;var f=new Date(d);WT.vt_f_tlh=Math.floor((f.getTime()-j)/1000);k.setTime(n);if((l.getTime()>(f.getTime()+1800000))||(l.getTime()>(k.getTime()+28800000))){WT.vt_f_tlv=Math.floor((k.getTime()-j)/1000);k.setTime(l.getTime());WT.vt_f_s="1"}if((l.getDay()!=f.getDay())||(l.getMonth()!=f.getMonth())||(l.getYear()!=f.getYear())){WT.vt_f_d="1"}}WT.co_f=escape(WT.co_f);WT.vt_sid=WT.co_f+"."+(k.getTime()-j);var c="; expires="+e.toGMTString();document.cookie=a+"=id="+WT.co_f+":lv="+l.getTime().toString()+":ss="+k.getTime().toString()+c+"; path=/"+(((typeof(gFpcDom)!="undefined")&&(gFpcDom!=""))?("; domain="+gFpcDom):(""));if(!dcsIsFpcSet(a,WT.co_f,l.getTime().toString(),k.getTime().toString())){WT.co_f=WT.vt_sid=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";WT.vt_f=WT.vt_f_a="2"}}function dcsParseSvl(b){b=b.split(" ").join("");b=b.split("\t").join("");b=b.split("\n").join("");var d=b.toUpperCase().indexOf("WT.SVL=");if(d!=-1){var c=d+8;var a=b.indexOf('"',c);if(a==-1){a=b.indexOf("'",c);if(a==-1){a=b.length}}return b.substring(c,a)}return""}function dcsIsOnsite(c){var a=doms.split(",");for(var b=0;b<a.length;b++){if(c.indexOf(a[b])!=-1){return 1}}return 0}function dcsIsHttp(a){return(a.href&&a.protocol&&(a.protocol.indexOf("http")!=-1))?true:false}function dcsSaveHref(a){if(a.preventDefault&&a.target.href){a.preventDefault();gHref=a.target.href}}function dcsLoadHref(a){if(gHref.length>0){window.location=gHref;gHref=""}}function dcsEvt(b,a){var c=b.target||b.srcElement;while(c.tagName&&(c.tagName!=a)){c=c.parentElement||c.parentNode}return c}function dcsBind(b,a){if((typeof(window[a])=="function")&&document.body){if(document.body.addEventListener){document.body.addEventListener(b,window[a],true)}else{if(document.body.attachEvent){document.body.attachEvent("on"+b,window[a])}}}}function dcsET(){dcsBind("click","dcsDownload");dcsBind("click","dcsDynamic");dcsBind("click","dcsFormButton");dcsBind("click","dcsOffsite");dcsBind("click","dcsAnchor");dcsBind("mousedown","dcsRightClick")}function dcsMultiTrack(){if(arguments.length%2==0){for(var b=0;b<arguments.length;b+=2){if(arguments[b].indexOf("WT.")==0){WT[arguments[b].substring(3)]=arguments[b+1]}else{if(arguments[b].indexOf("DCS.")==0){DCS[arguments[b].substring(4)]=arguments[b+1]}else{if(arguments[b].indexOf("DCSext.")==0){DCSext[arguments[b].substring(7)]=arguments[b+1]}}}}var a=new Date();DCS.dcsdat=a.getTime();dcsFunc("dcsCookie");dcsTag()}}function dcsOffsite(b){b=b||(window.event||"");if(b){var f=dcsEvt(b,"A");if(f.hostname&&!dcsIsOnsite(f.hostname)){var c=f.search?f.search.substring(f.search.indexOf("?")+1,f.search.length):"";if(c.toUpperCase().indexOf("WT.SVL=")==-1){WT.svl=dcsParseSvl(f.name?f.name.toString():(f.onclick?f.onclick.toString():""))}var d=f.pathname?((f.pathname.indexOf("/")!=0)?"/"+f.pathname:f.pathname):"/";var a=true;dcsMultiTrack("DCS.dcssip",f.hostname,"DCS.dcsuri",d,"DCS.dcsqry",a?"":c,"WT.ti","Offsite:"+f.hostname+d+c,"WT.os","1");DCS.dcssip=DCS.dcsuri=DCS.dcsqry=WT.ti=WT.svl=WT.os=""}}}function dcsDynamic(a){a=a||(window.event||"");if(a){var d=dcsEvt(a,"A");if(d.href&&d.protocol){var b=d.search?d.search.substring(d.search.indexOf("?")+1,d.search.length):"";if(b.toUpperCase().indexOf("WT.SVL=")==-1){WT.svl=dcsParseSvl(d.name?d.name.toString():(d.onclick?d.onclick.toString():""))}if(d.protocol.indexOf("http")!=-1){if(d.hostname&&dcsIsOnsite(d.hostname)){if(WT.svl&&(WT.svl!="")){var c=d.pathname?((d.pathname.indexOf("/")!=0)?"/"+d.pathname:d.pathname):"/";dcsMultiTrack("DCS.dcssip",d.hostname,"DCS.dcsuri",c,"DCS.dcsqry",b,"WT.ti","Custom:"+d.hostname+c+b,"WT.cl","cm");DCS.dcssip=DCS.dcsuri=DCS.dcsqry=WT.ti=WT.cl=""}}}else{if(d.protocol=="javascript:"){dcsMultiTrack("DCS.dcssip","","DCS.dcsuri",d.href,"WT.ti","JavaScript:"+d.innerHTML,"WT.cl","js");DCS.dcssip=DCS.dcsuri=WT.ti=WT.cl=""}else{if(d.protocol=="mailto:"){dcsMultiTrack("DCS.dcssip","","DCS.dcsuri",d.href,"WT.ti","MailTo:"+d.innerHTML,"WT.cl","mt");DCS.dcssip=DCS.dcsuri=WT.ti=WT.cl=""}}}WT.svl=""}}}function dcsDownload(a){a=a||(window.event||"");if(a){var f=dcsEvt(a,"A");if(f.hostname&&dcsIsOnsite(f.hostname)){var b="xls,doc,pdf,txt,csv,zip";if(b.indexOf(f.pathname.substring(f.pathname.lastIndexOf(".")+1,f.pathname.length))!=-1){var c=f.search?f.search.substring(f.search.indexOf("?")+1,f.search.length):"";if(c.toUpperCase().indexOf("WT.SVL=")==-1){WT.svl=dcsParseSvl(f.name?f.name.toString():(f.onclick?f.onclick.toString():""))}var d=f.pathname?((f.pathname.indexOf("/")!=0)?"/"+f.pathname:f.pathname):"/";dcsMultiTrack("DCS.dcssip",f.hostname,"DCS.dcsuri",d,"DCS.dcsqry",f.search||"","WT.ti","Download:"+(f.innerHTML||""),"WT.dl","1");DCS.dcssip=DCS.dcsuri=DCS.dcsqry=WT.ti=WT.svl=WT.dl=""}}}}function dcsHandler(a){a=a||(window.event||"");if(a){var c=dcsEvt(a,"A");var b=c.pathname?((c.pathname.indexOf("/")!=0)?"/"+c.pathname:c.pathname):"/";var d=c.firstChild.data?c.firstChild.data:"";dcsMultiTrack("DCS.dcssip",c.hostname,"DCS.dcsuri",b,"WT.ti",d);DCS.dcssip=DCS.dcsuri=WT.ti=""}}function dcsAdv(){dcsFunc("dcsET");dcsFunc("dcsCookie");dcsFunc("dcsAdSearch");dcsFunc("dcsTP")}var gImages=new Array;var gIndex=0;var DCS=new Object();var WT=new Object();var DCSext=new Object();var gQP=new Array();if(window.RegExp){var RE={"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g};var I18NRE={"%25":/\%/g}}function dcsVar(){var b=new Date();WT.tz=b.getTimezoneOffset()/60*-1;if(WT.tz==0){WT.tz="0"}WT.bh=b.getHours();WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;if(typeof(screen)=="object"){WT.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;WT.sr=screen.width+"x"+screen.height}if(typeof(navigator.javaEnabled())=="boolean"){WT.jo=navigator.javaEnabled()?"Yes":"No"}if(document.title){WT.ti=gI18n?dcsEscape(dcsEncode(document.title),I18NRE):document.title}WT.js="Yes";WT.jv=dcsJV();if(document.body&&document.body.addBehavior){document.body.addBehavior("#default#clientCaps");WT.ct=document.body.connectionType||"unknown";document.body.addBehavior("#default#homePage");WT.hp=document.body.isHomePage(location.href)?"1":"0"}else{WT.ct="unknown"}if(parseInt(navigator.appVersion)>3){if((navigator.appName=="Microsoft Internet Explorer")&&document.body){WT.bs=document.body.offsetWidth+"x"+document.body.offsetHeight}else{if(navigator.appName=="Netscape"){WT.bs=window.innerWidth+"x"+window.innerHeight}}}WT.fi="No";if(window.ActiveXObject){for(var d=10;d>0;d--){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);WT.fi="Yes";WT.fv=d+".0";break}catch(g){}}}else{if(navigator.plugins&&navigator.plugins.length){for(var d=0;d<navigator.plugins.length;d++){if(navigator.plugins[d].name.indexOf("Shockwave Flash")!=-1){WT.fi="Yes";WT.fv=navigator.plugins[d].description.split(" ")[2];break}}}}if(gI18n){WT.em=(typeof(encodeURIComponent)=="function")?"uri":"esc";if(typeof(document.defaultCharset)=="string"){WT.le=document.defaultCharset}else{if(typeof(document.characterSet)=="string"){WT.le=document.characterSet}}}WT.tv="8.0.2";DCS.dcsdat=b.getTime();DCS.dcssip=window.location.hostname;DCS.dcsuri=window.location.pathname;if(window.location.search){DCS.dcsqry=window.location.search;if(gQP.length>0){for(var d=0;d<gQP.length;d++){var h=DCS.dcsqry.indexOf(gQP[d]);if(h!=-1){var f=DCS.dcsqry.substring(0,h);var a=DCS.dcsqry.substring(h+gQP[d].length,DCS.dcsqry.length);DCS.dcsqry=f+a}}}}if((window.document.referrer!="")&&(window.document.referrer!="-")){if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){DCS.dcsref=gI18n?dcsEscape(window.document.referrer,I18NRE):window.document.referrer}}}function dcsA(b,a){return"&"+b+"="+dcsEscape(a,RE)}function dcsEscape(a,d){if(typeof(d)!="undefined"){var c=new String(a);for(var b in d){c=c.replace(d[b],b)}return c}else{return escape(a)}}function dcsEncode(a){return(typeof(encodeURIComponent)=="function")?encodeURIComponent(a):escape(a)}function dcsCreateImage(a){if(document.images){gImages[gIndex]=new Image;gImages[gIndex].src=a;gIndex++}else{document.write('<IMG ALT="" BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="'+a+'">')}}function dcsMeta(){var a;if(document.all){a=document.all.tags("meta")}else{if(document.documentElement){a=document.getElementsByTagName("meta")}}if(typeof(a)!="undefined"){for(var b=1;b<=a.length;b++){var c=a.item(b-1);if(c.name){if(c.name.indexOf("WT.")==0){WT[c.name.substring(3)]=(gI18n&&(c.name.indexOf("WT.ti")==0))?dcsEscape(dcsEncode(c.content),I18NRE):c.content}else{if(c.name.indexOf("DCSext.")==0){DCSext[c.name.substring(7)]=c.content}else{if(c.name.indexOf("DCS.")==0){DCS[c.name.substring(4)]=(gI18n&&(c.name.indexOf("DCS.dcsref")==0))?dcsEscape(c.content,I18NRE):c.content}}}}}}}function dcsTag(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var a="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+gDomain+(gDcsId==""?"":"/"+gDcsId)+"/dcs.gif?";for(var b in DCS){if(DCS[b]){a+=dcsA(b,DCS[b])}}for(b in WT){if(WT[b]){a+=dcsA("WT."+b,WT[b])}}for(b in DCSext){if(DCSext[b]){a+=dcsA(b,DCSext[b])}}if(a.length>2048&&navigator.userAgent.indexOf("MSIE")>=0){a=a.substring(0,2040)+"&WT.tu=1"}dcsCreateImage(a)}function dcsJV(){var h=navigator.userAgent.toLowerCase();var s=parseInt(navigator.appVersion);var f=(h.indexOf("mac")!=-1);var n=(h.indexOf("firefox")!=-1);var c=(h.indexOf("firefox/0.")!=-1);var i=(h.indexOf("firefox/1.0")!=-1);var d=(h.indexOf("firefox/1.5")!=-1);var g=(n&&!c&&!i&!d);var b=(!n&&(h.indexOf("mozilla")!=-1)&&(h.indexOf("compatible")==-1));var e=(b&&(s==4));var p=(b&&(s>=5));var r=((h.indexOf("msie")!=-1)&&(h.indexOf("opera")==-1));var j=(r&&(s==4)&&(h.indexOf("msie 4")!=-1));var q=(r&&!j);var m=(h.indexOf("opera")!=-1);var l=(h.indexOf("opera 5")!=-1||h.indexOf("opera/5")!=-1);var k=(h.indexOf("opera 6")!=-1||h.indexOf("opera/6")!=-1);var a=(m&&!l&&!k);var o="1.1";if(g){o="1.7"}else{if(d){o="1.6"}else{if(c||i||p||a){o="1.5"}else{if((f&&q)||k){o="1.4"}else{if(q||e||l){o="1.3"}else{if(j){o="1.2"}}}}}}return o}function dcsFunc(a){if(typeof(window[a])=="function"){window[a]()}}dcsVar();dcsMeta();dcsFunc("dcsAdv");dcsTag();
;jQuery(document).ready(function(){jQuery("#tracking_nnp_sites").live('change',function(){var val=jQuery(this);var data={action:'dropdown_action_track',tracking_nnp_sites:jQuery(this).val()}
jQuery.post(ajaxurl,data,function(response){jQuery('#form_container').html(response);});});});
;jQuery(document).ready(function(){emailFilter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;jQuery('.messageboxerror').hide();jQuery('a[id^="submit"]').click(function(){switch(jQuery(this).attr('name')){case'loginButton':var v=0;if(jQuery('#user_pass').val()==''){jQuery('#pmsgbox2').css('display','inline-block');v=1;}
else
jQuery('#pmsgbox2').css('display','none');if((jQuery('#user_login').val()=='')||(jQuery('#user_login').val().search(emailFilter)<=-1)){jQuery('#pmsgbox1').css('display','inline-block');v=1;}
else
jQuery('#pmsgbox1').css('display','none');if(v==0)
jQuery('#loginform').submit();break;case'resetPassButton':if(jQuery('#user_login').val()=='')
jQuery('#pmsgbox1').css('display','inline-block');else
jQuery('#loginform').submit();break;case'emailRevalidateButton':if(jQuery('#user_login').val()=='')
jQuery('#pmsgbox1').css('display','inline-block');else
jQuery('#loginform').submit();break;case'registerButton':var v=0;if(jQuery('#user_login').val()==''){jQuery('#pmsgbox1').css('display','inline-block');v=1;}
else
jQuery('#pmsgbox1').css('display','none');if(jQuery('#user_nickname').val()==''){jQuery('#pmsgbox2').css('display','inline-block');v=1;}
else
jQuery('#pmsgbox2').css('display','none');if(jQuery('#user_pass').val().length<=6){jQuery('#pmsgbox3').css('display','inline-block');v=1;}
else
jQuery('#pmsgbox3').css('display','none');if(jQuery('#user_pass').val()!=jQuery('#user_passAgain').val()){jQuery('#pmsgbox4').css('display','inline-block');v=1;}
else
jQuery('#pmsgbox4').css('display','none');if(v==0)
jQuery('#loginform').submit();break;case'updatePassButton':var v=0;if(jQuery('#user_pass').val().length<=6){jQuery('#pmsgbox3').css('display','inline-block');v=1;}
else
jQuery('#pmsgbox3').css('display','none');if(jQuery('#user_pass').val()!=jQuery('#user_passAgain').val()){jQuery('#pmsgbox4').css('display','inline-block');v=1;}
else
jQuery('#pmsgbox4').css('display','none');if(jQuery('#user_old_pass').val()==''){jQuery('#pmsgbox5').show();v=1;}
else
jQuery('#pmsgbox5').hide();if(v==0)
jQuery('#loginformpass').submit();break
case'updateButton':var v=0;if(jQuery('#user_nickname').val().length<=4){jQuery('#pmsgbox6').css('display','inline-block');v=1;}
if(v==0)
jQuery('#loginform').submit();break}})});
