/*jQuery JavaScript Library v1.4.2*/
(function(An,v){function Az(){if(!AF.isReady){try{x.documentElement.doScroll("left")}catch(A){setTimeout(Az,1);return }AF.ready()}}function t(F,A){A.src?AF.ajax({url:A.src,async:false,dataType:"script"}):AF.globalEval(A.text||A.textContent||A.innerHTML||"");A.parentNode&&A.parentNode.removeChild(A)}function AN(F,A,O,K,L,G){var J=F.length;if(typeof A==="object"){for(var N in A){AN(F,N,A[N],K,L,O)}return F}if(O!==v){K=!G&&K&&AF.isFunction(O);for(N=0;N<J;N++){L(F[N],A,K?O.call(F[N],N,L(F[N],A)):O,G)}return F}return J?L(F[0],A):v}function Ae(){return(new Date).getTime()}function AM(){return false}function AK(){return true}function Aj(F,A,G){G[0].type=F;return AF.event.handle.apply(A,G)}function AE(R){var Q,P=[],N=[],O=arguments,K,L,F,J,G,A;L=AF.data(this,"events");if(!(R.liveFired===this||!L||!L.live||R.button&&R.type==="click")){R.liveFired=this;var T=L.live.slice(0);for(J=0;J<T.length;J++){L=T[J];L.origType.replace(AW,"")===R.type?N.push(L.selector):T.splice(J--,1)}K=AF(R.target).closest(N,R.currentTarget);G=0;for(A=K.length;G<A;G++){for(J=0;J<T.length;J++){L=T[J];if(K[G].selector===L.selector){F=K[G].elem;N=null;if(L.preType==="mouseenter"||L.preType==="mouseleave"){N=AF(R.relatedTarget).closest(L.selector)[0]}if(!N||N!==F){P.push({elem:F,handleObj:L})}}}}G=0;for(A=P.length;G<A;G++){K=P[G];R.currentTarget=K.elem;R.data=K.handleObj.data;R.handleObj=K.handleObj;if(K.handleObj.origHandler.apply(K.elem,O)===false){Q=false;break}}return Q}}function o(F,A){return"live."+(F&&F!=="*"?F+".":"")+A.replace(/\./g,"`").replace(/ /g,"&")}function b(A){return !A||!A.parentNode||A.parentNode.nodeType===11}function BG(F,A){var G=0;A.each(function(){if(this.nodeName===(F[G]&&F[G].nodeName)){var L=AF.data(F[G++]),N=AF.data(this,L);if(L=L&&L.events){delete N.handle;N.events={};for(var J in L){for(var K in L[J]){AF.event.add(this,J,L[J][K],L[J][K].data)}}}}})}function A2(F,A,L){var J,K,G;A=A&&A[0]?A[0].ownerDocument||A[0]:x;if(F.length===1&&typeof F[0]==="string"&&F[0].length<512&&A===x&&!Ao.test(F[0])&&(AF.support.checkClone||!AI.test(F[0]))){K=true;if(G=AF.fragments[F[0]]){if(G!==1){J=G}}}if(!J){J=A.createDocumentFragment();AF.clean(F,A,J,L)}if(K){AF.fragments[F[0]]=G?J:1}return{fragment:J,cacheable:K}}function AZ(F,A){var G={};AF.each(r.concat.apply([],r.slice(0,A)),function(){G[this]=F});return G}function f(A){return"scrollTo" in A&&A.document?A:A.nodeType===9?A.defaultView||A.parentWindow:false}var AF=function(F,A){return new AF.fn.init(F,A)},g=An.jQuery,D=An.$,x=An.document,AQ,A6=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,As=/^.[^:#\[\.,]*$/,AL=/\S/,u=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,h=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,AU=navigator.userAgent,C=false,AS=[],AY,A0=Object.prototype.toString,Au=Object.prototype.hasOwnProperty,AV=Array.prototype.push,AR=Array.prototype.slice,A5=Array.prototype.indexOf;AF.fn=AF.prototype={init:function(F,A){var J,G;if(!F){return this}if(F.nodeType){this.context=this[0]=F;this.length=1;return this}if(F==="body"&&!A){this.context=x;this[0]=x.body;this.selector="body";this.length=1;return this}if(typeof F==="string"){if((J=A6.exec(F))&&(J[1]||!A)){if(J[1]){G=A?A.ownerDocument||A:x;if(F=h.exec(F)){if(AF.isPlainObject(A)){F=[x.createElement(F[1])];AF.fn.attr.call(F,A,true)}else{F=[G.createElement(F[1])]}}else{F=A2([J[1]],[G]);F=(F.cacheable?F.fragment.cloneNode(true):F.fragment).childNodes}return AF.merge(this,F)}else{if(A=x.getElementById(J[2])){if(A.id!==J[2]){return AQ.find(F)}this.length=1;this[0]=A}this.context=x;this.selector=F;return this}}else{if(!A&&/^\w+$/.test(F)){this.selector=F;this.context=x;F=x.getElementsByTagName(F);return AF.merge(this,F)}else{return !A||A.jquery?(A||AQ).find(F):AF(A).find(F)}}}else{if(AF.isFunction(F)){return AQ.ready(F)}}if(F.selector!==v){this.selector=F.selector;this.context=F.context}return AF.makeArray(F,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return AR.call(this,0)},get:function(A){return A==null?this.toArray():A<0?this.slice(A)[0]:this[A]},pushStack:function(F,A,J){var G=AF();AF.isArray(F)?AV.apply(G,F):AF.merge(G,F);G.prevObject=this;G.context=this.context;if(A==="find"){G.selector=this.selector+(this.selector?" ":"")+J}else{if(A){G.selector=this.selector+"."+A+"("+J+")"}}return G},each:function(F,A){return AF.each(this,F,A)},ready:function(A){AF.bindReady();if(AF.isReady){A.call(x,AF)}else{AS&&AS.push(A)}return this},eq:function(A){return A===-1?this.slice(A):this.slice(A,+A+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(AR.apply(this,arguments),"slice",AR.call(arguments).join(","))},map:function(A){return this.pushStack(AF.map(this,function(F,G){return A.call(F,G,F)}))},end:function(){return this.prevObject||AF(null)},push:AV,sort:[].sort,splice:[].splice};AF.fn.init.prototype=AF.fn;AF.extend=AF.fn.extend=function(){var F=arguments[0]||{},A=1,O=arguments.length,K=false,L,G,J,N;if(typeof F==="boolean"){K=F;F=arguments[1]||{};A=2}if(typeof F!=="object"&&!AF.isFunction(F)){F={}}if(O===A){F=this;--A}for(;A<O;A++){if((L=arguments[A])!=null){for(G in L){J=F[G];N=L[G];if(F!==N){if(K&&N&&(AF.isPlainObject(N)||AF.isArray(N))){J=J&&(AF.isPlainObject(J)||AF.isArray(J))?J:AF.isArray(N)?[]:{};F[G]=AF.extend(K,J,N)}else{if(N!==v){F[G]=N}}}}}}return F};AF.extend({noConflict:function(A){An.$=D;if(A){An.jQuery=g}return AF},isReady:false,ready:function(){if(!AF.isReady){if(!x.body){return setTimeout(AF.ready,13)}AF.isReady=true;if(AS){for(var F,A=0;F=AS[A++];){F.call(x,AF)}AS=null}AF.fn.triggerHandler&&AF(x).triggerHandler("ready")}},bindReady:function(){if(!C){C=true;if(x.readyState==="complete"){return AF.ready()}if(x.addEventListener){x.addEventListener("DOMContentLoaded",AY,false);An.addEventListener("load",AF.ready,false)}else{if(x.attachEvent){x.attachEvent("onreadystatechange",AY);An.attachEvent("onload",AF.ready);var F=false;try{F=An.frameElement==null}catch(A){}x.documentElement.doScroll&&F&&Az()}}}},isFunction:function(A){return A0.call(A)==="[object Function]"},isArray:function(A){return A0.call(A)==="[object Array]"},isPlainObject:function(F){if(!F||A0.call(F)!=="[object Object]"||F.nodeType||F.setInterval){return false}if(F.constructor&&!Au.call(F,"constructor")&&!Au.call(F.constructor.prototype,"isPrototypeOf")){return false}var A;for(A in F){}return A===v||Au.call(F,A)},isEmptyObject:function(F){for(var A in F){return false}return true},error:function(A){throw A},parseJSON:function(A){if(typeof A!=="string"||!A){return null}A=AF.trim(A);if(/^[\],:{}\s]*$/.test(A.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return An.JSON&&An.JSON.parse?An.JSON.parse(A):(new Function("return "+A))()}else{AF.error("Invalid JSON: "+A)}},noop:function(){},globalEval:function(F){if(F&&AL.test(F)){var A=x.getElementsByTagName("head")[0]||x.documentElement,G=x.createElement("script");G.type="text/javascript";if(AF.support.scriptEval){G.appendChild(x.createTextNode(F))}else{G.text=F}A.insertBefore(G,A.firstChild);A.removeChild(G)}},nodeName:function(F,A){return F.nodeName&&F.nodeName.toUpperCase()===A.toUpperCase()},each:function(F,A,N){var K,L=0,G=F.length,J=G===v||AF.isFunction(F);if(N){if(J){for(K in F){if(A.apply(F[K],N)===false){break}}}else{for(;L<G;){if(A.apply(F[L++],N)===false){break}}}}else{if(J){for(K in F){if(A.call(F[K],K,F[K])===false){break}}}else{for(N=F[0];L<G&&A.call(N,L,N)!==false;N=F[++L]){}}}return F},trim:function(A){return(A||"").replace(u,"")},makeArray:function(F,A){A=A||[];if(F!=null){F.length==null||typeof F==="string"||AF.isFunction(F)||typeof F!=="function"&&F.setInterval?AV.call(A,F):AF.merge(A,F)}return A},inArray:function(F,A){if(A.indexOf){return A.indexOf(F)}for(var J=0,G=A.length;J<G;J++){if(A[J]===F){return J}}return -1},merge:function(F,A){var K=F.length,G=0;if(typeof A.length==="number"){for(var J=A.length;G<J;G++){F[K++]=A[G]}}else{for(;A[G]!==v;){F[K++]=A[G++]}}F.length=K;return F},grep:function(F,A,L){for(var J=[],K=0,G=F.length;K<G;K++){!L!==!A(F[K],K)&&J.push(F[K])}return J},map:function(F,A,N){for(var K=[],L,G=0,J=F.length;G<J;G++){L=A(F[G],G,N);if(L!=null){K[K.length]=L}}return K.concat.apply([],K)},guid:1,proxy:function(F,A,G){if(arguments.length===2){if(typeof A==="string"){G=F;F=G[A];A=v}else{if(A&&!AF.isFunction(A)){G=A;A=v}}}if(!A&&F){A=function(){return F.apply(G||this,arguments)}}if(F){A.guid=F.guid=F.guid||A.guid||AF.guid++}return A},uaMatch:function(A){A=A.toLowerCase();A=/(webkit)[ \/]([\w.]+)/.exec(A)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(A)||/(msie) ([\w.]+)/.exec(A)||!/compatible/.test(A)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(A)||[];return{browser:A[1]||"",version:A[2]||"0"}},browser:{}});AU=AF.uaMatch(AU);if(AU.browser){AF.browser[AU.browser]=true;AF.browser.version=AU.version}if(AF.browser.webkit){AF.browser.safari=true}if(A5){AF.inArray=function(F,A){return A5.call(A,F)}}AQ=AF(x);if(x.addEventListener){AY=function(){x.removeEventListener("DOMContentLoaded",AY,false);AF.ready()}}else{if(x.attachEvent){AY=function(){if(x.readyState==="complete"){x.detachEvent("onreadystatechange",AY);AF.ready()}}}}(function(){AF.support={};var P=x.documentElement,O=x.createElement("script"),N=x.createElement("div"),K="script"+Ae();N.style.display="none";N.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var L=N.getElementsByTagName("*"),G=N.getElementsByTagName("a")[0];if(!(!L||!L.length||!G)){AF.support={leadingWhitespace:N.firstChild.nodeType===3,tbody:!N.getElementsByTagName("tbody").length,htmlSerialize:!!N.getElementsByTagName("link").length,style:/red/.test(G.getAttribute("style")),hrefNormalized:G.getAttribute("href")==="/a",opacity:/^0.55$/.test(G.style.opacity),cssFloat:!!G.style.cssFloat,checkOn:N.getElementsByTagName("input")[0].value==="on",optSelected:x.createElement("select").appendChild(x.createElement("option")).selected,parentNode:N.removeChild(N.appendChild(x.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};O.type="text/javascript";try{O.appendChild(x.createTextNode("window."+K+"=1;"))}catch(J){}P.insertBefore(O,P.firstChild);if(An[K]){AF.support.scriptEval=true;delete An[K]}try{delete O.test}catch(A){AF.support.deleteExpando=false}P.removeChild(O);if(N.attachEvent&&N.fireEvent){N.attachEvent("onclick",function F(){AF.support.noCloneEvent=false;N.detachEvent("onclick",F)});N.cloneNode(true).fireEvent("onclick")}N=x.createElement("div");N.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";P=x.createDocumentFragment();P.appendChild(N.firstChild);AF.support.checkClone=P.cloneNode(true).cloneNode(true).lastChild.checked;AF(function(){var Q=x.createElement("div");Q.style.width=Q.style.paddingLeft="1px";x.body.appendChild(Q);AF.boxModel=AF.support.boxModel=Q.offsetWidth===2;x.body.removeChild(Q).style.display="none"});P=function(Q){var T=x.createElement("div");Q="on"+Q;var R=Q in T;if(!R){T.setAttribute(Q,"return;");R=typeof T[Q]==="function"}return R};AF.support.submitBubbles=P("submit");AF.support.changeBubbles=P("change");P=O=N=L=G=null}})();AF.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var Ag="jQuery"+Ae(),E=0,Ar={};AF.extend({cache:{},expando:Ag,noData:{embed:true,object:true,applet:true},data:function(F,A,K){if(!(F.nodeName&&AF.noData[F.nodeName.toLowerCase()])){F=F==An?Ar:F;var G=F[Ag],J=AF.cache;if(!G&&typeof A==="string"&&K===v){return null}G||(G=++E);if(typeof A==="object"){F[Ag]=G;J[G]=AF.extend(true,{},A)}else{if(!J[G]){F[Ag]=G;J[G]={}}}F=J[G];if(K!==v){F[A]=K}return typeof A==="string"?F[A]:F}},removeData:function(F,A){if(!(F.nodeName&&AF.noData[F.nodeName.toLowerCase()])){F=F==An?Ar:F;var K=F[Ag],G=AF.cache,J=G[K];if(A){if(J){delete J[A];AF.isEmptyObject(J)&&AF.removeData(F)}}else{if(AF.support.deleteExpando){delete F[AF.expando]}else{F.removeAttribute&&F.removeAttribute(AF.expando)}delete G[K]}}}});AF.fn.extend({data:function(F,A){if(typeof F==="undefined"&&this.length){return AF.data(this[0])}else{if(typeof F==="object"){return this.each(function(){AF.data(this,F)})}}var J=F.split(".");J[1]=J[1]?"."+J[1]:"";if(A===v){var G=this.triggerHandler("getData"+J[1]+"!",[J[0]]);if(G===v&&this.length){G=AF.data(this[0],F)}return G===v&&J[1]?this.data(J[0]):G}else{return this.trigger("setData"+J[1]+"!",[J[0],A]).each(function(){AF.data(this,F,A)})}},removeData:function(A){return this.each(function(){AF.removeData(this,A)})}});AF.extend({queue:function(F,A,J){if(F){A=(A||"fx")+"queue";var G=AF.data(F,A);if(!J){return G||[]}if(!G||AF.isArray(J)){G=AF.data(F,A,AF.makeArray(J))}else{G.push(J)}return G}},dequeue:function(F,A){A=A||"fx";var J=AF.queue(F,A),G=J.shift();if(G==="inprogress"){G=J.shift()}if(G){A==="fx"&&J.unshift("inprogress");G.call(F,function(){AF.dequeue(F,A)})}}});AF.fn.extend({queue:function(F,A){if(typeof F!=="string"){A=F;F="fx"}if(A===v){return AF.queue(this[0],F)}return this.each(function(){var G=AF.queue(this,F,A);F==="fx"&&G[0]!=="inprogress"&&AF.dequeue(this,F)})},dequeue:function(A){return this.each(function(){AF.dequeue(this,A)})},delay:function(F,A){F=AF.fx?AF.fx.speeds[F]||F:F;A=A||"fx";return this.queue(A,function(){var G=this;setTimeout(function(){AF.dequeue(G,A)},F)})},clearQueue:function(A){return this.queue(A||"fx",[])}});var BB=/[\n\t]/g,z=/\s+/,A7=/\r/g,Al=/href|src|style/,At=/(button|input)/i,AT=/(button|input|object|select|textarea)/i,y=/^(a|area)$/i,Ax=/radio|checkbox/;AF.fn.extend({attr:function(F,A){return AN(this,F,A,true,AF.attr)},removeAttr:function(A){return this.each(function(){AF.attr(this,A,"");this.nodeType===1&&this.removeAttribute(A)})},addClass:function(P){if(AF.isFunction(P)){return this.each(function(R){var Q=AF(this);Q.addClass(P.call(this,R,Q.attr("class")))})}if(P&&typeof P==="string"){for(var O=(P||"").split(z),N=0,K=this.length;N<K;N++){var L=this[N];if(L.nodeType===1){if(L.className){for(var G=" "+L.className+" ",J=L.className,A=0,F=O.length;A<F;A++){if(G.indexOf(" "+O[A]+" ")<0){J+=" "+O[A]}}L.className=AF.trim(J)}else{L.className=P}}}}return this},removeClass:function(F){if(AF.isFunction(F)){return this.each(function(P){var Q=AF(this);Q.removeClass(F.call(this,P,Q.attr("class")))})}if(F&&typeof F==="string"||F===v){for(var A=(F||"").split(z),O=0,K=this.length;O<K;O++){var L=this[O];if(L.nodeType===1&&L.className){if(F){for(var G=(" "+L.className+" ").replace(BB," "),J=0,N=A.length;J<N;J++){G=G.replace(" "+A[J]+" "," ")}L.className=AF.trim(G)}else{L.className=""}}}}return this},toggleClass:function(F,A){var J=typeof F,G=typeof A==="boolean";if(AF.isFunction(F)){return this.each(function(L){var K=AF(this);K.toggleClass(F.call(this,L,K.attr("class"),A),A)})}return this.each(function(){if(J==="string"){for(var O,L=0,N=AF(this),P=A,K=F.split(z);O=K[L++];){P=G?P:!N.hasClass(O);N[P?"addClass":"removeClass"](O)}}else{if(J==="undefined"||J==="boolean"){this.className&&AF.data(this,"__className__",this.className);this.className=this.className||F===false?"":AF.data(this,"__className__")||""}}})},hasClass:function(F){F=" "+F+" ";for(var A=0,G=this.length;A<G;A++){if((" "+this[A].className+" ").replace(BB," ").indexOf(F)>-1){return true}}return false},val:function(F){if(F===v){var A=this[0];if(A){if(AF.nodeName(A,"option")){return(A.attributes.value||{}).specified?A.value:A.text}if(AF.nodeName(A,"select")){var O=A.selectedIndex,K=[],L=A.options;A=A.type==="select-one";if(O<0){return null}var G=A?O:0;for(O=A?O+1:L.length;G<O;G++){var J=L[G];if(J.selected){F=AF(J).val();if(A){return F}K.push(F)}}return K}if(Ax.test(A.type)&&!AF.support.checkOn){return A.getAttribute("value")===null?"on":A.value}return(A.value||"").replace(A7,"")}return v}var N=AF.isFunction(F);return this.each(function(P){var T=AF(this),R=F;if(this.nodeType===1){if(N){R=F.call(this,P,T.val())}if(typeof R==="number"){R+=""}if(AF.isArray(R)&&Ax.test(this.type)){this.checked=AF.inArray(T.val(),R)>=0}else{if(AF.nodeName(this,"select")){var Q=AF.makeArray(R);AF("option",this).each(function(){this.selected=AF.inArray(AF(this).val(),Q)>=0});if(!Q.length){this.selectedIndex=-1}}else{this.value=R}}}})}});AF.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(F,A,L,J){if(!F||F.nodeType===3||F.nodeType===8){return v}if(J&&A in AF.attrFn){return AF(F)[A](L)}J=F.nodeType!==1||!AF.isXMLDoc(F);var K=L!==v;A=J&&AF.props[A]||A;if(F.nodeType===1){var G=Al.test(A);if(A in F&&J&&!G){if(K){A==="type"&&At.test(F.nodeName)&&F.parentNode&&AF.error("type property can't be changed");F[A]=L}if(AF.nodeName(F,"form")&&F.getAttributeNode(A)){return F.getAttributeNode(A).nodeValue}if(A==="tabIndex"){return(A=F.getAttributeNode("tabIndex"))&&A.specified?A.value:AT.test(F.nodeName)||y.test(F.nodeName)&&F.href?0:v}return F[A]}if(!AF.support.style&&J&&A==="style"){if(K){F.style.cssText=""+L}return F.style.cssText}K&&F.setAttribute(A,""+L);F=!AF.support.hrefNormalized&&J&&G?F.getAttribute(A,2):F.getAttribute(A);return F===null?v:F}return AF.style(F,A,L)}});var AW=/\.(.*)$/,i=function(A){return A.replace(/[^\w\s\.\|`]/g,function(F){return"\\"+F})};AF.event={add:function(T,R,P,N){if(!(T.nodeType===3||T.nodeType===8)){if(T.setInterval&&T!==An&&!T.frameElement){T=An}var O,K;if(P.handler){O=P;P=O.handler}if(!P.guid){P.guid=AF.guid++}if(K=AF.data(T)){var L=K.events=K.events||{},F=K.handle;if(!F){K.handle=F=function(){return typeof AF!=="undefined"&&!AF.event.triggered?AF.event.handle.apply(F.elem,arguments):v}}F.elem=T;R=R.split(" ");for(var J,G=0,A;J=R[G++];){K=O?AF.extend({},O):{handler:P,data:N};if(J.indexOf(".")>-1){A=J.split(".");J=A.shift();K.namespace=A.slice(0).sort().join(".")}else{A=[];K.namespace=""}K.type=J;K.guid=P.guid;var V=L[J],Q=AF.event.special[J]||{};if(!V){V=L[J]=[];if(!Q.setup||Q.setup.call(T,N,A,F)===false){if(T.addEventListener){T.addEventListener(J,F,false)}else{T.attachEvent&&T.attachEvent("on"+J,F)}}}if(Q.add){Q.add.call(T,K);if(!K.handler.guid){K.handler.guid=P.guid}}V.push(K);AF.event.global[J]=true}T=null}}},global:{},remove:function(W,V,R,P){if(!(W.nodeType===3||W.nodeType===8)){var Q,N=0,O,J,L,K,A,X,T=AF.data(W),F=T&&T.events;if(T&&F){if(V&&V.type){R=V.handler;V=V.type}if(!V||typeof V==="string"&&V.charAt(0)==="."){V=V||"";for(Q in F){AF.event.remove(W,Q+V)}}else{for(V=V.split(" ");Q=V[N++];){K=Q;O=Q.indexOf(".")<0;J=[];if(!O){J=Q.split(".");Q=J.shift();L=new RegExp("(^|\\.)"+AF.map(J.slice(0).sort(),i).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=F[Q]){if(R){K=AF.event.special[Q]||{};for(G=P||0;G<A.length;G++){X=A[G];if(R.guid===X.guid){if(O||L.test(X.namespace)){P==null&&A.splice(G--,1);K.remove&&K.remove.call(W,X)}if(P!=null){break}}}if(A.length===0||P!=null&&A.length===1){if(!K.teardown||K.teardown.call(W,J)===false){Af(W,Q,T.handle)}delete F[Q]}}else{for(var G=0;G<A.length;G++){X=A[G];if(O||L.test(X.namespace)){AF.event.remove(W,K,X.handler,G);A.splice(G--,1)}}}}}if(AF.isEmptyObject(F)){if(V=T.handle){V.elem=null}delete T.events;delete T.handle;AF.isEmptyObject(T)&&AF.removeData(W)}}}}},trigger:function(Q,P,O,L){var N=Q.type||Q;if(!L){Q=typeof Q==="object"?Q[Ag]?Q:AF.extend(AF.Event(N),Q):AF.Event(N);if(N.indexOf("!")>=0){Q.type=N=N.slice(0,-1);Q.exclusive=true}if(!O){Q.stopPropagation();AF.event.global[N]&&AF.each(AF.cache,function(){this.events&&this.events[N]&&AF.event.trigger(Q,P,this.handle.elem)})}if(!O||O.nodeType===3||O.nodeType===8){return v}Q.result=v;Q.target=O;P=AF.makeArray(P);P.unshift(Q)}Q.currentTarget=O;(L=AF.data(O,"handle"))&&L.apply(O,P);L=O.parentNode||O.ownerDocument;try{if(!(O&&O.nodeName&&AF.noData[O.nodeName.toLowerCase()])){if(O["on"+N]&&O["on"+N].apply(O,P)===false){Q.result=false}}}catch(J){}if(!Q.isPropagationStopped()&&L){AF.event.trigger(Q,P,L,true)}else{if(!Q.isDefaultPrevented()){L=Q.target;var K,A=AF.nodeName(L,"a")&&N==="click",G=AF.event.special[N]||{};if((!G._default||G._default.call(O,Q)===false)&&!A&&!(L&&L.nodeName&&AF.noData[L.nodeName.toLowerCase()])){try{if(L[N]){if(K=L["on"+N]){L["on"+N]=null}AF.event.triggered=true;L[N]()}}catch(F){}if(K){L["on"+N]=K}AF.event.triggered=false}}}},handle:function(F){var A,N,K,L;F=arguments[0]=AF.event.fix(F||An.event);F.currentTarget=this;A=F.type.indexOf(".")<0&&!F.exclusive;if(!A){N=F.type.split(".");F.type=N.shift();K=new RegExp("(^|\\.)"+N.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}L=AF.data(this,"events");N=L[F.type];if(L&&N){N=N.slice(0);L=0;for(var G=N.length;L<G;L++){var J=N[L];if(A||K.test(J.namespace)){F.handler=J.handler;F.data=J.data;F.handleObj=J;J=J.handler.apply(this,arguments);if(J!==v){F.result=J;if(J===false){F.preventDefault();F.stopPropagation()}}if(F.isImmediatePropagationStopped()){break}}}}return F.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(F){if(F[Ag]){return F}var A=F;F=AF.Event(A);for(var J=this.props.length,G;J;){G=this.props[--J];F[G]=A[G]}if(!F.target){F.target=F.srcElement||x}if(F.target.nodeType===3){F.target=F.target.parentNode}if(!F.relatedTarget&&F.fromElement){F.relatedTarget=F.fromElement===F.target?F.toElement:F.fromElement}if(F.pageX==null&&F.clientX!=null){A=x.documentElement;J=x.body;F.pageX=F.clientX+(A&&A.scrollLeft||J&&J.scrollLeft||0)-(A&&A.clientLeft||J&&J.clientLeft||0);F.pageY=F.clientY+(A&&A.scrollTop||J&&J.scrollTop||0)-(A&&A.clientTop||J&&J.clientTop||0)}if(!F.which&&(F.charCode||F.charCode===0?F.charCode:F.keyCode)){F.which=F.charCode||F.keyCode}if(!F.metaKey&&F.ctrlKey){F.metaKey=F.ctrlKey}if(!F.which&&F.button!==v){F.which=F.button&1?1:F.button&2?3:F.button&4?2:0}return F},guid:100000000,proxy:AF.proxy,special:{ready:{setup:AF.bindReady,teardown:AF.noop},live:{add:function(A){AF.event.add(this,A.origType,AF.extend({},A,{handler:AE}))},remove:function(F){var A=true,G=F.origType.replace(AW,"");AF.each(AF.data(this,"events").live||[],function(){if(G===this.origType.replace(AW,"")){return A=false}});A&&AF.event.remove(this,F.origType,AE)}},beforeunload:{setup:function(F,A,G){if(this.setInterval){this.onbeforeunload=G}return false},teardown:function(F,A){if(this.onbeforeunload===A){this.onbeforeunload=null}}}}};var Af=x.removeEventListener?function(F,A,G){F.removeEventListener(A,G,false)}:function(F,A,G){F.detachEvent("on"+A,G)};AF.Event=function(A){if(!this.preventDefault){return new AF.Event(A)}if(A&&A.type){this.originalEvent=A;this.type=A.type}else{this.type=A}this.timeStamp=Ae();this[Ag]=true};AF.Event.prototype={preventDefault:function(){this.isDefaultPrevented=AK;var A=this.originalEvent;if(A){A.preventDefault&&A.preventDefault();A.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=AK;var A=this.originalEvent;if(A){A.stopPropagation&&A.stopPropagation();A.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=AK;this.stopPropagation()},isDefaultPrevented:AM,isPropagationStopped:AM,isImmediatePropagationStopped:AM};var AC=function(F){var A=F.relatedTarget;try{for(;A&&A!==this;){A=A.parentNode}if(A!==this){F.type=F.data;AF.event.handle.apply(this,arguments)}}catch(G){}},m=function(A){A.type=A.data;AF.event.handle.apply(this,arguments)};AF.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(F,A){AF.event.special[F]={setup:function(G){AF.event.add(this,A,G&&G.selector?m:AC,F)},teardown:function(G){AF.event.remove(this,A,G&&G.selector?m:AC)}}});if(!AF.support.submitBubbles){AF.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){AF.event.add(this,"click.specialSubmit",function(F){var A=F.target,G=A.type;if((G==="submit"||G==="image")&&AF(A).closest("form").length){return Aj("submit",this,arguments)}});AF.event.add(this,"keypress.specialSubmit",function(F){var A=F.target,G=A.type;if((G==="text"||G==="password")&&AF(A).closest("form").length&&F.keyCode===13){return Aj("submit",this,arguments)}})}else{return false}},teardown:function(){AF.event.remove(this,".specialSubmit")}}}if(!AF.support.changeBubbles){var j=/textarea|input|select/i,I,U=function(F){var A=F.type,G=F.value;if(A==="radio"||A==="checkbox"){G=F.checked}else{if(A==="select-multiple"){G=F.selectedIndex>-1?AF.map(F.options,function(J){return J.selected}).join("-"):""}else{if(F.nodeName.toLowerCase()==="select"){G=F.selectedIndex}}}return G},BA=function(F,A){var K=F.target,G,J;if(!(!j.test(K.nodeName)||K.readOnly)){G=AF.data(K,"_change_data");J=U(K);if(F.type!=="focusout"||K.type!=="radio"){AF.data(K,"_change_data",J)}if(!(G===v||J===G)){if(G!=null||J){F.type="change";return AF.event.trigger(F,A,K)}}}};AF.event.special.change={filters:{focusout:BA,click:function(F){var A=F.target,G=A.type;if(G==="radio"||G==="checkbox"||A.nodeName.toLowerCase()==="select"){return BA.call(this,F)}},keydown:function(F){var A=F.target,G=A.type;if(F.keyCode===13&&A.nodeName.toLowerCase()!=="textarea"||F.keyCode===32&&(G==="checkbox"||G==="radio")||G==="select-multiple"){return BA.call(this,F)}},beforeactivate:function(A){A=A.target;AF.data(A,"_change_data",U(A))}},setup:function(){if(this.type==="file"){return false}for(var A in I){AF.event.add(this,A+".specialChange",I[A])}return j.test(this.nodeName)},teardown:function(){AF.event.remove(this,".specialChange");return j.test(this.nodeName)}};I=AF.event.special.change.filters}x.addEventListener&&AF.each({focus:"focusin",blur:"focusout"},function(F,A){function G(J){J=AF.event.fix(J);J.type=A;return AF.event.handle.call(this,J)}AF.event.special[A]={setup:function(){this.addEventListener(F,G,true)},teardown:function(){this.removeEventListener(F,G,true)}}});AF.each(["bind","one"],function(F,A){AF.fn[A]=function(O,K,L){if(typeof O==="object"){for(var G in O){this[A](G,K,O[G],L)}return this}if(AF.isFunction(K)){L=K;K=v}var J=A==="one"?AF.proxy(L,function(P){AF(this).unbind(P,J);return L.apply(this,arguments)}):L;if(O==="unload"&&A!=="one"){this.one(O,K,L)}else{G=0;for(var N=this.length;G<N;G++){AF.event.add(this[G],O,J,K)}}return this}});AF.fn.extend({unbind:function(F,A){if(typeof F==="object"&&!F.preventDefault){for(var J in F){this.unbind(J,F[J])}}else{J=0;for(var G=this.length;J<G;J++){AF.event.remove(this[J],F,A)}}return this},delegate:function(F,A,J,G){return this.live(A,J,G,F)},undelegate:function(F,A,G){return arguments.length===0?this.unbind("live"):this.die(A,null,G,F)},trigger:function(F,A){return this.each(function(){AF.event.trigger(F,A,this)})},triggerHandler:function(F,A){if(this[0]){F=AF.Event(F);F.preventDefault();F.stopPropagation();AF.event.trigger(F,A,this[0]);return F.result}},toggle:function(F){for(var A=arguments,G=1;G<A.length;){AF.proxy(F,A[G++])}return this.click(AF.proxy(F,function(J){var K=(AF.data(this,"lastToggle"+F.guid)||0)%G;AF.data(this,"lastToggle"+F.guid,K+1);J.preventDefault();return A[K].apply(this,arguments)||false}))},hover:function(F,A){return this.mouseenter(F).mouseleave(A||F)}});var BE={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};AF.each(["live","die"],function(F,A){AF.fn[A]=function(R,P,Q,N){var O,J=0,L,K,G=N||this.selector,T=N?this:AF(this.context);if(AF.isFunction(P)){Q=P;P=v}for(R=(R||"").split(" ");(O=R[J++])!=null;){N=AW.exec(O);L="";if(N){L=N[0];O=O.replace(AW,"")}if(O==="hover"){R.push("mouseenter"+L,"mouseleave"+L)}else{K=O;if(O==="focus"||O==="blur"){R.push(BE[O]+L);O+=L}else{O=(BE[O]||O)+L}A==="live"?T.each(function(){AF.event.add(this,o(O,G),{data:P,selector:G,handler:Q,origType:O,origHandler:Q,preType:K})}):T.unbind(o(O,G),Q)}}return this}});AF.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(F,A){AF.fn[A]=function(G){return G?this.bind(A,G):this.trigger(A)};if(AF.attrFn){AF.attrFn[A]=true}});An.attachEvent&&!An.addEventListener&&An.attachEvent("onunload",function(){for(var F in AF.cache){if(AF.cache[F].handle){try{AF.event.remove(AF.cache[F].handle.elem)}catch(A){}}}});(function(){function Z(Ab){for(var Aa="",w,s=0;Ab[s];s++){w=Ab[s];if(w.nodeType===3||w.nodeType===4){Aa+=w.nodeValue}else{if(w.nodeType!==8){Aa+=Z(w.childNodes)}}}return Aa}function Y(BJ,BI,Ab,Aa,s,w){s=0;for(var BL=Aa.length;s<BL;s++){var BM=Aa[s];if(BM){BM=BM[BJ];for(var BK=false;BM;){if(BM.sizcache===Ab){BK=Aa[BM.sizset];break}if(BM.nodeType===1&&!w){BM.sizcache=Ab;BM.sizset=s}if(BM.nodeName.toLowerCase()===BI){BK=BM;break}BM=BM[BJ]}Aa[s]=BK}}}function X(BJ,BI,Ab,Aa,s,w){s=0;for(var BL=Aa.length;s<BL;s++){var BM=Aa[s];if(BM){BM=BM[BJ];for(var BK=false;BM;){if(BM.sizcache===Ab){BK=Aa[BM.sizset];break}if(BM.nodeType===1){if(!w){BM.sizcache=Ab;BM.sizset=s}if(typeof BI!=="string"){if(BM===BI){BK=true;break}}else{if(Q.filter(BI,[BM]).length>0){BK=BM;break}}}BM=BM[BJ]}Aa[s]=BK}}}var V=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,W=0,R=Object.prototype.toString,T=false,O=true;[0,0].sort(function(){O=false;return 0});var Q=function(BL,BK,BI,Ab){BI=BI||[];var w=BK=BK||x;if(BK.nodeType!==1&&BK.nodeType!==9){return[]}if(!BL||typeof BL!=="string"){return BI}for(var Aa=[],BQ,BR,BN,BJ,BP=true,BM=F(BK),BO=BL;(V.exec(""),BQ=V.exec(BO))!==null;){BO=BQ[3];Aa.push(BQ[1]);if(BQ[2]){BJ=BQ[3];break}}if(Aa.length>1&&L.exec(BL)){if(Aa.length===2&&P.relative[Aa[0]]){BR=c(Aa[0]+Aa[1],BK)}else{for(BR=P.relative[Aa[0]]?[BK]:Q(Aa.shift(),BK);Aa.length;){BL=Aa.shift();if(P.relative[BL]){BL+=Aa.shift()}BR=c(BL,BR)}}}else{if(!Ab&&Aa.length>1&&BK.nodeType===9&&!BM&&P.match.ID.test(Aa[0])&&!P.match.ID.test(Aa[Aa.length-1])){BQ=Q.find(Aa.shift(),BK,BM);BK=BQ.expr?Q.filter(BQ.expr,BQ.set)[0]:BQ.set[0]}if(BK){BQ=Ab?{expr:Aa.pop(),set:A(Ab)}:Q.find(Aa.pop(),Aa.length===1&&(Aa[0]==="~"||Aa[0]==="+")&&BK.parentNode?BK.parentNode:BK,BM);BR=BQ.expr?Q.filter(BQ.expr,BQ.set):BQ.set;if(Aa.length>0){BN=A(BR)}else{BP=false}for(;Aa.length;){var s=Aa.pop();BQ=s;if(P.relative[s]){BQ=Aa.pop()}else{s=""}if(BQ==null){BQ=BK}P.relative[s](BN,BQ,BM)}}else{BN=[]}}BN||(BN=BR);BN||Q.error(s||BL);if(R.call(BN)==="[object Array]"){if(BP){if(BK&&BK.nodeType===1){for(BL=0;BN[BL]!=null;BL++){if(BN[BL]&&(BN[BL]===true||BN[BL].nodeType===1&&J(BK,BN[BL]))){BI.push(BR[BL])}}}else{for(BL=0;BN[BL]!=null;BL++){BN[BL]&&BN[BL].nodeType===1&&BI.push(BR[BL])}}}else{BI.push.apply(BI,BN)}}else{A(BN,BI)}if(BJ){Q(BJ,w,BI,Ab);Q.uniqueSort(BI)}return BI};Q.uniqueSort=function(w){if(N){T=O;w.sort(N);if(T){for(var s=1;s<w.length;s++){w[s]===w[s-1]&&w.splice(s--,1)}}}return w};Q.matches=function(w,s){return Q(w,null,null,s)};Q.find=function(BJ,BI,Ab){var Aa,s;if(!BJ){return[]}for(var w=0,BL=P.order.length;w<BL;w++){var BM=P.order[w];if(s=P.leftMatch[BM].exec(BJ)){var BK=s[1];s.splice(1,1);if(BK.substr(BK.length-1)!=="\\"){s[1]=(s[1]||"").replace(/\\/g,"");Aa=P.find[BM](s,BI,Ab);if(Aa!=null){BJ=BJ.replace(P.match[BM],"");break}}}}Aa||(Aa=BI.getElementsByTagName("*"));return{set:Aa,expr:BJ}};Q.filter=function(BM,BL,BJ,Ab){for(var w=BM,Aa=[],BS=BL,BT,BP,BK=BL&&BL[0]&&F(BL[0]);BM&&BL.length;){for(var BR in P.filter){if((BT=P.leftMatch[BR].exec(BM))!=null&&BT[2]){var BN=P.filter[BR],BQ,s;s=BT[1];BP=false;BT.splice(1,1);if(s.substr(s.length-1)!=="\\"){if(BS===Aa){Aa=[]}if(P.preFilter[BR]){if(BT=P.preFilter[BR](BT,BS,BJ,Aa,Ab,BK)){if(BT===true){continue}}else{BP=BQ=true}}if(BT){for(var BI=0;(s=BS[BI])!=null;BI++){if(s){BQ=BN(s,BT,BI,BS);var BO=Ab^!!BQ;if(BJ&&BQ!=null){if(BO){BP=true}else{BS[BI]=false}}else{if(BO){Aa.push(s);BP=true}}}}}if(BQ!==v){BJ||(BS=Aa);BM=BM.replace(P.match[BR],"");if(!BP){return[]}break}}}}if(BM===w){if(BP==null){Q.error(BM)}else{break}}w=BM}return BS};Q.error=function(s){throw"Syntax error, unrecognized expression: "+s};var P=Q.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\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(s){return s.getAttribute("href")}},relative:{"+":function(Ab,Aa){var w=typeof Aa==="string",s=w&&!/\W/.test(Aa);w=w&&!s;if(s){Aa=Aa.toLowerCase()}s=0;for(var BI=Ab.length,BJ;s<BI;s++){if(BJ=Ab[s]){for(;(BJ=BJ.previousSibling)&&BJ.nodeType!==1;){}Ab[s]=w||BJ&&BJ.nodeName.toLowerCase()===Aa?BJ||false:BJ===Aa}}w&&Q.filter(Aa,Ab,true)},">":function(Ab,Aa){var w=typeof Aa==="string";if(w&&!/\W/.test(Aa)){Aa=Aa.toLowerCase();for(var s=0,BI=Ab.length;s<BI;s++){var BJ=Ab[s];if(BJ){w=BJ.parentNode;Ab[s]=w.nodeName.toLowerCase()===Aa?w:false}}}else{s=0;for(BI=Ab.length;s<BI;s++){if(BJ=Ab[s]){Ab[s]=w?BJ.parentNode:BJ.parentNode===Aa}}w&&Q.filter(Aa,Ab,true)}},"":function(Ab,Aa,w){var s=W++,BI=X;if(typeof Aa==="string"&&!/\W/.test(Aa)){var BJ=Aa=Aa.toLowerCase();BI=Y}BI("parentNode",Aa,s,Ab,BJ,w)},"~":function(Ab,Aa,w){var s=W++,BI=X;if(typeof Aa==="string"&&!/\W/.test(Aa)){var BJ=Aa=Aa.toLowerCase();BI=Y}BI("previousSibling",Aa,s,Ab,BJ,w)}},find:{ID:function(Aa,w,s){if(typeof w.getElementById!=="undefined"&&!s){return(Aa=w.getElementById(Aa[1]))?[Aa]:[]}},NAME:function(Ab,Aa){if(typeof Aa.getElementsByName!=="undefined"){var w=[];Aa=Aa.getElementsByName(Ab[1]);for(var s=0,BI=Aa.length;s<BI;s++){Aa[s].getAttribute("name")===Ab[1]&&w.push(Aa[s])}return w.length===0?null:w}},TAG:function(w,s){return s.getElementsByTagName(w[1])}},preFilter:{CLASS:function(BI,Ab,w,s,BJ,BK){BI=" "+BI[1].replace(/\\/g,"")+" ";if(BK){return BI}BK=0;for(var Aa;(Aa=Ab[BK])!=null;BK++){if(Aa){if(BJ^(Aa.className&&(" "+Aa.className+" ").replace(/[\t\n]/g," ").indexOf(BI)>=0)){w||s.push(Aa)}else{if(w){Ab[BK]=false}}}}return false},ID:function(s){return s[1].replace(/\\/g,"")},TAG:function(s){return s[1].toLowerCase()},CHILD:function(w){if(w[1]==="nth"){var s=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(w[2]==="even"&&"2n"||w[2]==="odd"&&"2n+1"||!/\D/.test(w[2])&&"0n+"+w[2]||w[2]);w[2]=s[1]+(s[2]||1)-0;w[3]=s[3]-0}w[0]=W++;return w},ATTR:function(Ab,Aa,w,s,BI,BJ){Aa=Ab[1].replace(/\\/g,"");if(!BJ&&P.attrMap[Aa]){Ab[1]=P.attrMap[Aa]}if(Ab[2]==="~="){Ab[4]=" "+Ab[4]+" "}return Ab},PSEUDO:function(Ab,Aa,w,s,BI){if(Ab[1]==="not"){if((V.exec(Ab[3])||"").length>1||/^\w/.test(Ab[3])){Ab[3]=Q(Ab[3],null,null,Aa)}else{Ab=Q.filter(Ab[3],Aa,w,true^BI);w||s.push.apply(s,Ab);return false}}else{if(P.match.POS.test(Ab[0])||P.match.CHILD.test(Ab[0])){return true}}return Ab},POS:function(s){s.unshift(true);return s}},filters:{enabled:function(s){return s.disabled===false&&s.type!=="hidden"},disabled:function(s){return s.disabled===true},checked:function(s){return s.checked===true},selected:function(s){return s.selected===true},parent:function(s){return !!s.firstChild},empty:function(s){return !s.firstChild},has:function(Aa,w,s){return !!Q(s[3],Aa).length},header:function(s){return/h\d/i.test(s.nodeName)},text:function(s){return"text"===s.type},radio:function(s){return"radio"===s.type},checkbox:function(s){return"checkbox"===s.type},file:function(s){return"file"===s.type},password:function(s){return"password"===s.type},submit:function(s){return"submit"===s.type},image:function(s){return"image"===s.type},reset:function(s){return"reset"===s.type},button:function(s){return"button"===s.type||s.nodeName.toLowerCase()==="button"},input:function(s){return/input|select|textarea|button/i.test(s.nodeName)}},setFilters:{first:function(w,s){return s===0},last:function(Ab,Aa,w,s){return Aa===s.length-1},even:function(w,s){return s%2===0},odd:function(w,s){return s%2===1},lt:function(Aa,w,s){return w<s[3]-0},gt:function(Aa,w,s){return w>s[3]-0},nth:function(Aa,w,s){return s[3]-0===w},eq:function(Aa,w,s){return s[3]-0===w}},filter:{PSEUDO:function(Ab,Aa,w,s){var BI=Aa[1],BJ=P.filters[BI];if(BJ){return BJ(Ab,w,Aa,s)}else{if(BI==="contains"){return(Ab.textContent||Ab.innerText||Z([Ab])||"").indexOf(Aa[3])>=0}else{if(BI==="not"){Aa=Aa[3];w=0;for(s=Aa.length;w<s;w++){if(Aa[w]===Ab){return false}}return true}else{Q.error("Syntax error, unrecognized expression: "+BI)}}}},CHILD:function(BI,Ab){var w=Ab[1],s=BI;switch(w){case"only":case"first":for(;s=s.previousSibling;){if(s.nodeType===1){return false}}if(w==="first"){return true}s=BI;case"last":for(;s=s.nextSibling;){if(s.nodeType===1){return false}}return true;case"nth":w=Ab[2];var BJ=Ab[3];if(w===1&&BJ===0){return true}Ab=Ab[0];var BK=BI.parentNode;if(BK&&(BK.sizcache!==Ab||!BI.nodeIndex)){var Aa=0;for(s=BK.firstChild;s;s=s.nextSibling){if(s.nodeType===1){s.nodeIndex=++Aa}}BK.sizcache=Ab}BI=BI.nodeIndex-BJ;return w===0?BI===0:BI%w===0&&BI/w>=0}},ID:function(w,s){return w.nodeType===1&&w.getAttribute("id")===s},TAG:function(w,s){return s==="*"&&w.nodeType===1||w.nodeName.toLowerCase()===s},CLASS:function(w,s){return(" "+(w.className||w.getAttribute("class"))+" ").indexOf(s)>-1},ATTR:function(Ab,Aa){var w=Aa[1];Ab=P.attrHandle[w]?P.attrHandle[w](Ab):Ab[w]!=null?Ab[w]:Ab.getAttribute(w);w=Ab+"";var s=Aa[2];Aa=Aa[4];return Ab==null?s==="!=":s==="="?w===Aa:s==="*="?w.indexOf(Aa)>=0:s==="~="?(" "+w+" ").indexOf(Aa)>=0:!Aa?w&&Ab!==false:s==="!="?w!==Aa:s==="^="?w.indexOf(Aa)===0:s==="$="?w.substr(w.length-Aa.length)===Aa:s==="|="?w===Aa||w.substr(0,Aa.length+1)===Aa+"-":false},POS:function(Ab,Aa,w,s){var BI=P.setFilters[Aa[2]];if(BI){return BI(Ab,w,Aa,s)}}}},L=P.match.POS;for(var G in P.match){P.match[G]=new RegExp(P.match[G].source+/(?![^\[]*\])(?![^\(]*\))/.source);P.leftMatch[G]=new RegExp(/(^(?:.|\r|\n)*?)/.source+P.match[G].source.replace(/\\(\d+)/g,function(w,s){return"\\"+(s-0+1)}))}var A=function(w,s){w=Array.prototype.slice.call(w,0);if(s){s.push.apply(s,w);return s}return w};try{Array.prototype.slice.call(x.documentElement.childNodes,0)}catch(K){A=function(Ab,Aa){Aa=Aa||[];if(R.call(Ab)==="[object Array]"){Array.prototype.push.apply(Aa,Ab)}else{if(typeof Ab.length==="number"){for(var w=0,s=Ab.length;w<s;w++){Aa.push(Ab[w])}}else{for(w=0;Ab[w];w++){Aa.push(Ab[w])}}}return Aa}}var N;if(x.documentElement.compareDocumentPosition){N=function(w,s){if(!w.compareDocumentPosition||!s.compareDocumentPosition){if(w==s){T=true}return w.compareDocumentPosition?-1:1}w=w.compareDocumentPosition(s)&4?-1:w===s?0:1;if(w===0){T=true}return w}}else{if("sourceIndex" in x.documentElement){N=function(w,s){if(!w.sourceIndex||!s.sourceIndex){if(w==s){T=true}return w.sourceIndex?-1:1}w=w.sourceIndex-s.sourceIndex;if(w===0){T=true}return w}}else{if(x.createRange){N=function(Ab,Aa){if(!Ab.ownerDocument||!Aa.ownerDocument){if(Ab==Aa){T=true}return Ab.ownerDocument?-1:1}var w=Ab.ownerDocument.createRange(),s=Aa.ownerDocument.createRange();w.setStart(Ab,0);w.setEnd(Ab,0);s.setStart(Aa,0);s.setEnd(Aa,0);Ab=w.compareBoundaryPoints(Range.START_TO_END,s);if(Ab===0){T=true}return Ab}}}}(function(){var Aa=x.createElement("div"),w="script"+(new Date).getTime();Aa.innerHTML="<a name='"+w+"'/>";var s=x.documentElement;s.insertBefore(Aa,s.firstChild);if(x.getElementById(w)){P.find.ID=function(Ab,BI,BJ){if(typeof BI.getElementById!=="undefined"&&!BJ){return(BI=BI.getElementById(Ab[1]))?BI.id===Ab[1]||typeof BI.getAttributeNode!=="undefined"&&BI.getAttributeNode("id").nodeValue===Ab[1]?[BI]:v:[]}};P.filter.ID=function(Ab,BI){var BJ=typeof Ab.getAttributeNode!=="undefined"&&Ab.getAttributeNode("id");return Ab.nodeType===1&&BJ&&BJ.nodeValue===BI}}s.removeChild(Aa);s=Aa=null})();(function(){var s=x.createElement("div");s.appendChild(x.createComment(""));if(s.getElementsByTagName("*").length>0){P.find.TAG=function(Ab,Aa){Aa=Aa.getElementsByTagName(Ab[1]);if(Ab[1]==="*"){Ab=[];for(var w=0;Aa[w];w++){Aa[w].nodeType===1&&Ab.push(Aa[w])}Aa=Ab}return Aa}}s.innerHTML="<a href='#'></a>";if(s.firstChild&&typeof s.firstChild.getAttribute!=="undefined"&&s.firstChild.getAttribute("href")!=="#"){P.attrHandle.href=function(w){return w.getAttribute("href",2)}}s=null})();x.querySelectorAll&&function(){var Aa=Q,w=x.createElement("div");w.innerHTML="<p class='TEST'></p>";if(!(w.querySelectorAll&&w.querySelectorAll(".TEST").length===0)){Q=function(Ab,BK,BL,BI){BK=BK||x;if(!BI&&BK.nodeType===9&&!F(BK)){try{return A(BK.querySelectorAll(Ab),BL)}catch(BJ){}}return Aa(Ab,BK,BL,BI)};for(var s in Aa){Q[s]=Aa[s]}w=null}}();(function(){var s=x.createElement("div");s.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!s.getElementsByClassName||s.getElementsByClassName("e").length===0)){s.lastChild.className="e";if(s.getElementsByClassName("e").length!==1){P.order.splice(1,0,"CLASS");P.find.CLASS=function(Ab,Aa,w){if(typeof Aa.getElementsByClassName!=="undefined"&&!w){return Aa.getElementsByClassName(Ab[1])}};s=null}}})();var J=x.compareDocumentPosition?function(w,s){return !!(w.compareDocumentPosition(s)&16)}:function(w,s){return w!==s&&(w.contains?w.contains(s):true)},F=function(s){return(s=(s?s.ownerDocument||s:0).documentElement)?s.nodeName!=="HTML":false},c=function(Ab,Aa){var w=[],s="",BI;for(Aa=Aa.nodeType?[Aa]:Aa;BI=P.match.PSEUDO.exec(Ab);){s+=BI[0];Ab=Ab.replace(P.match.PSEUDO,"")}Ab=P.relative[Ab]?Ab+"*":Ab;BI=0;for(var BJ=Aa.length;BI<BJ;BI++){Q(Ab,Aa[BI],w)}return Q.filter(s,w)};AF.find=Q;AF.expr=Q.selectors;AF.expr[":"]=AF.expr.filters;AF.unique=Q.uniqueSort;AF.text=Z;AF.isXMLDoc=F;AF.contains=J})();var H=/Until$/,A8=/^(?:parents|prevUntil|prevAll)/,Av=/,/;AR=Array.prototype.slice;var Ak=function(F,A,J){if(AF.isFunction(A)){return AF.grep(F,function(L,K){return !!A.call(L,K,L)===J})}else{if(A.nodeType){return AF.grep(F,function(K){return K===A===J})}else{if(typeof A==="string"){var G=AF.grep(F,function(K){return K.nodeType===1});if(As.test(A)){return AF.filter(A,G,!J)}else{A=AF.filter(A,G)}}}}return AF.grep(F,function(K){return AF.inArray(K,A)>=0===J})};AF.fn.extend({find:function(F){for(var A=this.pushStack("","find",F),N=0,K=0,L=this.length;K<L;K++){N=A.length;AF.find(F,this[K],A);if(K>0){for(var G=N;G<A.length;G++){for(var J=0;J<N;J++){if(A[J]===A[G]){A.splice(G--,1);break}}}}}return A},has:function(F){var A=AF(F);return this.filter(function(){for(var J=0,G=A.length;J<G;J++){if(AF.contains(this,A[J])){return true}}})},not:function(A){return this.pushStack(Ak(this,A,false),"not",A)},filter:function(A){return this.pushStack(Ak(this,A,true),"filter",A)},is:function(A){return !!A&&AF.filter(A,this).length>0},closest:function(P,O){if(AF.isArray(P)){var N=[],K=this[0],L,G={},J;if(K&&P.length){L=0;for(var A=P.length;L<A;L++){J=P[L];G[J]||(G[J]=AF.expr.match.POS.test(J)?AF(J,O||this.context):J)}for(;K&&K.ownerDocument&&K!==O;){for(J in G){L=G[J];if(L.jquery?L.index(K)>-1:AF(K).is(L)){N.push({selector:J,elem:K});delete G[J]}}K=K.parentNode}}return N}var F=AF.expr.match.POS.test(P)?AF(P,O||this.context):null;return this.map(function(R,Q){for(;Q&&Q.ownerDocument&&Q!==O;){if(F?F.index(Q)>-1:AF(Q).is(P)){return Q}Q=Q.parentNode}return null})},index:function(A){if(!A||typeof A==="string"){return AF.inArray(this[0],A?AF(A):this.parent().children())}return AF.inArray(A.jquery?A[0]:A,this)},add:function(F,A){F=typeof F==="string"?AF(F,A||this.context):AF.makeArray(F);A=AF.merge(this.get(),F);return this.pushStack(b(F[0])||b(A[0])?A:AF.unique(A))},andSelf:function(){return this.add(this.prevObject)}});AF.each({parent:function(A){return(A=A.parentNode)&&A.nodeType!==11?A:null},parents:function(A){return AF.dir(A,"parentNode")},parentsUntil:function(F,A,G){return AF.dir(F,"parentNode",G)},next:function(A){return AF.nth(A,2,"nextSibling")},prev:function(A){return AF.nth(A,2,"previousSibling")},nextAll:function(A){return AF.dir(A,"nextSibling")},prevAll:function(A){return AF.dir(A,"previousSibling")},nextUntil:function(F,A,G){return AF.dir(F,"nextSibling",G)},prevUntil:function(F,A,G){return AF.dir(F,"previousSibling",G)},siblings:function(A){return AF.sibling(A.parentNode.firstChild,A)},children:function(A){return AF.sibling(A.firstChild)},contents:function(A){return AF.nodeName(A,"iframe")?A.contentDocument||A.contentWindow.document:AF.makeArray(A.childNodes)}},function(F,A){AF.fn[F]=function(K,G){var J=AF.map(this,A,K);H.test(F)||(G=K);if(G&&typeof G==="string"){J=AF.filter(G,J)}J=this.length>1?AF.unique(J):J;if((this.length>1||Av.test(G))&&A8.test(F)){J=J.reverse()}return this.pushStack(J,F,AR.call(arguments).join(","))}});AF.extend({filter:function(F,A,G){if(G){F=":not("+F+")"}return AF.find.matches(F,A)},dir:function(F,A,J){var G=[];for(F=F[A];F&&F.nodeType!==9&&(J===v||F.nodeType!==1||!AF(F).is(J));){F.nodeType===1&&G.push(F);F=F[A]}return G},nth:function(F,A,J){A=A||1;for(var G=0;F;F=F[J]){if(F.nodeType===1&&++G===A){break}}return F},sibling:function(F,A){for(var G=[];F;F=F.nextSibling){F.nodeType===1&&F!==A&&G.push(F)}return G}});var AG=/ jQuery\d+="(?:\d+|null)"/g,AP=/^\s+/,p=/(<([\w:]+)[^>]*?)\/>/g,Ac=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,d=/<([\w:]+)/,AA=/<tbody/i,k=/<|&#?\w+;/,Ao=/<script|<object|<embed|<option|<style/i,AI=/checked\s*(?:[^=]|=\s*.checked.)/i,BH=function(F,A,G){return Ac.test(G)?F:A+"></"+G+">"},Ai={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};Ai.optgroup=Ai.option;Ai.tbody=Ai.tfoot=Ai.colgroup=Ai.caption=Ai.thead;Ai.th=Ai.td;if(!AF.support.htmlSerialize){Ai._default=[1,"div<div>","</div>"]}AF.fn.extend({text:function(A){if(AF.isFunction(A)){return this.each(function(F){var G=AF(this);G.text(A.call(this,F,G.text()))})}if(typeof A!=="object"&&A!==v){return this.empty().append((this[0]&&this[0].ownerDocument||x).createTextNode(A))}return AF.text(this)},wrapAll:function(F){if(AF.isFunction(F)){return this.each(function(G){AF(this).wrapAll(F.call(this,G))})}if(this[0]){var A=AF(F,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&A.insertBefore(this[0]);A.map(function(){for(var G=this;G.firstChild&&G.firstChild.nodeType===1;){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(A){if(AF.isFunction(A)){return this.each(function(F){AF(this).wrapInner(A.call(this,F))})}return this.each(function(){var F=AF(this),G=F.contents();G.length?G.wrapAll(A):F.append(A)})},wrap:function(A){return this.each(function(){AF(this).wrapAll(A)})},unwrap:function(){return this.parent().each(function(){AF.nodeName(this,"body")||AF(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(A){this.nodeType===1&&this.appendChild(A)})},prepend:function(){return this.domManip(arguments,true,function(A){this.nodeType===1&&this.insertBefore(A,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this)})}else{if(arguments.length){var A=AF(arguments[0]);A.push.apply(A,this.toArray());return this.pushStack(A,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this.nextSibling)})}else{if(arguments.length){var A=this.pushStack(this,"after",arguments);A.push.apply(A,AF(arguments[0]).toArray());return A}}},remove:function(F,A){for(var J=0,G;(G=this[J])!=null;J++){if(!F||AF.filter(F,[G]).length){if(!A&&G.nodeType===1){AF.cleanData(G.getElementsByTagName("*"));AF.cleanData([G])}G.parentNode&&G.parentNode.removeChild(G)}}return this},empty:function(){for(var F=0,A;(A=this[F])!=null;F++){for(A.nodeType===1&&AF.cleanData(A.getElementsByTagName("*"));A.firstChild;){A.removeChild(A.firstChild)}}return this},clone:function(F){var A=this.map(function(){if(!AF.support.noCloneEvent&&!AF.isXMLDoc(this)){var J=this.outerHTML,G=this.ownerDocument;if(!J){J=G.createElement("div");J.appendChild(this.cloneNode(true));J=J.innerHTML}return AF.clean([J.replace(AG,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(AP,"")],G)[0]}else{return this.cloneNode(true)}});if(F===true){BG(this,A);BG(this.find("*"),A.find("*"))}return A},html:function(F){if(F===v){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(AG,""):null}else{if(typeof F==="string"&&!Ao.test(F)&&(AF.support.leadingWhitespace||!AP.test(F))&&!Ai[(d.exec(F)||["",""])[1].toLowerCase()]){F=F.replace(p,BH);try{for(var A=0,J=this.length;A<J;A++){if(this[A].nodeType===1){AF.cleanData(this[A].getElementsByTagName("*"));this[A].innerHTML=F}}}catch(G){this.empty().append(F)}}else{AF.isFunction(F)?this.each(function(N){var K=AF(this),L=K.html();K.empty().append(function(){return F.call(this,N,L)})}):this.empty().append(F)}}return this},replaceWith:function(A){if(this[0]&&this[0].parentNode){if(AF.isFunction(A)){return this.each(function(F){var J=AF(this),G=J.html();J.replaceWith(A.call(this,F,G))})}if(typeof A!=="string"){A=AF(A).detach()}return this.each(function(){var F=this.nextSibling,G=this.parentNode;AF(this).remove();F?AF(F).before(A):AF(G).append(A)})}else{return this.pushStack(AF(AF.isFunction(A)?A():A),"replaceWith",A)}},detach:function(A){return this.remove(A,true)},domManip:function(R,Q,P){function N(T){return AF.nodeName(T,"table")?T.getElementsByTagName("tbody")[0]||T.appendChild(T.ownerDocument.createElement("tbody")):T}var O,K,L=R[0],F=[],J;if(!AF.support.checkClone&&arguments.length===3&&typeof L==="string"&&AI.test(L)){return this.each(function(){AF(this).domManip(R,Q,P,true)})}if(AF.isFunction(L)){return this.each(function(T){var V=AF(this);R[0]=L.call(this,T,Q?V.html():v);V.domManip(R,Q,P)})}if(this[0]){O=L&&L.parentNode;O=AF.support.parentNode&&O&&O.nodeType===11&&O.childNodes.length===this.length?{fragment:O}:A2(R,this,F);J=O.fragment;if(K=J.childNodes.length===1?(J=J.firstChild):J.firstChild){Q=Q&&AF.nodeName(K,"tr");for(var G=0,A=this.length;G<A;G++){P.call(Q?N(this[G],K):this[G],G>0||O.cacheable||this.length>1?J.cloneNode(true):J)}}F.length&&AF.each(F,t)}return this}});AF.fragments={};AF.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(F,A){AF.fn[F]=function(N){var K=[];N=AF(N);var L=this.length===1&&this[0].parentNode;if(L&&L.nodeType===11&&L.childNodes.length===1&&N.length===1){N[A](this[0]);return this}else{L=0;for(var G=N.length;L<G;L++){var J=(L>0?this.clone(true):this).get();AF.fn[A].apply(AF(N[L]),J);K=K.concat(J)}return this.pushStack(K,F,N.selector)}}});AF.extend({clean:function(R,Q,P,N){Q=Q||x;if(typeof Q.createElement==="undefined"){Q=Q.ownerDocument||Q[0]&&Q[0].ownerDocument||x}for(var O=[],K=0,L;(L=R[K])!=null;K++){if(typeof L==="number"){L+=""}if(L){if(typeof L==="string"&&!k.test(L)){L=Q.createTextNode(L)}else{if(typeof L==="string"){L=L.replace(p,BH);var F=(d.exec(L)||["",""])[1].toLowerCase(),J=Ai[F]||Ai._default,G=J[0],A=Q.createElement("div");for(A.innerHTML=J[1]+L+J[2];G--;){A=A.lastChild}if(!AF.support.tbody){G=AA.test(L);F=F==="table"&&!G?A.firstChild&&A.firstChild.childNodes:J[1]==="<table>"&&!G?A.childNodes:[];for(J=F.length-1;J>=0;--J){AF.nodeName(F[J],"tbody")&&!F[J].childNodes.length&&F[J].parentNode.removeChild(F[J])}}!AF.support.leadingWhitespace&&AP.test(L)&&A.insertBefore(Q.createTextNode(AP.exec(L)[0]),A.firstChild);L=A.childNodes}}if(L.nodeType){O.push(L)}else{O=AF.merge(O,L)}}}if(P){for(K=0;O[K];K++){if(N&&AF.nodeName(O[K],"script")&&(!O[K].type||O[K].type.toLowerCase()==="text/javascript")){N.push(O[K].parentNode?O[K].parentNode.removeChild(O[K]):O[K])}else{O[K].nodeType===1&&O.splice.apply(O,[K+1,0].concat(AF.makeArray(O[K].getElementsByTagName("script"))));P.appendChild(O[K])}}}return O},cleanData:function(P){for(var O,N,K=AF.cache,L=AF.event.special,G=AF.support.deleteExpando,J=0,A;(A=P[J])!=null;J++){if(N=A[AF.expando]){O=K[N];if(O.events){for(var F in O.events){L[F]?AF.event.remove(A,F):Af(A,F,O.handle)}}if(G){delete A[AF.expando]}else{A.removeAttribute&&A.removeAttribute(AF.expando)}delete K[N]}}}});var M=/z-?index|font-?weight|opacity|zoom|line-?height/i,A3=/alpha\([^)]*\)/,Ap=/opacity=([^)]*)/,Ad=/float/i,AB=/-([a-z])/ig,BC=/([A-Z])/g,Ay=/^-?\d+(?:px)?$/i,Ah=/^-?\d/,AD={position:"absolute",visibility:"hidden",display:"block"},n=["Left","Right"],a=["Top","Bottom"],BF=x.defaultView&&x.defaultView.getComputedStyle,AJ=AF.support.cssFloat?"cssFloat":"styleFloat",l=function(F,A){return A.toUpperCase()};AF.fn.css=function(F,A){return AN(this,F,A,true,function(K,G,J){if(J===v){return AF.curCSS(K,G)}if(typeof J==="number"&&!M.test(G)){J+="px"}AF.style(K,G,J)})};AF.extend({style:function(F,A,K){if(!F||F.nodeType===3||F.nodeType===8){return v}if((A==="width"||A==="height")&&parseFloat(K)<0){K=v}var G=F.style||F,J=K!==v;if(!AF.support.opacity&&A==="opacity"){if(J){G.zoom=1;A=parseInt(K,10)+""==="NaN"?"":"alpha(opacity="+K*100+")";F=G.filter||AF.curCSS(F,"filter")||"";G.filter=A3.test(F)?F.replace(A3,A):A}return G.filter&&G.filter.indexOf("opacity=")>=0?parseFloat(Ap.exec(G.filter)[1])/100+"":""}if(Ad.test(A)){A=AJ}A=A.replace(AB,l);if(J){G[A]=K}return G[A]},css:function(F,A,N,K){if(A==="width"||A==="height"){var L,G=A==="width"?n:a;function J(){L=A==="width"?F.offsetWidth:F.offsetHeight;K!=="border"&&AF.each(G,function(){K||(L-=parseFloat(AF.curCSS(F,"padding"+this,true))||0);if(K==="margin"){L+=parseFloat(AF.curCSS(F,"margin"+this,true))||0}else{L-=parseFloat(AF.curCSS(F,"border"+this+"Width",true))||0}})}F.offsetWidth!==0?J():AF.swap(F,AD,J);return Math.max(0,Math.round(L))}return AF.curCSS(F,A,N)},curCSS:function(F,A,L){var J,K=F.style;if(!AF.support.opacity&&A==="opacity"&&F.currentStyle){J=Ap.test(F.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return J===""?"1":J}if(Ad.test(A)){A=AJ}if(!L&&K&&K[A]){J=K[A]}else{if(BF){if(Ad.test(A)){A="float"}A=A.replace(BC,"-$1").toLowerCase();K=F.ownerDocument.defaultView;if(!K){return null}if(F=K.getComputedStyle(F,null)){J=F.getPropertyValue(A)}if(A==="opacity"&&J===""){J="1"}}else{if(F.currentStyle){L=A.replace(AB,l);J=F.currentStyle[A]||F.currentStyle[L];if(!Ay.test(J)&&Ah.test(J)){A=K.left;var G=F.runtimeStyle.left;F.runtimeStyle.left=F.currentStyle.left;K.left=L==="fontSize"?"1em":J||0;J=K.pixelLeft+"px";K.left=A;F.runtimeStyle.left=G}}}}return J},swap:function(F,A,K){var G={};for(var J in A){G[J]=F.style[J];F.style[J]=A[J]}K.call(F);for(J in A){F.style[J]=G[J]}}});if(AF.expr&&AF.expr.filters){AF.expr.filters.hidden=function(F){var A=F.offsetWidth,J=F.offsetHeight,G=F.nodeName.toLowerCase()==="tr";return A===0&&J===0&&!G?true:A>0&&J>0&&!G?false:AF.curCSS(F,"display")==="none"};AF.expr.filters.visible=function(A){return !AF.expr.filters.hidden(A)}}var A1=Ae(),Am=/<script(.|\s)*?\/script>/gi,AH=/select|textarea/i,q=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,AX=/=\?(&|$)/,S=/\?/,e=/(\?|&)_=.*?(&|$)/,B=/^(\w+:)?\/\/([^\/?#]+)/,A4=/%20/g,Aq=AF.fn.load;AF.fn.extend({load:function(F,A,L){if(typeof F!=="string"){return Aq.call(this,F)}else{if(!this.length){return this}}var J=F.indexOf(" ");if(J>=0){var K=F.slice(J,F.length);F=F.slice(0,J)}J="GET";if(A){if(AF.isFunction(A)){L=A;A=null}else{if(typeof A==="object"){A=AF.param(A,AF.ajaxSettings.traditional);J="POST"}}}var G=this;AF.ajax({url:F,type:J,dataType:"html",data:A,complete:function(N,O){if(O==="success"||O==="notmodified"){G.html(K?AF("<div />").append(N.responseText.replace(Am,"")).find(K):N.responseText)}L&&G.each(L,[N.responseText,O,N])}});return this},serialize:function(){return AF.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?AF.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||AH.test(this.nodeName)||q.test(this.type))}).map(function(F,A){F=AF(this).val();return F==null?null:AF.isArray(F)?AF.map(F,function(G){return{name:A.name,value:G}}):{name:A.name,value:F}}).get()}});AF.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(F,A){AF.fn[A]=function(G){return this.bind(A,G)}});AF.extend({get:function(F,A,J,G){if(AF.isFunction(A)){G=G||J;J=A;A=null}return AF.ajax({type:"GET",url:F,data:A,success:J,dataType:G})},getScript:function(F,A){return AF.get(F,null,A,"script")},getJSON:function(F,A,G){return AF.get(F,A,G,"json")},post:function(F,A,J,G){if(AF.isFunction(A)){G=G||J;J=A;A={}}return AF.ajax({type:"POST",url:F,data:A,success:J,dataType:G})},ajaxSetup:function(A){AF.extend(AF.ajaxSettings,A)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:An.XMLHttpRequest&&(An.location.protocol!=="file:"||!An.ActiveXObject)?function(){return new An.XMLHttpRequest}:function(){try{return new An.ActiveXObject("Microsoft.XMLHTTP")}catch(A){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(Aa){function w(){c.success&&c.success.call(T,O,W,F);c.global&&Z("ajaxSuccess",[F,c])}function s(){c.complete&&c.complete.call(T,F,W);c.global&&Z("ajaxComplete",[F,c]);c.global&&!--AF.active&&AF.event.trigger("ajaxStop")}function Z(BI,BJ){(c.context?AF(c.context):AF.event).trigger(BI,BJ)}var c=AF.extend(true,{},AF.ajaxSettings,Aa),V,W,O,T=Aa&&Aa.context||c,P=c.type.toUpperCase();if(c.data&&c.processData&&typeof c.data!=="string"){c.data=AF.param(c.data,c.traditional)}if(c.dataType==="jsonp"){if(P==="GET"){AX.test(c.url)||(c.url+=(S.test(c.url)?"&":"?")+(c.jsonp||"callback")+"=?")}else{if(!c.data||!AX.test(c.data)){c.data=(c.data?c.data+"&":"")+(c.jsonp||"callback")+"=?"}}c.dataType="json"}if(c.dataType==="json"&&(c.data&&AX.test(c.data)||AX.test(c.url))){V=c.jsonpCallback||"jsonp"+A1++;if(c.data){c.data=(c.data+"").replace(AX,"="+V+"$1")}c.url=c.url.replace(AX,"="+V+"$1");c.dataType="script";An[V]=An[V]||function(BI){O=BI;w();s();An[V]=v;try{delete An[V]}catch(BJ){}A&&A.removeChild(K)}}if(c.dataType==="script"&&c.cache===null){c.cache=false}if(c.cache===false&&P==="GET"){var L=Ae(),G=c.url.replace(e,"$1_="+L+"$2");c.url=G+(G===c.url?(S.test(c.url)?"&":"?")+"_="+L:"")}if(c.data&&P==="GET"){c.url+=(S.test(c.url)?"&":"?")+c.data}c.global&&!AF.active++&&AF.event.trigger("ajaxStart");L=(L=B.exec(c.url))&&(L[1]&&L[1]!==location.protocol||L[2]!==location.host);if(c.dataType==="script"&&P==="GET"&&L){var A=x.getElementsByTagName("head")[0]||x.documentElement,K=x.createElement("script");K.src=c.url;if(c.scriptCharset){K.charset=c.scriptCharset}if(!V){var N=false;K.onload=K.onreadystatechange=function(){if(!N&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){N=true;w();s();K.onload=K.onreadystatechange=null;A&&K.parentNode&&A.removeChild(K)}}}A.insertBefore(K,A.firstChild);return v}var J=false,F=c.xhr();if(F){c.username?F.open(P,c.url,c.async,c.username,c.password):F.open(P,c.url,c.async);try{if(c.data||Aa&&Aa.contentType){F.setRequestHeader("Content-Type",c.contentType)}if(c.ifModified){AF.lastModified[c.url]&&F.setRequestHeader("If-Modified-Since",AF.lastModified[c.url]);AF.etag[c.url]&&F.setRequestHeader("If-None-Match",AF.etag[c.url])}L||F.setRequestHeader("X-Requested-With","XMLHttpRequest");F.setRequestHeader("Accept",c.dataType&&c.accepts[c.dataType]?c.accepts[c.dataType]+", */*":c.accepts._default)}catch(Ab){}if(c.beforeSend&&c.beforeSend.call(T,F,c)===false){c.global&&!--AF.active&&AF.event.trigger("ajaxStop");F.abort();return false}c.global&&Z("ajaxSend",[F,c]);var Y=F.onreadystatechange=function(BJ){if(!F||F.readyState===0||BJ==="abort"){J||s();J=true;if(F){F.onreadystatechange=AF.noop}}else{if(!J&&F&&(F.readyState===4||BJ==="timeout")){J=true;F.onreadystatechange=AF.noop;W=BJ==="timeout"?"timeout":!AF.httpSuccess(F)?"error":c.ifModified&&AF.httpNotModified(F,c.url)?"notmodified":"success";var BK;if(W==="success"){try{O=AF.httpData(F,c.dataType,c)}catch(BI){W="parsererror";BK=BI}}if(W==="success"||W==="notmodified"){V||w()}else{AF.handleError(c,F,W,BK)}s();BJ==="timeout"&&F.abort();if(c.async){F=null}}}};try{var X=F.abort;F.abort=function(){F&&X.call(F);Y("abort")}}catch(R){}c.async&&c.timeout>0&&setTimeout(function(){F&&!J&&Y("timeout")},c.timeout);try{F.send(P==="POST"||P==="PUT"||P==="DELETE"?c.data:null)}catch(Q){AF.handleError(c,F,null,Q);s()}c.async||Y();return F}},handleError:function(F,A,J,G){if(F.error){F.error.call(F.context||F,A,J,G)}if(F.global){(F.context?AF(F.context):AF.event).trigger("ajaxError",[A,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||F.status===0}catch(A){}return false},httpNotModified:function(F,A){var J=F.getResponseHeader("Last-Modified"),G=F.getResponseHeader("Etag");if(J){AF.lastModified[A]=J}if(G){AF.etag[A]=G}return F.status===304||F.status===0},httpData:function(F,A,K){var G=F.getResponseHeader("content-type")||"",J=A==="xml"||!A&&G.indexOf("xml")>=0;F=J?F.responseXML:F.responseText;J&&F.documentElement.nodeName==="parsererror"&&AF.error("parsererror");if(K&&K.dataFilter){F=K.dataFilter(F,A)}if(typeof F==="string"){if(A==="json"||!A&&G.indexOf("json")>=0){F=AF.parseJSON(F)}else{if(A==="script"||!A&&G.indexOf("javascript")>=0){AF.globalEval(F)}}}return F},param:function(F,A){function L(N,O){if(AF.isArray(O)){AF.each(O,function(P,Q){A||/\[\]$/.test(N)?J(N,Q):L(N+"["+(typeof Q==="object"||AF.isArray(Q)?P:"")+"]",Q)})}else{!A&&O!=null&&typeof O==="object"?AF.each(O,function(P,Q){L(N+"["+P+"]",Q)}):J(N,O)}}function J(N,O){O=AF.isFunction(O)?O():O;K[K.length]=encodeURIComponent(N)+"="+encodeURIComponent(O)}var K=[];if(A===v){A=AF.ajaxSettings.traditional}if(AF.isArray(F)||F.jquery){AF.each(F,function(){J(this.name,this.value)})}else{for(var G in F){L(G,F[G])}}return K.join("&").replace(A4,"+")}});var BD={},A9=/toggle|show|hide/,Aw=/^([+-]=)?([\d+-.]+)(.*)$/,AO,r=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];AF.fn.extend({show:function(F,A){if(F||F===0){return this.animate(AZ("show",3),F,A)}else{F=0;for(A=this.length;F<A;F++){var K=AF.data(this[F],"olddisplay");this[F].style.display=K||"";if(AF.css(this[F],"display")==="none"){K=this[F].nodeName;var G;if(BD[K]){G=BD[K]}else{var J=AF("<"+K+" />").appendTo("body");G=J.css("display");if(G==="none"){G="block"}J.remove();BD[K]=G}AF.data(this[F],"olddisplay",G)}}F=0;for(A=this.length;F<A;F++){this[F].style.display=AF.data(this[F],"olddisplay")||""}return this}},hide:function(F,A){if(F||F===0){return this.animate(AZ("hide",3),F,A)}else{F=0;for(A=this.length;F<A;F++){var G=AF.data(this[F],"olddisplay");!G&&G!=="none"&&AF.data(this[F],"olddisplay",AF.css(this[F],"display"))}F=0;for(A=this.length;F<A;F++){this[F].style.display="none"}return this}},_toggle:AF.fn.toggle,toggle:function(F,A){var G=typeof F==="boolean";if(AF.isFunction(F)&&AF.isFunction(A)){this._toggle.apply(this,arguments)}else{F==null||G?this.each(function(){var J=G?F:AF(this).is(":hidden");AF(this)[J?"show":"hide"]()}):this.animate(AZ("toggle",3),F,A)}return this},fadeTo:function(F,A,G){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:A},F,G)},animate:function(F,A,K,G){var J=AF.speed(A,K,G);if(AF.isEmptyObject(F)){return this.each(J.complete)}return this[J.queue===false?"each":"queue"](function(){var N=AF.extend({},J),O,P=this.nodeType===1&&AF(this).is(":hidden"),L=this;for(O in F){var Q=O.replace(AB,l);if(O!==Q){F[Q]=F[O];delete F[O];O=Q}if(F[O]==="hide"&&P||F[O]==="show"&&!P){return N.complete.call(this)}if((O==="height"||O==="width")&&this.style){N.display=AF.css(this,"display");N.overflow=this.style.overflow}if(AF.isArray(F[O])){(N.specialEasing=N.specialEasing||{})[O]=F[O][1];F[O]=F[O][0]}}if(N.overflow!=null){this.style.overflow="hidden"}N.curAnim=AF.extend({},F);AF.each(F,function(T,R){var X=new AF.fx(L,N,T);if(A9.test(R)){X[R==="toggle"?P?"show":"hide":R](F)}else{var W=Aw.exec(R),Y=X.cur(true)||0;if(W){R=parseFloat(W[2]);var V=W[3]||"px";if(V!=="px"){L.style[T]=(R||1)+V;Y=(R||1)/X.cur(true)*Y;L.style[T]=Y+V}if(W[1]){R=(W[1]==="-="?-1:1)*R+Y}X.custom(Y,R,V)}else{X.custom(Y,R,"")}}});return true})},stop:function(F,A){var G=AF.timers;F&&this.queue([]);this.each(function(){for(var J=G.length-1;J>=0;J--){if(G[J].elem===this){A&&G[J](true);G.splice(J,1)}}});A||this.dequeue();return this}});AF.each({slideDown:AZ("show",1),slideUp:AZ("hide",1),slideToggle:AZ("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(F,A){AF.fn[F]=function(J,G){return this.animate(A,J,G)}});AF.extend({speed:function(F,A,J){var G=F&&typeof F==="object"?F:{complete:J||!J&&A||AF.isFunction(F)&&F,duration:F,easing:J&&A||A&&!AF.isFunction(A)&&A};G.duration=AF.fx.off?0:typeof G.duration==="number"?G.duration:AF.fx.speeds[G.duration]||AF.fx.speeds._default;G.old=G.complete;G.complete=function(){G.queue!==false&&AF(this).dequeue();AF.isFunction(G.old)&&G.old.call(this)};return G},easing:{linear:function(F,A,J,G){return J+G*F},swing:function(F,A,J,G){return(-Math.cos(F*Math.PI)/2+0.5)*G+J}},timers:[],fx:function(F,A,G){this.options=A;this.elem=F;this.prop=G;if(!A.orig){A.orig={}}}});AF.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(AF.fx.step[this.prop]||AF.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(A){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(A=parseFloat(AF.css(this.elem,this.prop,A)))&&A>-10000?A:parseFloat(AF.curCSS(this.elem,this.prop))||0},custom:function(F,A,K){function G(L){return J.step(L)}this.startTime=Ae();this.start=F;this.end=A;this.unit=K||this.unit||"px";this.now=this.start;this.pos=this.state=0;var J=this;G.elem=this.elem;if(G()&&AF.timers.push(G)&&!AO){AO=setInterval(AF.fx.tick,13)}},show:function(){this.options.orig[this.prop]=AF.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());AF(this.elem).show()},hide:function(){this.options.orig[this.prop]=AF.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(F){var A=Ae(),K=true;if(F||A>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var G in this.options.curAnim){if(this.options.curAnim[G]!==true){K=false}}if(K){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;F=AF.data(this.elem,"olddisplay");this.elem.style.display=F?F:this.options.display;if(AF.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&AF(this.elem).hide();if(this.options.hide||this.options.show){for(var J in this.options.curAnim){AF.style(this.elem,J,this.options.orig[J])}}this.options.complete.call(this.elem)}return false}else{J=A-this.startTime;this.state=J/this.options.duration;F=this.options.easing||(AF.easing.swing?"swing":"linear");this.pos=AF.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||F](this.state,J,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};AF.extend(AF.fx,{tick:function(){for(var F=AF.timers,A=0;A<F.length;A++){F[A]()||F.splice(A--,1)}F.length||AF.fx.stop()},stop:function(){clearInterval(AO);AO=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(A){AF.style(A.elem,"opacity",A.now)},_default:function(A){if(A.elem.style&&A.elem.style[A.prop]!=null){A.elem.style[A.prop]=(A.prop==="width"||A.prop==="height"?Math.max(0,A.now):A.now)+A.unit}else{A.elem[A.prop]=A.now}}}});if(AF.expr&&AF.expr.filters){AF.expr.filters.animated=function(A){return AF.grep(AF.timers,function(F){return A===F.elem}).length}}AF.fn.offset="getBoundingClientRect" in x.documentElement?function(F){var A=this[0];if(F){return this.each(function(K){AF.offset.setOffset(this,F,K)})}if(!A||!A.ownerDocument){return null}if(A===A.ownerDocument.body){return AF.offset.bodyOffset(A)}var J=A.getBoundingClientRect(),G=A.ownerDocument;A=G.body;G=G.documentElement;return{top:J.top+(self.pageYOffset||AF.support.boxModel&&G.scrollTop||A.scrollTop)-(G.clientTop||A.clientTop||0),left:J.left+(self.pageXOffset||AF.support.boxModel&&G.scrollLeft||A.scrollLeft)-(G.clientLeft||A.clientLeft||0)}}:function(Q){var P=this[0];if(Q){return this.each(function(R){AF.offset.setOffset(this,Q,R)})}if(!P||!P.ownerDocument){return null}if(P===P.ownerDocument.body){return AF.offset.bodyOffset(P)}AF.offset.initialize();var O=P.offsetParent,L=P,N=P.ownerDocument,J,K=N.documentElement,A=N.body;L=(N=N.defaultView)?N.getComputedStyle(P,null):P.currentStyle;for(var G=P.offsetTop,F=P.offsetLeft;(P=P.parentNode)&&P!==A&&P!==K;){if(AF.offset.supportsFixedPosition&&L.position==="fixed"){break}J=N?N.getComputedStyle(P,null):P.currentStyle;G-=P.scrollTop;F-=P.scrollLeft;if(P===O){G+=P.offsetTop;F+=P.offsetLeft;if(AF.offset.doesNotAddBorder&&!(AF.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(P.nodeName))){G+=parseFloat(J.borderTopWidth)||0;F+=parseFloat(J.borderLeftWidth)||0}L=O;O=P.offsetParent}if(AF.offset.subtractsBorderForOverflowNotVisible&&J.overflow!=="visible"){G+=parseFloat(J.borderTopWidth)||0;F+=parseFloat(J.borderLeftWidth)||0}L=J}if(L.position==="relative"||L.position==="static"){G+=A.offsetTop;F+=A.offsetLeft}if(AF.offset.supportsFixedPosition&&L.position==="fixed"){G+=Math.max(K.scrollTop,A.scrollTop);F+=Math.max(K.scrollLeft,A.scrollLeft)}return{top:G,left:F}};AF.offset={initialize:function(){var F=x.body,A=x.createElement("div"),L,J,K,G=parseFloat(AF.curCSS(F,"marginTop",true))||0;AF.extend(A.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});A.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";F.insertBefore(A,F.firstChild);L=A.firstChild;J=L.firstChild;K=L.nextSibling.firstChild.firstChild;this.doesNotAddBorder=J.offsetTop!==5;this.doesAddBorderForTableAndCells=K.offsetTop===5;J.style.position="fixed";J.style.top="20px";this.supportsFixedPosition=J.offsetTop===20||J.offsetTop===15;J.style.position=J.style.top="";L.style.overflow="hidden";L.style.position="relative";this.subtractsBorderForOverflowNotVisible=J.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=F.offsetTop!==G;F.removeChild(A);AF.offset.initialize=AF.noop},bodyOffset:function(F){var A=F.offsetTop,G=F.offsetLeft;AF.offset.initialize();if(AF.offset.doesNotIncludeMarginInBodyOffset){A+=parseFloat(AF.curCSS(F,"marginTop",true))||0;G+=parseFloat(AF.curCSS(F,"marginLeft",true))||0}return{top:A,left:G}},setOffset:function(F,A,N){if(/static/.test(AF.curCSS(F,"position"))){F.style.position="relative"}var K=AF(F),L=K.offset(),G=parseInt(AF.curCSS(F,"top",true),10)||0,J=parseInt(AF.curCSS(F,"left",true),10)||0;if(AF.isFunction(A)){A=A.call(F,N,L)}N={top:A.top-L.top+G,left:A.left-L.left+J};"using" in A?A.using.call(F,N):K.css(N)}};AF.fn.extend({position:function(){if(!this[0]){return null}var F=this[0],A=this.offsetParent(),J=this.offset(),G=/^body|html$/i.test(A[0].nodeName)?{top:0,left:0}:A.offset();J.top-=parseFloat(AF.curCSS(F,"marginTop",true))||0;J.left-=parseFloat(AF.curCSS(F,"marginLeft",true))||0;G.top+=parseFloat(AF.curCSS(A[0],"borderTopWidth",true))||0;G.left+=parseFloat(AF.curCSS(A[0],"borderLeftWidth",true))||0;return{top:J.top-G.top,left:J.left-G.left}},offsetParent:function(){return this.map(function(){for(var A=this.offsetParent||x.body;A&&!/^body|html$/i.test(A.nodeName)&&AF.css(A,"position")==="static";){A=A.offsetParent}return A})}});AF.each(["Left","Top"],function(F,A){var G="scroll"+A;AF.fn[G]=function(K){var L=this[0],J;if(!L){return null}if(K!==v){return this.each(function(){if(J=f(this)){J.scrollTo(!F?K:AF(J).scrollLeft(),F?K:AF(J).scrollTop())}else{this[G]=K}})}else{return(J=f(L))?"pageXOffset" in J?J[F?"pageYOffset":"pageXOffset"]:AF.support.boxModel&&J.document.documentElement[G]||J.document.body[G]:L[G]}}});AF.each(["Height","Width"],function(F,A){var G=A.toLowerCase();AF.fn["inner"+A]=function(){return this[0]?AF.css(this[0],G,false,"padding"):null};AF.fn["outer"+A]=function(J){return this[0]?AF.css(this[0],G,false,J?"margin":"border"):null};AF.fn[G]=function(J){var K=this[0];if(!K){return J==null?null:this}if(AF.isFunction(J)){return this.each(function(L){var N=AF(this);N[G](J.call(this,L,N[G]()))})}return"scrollTo" in K&&K.document?K.document.compatMode==="CSS1Compat"&&K.document.documentElement["client"+A]||K.document.body["client"+A]:K.nodeType===9?Math.max(K.documentElement["client"+A],K.body["scroll"+A],K.documentElement["scroll"+A],K.body["offset"+A],K.documentElement["offset"+A]):J===v?AF.css(K,G):this.css(G,typeof J==="string"?J:J+"px")}});An.jQuery=An.$=AF})(window);
var sIFR=new function(){var O=this;var E={ACTIVE:"sIFR-active",REPLACED:"sIFR-replaced",IGNORE:"sIFR-ignore",ALTERNATE:"sIFR-alternate",CLASS:"sIFR-class",LAYOUT:"sIFR-layout",FLASH:"sIFR-flash",FIX_FOCUS:"sIFR-fixfocus",DUMMY:"sIFR-dummy"};E.IGNORE_CLASSES=[E.REPLACED,E.IGNORE,E.ALTERNATE];this.MIN_FONT_SIZE=6;this.MAX_FONT_SIZE=126;this.FLASH_PADDING_BOTTOM=5;this.VERSION="436";this.isActive=false;this.isEnabled=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.replacements=[];var L=0;var R=false;function Y(){}function D(c){function d(e){return e.toLocaleUpperCase()}this.normalize=function(e){return e.replace(/\n|\r|\xA0/g,D.SINGLE_WHITESPACE).replace(/\s+/g,D.SINGLE_WHITESPACE)};this.textTransform=function(e,f){switch(e){case"uppercase":return f.toLocaleUpperCase();case"lowercase":return f.toLocaleLowerCase();case"capitalize":return f.replace(/^\w|\s\w/g,d)}return f};this.toHexString=function(e){if(e.charAt(0)!="#"||e.length!=4&&e.length!=7){return e}e=e.substring(1);return"0x"+(e.length==3?e.replace(/(.)(.)(.)/,"$1$1$2$2$3$3"):e)};this.toJson=function(g,f){var e="";switch(typeof (g)){case"string":e='"'+f(g)+'"';break;case"number":case"boolean":e=g.toString();break;case"object":e=[];for(var h in g){if(g[h]==Object.prototype[h]){continue}e.push('"'+h+'":'+this.toJson(g[h]))}e="{"+e.join(",")+"}";break}return e};this.convertCssArg=function(e){if(!e){return{}}if(typeof (e)=="object"){if(e.constructor==Array){e=e.join("")}else{return e}}var l={};var m=e.split("}");for(var h=0;h<m.length;h++){var k=m[h].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!k||k.length!=3){continue}if(!l[k[1]]){l[k[1]]={}}var g=k[2].split(";");for(var f=0;f<g.length;f++){var n=g[f].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!n||n.length!=3){continue}l[k[1]][n[1]]=n[2].replace(/\s+$/,"")}}return l};this.extractFromCss=function(g,f,i,e){var h=null;if(g&&g[f]&&g[f][i]){h=g[f][i];if(e){delete g[f][i]}}return h};this.cssToString=function(f){var g=[];for(var e in f){var j=f[e];if(j==Object.prototype[e]){continue}g.push(e,"{");for(var i in j){if(j[i]==Object.prototype[i]){continue}var h=j[i];if(D.UNIT_REMOVAL_PROPERTIES[i]){h=parseInt(h,10)}g.push(i,":",h,";")}g.push("}")}return g.join("")};this.escape=function(e){return escape(e).replace(/\+/g,"%2B")};this.encodeVars=function(e){return e.join("&").replace(/%/g,"%25")};this.copyProperties=function(g,f){for(var e in g){if(f[e]===undefined){f[e]=g[e]}}return f};this.domain=function(){var f="";try{f=document.domain}catch(g){}return f};this.domainMatches=function(h,g){if(g=="*"||g==h){return true}var f=g.lastIndexOf("*");if(f>-1){g=g.substr(f+1);var e=h.lastIndexOf(g);if(e>-1&&(e+g.length)==h.length){return true}}return false};this.uriEncode=function(e){return encodeURI(decodeURIComponent(e))};this.delay=function(f,h,g){var e=Array.prototype.slice.call(arguments,3);setTimeout(function(){h.apply(g,e)},f)}}D.UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};D.SINGLE_WHITESPACE=" ";function U(e){var d=this;function c(g,j,h){var k=d.getStyleAsInt(g,j,e.ua.ie);if(k==0){k=g[h];for(var f=3;f<arguments.length;f++){k-=d.getStyleAsInt(g,arguments[f],true)}}return k}this.getBody=function(){return document.getElementsByTagName("body")[0]||null};this.querySelectorAll=function(f){return window.parseSelector(f)};this.addClass=function(f,g){if(g){g.className=((g.className||"")==""?"":g.className+" ")+f}};this.removeClass=function(f,g){if(g){g.className=g.className.replace(new RegExp("(^|\\s)"+f+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(f,g){return new RegExp("(^|\\s)"+f+"(\\s|$)").test(g.className)};this.hasOneOfClassses=function(h,g){for(var f=0;f<h.length;f++){if(this.hasClass(h[f],g)){return true}}return false};this.ancestorHasClass=function(g,f){g=g.parentNode;while(g&&g.nodeType==1){if(this.hasClass(f,g)){return true}g=g.parentNode}return false};this.create=function(f,g){var h=document.createElementNS?document.createElementNS(U.XHTML_NS,f):document.createElement(f);if(g){h.className=g}return h};this.getComputedStyle=function(h,i){var f;if(document.defaultView&&document.defaultView.getComputedStyle){var g=document.defaultView.getComputedStyle(h,null);f=g?g[i]:null}else{if(h.currentStyle){f=h.currentStyle[i]}}return f||""};this.getStyleAsInt=function(g,i,f){var h=this.getComputedStyle(g,i);if(f&&!/px$/.test(h)){return 0}return parseInt(h)||0};this.getWidthFromStyle=function(f){return c(f,"width","offsetWidth","paddingRight","paddingLeft","borderRightWidth","borderLeftWidth")};this.getHeightFromStyle=function(f){return c(f,"height","offsetHeight","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth")};this.getDimensions=function(j){var h=j.offsetWidth;var f=j.offsetHeight;if(h==0||f==0){for(var g=0;g<j.childNodes.length;g++){var k=j.childNodes[g];if(k.nodeType!=1){continue}h=Math.max(h,k.offsetWidth);f=Math.max(f,k.offsetHeight)}}return{width:h,height:f}};this.getViewport=function(){return{width:window.innerWidth||document.documentElement.clientWidth||this.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||this.getBody().clientHeight}};this.blurElement=function(g){try{g.blur();return }catch(h){}var f=this.create("input");f.style.width="0px";f.style.height="0px";g.parentNode.appendChild(f);f.focus();f.blur();f.parentNode.removeChild(f)}}U.XHTML_NS="http://www.w3.org/1999/xhtml";function H(r){var g=navigator.userAgent.toLowerCase();var q=(navigator.product||"").toLowerCase();var h=navigator.platform.toLowerCase();this.parseVersion=H.parseVersion;this.macintosh=/^mac/.test(h);this.windows=/^win/.test(h);this.linux=/^linux/.test(h);this.quicktime=false;this.opera=/opera/.test(g);this.konqueror=/konqueror/.test(g);this.ie=false
/*@cc_on||true@*/
;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(g)
/*@cc_on&&@_jscript_version>=5.5@*/
;this.ieWin=this.ie&&this.windows
/*@cc_on&&@_jscript_version>=5.1@*/
;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh
/*@cc_on&&@_jscript_version<5.1@*/
;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=/safari/.test(g);this.webkit=!this.konqueror&&/applewebkit/.test(g);this.khtml=this.webkit||this.konqueror;this.gecko=!this.khtml&&q=="gecko";this.ieVersion=this.ie&&/.*msie\s(\d\.\d)/.exec(g)?this.parseVersion(RegExp.$1):"0";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(g)?this.parseVersion(RegExp.$2):"0";this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.geckoVersion=this.gecko&&/.*rv:\s*([^\)]+)\)\s+gecko/.exec(g)?this.parseVersion(RegExp.$1):"0";this.konquerorVersion=this.konqueror&&/.*konqueror\/([\d\.]+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.flashVersion=0;if(this.ieWin){var l;var o=false;try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(m){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=this.parseVersion("6");l.AllowScriptAccess="always"}catch(m){o=this.flashVersion==this.parseVersion("6")}if(!o){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(m){}}}if(!o&&l){this.flashVersion=this.parseVersion((l.GetVariable("$version")||"").replace(/^\D+(\d+)\D+(\d+)\D+(\d+).*/g,"$1.$2.$3"))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var n=navigator.plugins["Shockwave Flash"].description.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var p=n.replace(/^\D*(\d+\.\d+).*$/,"$1");if(/r/.test(n)){p+=n.replace(/^.*r(\d*).*$/,".$1")}else{if(/d/.test(n)){p+=".0"}}this.flashVersion=this.parseVersion(p);var j=false;for(var k=0,c=this.flashVersion>=H.MIN_FLASH_VERSION;c&&k<navigator.mimeTypes.length;k++){var f=navigator.mimeTypes[k];if(f.type!="application/x-shockwave-flash"){continue}if(f.enabledPlugin){j=true;if(f.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){c=false;this.quicktime=true}}}if(this.quicktime||!j){this.flashVersion=this.parseVersion("0")}}}this.flash=this.flashVersion>=H.MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows||this.linux&&(this.flashVersion>=this.parseVersion("10")&&(this.gecko&&this.geckoVersion>=this.parseVersion("1.9")||this.opera));this.computedStyleSupport=this.ie||!!document.defaultView.getComputedStyle;this.fixFocus=this.gecko&&this.windows;this.nativeDomLoaded=this.gecko||this.webkit&&this.webkitVersion>=this.parseVersion("525")||this.konqueror&&this.konquerorMajor>this.parseVersion("03")||this.opera;this.mustCheckStyle=this.khtml||this.opera;this.forcePageLoad=this.webkit&&this.webkitVersion<this.parseVersion("523");this.properDocument=typeof (document.location)=="object";this.supported=this.flash&&this.properDocument&&(!this.ie||this.ieSupported)&&this.computedStyleSupport&&(!this.opera||this.operaVersion>=this.parseVersion("9.61"))&&(!this.webkit||this.webkitVersion>=this.parseVersion("412"))&&(!this.gecko||this.geckoVersion>=this.parseVersion("1.8.0.12"))&&(!this.konqueror)}H.parseVersion=function(c){return c.replace(/(^|\D)(\d+)(?=\D|$)/g,function(f,e,g){f=e;for(var d=4-g.length;d>=0;d--){f+="0"}return f+g})};H.MIN_FLASH_VERSION=H.parseVersion("8");function F(c){this.fix=c.ua.ieWin&&window.location.hash!="";var d;this.cache=function(){d=document.title};function e(){document.title=d}this.restore=function(){if(this.fix){setTimeout(e,0)}}}function S(l){var e=null;function c(){try{if(l.ua.ie||document.readyState!="loaded"&&document.readyState!="complete"){document.documentElement.doScroll("left")}}catch(n){return setTimeout(c,10)}i()}function i(){if(l.useStyleCheck){h()}else{if(!l.ua.mustCheckStyle){d(null,true)}}}function h(){e=l.dom.create("div",E.DUMMY);l.dom.getBody().appendChild(e);m()}function m(){if(l.dom.getComputedStyle(e,"marginLeft")=="42px"){g()}else{setTimeout(m,10)}}function g(){if(e&&e.parentNode){e.parentNode.removeChild(e)}e=null;d(null,true)}function d(n,o){l.initialize(o);if(n&&n.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",d,false)}if(window.removeEventListener){window.removeEventListener("load",d,false)}}}function j(){l.prepareClearReferences();if(document.readyState=="interactive"){document.attachEvent("onstop",f);setTimeout(function(){document.detachEvent("onstop",f)},0)}}function f(){document.detachEvent("onstop",f);k()}function k(){l.clearReferences()}this.attach=function(){if(window.addEventListener){window.addEventListener("load",d,false)}else{window.attachEvent("onload",d)}if(!l.useDomLoaded||l.ua.forcePageLoad||l.ua.ie&&window.top!=window){return }if(l.ua.nativeDomLoaded){document.addEventListener("DOMContentLoaded",i,false)}else{if(l.ua.ie||l.ua.khtml){c()}}};this.attachUnload=function(){if(!l.ua.ie){return }window.attachEvent("onbeforeunload",j);window.attachEvent("onunload",k)}}var Q="sifrFetch";function N(c){var e=false;this.fetchMovies=function(f){if(c.setPrefetchCookie&&new RegExp(";?"+Q+"=true;?").test(document.cookie)){return }try{e=true;d(f)}catch(g){}if(c.setPrefetchCookie){document.cookie=Q+"=true;path="+c.cookiePath}};this.clear=function(){if(!e){return }try{var f=document.getElementsByTagName("script");for(var g=f.length-1;g>=0;g--){var h=f[g];if(h.type=="sifr/prefetch"){h.parentNode.removeChild(h)}}}catch(j){}};function d(f){for(var g=0;g<f.length;g++){document.write('<script defer type="sifr/prefetch" src="'+f[g].src+'"><\/script>')}}}function b(e){var g=e.ua.ie;var f=g&&e.ua.flashVersion<e.ua.parseVersion("9.0.115");var d={};var c={};this.fixFlash=f;this.register=function(h){if(!g){return }var i=h.getAttribute("id");this.cleanup(i,false);c[i]=h;delete d[i];if(f){window[i]=h}};this.reset=function(){if(!g){return false}for(var j=0;j<e.replacements.length;j++){var h=e.replacements[j];var k=c[h.id];if(!d[h.id]&&(!k.parentNode||k.parentNode.nodeType==11)){h.resetMovie();d[h.id]=true}}return true};this.cleanup=function(l,h){var i=c[l];if(!i){return }for(var k in i){if(typeof (i[k])=="function"){i[k]=null}}c[l]=null;if(f){window[l]=null}if(i.parentNode){if(h&&i.parentNode.nodeType==1){var j=document.createElement("div");j.style.width=i.offsetWidth+"px";j.style.height=i.offsetHeight+"px";i.parentNode.replaceChild(j,i)}else{i.parentNode.removeChild(i)}}};this.prepareClearReferences=function(){if(!f){return }__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}};this.clearReferences=function(){if(f){var j=document.getElementsByTagName("object");for(var h=j.length-1;h>=0;h--){c[j[h].getAttribute("id")]=j[h]}}for(var k in c){if(Object.prototype[k]!=c[k]){this.cleanup(k,true)}}}}function K(d,g,f,c,e){this.sIFR=d;this.id=g;this.vars=f;this.movie=null;this.__forceWidth=c;this.__events=e;this.__resizing=0}K.prototype={getFlashElement:function(){return document.getElementById(this.id)},getAlternate:function(){return document.getElementById(this.id+"_alternate")},getAncestor:function(){var c=this.getFlashElement().parentNode;return !this.sIFR.dom.hasClass(E.FIX_FOCUS,c)?c:c.parentNode},available:function(){var c=this.getFlashElement();return c&&c.parentNode},call:function(c){var d=this.getFlashElement();if(!d[c]){return false}return Function.prototype.apply.call(d[c],d,Array.prototype.slice.call(arguments,1))},attempt:function(){if(!this.available()){return false}try{this.call.apply(this,arguments)}catch(c){if(this.sIFR.debug){throw c}return false}return true},updateVars:function(c,e){for(var d=0;d<this.vars.length;d++){if(this.vars[d].split("=")[0]==c){this.vars[d]=c+"="+e;break}}var f=this.sIFR.util.encodeVars(this.vars);this.movie.injectVars(this.getFlashElement(),f);this.movie.injectVars(this.movie.html,f)},storeSize:function(c,d){this.movie.setSize(c,d);this.updateVars(c,d)},fireEvent:function(c){if(this.available()&&this.__events[c]){this.sIFR.util.delay(0,this.__events[c],this,this)}},resizeFlashElement:function(c,d,e){if(!this.available()){return }this.__resizing++;var f=this.getFlashElement();f.setAttribute("height",c);this.getAncestor().style.minHeight="";this.updateVars("renderheight",c);this.storeSize("height",c);if(d!==null){f.setAttribute("width",d);this.movie.setSize("width",d)}if(this.__events.onReplacement){this.sIFR.util.delay(0,this.__events.onReplacement,this,this);delete this.__events.onReplacement}if(e){this.sIFR.util.delay(0,function(){this.attempt("scaleMovie");this.__resizing--},this)}else{this.__resizing--}},blurFlashElement:function(){if(this.available()){this.sIFR.dom.blurElement(this.getFlashElement())}},resetMovie:function(){this.sIFR.util.delay(0,this.movie.reset,this.movie,this.getFlashElement(),this.getAlternate())},resizeAfterScale:function(){if(this.available()&&this.__resizing==0){this.sIFR.util.delay(0,this.resize,this)}},resize:function(){if(!this.available()){return }this.__resizing++;var g=this.getFlashElement();var f=g.offsetWidth;if(f==0){return }var e=g.getAttribute("width");var l=g.getAttribute("height");var m=this.getAncestor();var o=this.sIFR.dom.getHeightFromStyle(m);g.style.width="1px";g.style.height="1px";m.style.minHeight=o+"px";var c=this.getAlternate().childNodes;var n=[];for(var k=0;k<c.length;k++){var h=c[k].cloneNode(true);n.push(h);m.appendChild(h)}var d=this.sIFR.dom.getWidthFromStyle(m);for(var k=0;k<n.length;k++){m.removeChild(n[k])}g.style.width=g.style.height=m.style.minHeight="";g.setAttribute("width",this.__forceWidth?d:e);g.setAttribute("height",l);if(sIFR.ua.ie){g.style.display="none";var j=g.offsetHeight;g.style.display=""}if(d!=f){if(this.__forceWidth){this.storeSize("width",d)}this.attempt("resize",d)}this.__resizing--},replaceText:function(g,j){var d=this.sIFR.util.escape(g);if(!this.attempt("replaceText",d)){return false}this.updateVars("content",d);var f=this.getAlternate();if(j){while(f.firstChild){f.removeChild(f.firstChild)}for(var c=0;c<j.length;c++){f.appendChild(j[c])}}else{try{f.innerHTML=g}catch(h){}}return true},changeCSS:function(c){c=this.sIFR.util.escape(this.sIFR.util.cssToString(this.sIFR.util.convertCssArg(c)));this.updateVars("css",c);return this.attempt("changeCSS",c)},remove:function(){if(this.movie&&this.available()){this.movie.remove(this.getFlashElement(),this.id)}}};var X=new function(){this.create=function(p,n,j,i,f,e,g,o,l,h,m){var k=p.ua.ie?d:c;return new k(p,n,j,i,f,e,g,o,["flashvars",l,"wmode",h,"bgcolor",m,"allowScriptAccess","always","quality","best"])};function c(s,q,l,h,f,e,g,r,n){var m=s.dom.create("object",E.FLASH);var p=["type","application/x-shockwave-flash","id",f,"name",f,"data",e,"width",g,"height",r];for(var o=0;o<p.length;o+=2){m.setAttribute(p[o],p[o+1])}var j=m;if(h){j=W.create("div",E.FIX_FOCUS);j.appendChild(m)}for(var o=0;o<n.length;o+=2){if(n[o]=="name"){continue}var k=W.create("param");k.setAttribute("name",n[o]);k.setAttribute("value",n[o+1]);m.appendChild(k)}l.style.minHeight=r+"px";while(l.firstChild){l.removeChild(l.firstChild)}l.appendChild(j);this.html=j.cloneNode(true)}c.prototype={reset:function(e,f){e.parentNode.replaceChild(this.html.cloneNode(true),e)},remove:function(e,f){e.parentNode.removeChild(e)},setSize:function(e,f){this.html.setAttribute(e,f)},injectVars:function(e,g){var h=e.getElementsByTagName("param");for(var f=0;f<h.length;f++){if(h[f].getAttribute("name")=="flashvars"){h[f].setAttribute("value",g);break}}}};function d(p,n,j,h,f,e,g,o,k){this.dom=p.dom;this.broken=n;this.html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+f+'" width="'+g+'" height="'+o+'" class="'+E.FLASH+'"><param name="movie" value="'+e+'"></param></object>';var m="";for(var l=0;l<k.length;l+=2){m+='<param name="'+k[l]+'" value="'+k[l+1]+'"></param>'}this.html=this.html.replace(/(<\/object>)/,m+"$1");j.style.minHeight=o+"px";j.innerHTML=this.html;this.broken.register(j.firstChild)}d.prototype={reset:function(f,g){g=g.cloneNode(true);var e=f.parentNode;e.innerHTML=this.html;this.broken.register(e.firstChild);e.appendChild(g)},remove:function(e,f){this.broken.cleanup(f)},setSize:function(e,f){this.html=this.html.replace(e=="height"?/(height)="\d+"/:/(width)="\d+"/,'$1="'+f+'"')},injectVars:function(e,f){if(e!=this.html){return }this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+f)}}};this.errors=new Y(O);var A=this.util=new D(O);var W=this.dom=new U(O);var T=this.ua=new H(O);var G={fragmentIdentifier:new F(O),pageLoad:new S(O),prefetch:new N(O),brokenFlashIE:new b(O)};this.__resetBrokenMovies=G.brokenFlashIE.reset;var J={kwargs:[],replaceAll:function(d){for(var c=0;c<this.kwargs.length;c++){O.replace(this.kwargs[c])}if(!d){this.kwargs=[]}}};this.activate=function(){if(!T.supported||!this.isEnabled||this.isActive||!C()||a()){return }G.prefetch.fetchMovies(arguments);this.isActive=true;this.setFlashClass();G.fragmentIdentifier.cache();G.pageLoad.attachUnload();if(!this.autoInitialize){return }G.pageLoad.attach()};this.setFlashClass=function(){if(this.hasFlashClassSet){return }W.addClass(E.ACTIVE,W.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return }W.removeClass(E.ACTIVE,W.getBody());W.removeClass(E.ACTIVE,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(c){if(!this.isActive||!this.isEnabled){return }if(R){if(!c){J.replaceAll(false)}return }R=true;J.replaceAll(c);if(O.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",Z,false)}else{window.attachEvent("onresize",Z)}}G.prefetch.clear()};this.replace=function(x,u){if(!T.supported){return }if(u){x=A.copyProperties(x,u)}if(!R){return J.kwargs.push(x)}if(this.onReplacementStart){this.onReplacementStart(x)}var AM=x.elements||W.querySelectorAll(x.selector);if(AM.length==0){return }var w=M(x.src);var AR=A.convertCssArg(x.css);var v=B(x.filters);var AN=x.forceSingleLine===true;var AS=x.preventWrap===true&&!AN;var q=AN||(x.fitExactly==null?this.fitExactly:x.fitExactly)===true;var AD=q||(x.forceWidth==null?this.forceWidth:x.forceWidth)===true;var s=x.ratios||[];var AE=x.pixelFont===true;var r=parseInt(x.tuneHeight)||0;var z=!!x.onRelease||!!x.onRollOver||!!x.onRollOut;if(q){A.extractFromCss(AR,".sIFR-root","text-align",true)}var t=A.extractFromCss(AR,".sIFR-root","font-size",true)||"0";var e=A.extractFromCss(AR,".sIFR-root","background-color",true)||"#FFFFFF";var o=A.extractFromCss(AR,".sIFR-root","kerning",true)||"";var AW=A.extractFromCss(AR,".sIFR-root","opacity",true)||"100";var k=A.extractFromCss(AR,".sIFR-root","cursor",true)||"default";var AP=parseInt(A.extractFromCss(AR,".sIFR-root","leading"))||0;var AJ=x.gridFitType||(A.extractFromCss(AR,".sIFR-root","text-align")=="right")?"subpixel":"pixel";var h=this.forceTextTransform===false?"none":A.extractFromCss(AR,".sIFR-root","text-transform",true)||"none";t=/^\d+(px)?$/.test(t)?parseInt(t):0;AW=parseFloat(AW)<1?100*parseFloat(AW):AW;var AC=x.modifyCss?"":A.cssToString(AR);var AG=x.wmode||"";if(!AG){if(x.transparent){AG="transparent"}else{if(x.opaque){AG="opaque"}}}if(AG=="transparent"){if(!T.transparencySupport){AG="opaque"}else{e="transparent"}}else{if(e=="transparent"){e="#FFFFFF"}}for(var AV=0;AV<AM.length;AV++){var AF=AM[AV];if(W.hasOneOfClassses(E.IGNORE_CLASSES,AF)||W.ancestorHasClass(AF,E.ALTERNATE)){continue}var AO=W.getDimensions(AF);var f=AO.height;var c=AO.width;var AA=W.getComputedStyle(AF,"display");if(!f||!c||!AA||AA=="none"){continue}c=W.getWidthFromStyle(AF);var n,AH;if(!t){var AL=I(AF);n=Math.min(this.MAX_FONT_SIZE,Math.max(this.MIN_FONT_SIZE,AL.fontSize));if(AE){n=Math.max(8,8*Math.round(n/8))}AH=AL.lines}else{n=t;AH=1}var d=W.create("span",E.ALTERNATE);var AX=AF.cloneNode(true);AF.parentNode.appendChild(AX);for(var AU=0,AT=AX.childNodes.length;AU<AT;AU++){var m=AX.childNodes[AU];if(!/^(style|script)$/i.test(m.nodeName)){d.appendChild(m.cloneNode(true))}}if(x.modifyContent){x.modifyContent(AX,x.selector)}if(x.modifyCss){AC=x.modifyCss(AR,AX,x.selector)}var p=P(AX,h,x.uriEncode);AX.parentNode.removeChild(AX);if(x.modifyContentString){p.text=x.modifyContentString(p.text,x.selector)}if(p.text==""){continue}var AK=Math.round(AH*V(n,s)*n)+this.FLASH_PADDING_BOTTOM+r;if(AH>1&&AP){AK+=Math.round((AH-1)*AP)}var AB=AD?c:"100%";var AI="sIFR_replacement_"+L++;var AQ=["id="+AI,"content="+A.escape(p.text),"width="+c,"renderheight="+AK,"link="+A.escape(p.primaryLink.href||""),"target="+A.escape(p.primaryLink.target||""),"size="+n,"css="+A.escape(AC),"cursor="+k,"tunewidth="+(x.tuneWidth||0),"tuneheight="+r,"offsetleft="+(x.offsetLeft||""),"offsettop="+(x.offsetTop||""),"fitexactly="+q,"preventwrap="+AS,"forcesingleline="+AN,"antialiastype="+(x.antiAliasType||""),"thickness="+(x.thickness||""),"sharpness="+(x.sharpness||""),"kerning="+o,"gridfittype="+AJ,"flashfilters="+v,"opacity="+AW,"blendmode="+(x.blendMode||""),"selectable="+(x.selectable==null||AG!=""&&!sIFR.ua.macintosh&&sIFR.ua.gecko&&sIFR.ua.geckoVersion>=sIFR.ua.parseVersion("1.9")?"true":x.selectable===true),"fixhover="+(this.fixHover===true),"events="+z,"delayrun="+G.brokenFlashIE.fixFlash,"version="+this.VERSION];var y=A.encodeVars(AQ);var g=new K(O,AI,AQ,AD,{onReplacement:x.onReplacement,onRollOver:x.onRollOver,onRollOut:x.onRollOut,onRelease:x.onRelease});g.movie=X.create(sIFR,G.brokenFlashIE,AF,T.fixFocus&&x.fixFocus,AI,w,AB,AK,y,AG,e);this.replacements.push(g);this.replacements[AI]=g;if(x.selector){if(!this.replacements[x.selector]){this.replacements[x.selector]=[g]}else{this.replacements[x.selector].push(g)}}d.setAttribute("id",AI+"_alternate");AF.appendChild(d);W.addClass(E.REPLACED,AF)}G.fragmentIdentifier.restore()};this.getReplacementByFlashElement=function(d){for(var c=0;c<O.replacements.length;c++){if(O.replacements[c].id==d.getAttribute("id")){return O.replacements[c]}}};this.redraw=function(){for(var c=0;c<O.replacements.length;c++){O.replacements[c].resetMovie()}};this.prepareClearReferences=function(){G.brokenFlashIE.prepareClearReferences()};this.clearReferences=function(){G.brokenFlashIE.clearReferences();G=null;J=null;delete O.replacements};function C(){if(O.domains.length==0){return true}var d=A.domain();for(var c=0;c<O.domains.length;c++){if(A.domainMatches(d,O.domains[c])){return true}}return false}function a(){if(document.location.protocol=="file:"){if(O.debug){O.errors.fire("isFile")}return true}return false}function M(c){if(T.ie&&c.charAt(0)=="/"){c=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+c}return c}function V(d,e){for(var c=0;c<e.length;c+=2){if(d<=e[c]){return e[c+1]}}return e[e.length-1]||1}function B(g){var e=[];for(var d in g){if(g[d]==Object.prototype[d]){continue}var c=g[d];d=[d.replace(/filter/i,"")+"Filter"];for(var f in c){if(c[f]==Object.prototype[f]){continue}d.push(f+":"+A.escape(A.toJson(c[f],A.toHexString)))}e.push(d.join(","))}return A.escape(e.join(";"))}function Z(d){var e=Z.viewport;var c=W.getViewport();if(e&&c.width==e.width&&c.height==e.height){return }Z.viewport=c;if(O.replacements.length==0){return }if(Z.timer){clearTimeout(Z.timer)}Z.timer=setTimeout(function(){delete Z.timer;for(var f=0;f<O.replacements.length;f++){O.replacements[f].resize()}},200)}function I(f){var g=W.getComputedStyle(f,"fontSize");var d=g.indexOf("px")==-1;var e=f.innerHTML;if(d){f.innerHTML="X"}f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth="0px";f.style.lineHeight="2em";f.style.display="block";g=d?f.offsetHeight/2:parseInt(g,10);if(d){f.innerHTML=e}var c=Math.round(f.offsetHeight/(2*g));f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth=f.style.lineHeight=f.style.display="";if(isNaN(c)||!isFinite(c)||c==0){c=1}return{fontSize:g,lines:c}}function P(c,g,s){s=s||A.uriEncode;var q=[],m=[];var k=null;var e=c.childNodes;var o=false,p=false;var j=0;while(j<e.length){var f=e[j];if(f.nodeType==3){var t=A.textTransform(g,A.normalize(f.nodeValue)).replace(/</g,"&lt;");if(o&&p){t=t.replace(/^\s+/,"")}m.push(t);o=/\s$/.test(t);p=false}if(f.nodeType==1&&!/^(style|script)$/i.test(f.nodeName)){var h=[];var r=f.nodeName.toLowerCase();var n=f.className||"";if(/\s+/.test(n)){if(n.indexOf(E.CLASS)>-1){n=n.match("(\\s|^)"+E.CLASS+"-([^\\s$]*)(\\s|$)")[2]}else{n=n.match(/^([^\s]+)/)[1]}}if(n!=""){h.push('class="'+n+'"')}if(r=="a"){var d=s(f.getAttribute("href")||"");var l=f.getAttribute("target")||"";h.push('href="'+d+'"','target="'+l+'"');if(!k){k={href:d,target:l}}}m.push("<"+r+(h.length>0?" ":"")+h.join(" ")+">");p=true;if(f.hasChildNodes()){q.push(j);j=0;e=f.childNodes;continue}else{if(!/^(br|img)$/i.test(f.nodeName)){m.push("</",f.nodeName.toLowerCase(),">")}}}if(q.length>0&&!f.nextSibling){do{j=q.pop();e=f.parentNode.parentNode.childNodes;f=e[j];if(f){m.push("</",f.nodeName.toLowerCase(),">")}}while(j==e.length-1&&q.length>0)}j++}return{text:m.join("").replace(/^\s+|\s+$|\s*(<br>)\s*/g,"$1"),primaryLink:k||{}}}};var parseSelector=(function(){var P=/\s*,\s*/;var Q=/\s*([\s>+~(),]|^|$)\s*/g;var S=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var Y=/(^|\))[^\s>+~]/g;var R=/(\)|^)/;var T=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function W(G,I){I=I||document.documentElement;var F=G.split(P),A=[];for(var D=0;D<F.length;D++){var K=[I],B=X(F[D]);for(var E=0;E<B.length;){var H=B[E++],J=B[E++],C="";if(B[E]=="("){while(B[E++]!=")"&&E<B.length){C+=B[E]}C=C.slice(0,-1)}K=V(K,H,J,C)}A=A.concat(K)}return A}function X(B){var A=B.replace(Q,"$1").replace(S,"$1*$2").replace(Y,N);return A.match(T)||[]}function N(A){return A.replace(R,"$1 ")}function V(D,B,A,C){return(W.selectors[B])?W.selectors[B](D,A,C):[]}var Z={toArray:function(B){var C=[];for(var A=0;A<B.length;A++){C.push(B[A])}return C}};var O={isTag:function(A,B){return(B=="*")||(B.toLowerCase()==A.nodeName.toLowerCase())},previousSiblingElement:function(A){do{A=A.previousSibling}while(A&&A.nodeType!=1);return A},nextSiblingElement:function(A){do{A=A.nextSibling}while(A&&A.nodeType!=1);return A},hasClass:function(B,A){return(A.className||"").match("(^|\\s)"+B+"(\\s|$)")},getByTag:function(B,A){return A.getElementsByTagName(B)}};var U={"#":function(C,A){for(var B=0;B<C.length;B++){if(C[B].getAttribute("id")==A){return[C[B]]}}return[]}," ":function(C,A){var D=[];for(var B=0;B<C.length;B++){D=D.concat(Z.toArray(O.getByTag(A,C[B])))}return D},">":function(F,C){var G=[];for(var D=0,B;D<F.length;D++){B=F[D];for(var E=0,A;E<B.childNodes.length;E++){A=B.childNodes[E];if(A.nodeType==1&&O.isTag(A,C)){G.push(A)}}}return G},".":function(D,B){var E=[];for(var C=0,A;C<D.length;C++){A=D[C];if(O.hasClass([B],A)){E.push(A)}}return E},":":function(C,A,B){return(W.pseudoClasses[A])?W.pseudoClasses[A](C,B):[]}};W.selectors=U;W.pseudoClasses={};W.util=Z;W.dom=O;return W})();
function SNSsifr(C){var B={src:C+"/swf/quadraat-bold-r436.swf"};var A={src:C+"/swf/TheSansSNS-r436.swf"};sIFR.activate(B);if(document.getElementById("displayContentTop")){sIFR.replace(B,{selector:"#content h1",css:".sIFR-root { color: #ffffff; leading: -12 }",transparent:true,tuneHeight:-2});sIFR.replace(A,{selector:"#content .payoff h2",css:".sIFR-root { color: #ffffff; leading: -12 }",transparent:true,fitExactly:true})}else{sIFR.replace(B,{selector:"#content h1",css:".sIFR-root { color: #FF0000; }",transparent:true});sIFR.replace(B,{selector:"#headerContent h1.red",css:".sIFR-root { color: #FF0000; }",transparent:true});sIFR.replace(B,{selector:"#headerContent h1",css:".sIFR-root { color: #FFFFFF; }",transparent:true});sIFR.replace(B,{selector:"#headerContent h2.sifr-red",css:".sIFR-root { color: #FF0000; }",transparent:true});sIFR.replace(B,{selector:".DWPhoto h2",css:".sIFR-root { color: #FFFFFF; }",transparent:true,tuneHeight:-2});sIFR.replace(B,{selector:".DWContent h1.DWTitle",css:".sIFR-root { color: #FFFFFF; }",transparent:true,tuneHeight:-2});sIFR.replace(B,{selector:".DWContent h2.DWTitle",css:".sIFR-root { color: #FF0000; }",transparent:true})}};
var Main={};Main.debug=false;Main.allowAlert=true;Main.IE5=navigator.appVersion.indexOf("MSIE 5")!=-1?true:false;Main.IE6=navigator.appVersion.indexOf("MSIE 6")!=-1?true:false;Main.IE7=navigator.appVersion.indexOf("MSIE 7")!=-1?true:false;Main.eventCache=function(){var A=[];if(Array.prototype.push==null){Array.prototype.push=function(){for(var B=0;B<arguments.length;B++){this[this.length]=arguments[B]}return this.length}}return{listEvents:A,add:function(C,E,D,B){A.push(arguments)},flush:function(){var B,C;for(B=A.length-1;B>=0;B=B-1){C=A[B];if(C[0].removeEventListener){}if(C[1].substring(0,2)!="on"){C[1]="on"+C[1]}if(C[0].detachEvent){C[0].detachEvent(C[1],C[2])}C[0][C[1]]=null}}}}();Main.addEvent=function(C,A,B){if(C.addEventListener){C.addEventListener(A,B,false)}else{if(C.attachEvent){C.attachEvent("on"+A,B)}}};Main.removeEvent=function(C,A,B){if(C.removeEventListener){C.removeEventListener(A,B,false)}else{if(C.detachEvent){C.detachEvent("on"+A,B)}}};Main.addStyleSheet=function(C){if(document.getElementsByTagName("head")){var A=document.getElementsByTagName("head")[0];var B=document.createElement("link");B.setAttribute("type","text/css");B.setAttribute("rel","stylesheet");B.setAttribute("href",C);A.appendChild(B)}};Main.findElementPosition=function(A){var B=curtop=0;if(A.offsetParent){B=A.offsetLeft;curtop=A.offsetTop;while(A=A.offsetParent){B+=A.offsetLeft;curtop+=A.offsetTop}}return[B,curtop]};Main.debugAlert=function(A){if(Main.allowAlert&&Main.debug){Main.allowAlert=confirm(A)}};Main.errHandler=function(C){var A="";for(var B in C){A+=B+"="+C[B]+"\n"}Main.debugAlert("An error has occured: \n\n"+A+"\nSee Firefox browser for correct linenumbers.");return true};Main.addSubmitRollOver=function(){var A=document.getElementsByTagName("input");for(var B=0;B<A.length;B++){if(A[B].type!="submit"){continue}A[B].onmouseover=function(){this.className=this.className+"-hover"};Main.eventCache.add(A[B],"onmouseover",function(){this.className=this.className+"-hover"},false);A[B].onmouseout=function(){this.className=this.className.replace("-hover","")};Main.eventCache.add(A[B],"onmouseout",function(){this.className=this.className.replace("-hover","")},false)}};Main.trim=function(A){return A.replace(/^\s+|\s+$/g,"")};Main.getElementsByClassName=function(B,A,C){return getElementsByClassName(B,A,C)};getElementsByClassName=function(H,I,G){var B=new RegExp("(^|\\s)"+H+"(\\s|$)");var I=I||"*";var G=G||document;if(typeof (G)=="string"){G=document.getElementById(G)}var A=(I=="*"&&G.all)?G.all:G.getElementsByTagName(I);var D=[];var F;var C=A.length;for(var E=0;E<C;E++){F=A[E];if(B.test(F.className)){D.push(F)}}return D};getElementsByTagNames=function(G,H){if(!H){var H=document}var A=G.split(",");var F=new Array();for(var E=0;E<A.length;E++){var D=H.getElementsByTagName(A[E]);for(var C=0;C<D.length;C++){F.push(D[C])}}var B=F[0];if(!B){return[]}if(B.sourceIndex){F.sort(function(J,I){return J.sourceIndex-I.sourceIndex})}else{if(B.compareDocumentPosition){F.sort(function(J,I){return 3-(J.compareDocumentPosition(I)&6)})}}return F};addClass=function(A,B){this.removeClass(A,B);return A&&(A.className+=(A.className.length>0?" ":"")+B)};removeClass=function(A,B){return A&&(A.className=A.className.replace(new RegExp("^"+B+"\\b\\s*|\\s*\\b"+B+"\\b","g"),""))};hasClass=function(A,B){return(!A||!A.className)?false:(new RegExp("\\b"+B+"\\b")).test(A.className)};swapClass=function(B,A,C){this.removeClass(B,A);this.addClass(B,C)};Main.getNextElement=function(A){do{A=A.nextSibling}while(A&&A.nodeType!=1);return A};Main.getPreviousElement=function(A){do{A=A.previousSibling}while(A&&A.nodeType!=1);return A};Math.roundDec=function(A,B){return Math.round(A*Math.pow(10,B))/Math.pow(10,B)};Main.addEvent(window,"unload",Main.eventCache.flush);
var SNS={};SNS.basedir="../";SNS.globals=[];SNS.globals.ajaxTimeout=1000;SNS.globals.oldFlashVersion='Dynamische content kan niet getoond worden,<br /><a href="http://www.adobe.com/shockwave/download/index.cgi?Lang=Dutch&P1_Prod_Version=ShockwaveFlash">klik hier</a> om Adobe Flash Player 9 te downloaden.';SNS.globals.sliderInputErrorMsg="Vul een heel getal in tussen ~MINVALUE~ en ~MAXVALUE~";if(typeof pagetype=="string"&&pagetype=="zakelijk"){SNS.keyWordText="Stel hier uw vraag"}else{SNS.keyWordText="Stel hier je vraag"}SNS.feedbackText="Nog geen feedback";SNS.init=function(){Main.debug=false;try{SNS.setFieldValue("searchKeyWords",SNS.keyWordText);SNS.setFieldValue("searchKeyWordsSecond",SNS.keyWordText);SNS.setFieldValue("question",SNS.keyWordText);SNS.toggle();SNS.emptySearchFieldOnFocus();SNS.addRolloverMonthlyResultsTable();SNS.addSetStarRating();SNS.addPrintLink();SNS.setDisplayWindowLinks();SNS.toggleOneLink();SNS.linkWithDropdown();SNS.IEHoverBug();SNS.enableActiebolOnclick();SNS.setZoom();Main.addSubmitRollOver();SNS.enableFundInfoPopup();SNS.toggleHelp();SNS.servicePages.init();SNS.servicePages.initAlertBox();if(document.body.className.indexOf("forms")>-1){SNSForms.init()}if(document.body.className.indexOf("investment-calculation-module")>-1){SNSProfileSlider.init()}if(document.body.className.indexOf("decisiontree")>-1){SNSDecisionTree.init()}if(document.body.className=="payment-director-step2"){SNSBWtwo.init()}if(document.body.className=="betaalpakket"){SNSBWBP.init()}if(document.body.className.indexOf("insurances")>-1){SNSIn.init()}}catch(A){Main.errHandler(A)}};SNS.enableFundInfoPopup=function(){if(!document.getElementById("btn_fundinfo")||!document.getElementById("popup_fundinfo")){return }var A=false;var B=document.getElementById("btn_fundinfo");var C=document.getElementById("popup_fundinfo");var E=function(){A=true;C.style.display="block"};var D=function(){if(!A){C.style.display="none"}A=false};B.onclick=function(){E();return false};Main.eventCache.add(B,"onclick",function(){openEmailForm();return false},false);C.onclick=function(){A=true};Main.eventCache.add(C,"onclick",function(){A=true},false);if(document.getElementById("closelink")){document.getElementById("closelink").onclick=function(){D()};Main.eventCache.add(document.getElementById("closelink"),"onclick",function(){D()},false)}Main.addEvent(document,"click",D);Main.eventCache.add(document,"onclick",D,false)};SNS.setDisplayWindowLinks=function(){var A;if(document.getElementById("actieLink")){A=document.getElementById("actieLink")}if(document.getElementById("etalageActieLink")){A=document.getElementById("etalageActieLink")}if(A){SNS.setLinkDisplayWindow(A)}};SNS.setLinkDisplayWindow=function(A){if(A.getElementsByTagName("STRONG").length>0){var B=A.getElementsByTagName("STRONG")[0].innerHTML;if(B){A.innerHTML="<table><tr><td>"+B+"</td></tr></table>"}}};SNS.setZoom=function(){document.getElementById("pageWrapper").style.zoom=1};SNS.emptySearchFieldOnFocus=function(){if(document.getElementById("searchKeyWords")){var C=document.getElementById("searchKeyWords");C.onfocus=function(){SNS.emptyField(C,SNS.keyWordText)};Main.eventCache.add(C,"onfocus",function(){SNS.emptyField(C,SNS.keyWordText)},false)}if(document.getElementById("searchKeyWordsSecond")){var B=document.getElementById("searchKeyWordsSecond");B.onfocus=function(){SNS.emptyField(B,SNS.keyWordText)};Main.eventCache.add(B,"onfocus",function(){SNS.emptyField(B,SNS.keyWordText)},false)}if(document.getElementById("questionAgain")){var A=document.getElementById("questionAgain");A.onfocus=function(){A.value=""};Main.eventCache.add(A,"onfocus",function(){A.value=""},false)}if(document.getElementById("question")){var D=document.getElementById("question");D.onfocus=function(){D.value=""};Main.eventCache.add(D,"onfocus",function(){D.value=""},false)}if(document.getElementById("questionHome")){var E=document.getElementById("questionHome");E.onfocus=function(){E.value=""};Main.eventCache.add(E,"onfocus",function(){E.value=""},false)}};SNS.setFieldValue=function(B,A){if(document.getElementById(B)){document.getElementById(B).value=A}};SNS.addRolloverMonthlyResultsTable=function(){var D=document.getElementsByTagName("table");for(var C=0;C<D.length;C++){if(D[C].className=="monthly-results"){var B=D[C].getElementsByTagName("a");for(var A=0;A<B.length;A++){B[A].onmouseover=B[A].onmouseout=function(){SNS.addRolloverInTable(this)};Main.eventCache.add(B[A],"onmouseover",function(){SNS.addRolloverInTable(this)},false);Main.eventCache.add(B[A],"onmouseout",function(){SNS.addRolloverInTable(this)},false)}}}};SNS.addSetStarRating=function(){var D=document.getElementsByTagName("div");for(var C=0;C<D.length;C++){if(D[C].className=="star-rating"){var B=D[C].getElementsByTagName("ul")[0].getElementsByTagName("a");for(var A=0;A<B.length;A++){B[A].container=D[C];B[A].onmouseover=function(){SNS.showRating(this,"over")};B[A].onmouseout=function(){SNS.showRating(this,"out")};Main.eventCache.add(B[A],"onmouseover",function(){SNS.showRating(this,"over")},false);Main.eventCache.add(B[A],"onmouseout",function(){SNS.showRating(this,"out")},false)}}}};SNS.addPrintLink=function(){if(document.getElementById("utilities")){var C=document.getElementById("utilities");var B=C.getElementsByTagName("li")[0];var A=document.createElement("li");var D=document.createElement("a");D.href="#";D.className="printposition";D.onclick=function(){window.print();s.pageAction("print")};D.innerHTML="<img class='printimage' src='/static/snsbank/img/hyperlinks/print.gif' alt='Printen'/>Printen";A.appendChild(D);C.insertBefore(A,C.getElementsByTagName("li")[0])}};SNS.toggleOneLink=function(){var D=getElementsByClassName("toggle-one-link-button");var A=getElementsByClassName("toggle-one-link-target");for(var B=0;B<A.length;B++){A[B].style.display="none"}for(var C=0;C<D.length;C++){SNS.toggleImg=function(F,E){if(E=="close"){imgSwap=D[F].getElementsByTagName("img")[0].src.replace(/open/,"close");D[F].getElementsByTagName("img")[0].alt="Verberg de overige veelgestelde vragen"}if(E=="open"){imgSwap=D[F].getElementsByTagName("img")[0].src.replace(/close/,"open");D[F].getElementsByTagName("img")[0].alt="Toon de overige veelgestelde vragen"}D[F].getElementsByTagName("img")[0].src=imgSwap};D[C].mysuperh=C;D[C].onclick=function(E){if(A[this.mysuperh].style.display=="block"){A[this.mysuperh].style.display="none";SNS.toggleImg(this.mysuperh,"open")}else{A[this.mysuperh].style.display="block";SNS.toggleImg(this.mysuperh,"close")}document.getElementById("mainContent").style.display="none";document.getElementById("mainContent").style.display="block";return false}}};SNS.toggle=function(){var C=getElementsByClassName("toggle-button-open");var B=getElementsByClassName("toggle-button-close");var A=getElementsByClassName("toggle-target");SNS.closeBlocks=function(){for(var E=0;E<A.length;E++){A[E].style.display="none"}};SNS.closeBlocks();for(var D=0;D<C.length;D++){C[D].mysuperh=D;C[D].xxx=getElementsByClassName("total")[0];C[D].onclick=function(E){if(hasClass(C[this.mysuperh],"close-all")){SNS.closeBlocks()}A[this.mysuperh].style.display="block";if(document.getElementById("total-year")){document.getElementById("total-year").innerHTML=document.getElementById("total-year").innerHTML}return false}}for(var D=0;D<B.length;D++){B[D].mysuperh=D;B[D].onclick=function(E){A[this.mysuperh].style.display="none";return false}}};SNS.linkWithDropdown=function(){var B=getElementsByClassName("link-with-dropdown");for(var A=0;A<B.length;A++){B[A].getElementsByTagName("select")[0].mysuperj=A;B[A].getElementsByTagName("select")[0].onchange=function(){for(var C=0;C<B[this.mysuperj].getElementsByTagName("a").length;C++){B[this.mysuperj].getElementsByTagName("a")[C].href=this.value}}}};SNS.IEHoverBug=function(){if(document.all&&document.getElementById){if(getElementsByClassName("tabs")!=""){var A=getElementsByClassName("tabs")[0].getElementsByTagName("ul");for(var B=0;B<A.length;B++){for(var C=0;C<A[B].childNodes.length;C++){var D=A[B].childNodes[C];if(D.nodeName=="LI"){D.onmouseover=function(){this.className+=" over"};D.onmouseout=function(){this.className=this.className.replace(" over","")}}}}}}};SNS.enableActiebolOnclick=function(){var A=getElementsByClassName("actiebol");for(var B=0;B<A.length;B++){var C=A[B].getElementsByTagName("a")[0];A[B].onclick=function(){window.location.href=C.href};A[B].onmouseover=function(){if(document.all&&document.getElementById){this.className+=" over"}this.style.cursor="pointer"};if(document.all&&document.getElementById){A[B].onmouseout=function(){this.className=this.className.replace(" over","")}}}};SNS.toggleHelp=function(){var H=document.getElementsByTagName("fieldset");var G=document.getElementsByTagName("div");for(var B=0;B<G.length;B++){if(G[B].className=="help"){G[B].style.display="none"}}for(var E=0;E<H.length;E++){if(H[E].className=="toggle-help"){var F=null;var D=H[E].getElementsByTagName("a")[0];var A=H[E].getElementsByTagName("a")[1];childDivs=H[E].getElementsByTagName("div");for(var C=0;C<childDivs.length;C++){if(childDivs[C].className.indexOf("hide")>=0){F=childDivs[C];break}}if(F!=null&&D!=null){D.helptext=F;D.onclick=function(){if(this.helptext.style.display=="block"){this.helptext.style.display="none"}else{this.helptext.style.display="block"}return false};if(A!=null){A.helptext=F;A.onclick=function(){this.helptext.style.display="none";return false}}}}}};SNS.updateYearsFromMonthsField=function(C,A){var B=Math.roundDec(A/12,1);var D=String(B).replace(/\./,",");document.getElementById(C).innerHTML=(B>=1)?"( "+D+" jaar)":""};SNS.parseEuroFromFloat=function(C,E,B){C=String(C).split(".");if(C[0].length>3){var F=C[0].split("");var F=F.reverse();var D="";for(var A=0;A<F.length;A++){if(A!=0&&A%3==0&&!isNaN(F[A])){D=F[A]+"."+D}else{D=F[A]+D}}}else{D=C[0]}if(C[1]){if(C[1].length<2){C[1]+="0"}D=D+=","+C[1]}else{if(B){D=D+=",00"}}if(E){return"&euro; "+D}else{return D}};SNS.parseFloatFromEuro=function(A){amountParts=A.split(" ");A=amountParts[1];A=A.replace(/&euro;/,"");A=A.replace(/â?¬/,"");A=Main.trim(A);A=A.replace(/\./g,"");A=A.replace(/,/,".");return parseFloat(A)};SNS.setContactHeight=function(A){var B=getElementsByClassName("text-block","","mainContent")[0].offsetHeight;document.getElementById("contact").style.marginTop=B+A+"px"};SNS.sliderInputErrorMsg=function(C,B,G){if(document.getElementById(C+"Error")){document.getElementById(C+"Error").style.display="block"}else{var D=SNS.globals.sliderInputErrorMsg;D=D.replace(/~MINVALUE~/,B);D=D.replace(/~MAXVALUE~/,G);var F=document.createTextNode(D);var A=document.getElementById(C).parentNode;var E=document.createElement("p");E.setAttribute("class","flash-input-error");if(!E.className){E.className="flash-input-error"}E.setAttribute("id",C+"Error");E.appendChild(F);A.appendChild(E)}};SNS.hideSliderInputErrorMsg=function(A){if(!document.getElementById(A+"Error")){return false}document.getElementById(A+"Error").style.display="none"};SNS.servicePages=function(){tagCloudHTML="";titelH3="";titelIMG="";function B(){tagCloudHTML=$("#question-box-tagcloud").html();var L=$("#question-box-select h3")[0];var K=$("#question-box-select img")[0];if(!L||!K){return }titelH3=L.innerHTML;titelIMG=K.innerHTML;Main.addEvent(L,"click",H);Main.addEvent(K,"click",H);var J=$("#question-box-select h4");for(var M=0;M<J.length;M++){if(M==0){Main.addEvent(J[0],"click",D)}else{Main.addEvent(J[M],"click",G)}}Main.addEvent(document,"click",C);if(Main.IE6){E()}}function E(){var L=$("#question-box-select ul");if(!L){return }var J=L[0].getElementsByTagName("li");for(var K=0;K<J.length;K++){Main.addEvent(J[K],"mouseover",function(){var M=window.event.srcElement;if(!M){return }addClass(M,"hover")});Main.addEvent(J[K],"mouseout",function(){var M=window.event.srcElement;if(!M){return }removeClass(M,"hover")})}}function H(){var J=$("#question-box-select ul")[0];if(!J){return }if(J.style.display=="block"){J.style.display="none"}else{J.style.display="block"}}function D(){var J=$("#question-box-tagcloud")[0];if(!J){return }var K=J.innerHTML;if(K!=tagCloudHTML){J.innerHTML=tagCloudHTML;A(J);$("#question-box-select h3")[0].innerHTML=titelH3;$("#question-box-select img")[0].innerHTML=titelIMG}F()}function C(M){var L;if(M&&M.target){L=M.target}if(window.event&&window.event.srcElement){L=window.event.srcElement}if(!L){return }var K=L.tagName.toLowerCase();var J=L.id;if(J!="servicedownimg"&&K!="h3"&&K!="h4"){F()}}function F(){$("#question-box-select ul")[0].style.display="none"}function G(L){var K;if(L&&L.target){K=L.target}if(window.event&&window.event.srcElement){K=window.event.srcElement}if(!K){return }var M=getElementsByClassName("serviceprocess","div",K.parentNode)[0];var J=$("#question-box-tagcloud")[0];J.innerHTML=("<div class='serviceprocess'>"+M.innerHTML+"</div>");A(J);$("#question-box-select h3")[0].innerHTML=K.innerHTML;s.customerCareSelect(K.innerHTML);F()}function A(J){new SNS.Animation.startAnimation(J,"fade",0,1,0,25,25,function(){if(document.all){J.style.filter="alpha(opacity=100)"}else{J.style.opacity=1}})}function I(){var K=getElementsByClassName("alert-box","div",document);if(K.length<1){return }var J=getElementsByClassName("close-button","p",K[0]);if(J.length<1){return }Main.addEvent(J[0],"click",function(){var L=getElementsByClassName("alert-box","div",document);new SNS.Animation.startAnimation(L[0],"fade",1,0,0,25,25,function(){L[0].style.display="none"})})}return{init:function(){var J=getElementsByClassName("servicepages","*",document);if(J.length<1||!$("#question-box-select")){return }B()},initAlertBox:function(){I()}}}();SNS.Animation=function(){Animate={sequences:[],register:function(A){return this.sequences.push(A)-1},destroy:function(A){this.sequences[A]=null},findSeq:function(A){return this.sequences[A]},scrollheight:function(A,B){A.style.height=B+"px";A.scrollTop=0},fade:function(A,B){if(document.all){A.style.filter="alpha(opacity="+parseInt(B*100)+")"}else{A.style.opacity=B}}};return{animateStep:function(A,D){var C=Animate.findSeq(D);if(!C){return }try{C.method(C.oHTML,C.steps[A])}catch(B){}if(A<C.frames){C.timer=setTimeout("SNS.Animation.animateStep("+(A+1)+", "+D+")",C.interval)}else{if(C.onfinish){C.onfinish(C.oHTML,C.userdata)}}},startAnimation:function(K,I,A,F,H,G,B,C,L){this.uniqueId=Animate.register(this);this.method=Animate[I];this.oHTML=K;this.onfinish=C;this.userdata=L;this.interval=B;this.frames=G;this.steps=[A];this.step=0;var J=parseInt(G);var E=(F-A)/((Math.pow(J,2)+2*J+1)/(4*J));for(var D=0;D<G;D++){if(H==0&&!M){var M=(F-A)/G}else{if(H==1){var M=E*Math.pow(((J-D))/J,3)}else{if(H==2){var M=E*Math.pow(D/G,3)}}}this.steps.push(Math.max(0,this.steps[this.steps.length-1]+M))-(D==0?1:0)}this.steps[this.steps.length-1]=Math.max(0,F-1);this.stop=function(){clearTimeout(this.timer);Animate.destroy(this.uniqueId)};SNS.Animation.animateStep(0,this.uniqueId)}}}();SNS.emptyField=function(C,A){try{if(C.value==A){C.value=""}}catch(B){Main.errHandler(B)}};SNS.addRolloverInTable=function(B){try{if(B.parentNode.parentNode.className.length==0){B.parentNode.parentNode.className="rollover"}else{B.parentNode.parentNode.className=""}}catch(A){Main.errHandler(A)}};SNS.showRating=function(C,B){try{if(B=="over"){C.container.getElementsByTagName("p")[0].innerHTML="<strong>"+C.title+"</strong>"}else{C.container.getElementsByTagName("p")[0].innerHTML="<strong>"+SNS.feedbackText+"</strong>"}}catch(A){Main.errHandler(A)}};Main.addEvent(window,"load",SNS.init);Main.eventCache.add(window,"load",SNS.init,false);function clear_default(A){if((A.value)==A.defaultValue){A.value=""}}function restore_default(A){if(!(A.value).length){A.value=A.defaultValue}}function setVisibilityRestore(B,C,A){restore_default(B);document.getElementById(C).style.display=A}function setVisibilityClear(B,C,A){clear_default(B);document.getElementById(C).style.display=A}function setVisibility(B,A){document.getElementById(B).style.display=A};
var SNSBankExtra={};var SNSBankAccount={};var SNSBankAccountEx={};var SNSLocation={};var SNSAutoFillCustomerData={};var SNSInterestOnAccount={};var SNSInterestOnProduct={};var SNSAccountProperties={};var SNSasyncPostcode={};var SNSNearestOffice={};var SNSLogoutOnUnload={};var SNSAutoLogout={};var SNSAccountDropdown={};var SNSDigipasLimit={};var SNSCustomerDropdown={};var SNSCustomerProperties={};var SNSAutoFillForm={};SNSBankExtra.init=function(){SNSBankAccount.init();SNSBankAccountEx.init();SNSInterestOnAccount.init();SNSInterestOnProduct.init();SNSAutoFillCustomerData.init();SNSasyncPostcode.init();SNSNearestOffice.init();SNSLogoutOnUnload.init();SNSAutoLogout.init();SNSDigipasLimit.init();SNSAccountProperties.init();SNSAutoFillForm.init();disableEnterOnRadioButton()};function trimStr(A){A=A.replace(/^\s+/,"");A=A.replace(/\s+$/,"");return A}function dateChanged2(D){var B,A,C;if(document.getElementById){B=document.getElementById("day_"+D);A=document.getElementById("month_"+D);C=document.getElementById("year_"+D);valueel=document.getElementById("wmformfragment_"+D)}else{B=document.all["day_"+D];A=document.all["month_"+D];C=document.all["year_"+D];valueel=document.all["wmformfragment_"+D]}dateChangedGeneric(B,A,C,valueel);$(".datefield").trigger("change");return true}function dateChanged(B){var K,G,I,F,C,M,A,J;if(document.getElementById){F=document.getElementById("datepickerDay"+B);C=document.getElementById("datepickerMonth"+B);M=document.getElementById("datepickerYear"+B);A=document.getElementById("datepickerWMformpart"+B)}else{F=document.all["datepickerDay"+B];C=document.all["datepickerMonth"+B];M=document.all["datepickerYear"+B];A=document.all["datepickerWMformpart"+B]}if(F.value==""||C.value==""||M.value==""){J=""}else{if(F.value.length==1){realdayel="0"+F.value}else{realdayel=F.value}if(C.value.length==1){realmonthel="0"+C.value}else{realmonthel=C.value}J=realdayel+"-"+realmonthel+"-"+M.value}A.value=J;var L=A.className;var D;var H;if(L.indexOf("WVcheckage")>=0){L=L.replace(/WVcheckage/g,"+#");arr_check=L.split("+");for(var E=0;E<arr_check.length;E++){if(arr_check[E].substring(0,1)=="#"){if(!J==""){WvAgeCheck(F.value,C.value,M.value,arr_check[E])}else{H=trimStr("WVmelding"+arr_check[E].substring(1));if(document.getElementById(H)){document.getElementById(H).style.display="none"}}}}}return true}function dateChangedGeneric(D,A,E,C){var C,B;if(D.value==""||A.value==""||E.value==""){B=""}else{if(D.value.length==1){realdayel="0"+D.value}else{realdayel=D.value}if(A.value.length==1){realmonthel="0"+A.value}else{realmonthel=A.value}B=realdayel+"-"+realmonthel+"-"+E.value}C.value=B;if(!B==""){if(C.className.indexOf("WVcheckage")>=0){WvAgeCheck(D.value,A.value,E.value)}}else{if(document.getElementById("WVmelding")&&C.className.indexOf("WVcheckage")>=0){document.getElementById("WVmelding").style.display="none"}}return true}function WvAgeCheck(K,I,J,D){var B="lt";var E=18;D=trimStr(D);if(D!=""&&D.substring(0,1)=="#"){D=trimStr(D.substring(1)).toLowerCase()}else{return }if(D!=""){B=D.substring(0,2);E=parseInt(D.substring(2))}if(!document.getElementById("WVmelding"+D)){return }var H=new Date(J,I-1,K);var A=new Date();var L=new Date(A.getFullYear()-E,A.getMonth(),A.getDate());var G=false;if(B=="lt"){if(H>L){G=true}}else{if(B=="gt"){if(H<L){G=true}}else{if(B=="le"){if(H>=L){G=true}}else{if(B=="ge"){if(H<=L){G=true}}}}}var C=document.getElementById("WVmelding"+D);if(C!=null){if(G==true){C.style.display="block";while(C.tagName!="FIELDSET"){C=C.parentNode}C.style.backgroundColor="#ff0";var F=new YAHOO.util.ColorAnim(C,{backgroundColor:{to:"#fff"}},3,YAHOO.util.Easing.easeOut);F.onComplete.fire=onCompleteHandlerFire;F.animate()}else{C.style.display="none"}}}function dateLoad(B){var L,H,J,G,C,O,A,K;if(document.getElementById){G=document.getElementById("datepickerDay"+B);C=document.getElementById("datepickerMonth"+B);O=document.getElementById("datepickerYear"+B);A=document.getElementById("datepickerWMformpart"+B)}else{G=document.all["datepickerDay"+B];C=document.all["datepickerMonth"+B];O=document.all["datepickerYear"+B];A=document.all["datepickerWMformpart"+B]}var N=A.value;if(N==""||N.split("-").length!=3){G.value="";C.value="";O.value=""}else{var E=N.split("-");G.value=E[0];C.value=E[1];O.value=E[2]}var M=A.className;var D;var I;var K=N;if(M.indexOf("WVcheckage")>=0){M=M.replace(/WVcheckage/g,"+#");arr_check=M.split("+");for(var F=0;F<arr_check.length;F++){if(arr_check[F].substring(0,1)=="#"){if(!K==""){WvAgeCheck(G.value,C.value,O.value,arr_check[F])}else{I=trimStr("WVmelding"+arr_check[F].substring(1));if(document.getElementById(I)){document.getElementById(I).style.display="none"}}}}}}function gup(B){B=B.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var A="[\\?&]"+B+"=([^&#]*)";var D=new RegExp(A);var C=D.exec(window.location.href);if(C==null){return""}else{return C[1]}}function removeAllOptions(A){var B;for(B=A.options.length-1;B>=0;B--){A.remove(B)}A.options.length=0}function addOption(B,D,C,E){var A=document.createElement("OPTION");A.text=D;A.value=C;if(E){A.id=E}B.options.add(A)}function isVisible(A){var B=true;while(A){if(A.style.display=="none"){return false}if(A.parentNode.tagName!="FORM"){A=A.parentNode}else{A=null}}return B}function onCompleteHandlerFire(A){el=this.scope.getEl();el.style.background="transparent"}function clientAction(I,A){var F=0;itemNode=document.getElementById(I+"_"+F);while(itemNode){var E=0;var G=0;actionNode=document.getElementsByName(itemNode.value);if(actionNode.length==0){actionNode=document.getElementsByTagName("span")}while(actionNode[E]){if(actionNode[E].getAttribute("name")==itemNode.value){realActionNode=actionNode[E].parentNode;if(itemNode.nodeName=="OPTION"){if(A==""){G=1}realActionNode.style.display=itemNode.selected?"block":"none"}else{realActionNode.style.display=itemNode.checked?"block":"none"}if(itemNode.checked&&A==""){G=1}if(G==1){var J=realActionNode.getElementsByTagName("FIELDSET");for(var D=0;D<J.length;D++){if(J[D].className.indexOf("conditional")>=0){J[D].style.backgroundColor="#ff0";var C=new YAHOO.util.ColorAnim(J[D],{backgroundColor:{to:"#fff"}},3,YAHOO.util.Easing.easeOut);C.onComplete.fire=onCompleteHandlerFire;C.animate()}}var B=realActionNode.getElementsByTagName("P");for(var D=0;D<B.length;D++){if(B[D].className.indexOf("conditional")>=0){B[D].style.backgroundColor="#ff0";var C=new YAHOO.util.ColorAnim(B[D],{backgroundColor:{to:"#fff"}},3,YAHOO.util.Easing.easeOut);C.onComplete.fire=onCompleteHandlerFire;C.animate()}}}var H=null;if(realActionNode.childNodes[1].name=="formpartcode"){H=document.getElementsByName(realActionNode.childNodes[1].value)[0]}else{if(realActionNode.childNodes[2]&&realActionNode.childNodes[2].name=="formpartcode"){H=document.getElementsByName(realActionNode.childNodes[2].value)[0]}}if((H&&H.className.indexOf("clearvalue conditional")!=-1)){H.value=""}}E++}F++;itemNode=document.getElementById(I+"_"+F)}}function colorAnim(F,B,H){var A=document.getElementById(H);F=F.replace(".","_");var D=document.getElementById(F);var C=null;var G=A;if(G.className.indexOf("formsectionelement")!=-1){C=G}else{C=G.parentNode}if(C&&D&&D.className.indexOf("nocoloranim")==-1){C.style.backgroundColor="#ff0";var E=new YAHOO.util.ColorAnim(C,{backgroundColor:{to:"#fff"}},3,YAHOO.util.Easing.easeOut);E.onComplete.fire=onCompleteHandlerFire;E.animate()}}function clientPrefilling(C,A){itemNode=document.getElementById(C);if(itemNode){fill_inputs=(itemNode.checked);var B=0;actionNode=document.getElementsByName("clientprefill");while(actionNode[B]){prev_node=actionNode[B].previousSibling;while(prev_node&&prev_node.tagName!="INPUT"){prev_node=prev_node.previousSibling}if(prev_node&&prev_node.tagName=="INPUT"){if(A=="noClear"){if(fill_inputs){prev_node.value=actionNode[B].value}}else{prev_node.value=fill_inputs?actionNode[B].value:""}}B++}}}function convertAccountNr(A){if(A.charAt(0)=="0"){A=A.substring(1)}if(A.length==10){A=A.replace(/(\S{7})/i,"$1.");A=A.replace(/(\S{5})/i,"$1.");A=A.replace(/(\S{3})/i,"$1.")}else{if(A.length==9){A=A.replace(/(\S{6})/i,"$1.");A=A.replace(/(\S{4})/i,"$1.");A=A.replace(/(\S{2})/i,"$1.")}else{}}return A}function formatNumber(B,A){divider=10;switch(A){case 0:divider=1;break;case 1:divider=10;break;case 2:divider=100;break;default:divider=1000}if(B=="0"){return B+",00"}workNum=Math.abs((Math.round(B*divider)/divider));workStr=""+workNum;if(workStr.indexOf(".")==-1){dStr=workStr;dNum=dStr-0;if(dNum>=1000){dLen=dStr.length;dStr=parseInt(""+(dNum/1000))+"."+dStr.substring(dLen-3,dLen)}if(dNum>=1000000){dLen=dStr.length;dStr=parseInt(""+(dNum/1000000))+"."+dStr.substring(dLen-7,dLen)}retval=dStr;if(B.indexOf("-")==-1){return retval+",00"}else{return retval="-"+retval+",00"}}else{dStr=workStr.substr(0,workStr.indexOf("."));dNum=dStr-0;pStr=workStr.substr(workStr.indexOf("."));if(pStr=="."){pStr=""}if(dNum>=1000){dLen=dStr.length;dStr=parseInt(""+(dNum/1000))+"."+dStr.substring(dLen-3,dLen)}if(dNum>=1000000){dLen=dStr.length;dStr=parseInt(""+(dNum/1000000))+"."+dStr.substring(dLen-7,dLen)}if(pStr.length<3){pStr=pStr+"0"}pStr=pStr.replace(".",",");retval=dStr+pStr;if(B.indexOf("-")==-1){return retval}else{return retval="-"+retval}}}function popup(C,B){var D=screen.width-100;var A=screen.height-100;var F=(screen.width-D)/2;var E=(screen.height-A)/2;var G="width="+D+", height="+A;G+=", top="+E+", left="+F;G+=", directories=no";G+=", location=no";G+=", menubar=no";G+=", resizable=no";G+=", scrollbars=yes";G+=", status=no";G+=", toolbar=no";newwin=window.open(C,B,G);if(window.focus){newwin.focus()}return newwin}function fireAjaxRequest(B,C,A){if(window.XMLHttpRequest){C.ajaxRequest=new XMLHttpRequest()}else{if(window.ActiveXObject){C.ajaxRequest=new ActiveXObject("Microsoft.XMLHTTP")}}C.ajaxRequest.open("Post","/web/wcbservlet/nl.gx.snsbank.snsbankhandling.ajaxservlet?ep="+C.headerId,true);if(C.ajaxRequest.overrideMimeType){C.ajaxRequest.overrideMimeType("text/xml")}C.ajaxRequest.setRequestHeader("SNS_Async_Request",C.headerId);C.ajaxRequest.onreadystatechange=function(){processAjaxResponse(C,A)};C.ajaxRequest.send(B)}function processAjaxResponse(C,A){if(C.ajaxRequest==null){processResult(null,C);return }if(C.ajaxRequest.readyState==4){if(C.ajaxRequest.status==200){try{A(C.ajaxRequest.responseXML,C)}catch(B){A(null,C)}}else{A(null,C)}}}function getElementsByAttribute(H,I,J,D){var E=(I=="*"&&H.all)?H.all:H.getElementsByTagName(I);var C=new Array();var G=(typeof D!="undefined")?new RegExp("(^|\\s)"+D+"(\\s|$)"):null;var A;var F;for(var B=0;B<E.length;B++){A=E[B];F=A.getAttribute&&A.getAttribute(J);if(typeof F=="string"&&F.length>0){if(typeof D=="undefined"||(G&&G.test(F))){C.push(A)}}}return C}function getChildContents(C,B){var A=C.getElementsByTagName(B);if(A.length>0){if(A[0].childNodes.length>0){if(A[0].childNodes[0].nodeType==3){return A[0].childNodes[0].nodeValue}return""}}return null}SNSasyncPostcode.formData=new Array();SNSasyncPostcode.init=function(){var A=[];allForms=document.getElementsByTagName("FORM");for(var C=0;C<allForms.length;C++){if((allForms[C].element&&allForms[C].getAttribute("name")=="f"+allForms[C].element.value+"f")||(allForms[C].getAttribute("id")!=null&&allForms[C].getAttribute("id").indexOf("wmform")!=-1)){formName=allForms[C].getAttribute("name");allFields=getElementsByClassName("SNSasyncPostcode","input",allForms[C]);SNSasyncPostcode.formData[formName]=new Array();SNSasyncPostcode.formData[formName]["form"]=allForms[C];for(var B=0;B<allFields.length;B++){if(allFields[B].id.indexOf("postcode")!=-1||allFields[B].id.indexOf("zipcode")!=-1){if(SNSasyncPostcode.formData[formName]["zipcodeField"]==null){SNSasyncPostcode.formData[formName]["zipcodeField"]=new Array()}SNSasyncPostcode.formData[formName]["zipcodeField"][allFields[B].id]=allFields[B];if(SNSasyncPostcode.formData[formName]["zipcodeFieldId"]==null){SNSasyncPostcode.formData[formName]["zipcodeFieldId"]=new Array()}SNSasyncPostcode.formData[formName]["zipcodeFieldId"][allFields[B].id]=allFields[B].getAttribute("name");Main.addEvent(SNSasyncPostcode.formData[formName]["zipcodeField"][allFields[B].id],"blur",function(){SNSasyncPostcode.find(this,SNSasyncPostcode.formData[formName])});if(SNSasyncPostcode.formData[formName]["cachedZipcodeValue"]==null){SNSasyncPostcode.formData[formName]["cachedZipcodeValue"]=new Array()}SNSasyncPostcode.formData[formName]["cachedZipcodeValue"][allFields[B].id]=""}if(allFields[B].id.indexOf("huisnummer")!=-1||allFields[B].id.indexOf("housenumber")!=-1){if(SNSasyncPostcode.formData[formName]["housenumberField"]==null){SNSasyncPostcode.formData[formName]["housenumberField"]=new Array()}SNSasyncPostcode.formData[formName]["housenumberField"][allFields[B].id]=allFields[B];SNSasyncPostcode.formData[formName]["housenumberField"][allFields[B].id].supressError=false;A.push(allFields[B]);if(SNSasyncPostcode.formData[formName]["housenumberFieldId"]==null){SNSasyncPostcode.formData[formName]["housenumberFieldId"]=new Array()}SNSasyncPostcode.formData[formName]["housenumberFieldId"][allFields[B].id]=allFields[B].getAttribute("name");Main.addEvent(SNSasyncPostcode.formData[formName]["housenumberField"][allFields[B].id],"blur",function(){SNSasyncPostcode.find(this,SNSasyncPostcode.formData[formName])});if(SNSasyncPostcode.formData[formName]["cachedHousenumberValue"]==null){SNSasyncPostcode.formData[formName]["cachedHousenumberValue"]=new Array()}SNSasyncPostcode.formData[formName]["cachedHousenumberValue"][allFields[B].id]=""}if(allFields[B].id.indexOf("woonplaats")!=-1||allFields[B].id.indexOf("city")!=-1){if(SNSasyncPostcode.formData[formName]["cityField"]==null){SNSasyncPostcode.formData[formName]["cityField"]=new Array()}SNSasyncPostcode.formData[formName]["cityField"][allFields[B].id]=allFields[B];SNSasyncPostcode.formData[formName]["cityField"][allFields[B].id].readOnly=true;SNSasyncPostcode.formData[formName]["cityField"][allFields[B].id].className=SNSasyncPostcode.formData[formName]["cityField"][allFields[B].id].className+" disabled"}if(allFields[B].id.indexOf("straat")!=-1||allFields[B].id.indexOf("street")!=-1){if(SNSasyncPostcode.formData[formName]["streetField"]==null){SNSasyncPostcode.formData[formName]["streetField"]=new Array()}SNSasyncPostcode.formData[formName]["streetField"][allFields[B].id]=allFields[B];SNSasyncPostcode.formData[formName]["streetField"][allFields[B].id].readOnly=true;SNSasyncPostcode.formData[formName]["streetField"][allFields[B].id].className=SNSasyncPostcode.formData[formName]["streetField"][allFields[B].id].className+" disabled"}}if(SNSasyncPostcode.formData[formName]==null||(SNSasyncPostcode.formData[formName]["cityField"]==null)||(SNSasyncPostcode.formData[formName]["streetField"]==null)||(SNSasyncPostcode.formData[formName]["zipcodeField"]==null)||(SNSasyncPostcode.formData[formName]["housenumberField"]==null)){SNSasyncPostcode.formData[formName]=null}else{SNSasyncPostcode.formData[formName]["headerId"]="betrokkenpartij";SNSasyncPostcode.formData[formName]["ajaxRequest"]=null;SNSasyncPostcode.formData[formName]["errorMessage"]="Deze combinatie van postcode en huisnummer is niet bij ons bekend, vul de woonplaats en straat zelf in.";SNSasyncPostcode.formData[formName]["method"]="findPostcode";for(k=0;k<A.length;k++){A[k].supressError=true;SNSasyncPostcode.find(document.getElementById(A[k].id),SNSasyncPostcode.formData[formName])}}}}};SNSasyncPostcode.find=function(E,D){var B;var A;if(E&&E.target){E=E.target}if(typeof (event)!="undefined"){if(event.srcElement){E=event.srcElement}}current_id=E.id;if(current_id.indexOf("huisnummer")!=-1||current_id.indexOf("housenumber")!=-1){B=current_id;if(current_id.indexOf("huisnummer")!=-1){A=current_id.replace("huisnummer","postcode")}else{A=current_id.replace("housenumber","zipcode")}}else{if(current_id.indexOf("postcode")!=-1||current_id.indexOf("zipcode")!=-1){A=current_id;if(current_id.indexOf("postcode")!=-1){B=current_id.replace("postcode","huisnummer")}else{B=current_id.replace("zipcode","housenumber")}}else{D.housenumberField[B].supressError=false;return }}removeError(D.form,D.housenumberFieldId[B]);removeError(D.form,D.zipcodeFieldId[A]);if(D.zipcodeField[A]!=null&&(D.zipcodeField[A].value=="")||(D.housenumberField[B].value=="")){D.cachedZipcodeValue[A]="";D.cachedHousenumberValue[B]="";D.housenumberField[B].supressError=false;return }if((D.zipcodeField[A].value==D.cachedZipcodeValue[A])&&(D.housenumberField[B].value==D.cachedHousenumberValue[B])){D.housenumberField[B].supressError=false;return }formattedZipcodeField=SNSasyncPostcode.format(D.zipcodeField[A].value);if(formattedZipcodeField==null&&SNSasyncPostcode.supressError==false){setError(D.form,D.zipcodeFieldId[A],"Dit is geen juiste postcode. Vul een postcode in die bestaat uit vier cijfers en twee letters.");addErrorForOmniture();D.housenumberField[B].supressError=false;return }D.zipcodeField[A].value=formattedZipcodeField;D.cachedZipcodeValue[A]=formattedZipcodeField;D.cachedHousenumberValue[B]=D.housenumberField[B].value;D.current_id=E.id;var C='<?xml version="1.0"?>';C+="<asyncRequest>";C+="<method>"+D.method+"</method>";C+="<parameters>";C+="<postcode>"+formattedZipcodeField+"</postcode>";C+="<houseNumber>"+D.housenumberField[B].value+"</houseNumber>";C+="</parameters>";C+="</asyncRequest>";fireAjaxRequest(C,D,SNSasyncPostcode.processResult)};SNSasyncPostcode.format=function(A){expr=/^\d{4}\s*[a-zA-Z]{2}\s*$/;if(!expr.test(A)){return null}A=A.replace(/^\s+|\s+$/g,"");if(A.length==6){A=A.substring(0,4)+" "+A.substring(4)}return A.toUpperCase()};SNSasyncPostcode.processResult=function(C,E){current_id=E.current_id;if(current_id.indexOf("huisnummer")!=-1||current_id.indexOf("housenumber")!=-1){if(current_id.indexOf("huisnummer")!=-1){hnField=current_id;zipField=current_id.replace("huisnummer","postcode");cityField=current_id.replace("huisnummer","woonplaats");streetField=current_id.replace("huisnummer","straat")}else{hnField=current_id;zipField=current_id.replace("housenumber","zipcode");cityField=current_id.replace("housenumber","city");streetField=current_id.replace("housenumber","street")}}else{if(current_id.indexOf("postcode")!=-1||current_id.indexOf("zipcode")!=-1){if(current_id.indexOf("postcode")!=-1){hnField=current_id.replace("postcode","huisnummer");zipField=current_id;cityField=current_id.replace("postcode","woonplaats");streetField=current_id.replace("postcode","straat")}else{hnField=current_id.replace("zipcode","housenumber");zipField=current_id;cityField=current_id.replace("zipcode","city");streetField=current_id.replace("zipcode","street")}}else{return }}removeError(E.form,E.housenumberFieldId[hnField]);removeError(E.form,E.zipcodeFieldId[zipField]);var A="";var B="";var D="";if(C!=null){A=C.getElementsByTagName("faultcode");B=getChildContents(C,"city");D=getChildContents(C,"address")}if(((B==""||!B)&&(D==""||!D))||A.length>0){E.cityField[cityField].readOnly=false;E.streetField[streetField].readOnly=false;if(E.housenumberField[hnField].supressError==false){setError(E.form,E.housenumberFieldId[hnField],E.errorMessage)}addErrorForOmniture();E.housenumberField[hnField].supressError=false;return }E.cityField[cityField].value=B;E.cityField[cityField].readOnly=true;E.streetField[streetField].value=D;E.streetField[streetField].readOnly=true;E.housenumberField[hnField].supressError=false};function SNSmap(A,B){this.name=A;this.value=B}var SNScalculation={};SNScalculation.calculate=function(C,A,B){if(C==""){C='"calculatorForm"'}formNode=document.forms[C];inputs=SNScalculation.listFormInputs(formNode);var D="";for(i=0;i<inputs.length;i++){if(inputs[i].name=="type"){D=inputs[i].value}}var E='<?xml version="1.0"?>';E+="<asyncRequest>";E+="<method>"+D+"</method>";E+="<parameters>";for(i=0;i<inputs.length;i++){E+="<"+inputs[i].name+">"+inputs[i].value+"</"+inputs[i].name+">"}E+="</parameters>";E+="</asyncRequest>";formData=new Array();formData.headerId=B;formData.type=D;formData.requestXml=E;fireAjaxRequest(E,formData,A)};SNScalculation.listFormInputs=function(B){var A=new Array();inputNodes=B.getElementsByTagName("INPUT");for(i=0;i<inputNodes.length;i++){if(inputNodes[i].type=="text"||inputNodes[i].type=="hidden"){A.push(new SNSmap(inputNodes[i].name,inputNodes[i].value))}}selectNodes=B.getElementsByTagName("SELECT");for(i=0;i<selectNodes.length;i++){A.push(new SNSmap(selectNodes[i].name,selectNodes[i].options[selectNodes[i].selectedIndex].value))}return A};function showHiddenContainer(C){var B=new Array();var D;var A;D=document;B=getElementsByClassName(C);for(i=0;i<B.length;i++){B[i].className=B[i].className.replace(C,"")}}var SNShiddenFields={};SNShiddenFields.fill=function(A){var B=document.getElementById(A);if(B==null){return }inputNodes=B.getElementsByTagName("INPUT");for(i=0;i<inputNodes.length;i++){if(inputNodes[i].type=="hidden"&&inputNodes[i].id!=null&&inputNodes[i].id.indexOf("hidden")==0){if(document.getElementById(inputNodes[i].id.substring(6))){if(document.getElementById(inputNodes[i].id.substring(6)).nodeName=="SPAN"){inputNodes[i].value=document.getElementById(inputNodes[i].id.substring(6)).innerHTML}else{inputNodes[i].value=document.getElementById(inputNodes[i].id.substring(6)).value}}}}};var SNSInterest={};SNSInterest.GetInterestlist=function(C,A,B){if(C==""){C='"interestForm"'}formNode=document.forms[C];inputs=SNScalculation.listFormInputs(formNode);var D="";for(i=0;i<inputs.length;i++){if(inputs[i].name=="type"){D=inputs[i].value}}var E='<?xml version="1.0"?>';E+="<asyncRequest>";E+="<method>"+D+"</method>";E+="<parameters>";for(i=0;i<inputs.length;i++){E+="<"+inputs[i].name+">"+inputs[i].value+"</"+inputs[i].name+">"}E+="</parameters>";E+="</asyncRequest>";formData=new Array();formData.headerId=B;formData.type=D;formData.requestXml=E;fireAjaxRequest(E,formData,A)};function FormatNumberBy3(B,C,A){if(arguments.length==2){A=","}if(arguments.length==1){A=",";C="."}B=B.toString();a=B.split(C);x=a[0];y=a[1];z="";if(typeof (x)!="undefined"){for(i=x.length-1;i>=0;i--){z+=x.charAt(i)}z=z.replace(/(\d{3})/g,"$1"+A);if(z.slice(-A.length)==A){z=z.slice(0,-A.length)}x="";for(i=z.length-1;i>=0;i--){x+=z.charAt(i)}if(typeof (y)!="undefined"&&y.length>0){x+=C+y}}return x}function FormatMortgageNumber(A){return FormatNumberBy3(Math.round(A),",",".")+",-"}function StripFormatMortgageNumber(A){return A.replace(/\./g,"").replace(/,/g,"").replace(/-/g,"")}function setCutoffParameters(D,A,C){if(C>=1){return""}var E="&hascutofflist=1";var B=Math.round(C*(A-D));E="&cutoff_4=75,"+(B+D)+E;B=Math.round(C*(B));E="&cutoff_3=50,"+(B+D)+E;B=Math.round(C*(B));E="&cutoff_2=25,"+(B+D)+E;E="&cutoff_1=0,"+D+E;return E}SNSBankAccount.init=function(){if(typeof (SNSBankAccount.is_klant)=="undefined"||SNSBankAccount.is_klant=="ja"){return }var B=getElementsByClassName("SNSBankAccount");for(var A=0;A<B.length;A++){if(obj.addEventListener){Main.addEvent(B[A],"change",function(){SNSBankAccount.check(this.name)})}else{Main.addEvent(B[A],"change",function(){SNSBankAccount.check(event.srcElement.name)})}}};SNSBankAccount.check=function(B){var C="";var A="";if(document.getElementsByName("type").length>0){C=document.getElementsByName("type")[0].value}if(document.getElementsByName(B).length>0){A=document.getElementsByName(B)[0].value}var D='<?xml version="1.0"?>';D+="<asyncRequest>";D+="<method>"+C+"</method>";D+="<parameters>";D+="<rekeningnummer>"+A;D+="</rekeningnummer>";D+="</parameters>";D+="</asyncRequest>";formData=new Array();formData.headerId="account";formData.type=C;formData.inputName=B;formData.requestXml=D;fireAjaxRequest(D,formData,SNSBankAccount.processResult)};SNSBankAccount.processResult=function(A,B){if(A!=null){if(getChildContents(A,"sns_rekening")=="true"){if(document.getElementById("error_"+B.inputName)){removeCheckAccountError(B.inputName)}setCheckAccountError(B.inputName)}else{removeCheckAccountError(B.inputName)}}};SNSBankAccountEx.init=function(){var C=getElementsByClassName("SNSBankAccountExStatus");var B=getElementsByClassName("SNSBankAccountEx");if(B.length==C.length){for(var A=0;A<B.length;A++){addClass(C[A],B[A].name);if(obj.addEventListener){Main.addEvent(B[A],"change",function(){SNSBankAccountEx.check(this.name)})}else{Main.addEvent(B[A],"change",function(){SNSBankAccountEx.check(event.srcElement.name)})}}}};SNSBankAccountEx.check=function(B){var C="check_sns_account";var A="";if(document.getElementsByName("type").length>0){C=document.getElementsByName("type")[0].value}if(document.getElementsByName(B).length>0){A=document.getElementsByName(B)[0].value}statusElement=getElementsByClassName(B);if(statusElement.length>0){statusElement=statusElement[0]}var D='<?xml version="1.0"?>';D+="<asyncRequest>";D+="<method>"+C+"</method>";D+="<parameters>";D+="<rekeningnummer>"+A;D+="</rekeningnummer>";D+="</parameters>";D+="</asyncRequest>";formData=new Array();formData.headerId="account";formData.type=C;formData.inputName=B;formData.resultformpart=statusElement;formData.requestXml=D;fireAjaxRequest(D,formData,SNSBankAccountEx.processResult)};SNSBankAccountEx.processResult=function(A,B){if(A!=null){if(getChildContents(A,"error_accountservice")&&getChildContents(A,"error_accountservice").length>0){B.resultformpart.value="unknown"}else{B.resultformpart.value=getChildContents(A,"sns_rekening")}}};SNSAutoFillCustomerData.init=function(){fields=getElementsByClassName("SNSAutoFillCustomerData");for(var A=0;A<fields.length;A++){Main.addEvent(fields[A],"change",autoFillCustomerData)}};SNSInterestOnProduct.init=function(){var A="";if(SNSInterestOnProduct.subFormIdentifier!=="undefined"&&SNSInterestOnProduct.subFormIdentifier!==""){A=SNSInterestOnProduct.subFormIdentifier+"_"}SNSInterestOnProduct.timeyear_id=null;fields=getElementsByClassName("SNSInterestOnProduct");for(var B=0;B<fields.length;B++){Main.addEvent(fields[B],"change",SNSInterestOnProduct.getInterest);if(fields[B].id==="wmtext_"+A+"eenmalige_inleg"){SNSInterestOnProduct.amount_id=fields[B]}if(fields[B].id==="wmdropdown_"+A+"looptijd_jaar"){SNSInterestOnProduct.timeyear_id=fields[B]}if(fields[B].id==="wmtext_"+A+"looptijd_maand"){SNSInterestOnProduct.timemonth_id=fields[B]}}if(document.getElementById("wmtext_"+A+"product_rsc")){SNSInterestOnProduct.productid_id=document.getElementById("wmtext_"+A+"product_rsc")}if(typeof (SNSInterestOnProduct.formNodeId)=="undefined"){node=SNSInterestOnProduct.amount_id;while(node&&node.tagName!="FORM"){node=node.parentNode}if(node){SNSInterestOnProduct.formNodeId=node.id}}if(SNSInterestOnProduct.productid_id&&SNSInterestOnProduct.amount_id){fields=getElementsByClassName("SNSInterestOnAccountMinValue");for(var B=0;B<fields.length;B++){if(fields[B].id=="looptijd_maand"){SNSInterestOnProduct.timemonth_id=fields[B];alert("kamer van koophandler"+$("input[@name=sf_stp_product_deposito.rente_bijschrijven_per]:checked").val());var C='<?xml version="1.0"?>';C+="<asyncRequest>";C+="<method>geefProducteigenschappen</method>";C+="<parameters>";C+="<productid>"+SNSInterestOnProduct.productid_id.value+"</productid>";C+="</parameters>";C+="</asyncRequest>";formData=new Array();formData.headerId="ProductInterest";formData.requestXml=C;fireAjaxRequest(C,formData,SNSInterestOnProduct.processResultMinValue)}}}else{SNSInterestOnProduct.getInterest()}};SNSInterestOnProduct.getInterest=function(){var C=null,D=null,F=null,G="year";if(SNSInterestOnProduct.amount_id){D=SNSInterestOnProduct.amount_id.value}if(SNSInterestOnProduct.timeyear_id&&SNSInterestOnProduct.timeyear_id.parentNode.parentNode.style.display!=="none"){if(SNSInterestOnProduct.timeyear_id.options[SNSInterestOnProduct.timeyear_id.selectedIndex].value>0){var B=SNSInterestOnProduct.timeyear_id.options[SNSInterestOnProduct.timeyear_id.selectedIndex].value;F=B*12}else{F=""}}else{if(SNSInterestOnProduct.timemonth_id&&SNSInterestOnProduct.timemonth_id.parentNode.parentNode.style.display!=="none"){F=SNSInterestOnProduct.timemonth_id.value;G="month"}else{return }}if(SNSInterestOnProduct.productid_id){if($("input[@name=sf_stp_product_deposito.rente_bijschrijven_per]:checked").val()=="maand"){C="869"}else{C="868"}}else{return }var A=null;if(C&&D&&F){A="geefRentepercentage"}else{if(C){A="checkInput"}}var E='<?xml version="1.0"?>';E+="<asyncRequest>";E+="<method>"+A+"</method>";E+="<parameters>";E+="<productid>"+C+"</productid>";E+="<time>"+F+"</time>";E+="<period>"+G+"</period>";E+="<amount>"+D+"</amount>";E+="</parameters>";E+="</asyncRequest>";formData=new Array();formData.headerId="ProductInterest";formData.requestXml=E;fireAjaxRequest(E,formData,SNSInterestOnProduct.processResult)};SNSInterestOnProduct.processResult=function(A,D){if(A!=null){var F=getChildContents(A,"interest_formatted");var C=getChildContents(A,"eenmaligeinleg");var E=getChildContents(A,"looptijd_maand");var B=getChildContents(A,"looptijd_jaar");if(F==null){F="??";document.getElementById("SNSInterestOnProductextra").style.display="block";document.getElementById("SNSInterestOnProductInterest").style.display="none"}else{document.getElementById("SNSInterestOnProductextra").style.display="none";document.getElementById("SNSInterestOnProductInterest").style.display="block"}formNode=document.getElementById(SNSInterestOnProduct.formNodeId);if(formNode){removeError(formNode,SNSInterestOnProduct.amount_id.name);if(SNSInterestOnProduct.timeyear_id){removeError(formNode,SNSInterestOnProduct.timeyear_id.name)}removeError(formNode,SNSInterestOnProduct.timemonth_id.name);if(C!=null){setError(formNode,SNSInterestOnProduct.amount_id.name,C);addErrorForOmniture()}if(SNSInterestOnProduct.timeyear_id&&SNSInterestOnProduct.timeyear_id.parentNode.parentNode.style.display!="none"){if(B!=null){setError(formNode,SNSInterestOnProduct.timeyear_id.name,B);addErrorForOmniture()}}else{if(E!=null&&SNSInterestOnProduct.timemonth_id.parentNode.parentNode.style.display!="none"){setError(formNode,SNSInterestOnProduct.timemonth_id.name,E);addErrorForOmniture()}}}if(document.getElementById(SNSInterestOnProduct.result_id)){document.getElementById(SNSInterestOnProduct.result_id).innerHTML='<strong style="font-size:1.3 em;">'+F+"%</strong>";document.getElementById(SNSInterestOnProduct.interest_id).value=F}}};SNSInterestOnAccount.init=function(){SNSInterestOnAccount.timeyear_id=null;fields=getElementsByClassName("SNSInterestOnAccount");for(var A=0;A<fields.length;A++){Main.addEvent(fields[A],"change",SNSInterestOnAccount.getInterest);if(fields[A].id=="eenmaligeinleg"){SNSInterestOnAccount.amount_id=fields[A]}if(fields[A].id=="klimrenteinleg"){SNSInterestOnAccount.amount_id=fields[A]}if(fields[A].id=="looptijd_jaar"){SNSInterestOnAccount.timeyear_id=fields[A]}if(fields[A].id=="looptijd_maand"){SNSInterestOnAccount.timemonth_id=fields[A]}}if(document.getElementById("product_rsc")){SNSInterestOnAccount.productid_id=document.getElementById("product_rsc")}else{if(document.getElementById("product_rsc_jaar")){SNSInterestOnAccount.productid_id_jaar=document.getElementById("product_rsc_jaar")}if(document.getElementById("product_rsc_maand")){SNSInterestOnAccount.productid_id_maand=document.getElementById("product_rsc_maand")}if(document.getElementById("product_rsc_klimrente")){SNSInterestOnAccount.productid_id_maand=document.getElementById("product_rsc_klimrente")}}if(typeof (SNSInterestOnAccount.formNodeId)=="undefined"){node=SNSInterestOnAccount.amount_id;while(node&&node.tagName!="FORM"){node=node.parentNode}if(node){SNSInterestOnAccount.formNodeId=node.id}}if(SNSInterestOnAccount.productid_id&&SNSInterestOnAccount.amount_id){fields=getElementsByClassName("SNSInterestOnAccountMinValue");for(var A=0;A<fields.length;A++){if(fields[A].id=="looptijd_maand"){SNSInterestOnAccount.timemonth_id=fields[A];var B='<?xml version="1.0"?>';B+="<asyncRequest>";B+="<method>geefProducteigenschappen</method>";B+="<parameters>";B+="<productid>"+SNSInterestOnAccount.productid_id.value+"</productid>";B+="</parameters>";B+="</asyncRequest>";formData=new Array();formData.headerId="ProductInterest";formData.requestXml=B;fireAjaxRequest(B,formData,SNSInterestOnAccount.processResultMinValue)}}}else{SNSInterestOnAccount.getInterest()}};SNSInterestOnAccount.getInterest=function(){var A=null,B=null,D=null,E="year";if(SNSInterestOnAccount.amount_id){B=SNSInterestOnAccount.amount_id.value}if(SNSInterestOnAccount.timeyear_id&&SNSInterestOnAccount.timeyear_id.parentNode.parentNode.style.display=="block"){if(SNSInterestOnAccount.timeyear_id.value!=""){D=SNSInterestOnAccount.timeyear_id.value*12}else{D=SNSInterestOnAccount.timeyear_id.value}}else{if(SNSInterestOnAccount.timemonth_id){D=SNSInterestOnAccount.timemonth_id.value;E="month"}else{return }}if(SNSInterestOnAccount.productid_id){A=SNSInterestOnAccount.productid_id.value}else{if(SNSInterestOnAccount.productid_id_jaar||SNSInterestOnAccount.productid_id_maand){if(E=="month"){A=SNSInterestOnAccount.productid_id_maand.value}else{if(E=="year"){A=SNSInterestOnAccount.productid_id_jaar.value}}}else{return }}if(A&&B&&D){srvFunction="geefRentepercentage"}else{if(A){srvFunction="checkInput"}}var C='<?xml version="1.0"?>';C+="<asyncRequest>";C+="<method>"+srvFunction+"</method>";C+="<parameters>";C+="<productid>"+A+"</productid>";C+="<time>"+D+"</time>";C+="<period>"+E+"</period>";C+="<amount>"+B+"</amount>";C+="</parameters>";C+="</asyncRequest>";formData=new Array();formData.headerId="ProductInterest";formData.requestXml=C;fireAjaxRequest(C,formData,SNSInterestOnAccount.processResult)};SNSInterestOnAccount.processResult=function(A,D){if(A!=null){var F=getChildContents(A,"interest_formatted");var C=getChildContents(A,"eenmaligeinleg");var E=getChildContents(A,"looptijd_maand");var B=getChildContents(A,"looptijd_jaar");if(F==null){F="??"}formNode=document.getElementById(SNSInterestOnAccount.formNodeId);if(formNode){removeError(formNode,SNSInterestOnAccount.amount_id.name);if(SNSInterestOnAccount.timeyear_id){removeError(formNode,SNSInterestOnAccount.timeyear_id.name)}removeError(formNode,SNSInterestOnAccount.timemonth_id.name);if(C!=null){setError(formNode,SNSInterestOnAccount.amount_id.name,C);addErrorForOmniture()}if(SNSInterestOnAccount.timeyear_id&&SNSInterestOnAccount.timeyear_id.parentNode.parentNode.style.display=="block"){if(B!=null){setError(formNode,SNSInterestOnAccount.timeyear_id.name,B);addErrorForOmniture()}}else{if(E!=null){setError(formNode,SNSInterestOnAccount.timemonth_id.name,E);addErrorForOmniture()}}}if(document.getElementById(SNSInterestOnAccount.result_id)){document.getElementById(SNSInterestOnAccount.result_id).innerHTML='<strong style="font-size:1.3 em;">'+F+"%</strong>"}}};SNSInterestOnAccount.processResultMinValue=function(A,B){if(A!=null){SNSInterestOnAccount.timemonth_id.value=getChildContents(A,"minLooptijd")}};SNSNearestOffice.init=function(){allFields=getElementsByClassName("SNSNearestOffice");for(var A=0;A<allFields.length;A++){if(obj.addEventListener){Main.addEvent(allFields[A],"blur",function(){SNSNearestOffice.find(this.name)})}else{Main.addEvent(allFields[A],"blur",function(){SNSNearestOffice.find(event.srcElement.name)})}if(document.getElementById("searchOffice_0")){Main.addEvent(document.getElementById("searchOffice_0"),"change",function(){SNSNearestOffice.fillSessionValueRadio0()})}if(document.getElementById("searchOffice_1")){Main.addEvent(document.getElementById("searchOffice_1"),"change",function(){SNSNearestOffice.fillSessionValueRadio1()})}if(document.getElementById("lstSearchOffice_choice")){Main.addEvent(document.getElementById("lstSearchOffice_choice"),"change",function(){SNSNearestOffice.fillSessionValueRadio1()})}}if(document.getElementById("searchOfficeSessionValue")!=null){SNSNearestOffice.loadFromSession(document.getElementById("searchOfficeSessionValue").value)}};SNSNearestOffice.find=function(B){var A="";if(document.getElementsByName(B).length>0){A=document.getElementsByName(B)[0].value}if(SNSasyncPostcode.format(A)!=null){var C='<?xml version="1.0"?>';C+="<asyncRequest>";C+="<method>singlesearchlocation</method>";C+="<parameters>";C+="<postcode>"+SNSasyncPostcode.format(A);C+="</postcode>";C+="</parameters>";C+="</asyncRequest>";formData=new Array();formData.headerId="location";formData.type="singlesearchlocation";formData.inputName=B;formData.requestXml=C;fireAjaxRequest(C,formData,SNSNearestOffice.processResult)}};SNSNearestOffice.processResult=function(A,B){if(A!=null){if((getChildContents(A,"nearestOfficeCode")!=null&&getChildContents(A,"nearestOfficeCode")!=""&&getChildContents(A,"nearestOfficeCode")!="null")&&(getChildContents(A,"nearestOfficeName")!=null&&getChildContents(A,"nearestOfficeName")!=""&&getChildContents(A,"nearestOfficeName")!="null")){if(document.getElementById("searchOffice_0")){document.getElementById("searchOffice_0").disabled=false;document.getElementById("searchOffice_0").checked=true;document.getElementById("searchOffice_0").value=getChildContents(A,"nearestOfficeCode")}if(document.getElementById("lblSearchOffice_default")){document.getElementById("lblSearchOffice_default").innerHTML=getChildContents(A,"nearestOfficeName")}if(document.getElementById("searchOfficeSessionValue")){document.getElementById("searchOfficeSessionValue").value=getChildContents(A,"nearestOfficeCode")+"|"+getChildContents(A,"nearestOfficeName")+"|searchOffice_0"}}else{if(document.getElementById("searchOffice_0")){document.getElementById("searchOffice_0").disabled=true;document.getElementById("searchOffice_0").checked=false;if(document.getElementById("searchOffice_1")){document.getElementById("searchOffice_1").checked=true}document.getElementById("searchOffice_0").value=""}if(document.getElementById("lblSearchOffice_default")&&document.getElementById("hiddenOfficeDefaultText")){document.getElementById("lblSearchOffice_default").innerHTML=document.getElementById("hiddenOfficeDefaultText").value}if(document.getElementById("searchOfficeSessionValue")){SNSNearestOffice.fillSessionValueRadio1()}}}};SNSNearestOffice.fillSessionValueRadio0=function(){var A="";if(document.getElementById("searchOffice_0")!=null&&document.getElementById("lblSearchOffice_default")!=null){A=document.getElementById("searchOffice_0").value;A+="|";A+=document.getElementById("lblSearchOffice_default").innerHTML;A+="|";A+="searchOffice_0";if(document.getElementById("searchOfficeSessionValue")){document.getElementById("searchOfficeSessionValue").value=A}}};SNSNearestOffice.fillSessionValueRadio1=function(){var A="";if(document.getElementById("searchOffice_1")&&document.getElementById("searchOffice_1").checked){if(document.getElementById("lstSearchOffice_choice")&&document.getElementById("searchOfficeSessionValue")){var C=document.getElementById("lstSearchOffice_choice");for(var B=0;B<C.length;B++){if(C.options[B].selected){A=C.options[B].value;A+="|";A+=C.options[B].text}}A+="|";A+="searchOffice_1";document.getElementById("searchOfficeSessionValue").value=A}}};SNSNearestOffice.loadFromSession=function(B){if(B.length>0){var F=B.split("|");if(F.length==3){var G=F[0];var A=F[1];var D=F[2];if(document.getElementById(D)){document.getElementById(D).checked=true}if(D=="searchOffice_0"&&document.getElementById("searchOffice_0")&&document.getElementById("lblSearchOffice_default")){document.getElementById("searchOffice_0").disabled=false;document.getElementById("searchOffice_0").value=G;document.getElementById("lblSearchOffice_default").value=A}else{if(document.getElementById("searchOffice_0")&&document.getElementById("lstSearchOffice_choice")){var E=document.getElementById("lstSearchOffice_choice");for(var C=0;C<E.length;C++){if(E.options[C].value==G){E.options[C].selected==true;document.getElementById("searchOffice_0").disabled=true}}}}}}};SNSLogoutOnUnload.url="";SNSLogoutOnUnload.postop="";SNSLogoutOnUnload.posleft="";SNSLogoutOnUnload.winwidth=250;SNSLogoutOnUnload.winheight=50;SNSLogoutOnUnload.notified=false;SNSLogoutOnUnload.init=function(){allFields=getElementsByClassName("SNSLogoutOnUnload snshidden");if(allFields.length>0){SNSLogoutOnUnload.url=allFields[0].value;try{SNSLogoutOnUnload.postop=parseInt((window.screen.width-SNSLogoutOnUnload.winwidth)/2);SNSLogoutOnUnload.posleft=parseInt((window.screen.height-SNSLogoutOnUnload.winheight)/2)}catch(B){SNSLogoutOnUnload.postop,SNSLogoutOnUnload.posleft=300}Main.addEvent(window,"unload",SNSLogoutOnUnload.extUnload);Main.eventCache.add(window,"unload",SNSLogoutOnUnload.extUnload,false);allLinks=document.getElementsByTagName("A");for(var A=0;A<allLinks.length;A++){if(allLinks[A].target==""||allLinks[A].target=="_blank"||allLinks[A].target=="_self"&&allLinks[A].target=="_top"&&allLinks[A].target=="_parent"){if(allLinks[A].className!="readposition"&&allLinks[A].className!="printposition"&&allLinks[A].className!="underline"&&allLinks[A].className!="nologoutclass"){if(allLinks[A].className=="arrow-left"||allLinks[A].className=="arrow-right"||allLinks[A].parentNode.className=="button-holder right"||allLinks[A].parentNode.parentNode.className=="button-holder right"){Main.addEvent(allLinks[A],"click",SNSLogoutOnUnload.silentUnload);Main.eventCache.add(allLinks[A],"click",SNSLogoutOnUnload.silentUnload,false)}else{Main.addEvent(allLinks[A],"click",SNSLogoutOnUnload.unload);Main.eventCache.add(allLinks[A],"click",SNSLogoutOnUnload.unload,false)}}}}allLinks=document.getElementsByTagName("INPUT");for(var A=0;A<allLinks.length;A++){if(allLinks[A].type=="button"||allLinks[A].type=="submit"||(allLinks[A].type=="image"&&allLinks[A].name!="dummybutton")){Main.addEvent(allLinks[A],"click",SNSLogoutOnUnload.unload);Main.eventCache.add(allLinks[A],"click",SNSLogoutOnUnload.unload,false)}}}return };SNSLogoutOnUnload.silentUnload=function(){SNSLogoutOnUnload.notified=true};SNSLogoutOnUnload.extUnload=function(A){if(!SNSLogoutOnUnload.notified){if(typeof (event)!="undefined"){if(event.srcElement){SNSLogoutOnUnload.unload()}else{}}else{if(A&&A.target==null){SNSLogoutOnUnload.unload()}else{}}}};SNSLogoutOnUnload.unload=function(){if(!SNSLogoutOnUnload.notified){SNSLogoutOnUnload.notified=true;handle=window.open(SNSLogoutOnUnload.url,"Uitloggen","width="+SNSLogoutOnUnload.winwidth+", height="+SNSLogoutOnUnload.winheight+", left="+SNSLogoutOnUnload.posleft+", top="+SNSLogoutOnUnload.postop+", screenX="+SNSLogoutOnUnload.posleft+", screenY="+SNSLogoutOnUnload.postop+",toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no",true);if(handle){handle.focus()}}};SNSAutoLogout.logoutUrl=null;SNSAutoLogout.init=function(){allFields=getElementsByClassName("SNSAutoLogout");if(allFields.length>0){SNSAutoLogout.logoutUrl=allFields[0].value.split("|");if(!SNSAutoLogout.logoutUrl||SNSAutoLogout.logoutUrl.length==0){return }for(i=0;i<SNSAutoLogout.logoutUrl.length;i++){if(SNSAutoLogout.logoutUrl[i]!=""){SNSAutoLogout.asyncLogout(SNSAutoLogout.logoutUrl[i])}}}};SNSAutoLogout.asyncLogout=function(A){if(window.XMLHttpRequest){ajaxRequest=new XMLHttpRequest()}else{if(window.ActiveXObject){ajaxRequest=new ActiveXObject("Microsoft.XMLHTTP")}}ajaxRequest.open("GET",A,true);ajaxRequest.onreadystatechange=function(){};ajaxRequest.send(null)};var SNSAccountDropdown={};SNSAccountDropdown.filling=false;SNSAccountDropdown.to=null;SNSAccountDropdown.textField=null;SNSAccountDropdown.fillListTo=function(){if(SNSAccountDropdown.to!=null){window.clearTimeout(SNSAccountDropdown.to)}if(!SNSAccountDropdown.filling){SNSAccountDropdown.to=window.setTimeout(SNSAccountDropdown.fillList,600)}};SNSAccountDropdown.fillList=function(){SNSAccountDropdown.filling=true;baselist=document.getElementById("debitaccount");sublist=document.getElementById("debitcard");if(baselist&&sublist){removeAllOptions(sublist);for(i=0;i<lists[baselist.options[baselist.selectedIndex].value].length;i++){if(lists[baselist.options[baselist.selectedIndex].value][i]!=null){addOption(sublist,lists[baselist.options[baselist.selectedIndex].value+"_txt"][i],lists[baselist.options[baselist.selectedIndex].value][i])}}}SNSAccountDropdown.filling=false};SNSAccountDropdown.initUnblockable=function(){allFields=document.getElementsByName("SNSAccountDropdownBP");if(allFields.length==1){SNSAccountDropdown.textField=allFields[0]}};SNSAccountDropdown.isDebitCardUnblockable=function(){SNSAccountDropdown.initUnblockable();debitcardList=document.getElementById("debitcard");selectedIndex=debitcardList.selectedIndex;selectedDebitcardId=debitcardList.options[selectedIndex].value;baselist=document.getElementById("debitaccount");selectedAccountNr=baselist.options[baselist.selectedIndex].value;isDebitCardUnblockable=unblockableDebitcardsList[selectedAccountNr+"-"+selectedDebitcardId];if(SNSAccountDropdown.textField!=null){if(!isDebitCardUnblockable){SNSAccountDropdown.textField.parentNode.style.backgroundColor="#ff0";SNSAccountDropdown.textField.parentNode.style.display="";var A=new YAHOO.util.ColorAnim(SNSAccountDropdown.textField.parentNode,{backgroundColor:{to:"#fff"}},3,YAHOO.util.Easing.easeOut);A.onComplete.fire=onCompleteHandlerFire;A.animate()}else{SNSAccountDropdown.textField.parentNode.style.display="none"}}};var SNSCustomerDropdown={};SNSCustomerDropdown.filling=false;SNSCustomerDropdown.to=null;SNSCustomerDropdown.changeVisibility=function(G){var D=null;var J=null;var F=null;var B=null;var C=null;var A=null;var H=null;var E=null;var I=null;if(document.getElementById("existing")){J=document.getElementById("existing")}if(document.getElementById("new")){D=document.getElementById("new")}if(document.getElementById("ILS")){F=document.getElementById("ILS")}if(document.getElementById("new_basis")){B=document.getElementById("new_basis")}if(document.getElementById("new_legitimatie")){C=document.getElementById("new_legitimatie")}role="";if(document.getElementById("hiddenWVklantnummer")){role="WV"}else{if(document.getElementById("hiddenMHklantnummer")){role="MH"}else{if(document.getElementById("hiddenGMklantnummer")){role="GM"}}}if(document.getElementById(role+"name")){A=document.getElementById(role+"name")}if(document.getElementById("hidden"+role+"name")){hiddenName=document.getElementById("hidden"+role+"name")}if(document.getElementById(role+"firstname")){H=document.getElementById(role+"firstname")}if(document.getElementById("hidden"+role+"firstname")){hiddenFirstName=document.getElementById("hidden"+role+"firstname")}if(document.getElementById(role+"prepositionname")){E=document.getElementById(role+"prepositionname")}if(document.getElementById("hidden"+role+"prepositionname")){hiddenPrepositionName=document.getElementById("hidden"+role+"prepositionname")}if(document.getElementById(role+"lastname")){I=document.getElementById(role+"lastname")}if(document.getElementById("hidden"+role+"lastname")){hiddenLastName=document.getElementById("hidden"+role+"lastname")}if(document.getElementById(role+"birthdate")){birthdate=document.getElementById(role+"birthdate")}if(document.getElementById("hidden"+role+"birthdate")){hiddenBirthdate=document.getElementById("hidden"+role+"birthdate")}if(document.getElementById("hidden"+role+"klantnummer")){hiddenKlantnummer=document.getElementById("hidden"+role+"klantnummer");hiddenKlantnummer.value="0"}if(document.getElementById("hidden"+role+"ILS")){hiddenILS=document.getElementById("hidden"+role+"ILS")}if(document.getElementById("hidden"+role+"huisnummer")){hiddenHuisnummer=document.getElementById("hidden"+role+"huisnummer")}if(document.getElementById("hidden"+role+"postcode")){hiddenHuisnummer=document.getElementById("hidden"+role+"postcode")}if(document.getElementById("hidden"+role+"bsn")){hiddenHuisnummer=document.getElementById("hidden"+role+"bsn")}if(J){J.style.display="none"}if(D){D.style.display="none"}if(B){B.style.display="none"}if(F){F.style.display="none"}if(C){C.style.display="none"}sourceValue="";if(document.getElementById(G)){sourceObject=document.getElementById(G);sourceValue=sourceObject.value}if(sourceValue=="new"){if(D){D.style.display="block"}if(B){B.style.display="block";if(F){F.style.display="block"}if(C){C.style.display="block"}}}else{if(sourceValue!=""&&J){if((A!=null)&&(A!="")){A.innerHTML=SNSCustomerProperties.initials[sourceValue]+" "+SNSCustomerProperties.names[sourceValue];hiddenName.value=SNSCustomerProperties.initials[sourceValue]+" "+SNSCustomerProperties.names[sourceValue]}if((H!=null)&&(H!="")){H.innerHTML=SNSCustomerProperties.initials[sourceValue];hiddenFirstName.value=SNSCustomerProperties.initials[sourceValue]}if((E!=null)&&(E!="")){E.innerHTML=SNSCustomerProperties.preposition[sourceValue];hiddenPrepositionName.value=SNSCustomerProperties.preposition[sourceValue]}if((I!=null)&&(I!="")){I.innerHTML=SNSCustomerProperties.names[sourceValue];hiddenLastName.value=SNSCustomerProperties.names[sourceValue]}birthdate.innerHTML=SNSCustomerProperties.birthdates[sourceValue];hiddenBirthdate.value=SNSCustomerProperties.birthdates[sourceValue];hiddenKlantnummer.value=SNSCustomerProperties.klantnummers[sourceValue];hiddenILS.value=SNSCustomerProperties.ILS[sourceValue];J.style.display="block";if(SNSCustomerProperties.ILS[sourceValue]&&F){F.style.display="none"}else{F.style.display="block"}}else{if(!J&&D){D.style.display="block"}if(!J&&B){B.style.display="block";if(F){F.style.display="block"}if(C){C.style.display="block"}}}}};var SNSDigipasLimit={};SNSDigipasLimit.fields=new Array();SNSDigipasLimit.to=null;SNSDigipasLimit.checking=false;SNSDigipasLimit.init=function(){allFields=getElementsByClassName("SNSDigipasLimiet");if(allFields.length>0){for(i=0;i<allFields.length;i++){switch(allFields[i].tagName){case"INPUT":SNSDigipasLimit.fields.input=allFields[i];Main.addEvent(allFields[i],"mouseup",SNSDigipasLimit.checkLimit);Main.addEvent(allFields[i],"keyup",SNSDigipasLimit.checkLimitTo);Main.eventCache.add(allFields[i],"mouseup",SNSDigipasLimit.checkLimit,false);Main.eventCache.add(allFields[i],"keyup",SNSDigipasLimit.checkLimitTo,false);break;case"P":if(allFields[i].className.indexOf("high")>=0){SNSDigipasLimit.fields.msg_high=allFields[i]}else{SNSDigipasLimit.fields.msg_low=allFields[i]}break;case"DIV":SNSDigipasLimit.fields["listnode-permanent"]=null;SNSDigipasLimit.fields["listnode-tijdelijk"]=null;var A=allFields[i].firstChild;while(A&&(SNSDigipasLimit.fields["listnode-permanent"]==null||SNSDigipasLimit.fields["listnode-tijdelijk"]==null)){if(A.tagName=="INPUT"&&A.value=="permanent"){SNSDigipasLimit.fields["listnode-permanent"]=A}if(A.tagName=="INPUT"&&A.value=="tijdelijk"){SNSDigipasLimit.fields["listnode-tijdelijk"]=A}A=A.nextSibling}break}}SNSDigipasLimit.checkLimit()}};SNSDigipasLimit.checkLimitTo=function(){if(SNSDigipasLimit.to!=null){window.clearTimeout(SNSDigipasLimit.to)}if(!SNSDigipasLimit.checking){SNSDigipasLimit.to=window.setTimeout(SNSDigipasLimit.checkLimit,600)}};SNSDigipasLimit.checkLimit=function(){SNSDigipasLimit.checking=true;if(SNSDigipasLimit.fields.input&&SNSDigipasLimit.fields.msg_high&&SNSDigipasLimit.fields.msg_low&&SNSDigipasLimit.fields["listnode-permanent"]&&SNSDigipasLimit.fields["listnode-tijdelijk"]){if(parseInt(SNSDigipasLimit.fields.input.value)==0){removeClass(SNSDigipasLimit.fields.msg_low,"snshidden")}else{addClass(SNSDigipasLimit.fields.msg_low,"snshidden")}if(parseInt(SNSDigipasLimit.fields.input.value)>100000){SNSDigipasLimit.fields["listnode-permanent"].checked="";SNSDigipasLimit.fields["listnode-tijdelijk"].checked="checked";removeClass(SNSDigipasLimit.fields.msg_high,"snshidden")}else{addClass(SNSDigipasLimit.fields.msg_high,"snshidden")}SNSDigipasLimit.fields["listnode-permanent"].disabled=(parseInt(SNSDigipasLimit.fields.input.value)>100000)?"true":""}SNSDigipasLimit.checking=false};var SNSAccountProperties={};SNSAccountProperties.fields=new Array();SNSAccountProperties.formId="";SNSAccountProperties.select_current=null;SNSAccountProperties.busy=null;SNSAccountProperties.reactionTo=null;SNSAccountProperties.init=function(){allFields=getElementsByClassName("SNSAccountProperties");if(allFields.length>0){for(i=0;i<allFields.length;i++){switch(allFields[i].tagName){case"SELECT":SNSAccountProperties.fields.input=allFields[i];SNSAccountProperties.formId=allFields[i].id;removeAllOptions(SNSAccountProperties.fields.input);addOption(SNSAccountProperties.fields.input,"Maak een keuze","",allFields[i].id+"_0");if(SNSAccountProperties.accounts.length==SNSAccountProperties.accountTexts.length){for(A=0;A<SNSAccountProperties.accounts.length;A++){if(SNSAccountProperties.accounts[A]!=null){addOption(SNSAccountProperties.fields.input,SNSAccountProperties.accountTexts[A],SNSAccountProperties.accounts[A],allFields[i].id+"_"+A+1)}}}for(var A=0,B;B=allFields[i].options[A];A++){if(B.value==""&&A>0){B.disabled="disabled";B.style.color="#aaa"}}isIE6=navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1;isIE7=navigator.userAgent.toLowerCase().indexOf("msie 7")!=-1;if(isIE6||isIE7){Main.addEvent(allFields[i],"focus",function(){SNSAccountProperties.select_current=SNSAccountProperties.fields.input.selectedIndex});Main.addEvent(allFields[i],"change",function(){SNSAccountProperties.restore()})}if(allFields[i].className.indexOf("checkBlocked")>=0){Main.addEvent(allFields[i],"change",SNSAccountProperties.getProperties);Main.eventCache.add(allFields[i],"change",SNSAccountProperties.getProperties,false)}break;case"P":if(allFields[i].className.indexOf("blocked")>=0){SNSDigipasLimit.fields.blocked=allFields[i]}allFields[i].style.color="red";break}}}};SNSAccountProperties.restore=function(){if(SNSAccountProperties.fields.input.options[SNSAccountProperties.fields.input.selectedIndex].disabled){SNSAccountProperties.fields.input.selectedIndex=SNSAccountProperties.select_current}};SNSAccountProperties.getPropertiesTo=function(){if(SNSAccountProperties.reactionTo!=null){window.clearTimeout(SNSAccountProperties.reactionTo)}if(SNSAccountProperties.busy==null){SNSAccountProperties.reactionTo=window.setTimeout(SNSAccountProperties.getProperties,600)}};SNSAccountProperties.clearTimeout=function(){selectObj.disabled="";if(SNSAccountProperties.busy!=null){window.clearTimeout(SNSAccountProperties.busy);SNSAccountProperties.busy=null}};SNSAccountProperties.getProperties=function(){selectObj=SNSAccountProperties.fields.input;if(SNSAccountProperties.busy==null&&selectObj!=null&&selectObj.options[selectObj.selectedIndex].value!=""){SNSAccountProperties.busy=window.setTimeout(SNSAccountProperties.clearTimeout,30000);selectObj.disabled="disabled";var A='<?xml version="1.0"?>';A+="<asyncRequest>";A+="<method>check_account_blocked</method>";A+="<parameters>";A+="<rekeningnummer>"+selectObj.options[selectObj.selectedIndex].value;A+="</rekeningnummer>";A+="</parameters>";A+="</asyncRequest>";formData=new Array();formData.headerId="account";formData.type="accountproperties";formData.requestXml=A;fireAjaxRequest(A,formData,SNSAccountProperties.processResult)}};SNSAccountProperties.processResult=function(A,B){if(A==null){SNSAccountProperties.clearTimeout();return }if(document.getElementById("error_"+SNSAccountProperties.formId)!=null){addClass(document.getElementById("error_"+SNSAccountProperties.formId),"snshidden")}if(getChildContents(A,"blocked")=="true"){removeClass(SNSDigipasLimit.fields.blocked,"snshidden")}else{addClass(SNSDigipasLimit.fields.blocked,"snshidden")}SNSAccountProperties.clearTimeout()};function checkMVTSNSCookie(){if(document.cookie.length>0){offset=document.cookie.indexOf("MVT_SNS");if(offset!=-1){protocol="http:";url="//www6.tmvtp.com/allocator/execute/17454767912426030803";if(document.location.protocol=="https:"){protocol="https:"}url=protocol+url;document.write('<script src="',url,'" type="text/javascript"><script>')}}}SNSBankExtra.BBcodeToHTML=function(B){var A;A=B;search=new Array(/\[br\]/g,/\[url=(.*?)\](.*?)\[\/url\]/g,/\[b\](.*?)\[\/b\]/g,/\[small\](.*?)\[\/small\]/g);replace=new Array("<br/>",'<a target="_blank" class="dummy" style="cursor:pointer; text-decoration:underline; color:#FF0000" href="$1">$2</a>',"<strong>$1</strong>","<small>$1</small>");for(i=0;i<search.length;i++){A=A.replace(search[i],replace[i])}return A};SNSAutoFillForm.init=function(){var D=getElementsByClassName("autofillform");var B;var A;for(i=0;i<D.length;i++){if(D[i]!=null){var C=D[i].getElementsByTagName("input");for(j=0;j<C.length;j++){if(C[j].id.length>0){B=gup(C[j].id);if(B.length>0){A=C[j].maxLength;if(A!=null){B=B.substring(0,A)}C[j].value=B}}}}}};function fireEvent(B,C){if(document.createEventObject){var A=document.createEventObject();return B.fireEvent("on"+C,A)}else{var A=document.createEvent("HTMLEvents");A.initEvent(C,true,true);return !B.dispatchEvent(A)}}function limitText(B,A){if(B.value.length>A){B.value=B.value.substring(0,A)}}function disableEnterOnRadioButton(){var B=document.getElementsByTagName("input");for(i=0;i<B.length;i++){if(B[i].type=="radio"){B[i].onkeypress=function A(C){if(window.event&&window.event.keyCode==13){return false}else{if(C&&C.which==13){return false}else{return false}}}}}}Main.addEvent(window,"load",SNSBankExtra.init);Main.eventCache.add(window,"load",SNSBankExtra.init,false);
function validatechar(A){if(navigator.appName=="Microsoft Internet Explorer"){key=window.event.keyCode}else{key=A.which}if(((key>47)&&(key<58))||(key==0)||(key==8)||(key==13)){return(true)}else{return(false)}};
var selectedString="";function getSelectedHTML(){selectedString="";var A=undefined;if(window.getSelection){selobj=window.getSelection();if(!selobj.isCollapsed){if(selobj.getRangeAt){A=selobj.getRangeAt(0)}else{A=document.createRange();A.setStart(selobj.anchorNode,selobj.anchorOffset);A.setEnd(selobj.focusNode,selobj.focusOffset)}if(A){DOM=A.cloneContents();object=document.createElement("div");object.appendChild(DOM.cloneNode(true));selectedString=object.innerHTML}else{selectedString=selobj}}}else{if(document.selection){selobj=document.selection;A=selobj.createRange();if(A&&A.htmlText){selectedString=A.htmlText}else{if(A&&A.text){selectedString=A.text}}}else{if(document.getSelection){selectedString=document.getSelection()}}}selectedString=cleanSelectedString(selectedString)}function copyselected(){setTimeout("getSelectedHTML()",50);return true}document.onmouseup=copyselected;document.onkeyup=copyselected;function readspeaker(D,A){var C="";if(selectedString.length>0){D=D.replace("/cgi-bin/rsent?","/enterprise/rsent_wrapper.php?")}if(A&&A.indexOf("Expanding_Player")==-1){C=A}else{C="rs_div"}savelink=D;start_rs_table="<table style='border:1px solid #aeaeae; font-size: 10px;'><tr><td>";rs_embed="<object type='application/x-shockwave-flash' data='http://media.readspeaker.com/flash/readspeaker20.swf?mp3="+escape(D)+"&autoplay=1&rskin=bump&time_format=ms&text_play=Afspelen&text_pause=Pauze&text_stop=Stop&text_vol=Volume&ricon=0' style='height:20px; width:250px;'>";rs_embed+="<param name='movie' value='http://media.readspeaker.com/flash/readspeaker20.swf?mp3="+escape(D)+"&autoplay=1&rskin=bump&time_format=ms&text_play=Afspelen&text_pause=Pauze&text_stop=Stop&text_vol=Volume&ricon=0' />";rs_embed+="<param name='quality' value='high' />";rs_embed+="<param name='SCALE' value='exactfit' />";rs_embed+="<param name='wmode' value='transparent' />";rs_embed+="</object>";rs_downloadlink="<br /><a href='"+savelink+"'>Geen geluid?</a>";close_rs="<br /><a href='#' onclick='close_rs_div(\""+C+"\"); return false;'>Speler afsluiten</a>";end_rs_table="</td></tr></table>";var B=document.getElementById(C);if(B){B.innerHTML=start_rs_table+rs_embed+rs_downloadlink+close_rs+end_rs_table}}function close_rs_div(A){var B=document.getElementById(A);if(B){B.innerHTML=""}}function cleanSelectedString(G){var C=G.match(/<!--/gi);var A="";if(C!=undefined){for(i=0;i<C.length;i++){var A=G.substring(G.search(/<!--/gi),G.search(/-->/gi)+3);G=G.replace(A,"")}}var D=/(<\/?[A-Z]+[0-9]?)\s?[^>]*>/gi;G=G.replace(D,"$1>");var B=/<\/?[A-Z]+[0-9]?\s?>/gi;G=G.replace(B,function(H){return returnTags(H)});var F=/\s+?\s*/gi;G=G.replace(F," ");var E=/(<br>)+?\s?(<br>\s*)*/gi;G=G.replace(E,"<br>");return G}function returnTags(B){var A=/<\/?(h[1-6]|a|area|ul|ol|dl|dd|dt|li|table|td|tr|th|p|hr|br)>/i;if(A.test(B)){return B}else{return""}}var selectedString="";function getSelectedHTML(){selectedString="";var A=undefined;if(window.getSelection){selobj=window.getSelection();if(!selobj.isCollapsed){if(selobj.getRangeAt){A=selobj.getRangeAt(0)}else{A=document.createRange();A.setStart(selobj.anchorNode,selobj.anchorOffset);A.setEnd(selobj.focusNode,selobj.focusOffset)}if(A){DOM=A.cloneContents();object=document.createElement("div");object.appendChild(DOM.cloneNode(true));selectedString=object.innerHTML}else{selectedString=selobj}}}else{if(document.selection){selobj=document.selection;A=selobj.createRange();if(A&&A.htmlText){selectedString=A.htmlText}else{if(A&&A.text){selectedString=A.text}}}else{if(document.getSelection){selectedString=document.getSelection()}}}selectedString=cleanSelectedString(selectedString)}function copyselected(){setTimeout("getSelectedHTML()",50);return true}document.onmouseup=copyselected;document.onkeyup=copyselected;function readspeaker(D,A){var C="";if(selectedString.length>0){D=D.replace("/cgi-bin/rsent?","/enterprise/rsent_wrapper.php?")}if(A&&A.indexOf("Expanding_Player")==-1){C=A}else{C="rs_div"}savelink=D;start_rs_table='<table style=\'border:1px solid #aeaeae; font-size: 10px;\'><tr style="background:none;"><td style="padding:0px;font-size:0.85em;">';rs_embed="<object type='application/x-shockwave-flash' data='http://media.readspeaker.com/flash/readspeaker20.swf?mp3="+escape(D)+"&autoplay=1&rskin=bump&time_format=ms&text_play=Afspelen&text_pause=Pauze&text_stop=Stop&text_vol=Volume&ricon=0' style='height:20px; width:250px;'>";rs_embed+="<param name='movie' value='http://media.readspeaker.com/flash/readspeaker20.swf?mp3="+escape(D)+"&autoplay=1&rskin=bump&time_format=ms&text_play=Afspelen&text_pause=Pauze&text_stop=Stop&text_vol=Volume&ricon=0' />";rs_embed+="<param name='quality' value='high' />";rs_embed+="<param name='SCALE' value='exactfit' />";rs_embed+="<param name='wmode' value='transparent' />";rs_embed+="</object>";rs_downloadlink="<br /><a href='"+savelink+"'>Geen geluid?</a>";close_rs="<br /><a href='#' onclick='close_rs_div(\""+C+"\"); return false;'>Speler afsluiten</a>";end_rs_table="</td></tr></table>";var B=document.getElementById(C);if(B){B.innerHTML=start_rs_table+rs_embed+rs_downloadlink+close_rs+end_rs_table}}function close_rs_div(A){var B=document.getElementById(A);if(B){B.innerHTML=""}}function cleanSelectedString(G){var C=G.match(/<!--/gi);var A="";if(C!=undefined){for(i=0;i<C.length;i++){var A=G.substring(G.search(/<!--/gi),G.search(/-->/gi)+3);G=G.replace(A,"")}}var D=/(<\/?[A-Z]+[0-9]?)\s?[^>]*>/gi;G=G.replace(D,"$1>");var B=/<\/?[A-Z]+[0-9]?\s?>/gi;G=G.replace(B,function(H){return returnTags(H)});var F=/\s+?\s*/gi;G=G.replace(F," ");var E=/(<br>)+?\s?(<br>\s*)*/gi;G=G.replace(E,"<br>");return G}function returnTags(B){var A=/<\/?(h[1-6]|a|area|ul|ol|dl|dd|dt|li|table|td|tr|th|p|hr|br)>/i;if(A.test(B)){return B}else{return""}};

