/* .\wcm\system\csi\jquery.js */ 
(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(e,b){e=e||document;if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this}if(typeof e==="string"){var c=M.exec(e);if(c&&(c[1]||!b)){if(c[1]){e=T.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return T().find(e)}var d=T(a||[]);d.context=document;d.selector=e;return d}}else{return T(b).find(e)}}else{if(T.isFunction(e)){return T(document).ready(e)}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context}return this.setArray(T.isArray(e)?e:T.makeArray(e))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]},pushStack:function(c,a,d){var b=T(c);b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+d}else{if(a){b.selector=this.selector+"."+a+"("+d+")"}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return T.each(this,a,b)},index:function(a){return T.inArray(a&&a.jquery?a[0]:a,this)},attr:function(c,a,b){var d=c;if(typeof c==="string"){if(a===ab){return this[0]&&T[b||"attr"](this[0],c)}else{d={};d[c]=a}}return this.each(function(e){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,e,c))}})},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=ab}return this.attr(b,a,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a))}var b="";T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=T(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0])}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild}return c}).append(this)}return this},wrapInner:function(a){return this.each(function(){T(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){T(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);a.length=0;T.find(b,this[0],a);return a}else{return this.pushStack(T.unique(T.map(this,function(c){return T.find(b,c)})),"find",b)}},clone:function(b){var d=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var f=this.outerHTML;if(!f){var e=this.ownerDocument.createElement("div");e.appendChild(this.cloneNode(true));f=e.innerHTML}return T.clean([f.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find("*").andSelf(),c=0;d.find("*").andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return}var g=T.data(a[c],"events");for(var e in g){for(var f in g[e]){T.event.add(this,e,g[e][f],g[e][f].data)}}c++})}return d},filter:function(a){return this.pushStack(T.isFunction(a)&&T.grep(this,function(b,c){return a.call(b,c)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(c){var a=T.expr.match.POS.test(c)?T(c):null,b=0;return this.map(function(){var d=this;while(d&&d.ownerDocument){if(a?a.index(d)>-1:T(d).is(c)){T.data(d,"closest",b);return d}d=d.parentNode;b++}})},not:function(b){if(typeof b==="string"){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),"not",b)}else{b=T.multiFilter(b,this)}}var a=b.length&&b[b.length-1]!==ab&&!b.nodeType;return this.filter(function(){return a?T.inArray(this,b)<0:this!=b})},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a==="string"?T(a):T.makeArray(a))))},is:function(a){return !!a&&T.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(c){if(c===ab){var i=this[0];if(i){if(T.nodeName(i,"option")){return(i.attributes.value||{}).specified?i.value:i.text}if(T.nodeName(i,"select")){var e=i.selectedIndex,b=[],a=i.options,f=i.type=="select-one";if(e<0){return null}for(var h=f?e:0,d=f?e+1:a.length;h<d;h++){var g=a[h];if(g.selected){c=T(g).val();if(f){return c}b.push(c)}}return b}return(i.value||"").replace(/\r/g,"")}return ab}if(typeof c==="number"){c+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(c)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,c)>=0||T.inArray(this.name,c)>=0)
}else{if(T.nodeName(this,"select")){var j=T.makeArray(c);T("option",this).each(function(){this.selected=(T.inArray(this.value,j)>=0||T.inArray(this.text,j)>=0)});if(!j.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ab?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(T.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(d,a,b){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),h=T.clean(d,(this[0].ownerDocument||this[0]),e),f=e.firstChild;if(f){for(var g=0,i=this.length;g<i;g++){b.call(c(this[g],f),this.length>1||g>0?e.cloneNode(true):e)}}if(h){T.each(h,E)}}return this;function c(k,j){return a&&T.nodeName(k,"table")&&T.nodeName(j,"tr")?(k.getElementsByTagName("tbody")[0]||k.appendChild(k.ownerDocument.createElement("tbody"))):k}}};T.fn.init.prototype=T.fn;function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:"script"})}else{T.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var c=arguments[0]||{},e=1,d=arguments.length,h=false,f;if(typeof c==="boolean"){h=c;c=arguments[1]||{};e=2}if(typeof c!=="object"&&!T.isFunction(c)){c={}}if(d==e){c=this;--e}for(;e<d;e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];if(c===a){continue}if(h&&a&&typeof a==="object"&&!a.nodeType){c[g]=T.extend(h,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){c[g]=a}}}}}return c};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(a){W.$=S;if(a){W.jQuery=F}return T},isFunction:function(a){return L.call(a)==="[object Function]"},isArray:function(a){return L.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&T.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(T.support.scriptEval){c.appendChild(document.createTextNode(a))}else{c.text=a}b.insertBefore(c,b.firstChild);b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(e,a,f){var g,d=0,c=e.length;if(f){if(c===ab){for(g in e){if(a.apply(e[g],f)===false){break}}}else{for(;d<c;){if(a.apply(e[d++],f)===false){break}}}}else{if(c===ab){for(g in e){if(a.call(e[g],g,e[g])===false){break}}}else{for(var b=e[0];d<c&&a.call(b,d,b)!==false;b=e[++d]){}}}return e},prop:function(b,a,c,d,e){if(T.isFunction(a)){a=a.call(b,d)}return typeof a==="number"&&c=="curCSS"&&!ag.test(e)?a+"px":a},className:{add:function(b,a){T.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!T.className.has(b.className,c)){b.className+=(b.className?" ":"")+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(c){return !T.className.has(a,c)}).join(" "):""}},has:function(a,b){return a&&T.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c){b.style[d]=e[d]}},css:function(e,g,c,h){if(g=="width"||g=="height"){var a,f={position:"absolute",visibility:"hidden",display:"block"},b=g=="width"?["Left","Right"]:["Top","Bottom"];function d(){a=g=="width"?e.offsetWidth:e.offsetHeight;if(h==="border"){return}T.each(b,function(){if(!h){a-=parseFloat(T.curCSS(e,"padding"+this,true))||0}if(h==="margin"){a+=parseFloat(T.curCSS(e,"margin"+this,true))||0}else{a-=parseFloat(T.curCSS(e,"border"+this+"Width",true))||0}})}if(e.offsetWidth!==0){d()}else{T.swap(e,f,d)}return Math.max(0,Math.round(a))}return T.curCSS(e,g,c)},curCSS:function(e,h,g){var b,i=e.style;if(h=="opacity"&&!T.support.opacity){b=T.attr(i,"opacity");return b==""?"1":b}if(h.match(/float/i)){h=H}if(!g&&i&&i[h]){b=i[h]}else{if(Q.getComputedStyle){if(h.match(/float/i)){h="float"}h=h.replace(/([A-Z])/g,"-$1").toLowerCase();var a=Q.getComputedStyle(e,null);if(a){b=a.getPropertyValue(h)}if(h=="opacity"&&b==""){b="1"}}else{if(e.currentStyle){var d=h.replace(/\-(\w)/g,function(k,j){return j.toUpperCase()});b=e.currentStyle[h]||e.currentStyle[d];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var f=i.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;i.left=b||0;b=i.pixelLeft+"px";i.left=f;e.runtimeStyle.left=c}}}}return b},clean:function(g,b,d){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!d&&g.length===1&&typeof g[0]==="string"){var e=/^<(\w+)\s*\/?>$/.exec(g[0]);
if(e){return[b.createElement(e[1])]}}var f=[],h=[],a=b.createElement("div");T.each(g,function(l,i){if(typeof i==="number"){i+=""}if(!i){return}if(typeof i==="string"){i=i.replace(/(<(\w+)[^>]*?)\/>/g,function(q,p,r){return r.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?q:p+"></"+r+">"});var m=i.replace(/^\s+/,"").substring(0,10).toLowerCase();var k=!m.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!m.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||m.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!m.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!m.indexOf("<td")||!m.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!m.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=k[1]+i+k[2];while(k[0]--){a=a.lastChild}if(!T.support.tbody){var j=/<tbody/i.test(i),n=!m.indexOf("<table")&&!j?a.firstChild&&a.firstChild.childNodes:k[1]=="<table>"&&!j?a.childNodes:[];for(var o=n.length-1;o>=0;--o){if(T.nodeName(n[o],"tbody")&&!n[o].childNodes.length){n[o].parentNode.removeChild(n[o])}}}if(!T.support.leadingWhitespace&&/^\s/.test(i)){a.insertBefore(b.createTextNode(i.match(/^\s*/)[0]),a.firstChild)}i=T.makeArray(a.childNodes)}if(i.nodeType){f.push(i)}else{f=T.merge(f,i)}});if(d){for(var c=0;f[c];c++){if(T.nodeName(f[c],"script")&&(!f[c].type||f[c].type.toLowerCase()==="text/javascript")){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c])}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(T.makeArray(f[c].getElementsByTagName("script"))))}d.appendChild(f[c])}}return h}return f},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return ab}var e=!T.isXMLDoc(c),a=b!==ab;f=e&&T.props[f]||f;if(c.tagName){var g=/href|src|style/.test(f);if(f=="selected"&&c.parentNode){c.parentNode.selectedIndex}if(f in c&&e&&!g){if(a){if(f=="type"&&T.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed"}c[f]=b}if(T.nodeName(c,"form")&&c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue}if(f=="tabIndex"){var d=c.getAttributeNode("tabIndex");return d&&d.specified?d.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:ab}return c[f]}if(!T.support.style&&e&&f=="style"){return T.attr(c.style,"cssText",b)}if(a){c.setAttribute(f,""+b)}var h=!T.support.hrefNormalized&&e&&g?c.getAttribute(f,2):c.getAttribute(f);return h===null?ab:h}if(!T.support.opacity&&f=="opacity"){if(a){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}f=f.replace(/-([a-z])/ig,function(j,i){return i.toUpperCase()});if(a){c[f]=b}return c[f]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||T.isFunction(a)||a.setInterval){c[0]=a}else{while(b){c[--b]=a[b]}}}return c},inArray:function(b,a){for(var d=0,c=a.length;d<c;d++){if(a[d]===b){return d}}return -1},merge:function(b,e){var d=0,c,a=b.length;if(!T.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=e[d++])!=null){b[a++]=c}}return b},unique:function(a){var f=[],g={};try{for(var e=0,d=a.length;e<d;e++){var b=T.data(a[e]);if(!g[b]){g[b]=true;f.push(a[e])}}}catch(c){f=a}return f},grep:function(e,a,f){var d=[];for(var c=0,b=e.length;c<b;c++){if(!f!=!a(e[c],c)){d.push(e[c])}}return d},map:function(f,a){var e=[];for(var d=0,c=f.length;d<c;d++){var b=a(f[d],d);if(b!=null){e[e.length]=b}}return e.concat.apply([],e)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(a){return a.parentNode},parents:function(a){return T.dir(a,"parentNode")},next:function(a){return T.nth(a,2,"nextSibling")},prev:function(a){return T.nth(a,2,"previousSibling")},nextAll:function(a){return T.dir(a,"nextSibling")},prevAll:function(a){return T.dir(a,"previousSibling")},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)},children:function(a){return T.sibling(a.firstChild)},contents:function(a){return T.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)}},function(b,a){T.fn[b]=function(d){var c=T.map(this,a);if(d&&typeof d=="string"){c=T.multiFilter(d,c)}return this.pushStack(T.unique(c),b,d)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){T.fn[b]=function(h){var e=[],c=T(h);for(var d=0,g=c.length;d<g;d++){var f=(d>0?this.clone(true):this).get();T.fn[a].apply(T(c[d]),f);e=e.concat(f)}return this.pushStack(e,b,h)}});
T.each({removeAttr:function(a){T.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){T.className.add(this,a)},removeClass:function(a){T.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!T.className.has(this,a)}T.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||T.filter(a,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)}});function Y(b,a){return b[0]&&parseInt(T.curCSS(b[0],a,true),10)||0}var aa="jQuery"+ad(),I=0,R={};T.extend({cache:{},data:function(c,d,b){c=c==W?R:c;var a=c[aa];if(!a){a=c[aa]=++I}if(d&&!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][d]=b}return d?T.cache[a][d]:a},removeData:function(c,d){c=c==W?R:c;var a=c[aa];if(d){if(T.cache[a]){delete T.cache[a][d];d="";for(d in T.cache[a]){break}if(!d){T.removeData(c)}}}else{try{delete c[aa]}catch(b){if(c.removeAttribute){c.removeAttribute(aa)}}delete T.cache[a]}},queue:function(c,d,a){if(c){d=(d||"fx")+"queue";var b=T.data(c,d);if(!b||T.isArray(a)){b=T.data(c,d,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var d=T.queue(a,b),c=d.shift();if(!b||b==="fx"){c=d[0]}if(c!==ab){c.call(a)}}});T.fn.extend({data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(b===ab){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===ab&&this.length){c=T.data(this[0],d)}return c===ab&&a[1]?this.data(a[0]):c}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){T.data(this,d,b)})}},removeData:function(a){return this.each(function(){T.removeData(this,a)})},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx"}if(a===ab){return T.queue(this[0],b)}return this.each(function(){var c=T.queue(this,b,a);if(b=="fx"&&c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,h=0,l=Object.prototype.toString;var n=function(r,v,ai,D){ai=ai||[];v=v||document;if(v.nodeType!==1&&v.nodeType!==9){return[]}if(!r||typeof r!=="string"){return ai}var q=[],t,A,x,w,C,u,s=true;b.lastIndex=0;while((t=b.exec(r))!==null){q.push(t[1]);if(t[2]){u=RegExp.rightContext;break}}if(q.length>1&&g.exec(r)){if(q.length===2&&k.relative[q[0]]){A=j(q[0]+q[1],v)}else{A=k.relative[q[0]]?[v]:n(q.shift(),v);while(q.length){r=q.shift();if(k.relative[r]){r+=q.shift()}A=j(r,A)}}}else{var B=D?{expr:q.pop(),set:o(D)}:n.find(q.pop(),q.length===1&&v.parentNode?v.parentNode:v,c(v));A=n.filter(B.expr,B.set);if(q.length>0){x=o(A)}else{s=false}while(q.length){var y=q.pop(),z=y;if(!k.relative[y]){y=""}else{z=q.pop()}if(z==null){z=v}k.relative[y](x,z,c(v))}}if(!x){x=A}if(!x){throw"Syntax error, unrecognized expression: "+(y||r)}if(l.call(x)==="[object Array]"){if(!s){ai.push.apply(ai,x)}else{if(v.nodeType===1){for(var p=0;x[p]!=null;p++){if(x[p]&&(x[p]===true||x[p].nodeType===1&&i(v,x[p]))){ai.push(A[p])}}}else{for(var p=0;x[p]!=null;p++){if(x[p]&&x[p].nodeType===1){ai.push(A[p])}}}}}else{o(x,ai)}if(u){n(u,v,ai,D);if(m){hasDuplicate=false;ai.sort(m);if(hasDuplicate){for(var p=1;p<ai.length;p++){if(ai[p]===ai[p-1]){ai.splice(p--,1)}}}}}return ai};n.matches=function(q,p){return n(q,null,null,p)};n.find=function(p,w,x){var q,s;if(!p){return[]}for(var t=0,u=k.order.length;t<u;t++){var r=k.order[t],s;if((s=k.match[r].exec(p))){var v=RegExp.leftContext;if(v.substr(v.length-1)!=="\\"){s[1]=(s[1]||"").replace(/\\/g,"");q=k.find[r](s,w,x);if(q!=null){p=p.replace(k.match[r],"");break}}}}if(!q){q=w.getElementsByTagName("*")}return{set:q,expr:p}};n.filter=function(C,D,z,t){var u=C,x=[],p=D,r,w,q=D&&D[0]&&c(D[0]);while(C&&D.length){for(var ai in k.filter){if((r=k.match[ai].exec(C))!=null){var v=k.filter[ai],y,A;w=false;if(p==x){x=[]}if(k.preFilter[ai]){r=k.preFilter[ai](r,p,z,x,t,q);if(!r){w=y=true}else{if(r===true){continue}}}if(r){for(var s=0;(A=p[s])!=null;s++){if(A){y=v(A,r,s,p);var B=t^!!y;if(z&&y!=null){if(B){w=true}else{p[s]=false}}else{if(B){x.push(A);w=true}}}}}if(y!==ab){if(!z){p=x}C=C.replace(k.match[ai],"");if(!w){return[]}break}}}if(C==u){if(w==null){throw"Syntax error, unrecognized expression: "+C}else{break}}u=C}return p};var k=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(p){return p.getAttribute("href")
}},relative:{"+":function(p,w,q){var s=typeof w==="string",x=s&&!/\W/.test(w),r=s&&!x;if(x&&!q){w=w.toUpperCase()}for(var t=0,u=p.length,v;t<u;t++){if((v=p[t])){while((v=v.previousSibling)&&v.nodeType!==1){}p[t]=r||v&&v.nodeName===w?v||false:v===w}}if(r){n.filter(w,p,true)}},">":function(u,r,t){var w=typeof r==="string";if(w&&!/\W/.test(r)){r=t?r:r.toUpperCase();for(var q=0,s=u.length;q<s;q++){var v=u[q];if(v){var p=v.parentNode;u[q]=p.nodeName===r?p:false}}}else{for(var q=0,s=u.length;q<s;q++){var v=u[q];if(v){u[q]=w?v.parentNode:v.parentNode===r}}if(w){n.filter(r,u,true)}}},"":function(p,r,t){var q=h++,s=a;if(!r.match(/\W/)){var u=r=t?r:r.toUpperCase();s=d}s("parentNode",r,q,p,u,t)},"~":function(p,r,t){var q=h++,s=a;if(typeof r==="string"&&!r.match(/\W/)){var u=r=t?r:r.toUpperCase();s=d}s("previousSibling",r,q,p,u,t)}},find:{ID:function(r,q,p){if(typeof q.getElementById!=="undefined"&&!p){var s=q.getElementById(r[1]);return s?[s]:[]}},NAME:function(q,u,t){if(typeof u.getElementsByName!=="undefined"){var r=[],v=u.getElementsByName(q[1]);for(var p=0,s=v.length;p<s;p++){if(v[p].getAttribute("name")===q[1]){r.push(v[p])}}return r.length===0?null:r}},TAG:function(q,p){return p.getElementsByTagName(q[1])}},preFilter:{CLASS:function(p,r,q,s,u,t){p=" "+p[1].replace(/\\/g,"")+" ";if(t){return p}for(var w=0,v;(v=r[w])!=null;w++){if(v){if(u^(v.className&&(" "+v.className+" ").indexOf(p)>=0)){if(!q){s.push(v)}}else{if(q){r[w]=false}}}}return false},ID:function(p){return p[1].replace(/\\/g,"")},TAG:function(q,r){for(var p=0;r[p]===false;p++){}return r[p]&&c(r[p])?q[1]:q[1].toUpperCase()},CHILD:function(q){if(q[1]=="nth"){var p=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(q[2]=="even"&&"2n"||q[2]=="odd"&&"2n+1"||!/\D/.test(q[2])&&"0n+"+q[2]||q[2]);q[2]=(p[1]+(p[2]||1))-0;q[3]=p[3]-0}q[0]=h++;return q},ATTR:function(v,r,q,s,u,t){var p=v[1].replace(/\\/g,"");if(!t&&k.attrMap[p]){v[1]=k.attrMap[p]}if(v[2]==="~="){v[4]=" "+v[4]+" "}return v},PSEUDO:function(u,r,q,s,t){if(u[1]==="not"){if(u[3].match(b).length>1||/^\w/.test(u[3])){u[3]=n(u[3],null,null,r)}else{var p=n.filter(u[3],r,q,true^t);if(!q){s.push.apply(s,p)}return false}}else{if(k.match.POS.test(u[0])||k.match.CHILD.test(u[0])){return true}}return u},POS:function(p){p.unshift(true);return p}},filters:{enabled:function(p){return p.disabled===false&&p.type!=="hidden"},disabled:function(p){return p.disabled===true},checked:function(p){return p.checked===true},selected:function(p){p.parentNode.selectedIndex;return p.selected===true},parent:function(p){return !!p.firstChild},empty:function(p){return !p.firstChild},has:function(p,q,r){return !!n(r[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){return"text"===p.type},radio:function(p){return"radio"===p.type},checkbox:function(p){return"checkbox"===p.type},file:function(p){return"file"===p.type},password:function(p){return"password"===p.type},submit:function(p){return"submit"===p.type},image:function(p){return"image"===p.type},reset:function(p){return"reset"===p.type},button:function(p){return"button"===p.type||p.nodeName.toUpperCase()==="BUTTON"},input:function(p){return/input|select|textarea|button/i.test(p.nodeName)}},setFilters:{first:function(p,q){return q===0},last:function(q,r,s,p){return r===p.length-1},even:function(p,q){return q%2===0},odd:function(p,q){return q%2===1},lt:function(p,q,r){return q<r[3]-0},gt:function(p,q,r){return q>r[3]-0},nth:function(p,q,r){return r[3]-0==q},eq:function(p,q,r){return r[3]-0==q}},filter:{PSEUDO:function(u,q,p,t){var r=q[1],w=k.filters[r];if(w){return w(u,p,q,t)}else{if(r==="contains"){return(u.textContent||u.innerText||"").indexOf(q[3])>=0}else{if(r==="not"){var v=q[3];for(var p=0,s=v.length;p<s;p++){if(v[p]===u){return false}}return true}}}},CHILD:function(w,t){var q=t[1],v=w;switch(q){case"only":case"first":while(v=v.previousSibling){if(v.nodeType===1){return false}}if(q=="first"){return true}v=w;case"last":while(v=v.nextSibling){if(v.nodeType===1){return false}}return true;case"nth":var u=t[2],x=t[3];if(u==1&&x==0){return true}var r=t[0],y=w.parentNode;if(y&&(y.sizcache!==r||!w.nodeIndex)){var s=0;for(v=y.firstChild;v;v=v.nextSibling){if(v.nodeType===1){v.nodeIndex=++s}}y.sizcache=r}var p=w.nodeIndex-x;if(u==0){return p==0}else{return(p%u==0&&p/u>=0)}}},ID:function(p,q){return p.nodeType===1&&p.getAttribute("id")===q},TAG:function(p,q){return(q==="*"&&p.nodeType===1)||p.nodeName===q},CLASS:function(p,q){return(" "+(p.className||p.getAttribute("class"))+" ").indexOf(q)>-1},ATTR:function(u,p){var q=p[1],s=k.attrHandle[q]?k.attrHandle[q](u):u[q]!=null?u[q]:u.getAttribute(q),t=s+"",v=p[2],r=p[4];return s==null?v==="!=":v==="="?t===r:v==="*="?t.indexOf(r)>=0:v==="~="?(" "+t+" ").indexOf(r)>=0:!r?t&&s!==false:v==="!="?t!=r:v==="^="?t.indexOf(r)===0:v==="$="?t.substr(t.length-r.length)===r:v==="|="?t===r||t.substr(0,r.length+1)===r+"-":false},POS:function(u,r,q,t){var s=r[2],p=k.setFilters[s];if(p){return p(u,q,r,t)}}}};var g=k.match.POS;for(var e in k.match){k.match[e]=RegExp(k.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)
}var o=function(p,q){p=Array.prototype.slice.call(p);if(q){q.push.apply(q,p);return q}return p};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(f){o=function(t,p){var r=p||[];if(l.call(t)==="[object Array]"){Array.prototype.push.apply(r,t)}else{if(typeof t.length==="number"){for(var q=0,s=t.length;q<s;q++){r.push(t[q])}}else{for(var q=0;t[q];q++){r.push(t[q])}}}return r}}var m;if(document.documentElement.compareDocumentPosition){m=function(q,r){var p=q.compareDocumentPosition(r)&4?-1:q===r?0:1;if(p===0){hasDuplicate=true}return p}}else{if("sourceIndex" in document.documentElement){m=function(q,r){var p=q.sourceIndex-r.sourceIndex;if(p===0){hasDuplicate=true}return p}}else{if(document.createRange){m=function(p,r){var q=p.ownerDocument.createRange(),s=r.ownerDocument.createRange();q.selectNode(p);q.collapse(true);s.selectNode(r);s.collapse(true);var t=q.compareBoundaryPoints(Range.START_TO_END,s);if(t===0){hasDuplicate=true}return t}}}}(function(){var q=document.createElement("form"),p="script"+(new Date).getTime();q.innerHTML="<input name='"+p+"'/>";var r=document.documentElement;r.insertBefore(q,r.firstChild);if(!!document.getElementById(p)){k.find.ID=function(v,u,t){if(typeof u.getElementById!=="undefined"&&!t){var s=u.getElementById(v[1]);return s?s.id===v[1]||typeof s.getAttributeNode!=="undefined"&&s.getAttributeNode("id").nodeValue===v[1]?[s]:ab:[]}};k.filter.ID=function(t,s){var u=typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id");return t.nodeType===1&&u&&u.nodeValue===s}}r.removeChild(q)})();(function(){var p=document.createElement("div");p.appendChild(document.createComment(""));if(p.getElementsByTagName("*").length>0){k.find.TAG=function(s,t){var u=t.getElementsByTagName(s[1]);if(s[1]==="*"){var q=[];for(var r=0;u[r];r++){if(u[r].nodeType===1){q.push(u[r])}}u=q}return u}}p.innerHTML="<a href='#'></a>";if(p.firstChild&&typeof p.firstChild.getAttribute!=="undefined"&&p.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(q){return q.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var q=n,p=document.createElement("div");p.innerHTML="<p class='TEST'></p>";if(p.querySelectorAll&&p.querySelectorAll(".TEST").length===0){return}n=function(u,v,s,r){v=v||document;if(!r&&v.nodeType===9&&!c(v)){try{return o(v.querySelectorAll(u),s)}catch(t){}}return q(u,v,s,r)};n.find=q.find;n.filter=q.filter;n.selectors=q.selectors;n.matches=q.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var p=document.createElement("div");p.innerHTML="<div class='test e'></div><div class='test'></div>";if(p.getElementsByClassName("e").length===0){return}p.lastChild.className="e";if(p.getElementsByClassName("e").length===1){return}k.order.splice(1,0,"CLASS");k.find.CLASS=function(s,r,q){if(typeof r.getElementsByClassName!=="undefined"&&!q){return r.getElementsByClassName(s[1])}}})()}function d(v,q,r,x,p,y){var z=v=="previousSibling"&&!y;for(var t=0,u=x.length;t<u;t++){var w=x[t];if(w){if(z&&w.nodeType===1){w.sizcache=r;w.sizset=t}w=w[v];var s=false;while(w){if(w.sizcache===r){s=x[w.sizset];break}if(w.nodeType===1&&!y){w.sizcache=r;w.sizset=t}if(w.nodeName===q){s=w;break}w=w[v]}x[t]=s}}}function a(v,q,r,x,p,y){var z=v=="previousSibling"&&!y;for(var t=0,u=x.length;t<u;t++){var w=x[t];if(w){if(z&&w.nodeType===1){w.sizcache=r;w.sizset=t}w=w[v];var s=false;while(w){if(w.sizcache===r){s=x[w.sizset];break}if(w.nodeType===1){if(!y){w.sizcache=r;w.sizset=t}if(typeof q!=="string"){if(w===q){s=true;break}}else{if(n.filter(q,[w]).length>0){s=w;break}}}w=w[v]}x[t]=s}}}var i=document.compareDocumentPosition?function(p,q){return p.compareDocumentPosition(q)&16}:function(p,q){return p!==q&&(p.contains?p.contains(q):true)};var c=function(p){return p.nodeType===9&&p.documentElement.nodeName!=="HTML"||!!p.ownerDocument&&c(p.ownerDocument)};var j=function(s,u){var p=[],w="",v,q=u.nodeType?[u]:u;while((v=k.match.PSEUDO.exec(s))){w+=v[0];s=s.replace(k.match.PSEUDO,"")}s=k.relative[s]?s+"*":s;for(var t=0,r=q.length;t<r;t++){n(s,q[t],p)}return n.filter(w,p)};T.find=n;T.filter=n.filter;T.expr=n.selectors;T.expr[":"]=T.expr.filters;n.selectors.filters.hidden=function(p){return p.offsetWidth===0||p.offsetHeight===0};n.selectors.filters.visible=function(p){return p.offsetWidth>0||p.offsetHeight>0};n.selectors.filters.animated=function(p){return T.grep(T.timers,function(q){return p===q.elem}).length};T.multiFilter=function(p,r,q){if(q){p=":not("+p+")"}return n.matches(p,r)};T.dir=function(q,r){var s=[],p=q[r];while(p&&p!=document){if(p.nodeType==1){s.push(p)}p=p[r]}return s};T.nth=function(t,s,q,p){s=s||1;var r=0;for(;t;t=t[q]){if(t.nodeType==1&&++r==s){break}}return t};T.sibling=function(p,q){var r=[];for(;p;p=p.nextSibling){if(p.nodeType==1&&p!=q){r.push(p)}}return r};return;W.Sizzle=n})();T.event={add:function(c,f,d,a){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&&c!=W){c=W}if(!d.guid){d.guid=this.guid++}if(a!==ab){var e=d;
d=this.proxy(e);d.data=a}var g=T.data(c,"events")||T.data(c,"events",{}),b=T.data(c,"handle")||T.data(c,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=c;T.each(f.split(/\s+/),function(k,j){var i=j.split(".");j=i.shift();d.type=i.slice().sort().join(".");var h=g[j];if(T.event.specialAll[j]){T.event.specialAll[j].setup.call(c,a,i)}if(!h){h=g[j]={};if(!T.event.special[j]||T.event.special[j].setup.call(c,a,i)===false){if(c.addEventListener){c.addEventListener(j,b,false)}else{if(c.attachEvent){c.attachEvent("on"+j,b)}}}}h[d.guid]=d;T.event.global[j]=true});c=null},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return}var f=T.data(b,"events"),g,h;if(f){if(e===ab||(typeof e==="string"&&e.charAt(0)==".")){for(var d in f){this.remove(b,d+(e||""))}}else{if(e.type){c=e.handler;e=e.type}T.each(e.split(/\s+/),function(m,k){var i=k.split(".");k=i.shift();var l=RegExp("(^|\\.)"+i.slice().sort().join(".*\\.")+"(\\.|$)");if(f[k]){if(c){delete f[k][c.guid]}else{for(var j in f[k]){if(l.test(f[k][j].type)){delete f[k][j]}}}if(T.event.specialAll[k]){T.event.specialAll[k].teardown.call(b,i)}for(g in f[k]){break}if(!g){if(!T.event.special[k]||T.event.special[k].teardown.call(b,i)===false){if(b.removeEventListener){b.removeEventListener(k,T.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+k,T.data(b,"handle"))}}}g=null;delete f[k]}}})}for(g in f){break}if(!g){var a=T.data(b,"handle");if(a){a.elem=null}T.removeData(b,"events");T.removeData(b,"handle")}}},trigger:function(d,b,e,h){var f=d.type||d;if(!h){d=typeof d==="object"?d[aa]?d:T.extend(T.Event(f),d):T.Event(f);if(f.indexOf("!")>=0){d.type=f=f.slice(0,-1);d.exclusive=true}if(!e){d.stopPropagation();if(this.global[f]){T.each(T.cache,function(){if(this.events&&this.events[f]){T.event.trigger(d,b,this.handle.elem)}})}}if(!e||e.nodeType==3||e.nodeType==8){return ab}d.result=ab;d.target=e;b=T.makeArray(b);b.unshift(d)}d.currentTarget=e;var c=T.data(e,"handle");if(c){c.apply(e,b)}if((!e[f]||(T.nodeName(e,"a")&&f=="click"))&&e["on"+f]&&e["on"+f].apply(e,b)===false){d.result=false}if(!h&&e[f]&&!d.isDefaultPrevented()&&!(T.nodeName(e,"a")&&f=="click")){this.triggered=true;try{e[f]()}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;if(g){T.event.trigger(d,b,g,true)}}},handle:function(b){var c,h;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();c=!a.length&&!b.exclusive;var d=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");h=(T.data(this,"events")||{})[b.type];for(var f in h){var e=h[f];if(c||d.test(e.type)){b.handler=e;b.data=e.data;var g=e.apply(this,arguments);if(g!==ab){b.result=g;if(g===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[aa]){return c}var e=c;c=T.Event(e);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=e[a]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){var b=document.documentElement,f=document.body;c.pageX=c.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&&b.scrollTop||f&&f.scrollTop||0)-(b.clientTop||0)}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)))}return c},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)},teardown:function(a){if(a.length){var c=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(b.test(this.type)){c++}});if(c<1){T.event.remove(this,a[0],af)}}}}}};T.Event=function(a){if(!this.preventDefault){return new T.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;
this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(b){var c=b.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(a){c=this}}if(c!=this){b.type=b.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)},teardown:function(){T.event.remove(this,a,ah)}}});T.fn.extend({bind:function(b,a,c){return b=="unload"?this.one(b,a,c):this.each(function(){T.event.add(this,b,c||a,c&&a)})},one:function(b,a,c){var d=T.event.proxy(c||a,function(e){T(this).unbind(e,d);return(c||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,d,c&&a)})},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)})},triggerHandler:function(c,a){if(this[0]){var b=T.Event(c);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var c=arguments,b=1;while(b<c.length){T.event.proxy(a,c[b++])}return this.click(T.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){P();if(T.isReady){a.call(document,T)}else{T.readyList.push(a)}return this},live:function(a,b){var c=T.event.proxy(b);c.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,c);return this},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function af(a){var d=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,c=[];T.each(T.data(this,"events").live||[],function(g,f){if(d.test(f.type)){var e=T(a.target).closest(f.data)[0];if(e){c.push({elem:e,fn:f})}}});c.sort(function(e,f){return T.data(e.elem,"closest")-T.data(f.elem,"closest")});T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function Z(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,"load",T.ready)}T.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(a,b){T.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});T(W).bind("unload",function(){for(var a in T.cache){if(a!=1&&T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)}}});(function(){T.support={};var f=document.documentElement,e=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();a.style.display="none";a.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var d=a.getElementsByTagName("*"),g=a.getElementsByTagName("a")[0];if(!d||!d.length||!g){return}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(g.getAttribute("style")),hrefNormalized:g.getAttribute("href")==="/a",opacity:g.style.opacity==="0.5",cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};e.type="text/javascript";try{e.appendChild(document.createTextNode("window."+b+"=1;"))}catch(c){}f.insertBefore(e,f.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}f.removeChild(e);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){T.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee)});a.cloneNode(true).fireEvent("onclick")}T(function(){var h=document.createElement("div");h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);T.boxModel=T.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};
T.fn.extend({_load:T.fn.load,load:function(e,b,a){if(typeof e!=="string"){return this._load(e)}var c=e.indexOf(" ");if(c>=0){var g=e.slice(c,e.length);e=e.slice(0,c)}var d="GET";if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b==="object"){b=T.param(b);d="POST"}}}var f=this;T.ajax({url:e,type:d,dataType:"html",data:b,complete:function(i,h){if(h=="success"||h=="notmodified"){f.html(g?T("<div/>").append(i.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):i.responseText)}if(a){f.each(a,[i.responseText,h,i])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(c,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(d,e){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){T.fn[a]=function(c){return this.bind(a,c)}});var N=ad();T.extend({get:function(d,b,a,c){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:"GET",url:d,data:b,success:a,dataType:c})},getScript:function(b,a){return T.get(b,null,a,"script")},getJSON:function(c,b,a){return T.get(c,b,a,"json")},post:function(d,b,a,c){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:"POST",url:d,data:b,success:a,dataType:c})},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(k){k=T.extend(true,k,T.extend(true,{},T.ajaxSettings,k));var a,r=/=\?(&|$)/g,f,b,q=k.type.toUpperCase();if(k.data&&k.processData&&typeof k.data!=="string"){k.data=T.param(k.data)}if(k.dataType=="jsonp"){if(q=="GET"){if(!k.url.match(r)){k.url+=(k.url.match(/\?/)?"&":"?")+(k.jsonp||"callback")+"=?"}}else{if(!k.data||!k.data.match(r)){k.data=(k.data?k.data+"&":"")+(k.jsonp||"callback")+"=?"}}k.dataType="json"}if(k.dataType=="json"&&(k.data&&k.data.match(r)||k.url.match(r))){a="jsonp"+N++;if(k.data){k.data=(k.data+"").replace(r,"="+a+"$1")}k.url=k.url.replace(r,"="+a+"$1");k.dataType="script";W[a]=function(u){b=u;o();l();W[a]=ab;try{delete W[a]}catch(t){}if(p){p.removeChild(d)}}}if(k.dataType=="script"&&k.cache==null){k.cache=false}if(k.cache===false&&q=="GET"){var s=ad();var c=k.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+s+"$2");k.url=c+((c==k.url)?(k.url.match(/\?/)?"&":"?")+"_="+s:"")}if(k.data&&q=="GET"){k.url+=(k.url.match(/\?/)?"&":"?")+k.data;k.data=null}if(k.global&&!T.active++){T.event.trigger("ajaxStart")}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(k.url);if(k.dataType=="script"&&q=="GET"&&g&&(g[1]&&g[1]!=location.protocol||g[2]!=location.host)){var p=document.getElementsByTagName("head")[0];var d=document.createElement("script");d.src=k.url;if(k.scriptCharset){d.charset=k.scriptCharset}if(!a){var i=false;d.onload=d.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;o();l();d.onload=d.onreadystatechange=null;p.removeChild(d)}}}p.appendChild(d);return ab}var m=false;var n=k.xhr();if(k.username){n.open(q,k.url,k.async,k.username,k.password)}else{n.open(q,k.url,k.async)}try{if(k.data){n.setRequestHeader("Content-Type",k.contentType)}if(k.ifModified){n.setRequestHeader("If-Modified-Since",T.lastModified[k.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}n.setRequestHeader("X-Requested-With","XMLHttpRequest");n.setRequestHeader("Accept",k.dataType&&k.accepts[k.dataType]?k.accepts[k.dataType]+", */*":k.accepts._default)}catch(e){}if(k.beforeSend&&k.beforeSend(n,k)===false){if(k.global&&!--T.active){T.event.trigger("ajaxStop")}n.abort();return false}if(k.global){T.event.trigger("ajaxSend",[n,k])}var j=function(v){if(n.readyState==0){if(h){clearInterval(h);h=null;if(k.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!m&&n&&(n.readyState==4||v=="timeout")){m=true;if(h){clearInterval(h);h=null}f=v=="timeout"?"timeout":!T.httpSuccess(n)?"error":k.ifModified&&T.httpNotModified(n,k.url)?"notmodified":"success";if(f=="success"){try{b=T.httpData(n,k.dataType,k)}catch(t){f="parsererror"}}if(f=="success"){var u;try{u=n.getResponseHeader("Last-Modified")}catch(t){}if(k.ifModified&&u){T.lastModified[k.url]=u}if(!a){o()}}else{T.handleError(k,n,f)}l();if(v){n.abort()}if(k.async){n=null}}}};if(k.async){var h=setInterval(j,13);if(k.timeout>0){setTimeout(function(){if(n&&!m){j("timeout")}},k.timeout)}}try{n.send(k.data)}catch(e){T.handleError(k,n,null,e)}if(!k.async){j()}function o(){if(k.success){k.success(b,f)
}if(k.global){T.event.trigger("ajaxSuccess",[n,k])}}function l(){if(k.complete){k.complete(n,f)}if(k.global){T.event.trigger("ajaxComplete",[n,k])}if(k.global&&!--T.active){T.event.trigger("ajaxStop")}}return n},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b)}if(c.global){T.event.trigger("ajaxError",[a,c,b])}},active:0,httpSuccess:function(a){try{return !a.status&&location.protocol=="file:"||(a.status>=200&&a.status<300)||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(b,d){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==T.lastModified[d]}catch(c){}return false},httpData:function(a,c,d){var e=a.getResponseHeader("content-type"),f=c=="xml"||!c&&e&&e.indexOf("xml")>=0,b=f?a.responseXML:a.responseText;if(f&&b.documentElement.tagName=="parsererror"){throw"parsererror"}if(d&&d.dataFilter){b=d.dataFilter(b,c)}if(typeof b==="string"){if(c=="script"){T.globalEval(b)}if(c=="json"){b=W["eval"]("("+b+")")}}return b},param:function(d){var b=[];function a(f,e){b[b.length]=encodeURIComponent(f)+"="+encodeURIComponent(e)}if(T.isArray(d)||d.jquery){T.each(d,function(){a(this.name,this.value)})}else{for(var c in d){if(T.isArray(d[c])){T.each(d[c],function(){a(c,this)})}else{a(c,T.isFunction(d[c])?d[c]():d[c])}}}return b.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(b,c){var a={};T.each(ae.concat.apply([],ae.slice(0,c)),function(){a[this]=b});return a}T.fn.extend({show:function(c,a){if(c){return this.animate(K("show",3),c,a)}else{for(var e=0,g=this.length;e<g;e++){var h=T.data(this[e],"olddisplay");this[e].style.display=h||"";if(T.css(this[e],"display")==="none"){var f=this[e].tagName,b;if(V[f]){b=V[f]}else{var d=T("<"+f+" />").appendTo("body");b=d.css("display");if(b==="none"){b="block"}d.remove();V[f]=b}T.data(this[e],"olddisplay",b)}}for(var e=0,g=this.length;e<g;e++){this[e].style.display=T.data(this[e],"olddisplay")||""}return this}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a)}else{for(var c=0,d=this.length;c<d;c++){var e=T.data(this[c],"olddisplay");if(!e&&e!=="none"){T.data(this[c],"olddisplay",T.css(this[c],"display"))}}for(var c=0,d=this.length;c<d;c++){this[c].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var c=typeof a==="boolean";return T.isFunction(a)&&T.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:T(this).is(":hidden");T(this)[d?"show":"hide"]()}):this.animate(K("toggle",3),a,b)},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(a,d,b,c){var e=T.speed(d,b,c);return this[e.queue===false?"each":"queue"](function(){var g=T.extend({},e),i,f=this.nodeType==1&&T(this).is(":hidden"),h=this;for(i in a){if(a[i]=="hide"&&f||a[i]=="show"&&!f){return g.complete.call(this)}if((i=="height"||i=="width")&&this.style){g.display=T.css(this,"display");g.overflow=this.style.overflow}}if(g.overflow!=null){this.style.overflow="hidden"}g.curAnim=T.extend({},a);T.each(a,function(o,k){var l=new T.fx(h,g,o);if(/toggle|show|hide/.test(k)){l[k=="toggle"?f?"show":"hide":k](a)}else{var m=k.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),j=l.cur(true)||0;if(m){var p=parseFloat(m[2]),n=m[3]||"px";if(n!="px"){h.style[o]=(p||1)+n;j=((p||1)/l.cur(true))*j;h.style[o]=j+n}if(m[1]){p=((m[1]=="-="?-1:1)*p)+j}l.custom(j,p,n)}else{l.custom(j,k,"")}}});return true})},stop:function(b,c){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var d=a.length-1;d>=0;d--){if(a[d].elem==this){if(c){a[d](true)}a.splice(d,1)}}});if(!c){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){T.fn[b]=function(d,c){return this.animate(a,d,c)}});T.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||T.isFunction(b)&&b,duration:b,easing:c&&a||a&&!T.isFunction(a)&&a};d.duration=T.fx.off?0:typeof d.duration==="number"?d.duration:T.fx.speeds[d.duration]||T.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){T(this).dequeue()}if(T.isFunction(d.old)){d.old.call(this)}};return d},easing:{linear:function(b,a,d,c){return d+c*b},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d}},timers:[],fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var b=parseFloat(T.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(a,b,c){this.startTime=ad();
this.start=a;this.end=b;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function d(f){return e.step(f)}d.elem=this.elem;if(d()&&T.timers.push(d)&&!U){U=setInterval(function(){var f=T.timers;for(var g=0;g<f.length;g++){if(!f[g]()){f.splice(g--,1)}}if(!f.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var d=ad();if(c||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var f=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=d-this.startTime;this.state=a/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit}else{a.elem[a.prop]=a.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||T.boxModel&&h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||T.boxModel&&h.scrollLeft||g.scrollLeft)-b;return{top:d,left:e}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var f=this[0],i=f.offsetParent,j=f,a=f.ownerDocument,c,h=a.documentElement,e=a.body,d=a.defaultView,k=d.getComputedStyle(f,null),b=f.offsetTop,g=f.offsetLeft;while((f=f.parentNode)&&f!==e&&f!==h){c=d.getComputedStyle(f,null);b-=f.scrollTop,g-=f.scrollLeft;if(f===i){b+=f.offsetTop,g+=f.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}j=i,i=f.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}k=c}if(k.position==="relative"||k.position==="static"){b+=e.offsetTop,g+=e.offsetLeft}if(k.position==="fixed"){b+=Math.max(h.scrollTop,e.scrollTop),g+=Math.max(h.scrollLeft,e.scrollLeft)}return{top:b,left:g}}}T.offset={initialize:function(){if(this.initialized){return}var c=document.body,i=document.createElement("div"),g,h,a,f,b,j,e=c.style.marginTop,d='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';b={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(j in b){i.style[j]=b[j]}i.innerHTML=d;c.insertBefore(i,c.firstChild);g=i.firstChild,h=g.firstChild,f=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(f.offsetTop===5);g.style.overflow="hidden",g.style.position="relative";this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);c.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=e;c.removeChild(i);this.initialized=true},bodyOffset:function(c){T.offset.initialized||T.offset.initialize();var a=c.offsetTop,b=c.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(c,"marginTop",true),10)||0,b+=parseInt(T.curCSS(c,"marginLeft",true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,c=0,e;if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();a.top-=Y(this,"marginTop");a.left-=Y(this,"marginLeft");f.top+=Y(d,"borderTopWidth");f.left+=Y(d,"borderLeftWidth");e={top:a.top-f.top,left:a.left-f.left}}return e},offsetParent:function(){var a=this[0].offsetParent||document.body;
while(a&&(!/^body|html$/i.test(a.tagName)&&T.css(a,"position")=="static")){a=a.offsetParent}return T(a)}});T.each(["Left","Top"],function(b,c){var a="scroll"+c;T.fn[a]=function(d){if(!this[0]){return null}return d!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?d:T(W).scrollLeft(),b?d:T(W).scrollTop()):this[a]=d}):this[0]==W||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]}});T.each(["Height","Width"],function(b,d){var f=b?"Left":"Top",c=b?"Right":"Bottom",e=d.toLowerCase();T.fn["inner"+d]=function(){return this[0]?T.css(this[0],e,false,"padding"):null};T.fn["outer"+d]=function(g){return this[0]?T.css(this[0],e,false,g?"margin":"border"):null};var a=d.toLowerCase();T.fn[a]=function(g){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):g===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof g==="string"?g:g+"px")}})})(); 
/* .\wcm\site\csi\loader.js */ 
var loadScripts=[];function addLoader(a){loadScripts.push(a)}function callLoadScripts(){for(var a=0;a<loadScripts.length;a++){loadScripts[a]()}}window.onload=callLoadScripts; 
/* .\wcm\system\csi\util.js */ 
function isBrowser(g,f){var d=navigator.appName;if(d=="Netscape"){d="ns"}var c=navigator.appVersion;var j=navigator.userAgent.toLowerCase();var a=false;var k=false;var e=false;switch(g){case"any":k=true;break;case"ie3":k=c.indexOf("MSIE 3")>0;break;case"ie4":k=c.indexOf("MSIE 4")>0;break;case"ie45":break;case"ie5":k=c.indexOf("MSIE 5")>0;break;case"ie55":k=c.indexOf("MSIE 5.5")>0;break;case"ie6":k=c.indexOf("MSIE 6")>0;break;case"ie":k=c.indexOf("MSIE")>0;break;case"dom":k=(document.createElement&&document.appendChild&&document.getElementsByTagName)?true:false;break;case"ns2":k=((d=="ns")&&(c==2));break;case"ns3":k=((d=="ns")&&(c==3));break;case"ns4":k=((d=="ns")&&(c.indexOf("4.")>-1));break;case"ns6":k=((d=="ns")&&(c.indexOf("5.")>-1));break}switch(f){case"any":e=true;break;case"win":e=(j.indexOf("win")>-1);break;case"mac":e=(j.indexOf("mac")>-1);break}a=(e&&k);return(a)}var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};function PageQuery(b){if(b.length>1){this.q=b.substring(1,b.length)}else{this.q=null}this.keyValuePairs=new Array();if(b){for(var a=0;a<this.q.split("&").length;a++){this.keyValuePairs[a]=this.q.split("&")[a]}}this.getKeyValuePairs=function(){return this.keyValuePairs};this.getValue=function(d){for(var c=0;c<this.keyValuePairs.length;c++){if(this.keyValuePairs[c].split("=")[0]==d){return this.keyValuePairs[c].split("=")[1]}}return false};this.getParameters=function(){var c=new Array(this.getLength());for(var d=0;d<this.keyValuePairs.length;d++){c[d]=this.keyValuePairs[d].split("=")[0]}return c};this.getLength=function(){return this.keyValuePairs.length}}function lessThan(b,a){return(b<a)}function greaterThan(b,a){return(b>a)}function GetQueryStringValue(e,a){var f=window.location.search;var c=a;var d=new RegExp("[?&]"+e+"=([^&]+)","i");var b=d.exec(f);if(b){c=b[1]}return(c)}function GotoModuleSummaryPage(a){alert("goto page "+a+" : "+window.location)}function swapImage(b,a){document.images[a].src=b}function findFormElements(d){oElement=null;aResults=new Array();if(document.all){for(var c=0;c<document.all.length;c++){oElement=document.all[c];if(oElement.id.indexOf(d)==0){aResults[aResults.length]=oElement.id}}}else{for(var b=0;b<document.forms.length;b++){for(var a=0;a<document.forms[b].length;a++){oTemp=document.forms[b].elements[a];if(oTemp.name.indexOf(d)==0){aResults[aResults.length]=oTemp.name}}}}return(aResults)}function genericGetElementByID(sElementName){var oResult=null;var oTemp=null;if(sElementName.indexOf("~")>=0){}else{if(document.all){oResult=eval("document.all."+sElementName)}else{for(var j=0;j<document.forms.length;j++){for(var i=0;i<document.forms[j].length;i++){oTemp=document.forms[j].elements[i];if(oTemp.name==sElementName){oResult=oTemp}}}}}return(oResult)}function genericGetElementValue(b){var g="";var j=String(b.type);if(j=="undefined"){if(b[0]){j=String(b[0].type)}}if(document.all){switch(j){case"checkbox":g=String(b.checked);if(g!="true"){g=""}break;case"radio":for(d=0;d<b.length;d++){if(b[d].checked){g=b[d].value}}break;case"select-one":if(b.options.length>0){if(b.options.selectedIndex!=-1){g=b.options[b.options.selectedIndex].value}}break;default:g=b.value;break}}else{switch(j){case"text":case"edit":case"textarea":case"hidden":g=b.value;break;case"select-one":if(b.options.length>0){if(b.selectedIndex!=-1){g=b.options[b.selectedIndex].value}}break;case"radio":g="";var a=b.getAttribute("name");
var c=document.getElementById(a);var k=null;if(c==null){k=a}else{k=c.name}if(k==null){return null}var e=document.getElementsByTagName("input");for(var d=0;d<e.length;d++){var f=e[d];if(f.type=="radio"&&f.name==k&&f.checked){g=f.value;break}}break;default:g=b.value;break}}return(g)}function openPopup(b){w=800;h=600;try{if(document.all||document.layers){w=screen.availWidth;h=screen.availHeight}}catch(d){}try{var c=0,a=0;window.open(b,"popup","width="+w+",height="+h+",top="+a+",left="+c+",scrollbars=1");window.opener=self}catch(d){}return false}function openPopupWithFeatures(c,f,k,d,l,a,b){var g="";if(!isNaN(f)&&f>0){g+="left="+f}if(!isNaN(k)&&k>0){if(g.length>0){g+=","}g+="top="+k}if(!isNaN(d)&&d>0){if(g.length>0){g+=","}g+="width="+d}if(!isNaN(l)&&l>0){if(g.length>0){g+=","}g+="height="+l}if(g.length>0){g+=","}if(b=="off"){g+="titlebar=no,statusbar=no,menubar=no,scrollbars=no"}else{g+="titlebar=yes,statusbar=yes,menubar=yes,scrollbars=yes"}g+=",resizable="+a;try{window.open(c,"popup",g);window.opener=self}catch(j){}return false}function selectAll(){checkboxes=findFormElements("check");alert("select all "+checkboxes.length+" found");for(i=0;i<checkboxes.length;i++){alert(checkboxes[i].id+" "+checkboxes[i].checked);checkboxes[i].checked=true}}function unSelectAll(){checkboxes=findFormElements("check");alert("unselect all "+checkboxes.length+" found");for(i=0;i<checkboxes.length;i++){checkboxes[i].checked=false}}function SetAllCheckBoxes(c,e,a){var d=document.forms[c];for(var b=0;b<d.length;b++){field=d.elements[b];if(field.type="checkbox"){field.checked=a}}}function popupWindow(a){window.open(a.href)}function openWindow(a){window.open(a.href)}function interrogate(c){var a="";for(var b in c){a+=b+"\n"}alert(a)}; 
/* .\wcm\system\csi\validation.js */ 
var sAlphaNumericChars="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var sFileNameChars="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. _-\\:/";var sTelephoneChars="+1234567890 ()";var sEmailChars="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@-._";var sNumericChars="1234567890";var sAlphaChars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function clearOtherFormButtons(e,d){alert(e.value);var c=document.getElementsByTagName("button");for(var b=0;b<c.length;b++){var a=c[b];if(a!=e){}else{alert("dont clear");a.value=d}}}function isDefined(b){var a=true;if(String(b)==""){a=false}if(String(b)=="undefined"){a=false}if(String(b)=="null"){a=false}return(a)}function isInitialised(b){var a=true;if(String(b)=="undefined"){a=false}if(String(b)=="null"){a=false}return(a)}function isTelephone(d,b){var a=true;var c=0;if(isDefined(d)&&d!=""){a=checkValidChars(d,sTelephoneChars);if(a){c=d.length;a=((c>2)&&(c<20))}}return(a)}function isDate(h,c){var a=true;var e=/\d{2}\/\d{2}\/\d{4}$/;if(!isDefined(h)){h=""}h=h.toString().replace(" ","");h=h.substr(0,10);if((h=="")||(h=="//")||(h=="dd/mm/yyyy")){if(c=="mandatory"){a=false}}else{a=e.test(h);if(a){var f=h.split("/");var b=Number(f[0]);var g=Number(f[1]);var d=Number(f[2]);oDate=new Date(d,g-1,b,0,0,0,0);a=((oDate.getDate()==b)&&(oDate.getMonth()==(g-1)));if(a){a=(d>1752)}}}return(a)}function afterMinDate(c,b,a){return(compareDates(c,a,b,true))}function beforeMaxDate(c,b,a){return(compareDates(c,a,b,false))}function compareDates(h,j,f,g){var e=true;var d;var b;var a;var c=/^(.+)\/(.+)\/(.+)$/;if(h=="//"){h=""}if(!isDefined(h)){h=""}if(!isDefined(f)){sMinDate=""}if(!isDefined(j)){j=""}if(!isDefined(g)){g=false}if(h!=""){if(isDate(h,j)){a=h.match(c);d=new Date(a[3],a[2]-1,a[1]);if(f!=""&&isDate(f,j)){a=f.match(c);b=new Date(a[3],a[2]-1,a[1]);if(g){if(d<b){e=false}}else{if(b<d){e=false}}}}}return(e)}function IsEmail(c){var a=true;if(isDefined(c)&&c!=""){var b=/^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;a=b.test(c)}return(a)}function IsPostCode(b){var a=false;if(isDefined(b)&&b!=""){if(/^\w{1,2}\d{1,2}\w{0,1}\s*\d\w{2}$/.test(b)){a=true}if(b.toLowerCase()=="bfpo"){a=true}}else{a=true}return a}function isUrl(b){var a=false;if(isDefined(b)&&b!=""){b=String(b);a=/^http(s?):\/\/w*/ig.test(b);if(!a){a=/^mailto:\w*/ig.test(b)}if(!a){a=/^ftp:\/\/\w*/ig.test(b)}}else{a=true}return a}function checkValidChars(f,c){var d,b,a=true,e;if(!isInitialised(f)){return(false)}b=String(f);for(d=0;d<b.length;d++){e=b.substr(d,1);if(c.indexOf(e)==-1){a=false;break}}return(a)}function checkInValidChars(f,d){var c,b,a=true,e;if(!isInitialised(f)){return(false)}b=String(f);for(c=0;c<b.length;c++){e=b.substr(c,1);if(d.indexOf(e)!=-1){a=false;break}}return(a)}function updateCategoryCheckboxesField(a){aCheckboxes=findFormElements(a);sResult="";for(i=0;i<aCheckboxes.length;i++){if(aCheckboxes[i]!=a){oElement=genericGetElementByID(aCheckboxes[i]);if(oElement!=null){sValue=genericGetElementValue(oElement);if(sValue=="true"){nameBits=aCheckboxes[i].split("_");if(nameBits.length==2){sResult+=nameBits[1]+","}}}}}oElement=genericGetElementByID(a);if(oElement!=null){oElement.value=sResult}else{}return(sResult)}function validate(n,e,d,a,k,m,g,j,h,c,o,f){if(!isDefined(f)){f=true}var l="";switch(a){case"file":n=true;break;case"date":n=validateElement(n,e,d,"fulldate",k,m,"",j,h,d,c,o,f);break;case"phone":n=validateElement(n,e,d,"fulltelephone",k,m,"",j,h,d,c,o,f);break;case"categorycheckboxes":updateCategoryCheckboxesField(d);break;case"fulldate":updateDateField(d);n=validateElement(n,e,d,"fulldate",k,m,"",j,h,d+"_day",c,o,f);break;case"fulltelephone":updateTelephoneField(d);n=validateElement(n,e,d,"fulltelephone",k,m,"",j,h,d+"_std",c,o,f);break;case"plaindate":case"dob":updateDateField(d);var b=genericGetElementByID(d);if(b!=null){l=genericGetElementValue(b)}n=validateElement(n,e,d+"_day","day",k,m,"",j,h,d+"_day",c,o,f);if(n){n=validateElement(n,e,d+"_month","month",k,m,"",j,h,d+"_month",c,o,f);if(n){n=validateElement(n,e,d+"_year","year",k,m,"",j,h,d+"_year",c,o,f)}}break;case"telephone":n=validateElement(n,e,d+"_std",a,k,m,"","3","20",d+"_std",c,o,f);if(n){n=validateElement(n,e,d+"_number",a,k,m,"","3","20",d+"_number",c,o,f)}break;case"time":updateTimeField(d);n=validateElement(n,e,d,"time",k,m,"",j,h,d+"_hour",c,o,f);break;default:n=validateElement(n,e,d,a,k,m,g,j,h,d,c,o,f);break}return(n)}function updateDateField(e){var c=null,g=null,h=null,b=null;c=genericGetElementByID(e);g=genericGetElementByID(e+"_day");h=genericGetElementByID(e+"_month");b=genericGetElementByID(e+"_year");var f=g.value;if(f.length==1){f="0"+f}var a=h.value;if(a.length==1){a="0"+a}var d=f+"/"+a+"/"+b.value;c.value=d;return(d)}function updateTimeField(d){var b=null,e=null,f=null,a=null;b=genericGetElementByID(d);oHourElement=genericGetElementByID(d+"_hour");oMinuteElement=genericGetElementByID(d+"_minute");
oSecondElement=genericGetElementByID(d+"_second");var c=oHourElement.value+":"+oMinuteElement.value+":"+oSecondElement.value;b.value=c;return(c)}function updateTelephoneField(c){var a=null,b=null,d=null;a=genericGetElementByID(c);b=genericGetElementByID(c+"_std");d=genericGetElementByID(c+"_number");a.value=b.value+" "+d.value;return(a.value)}function validateElement(g,d,s,m,e,r,p,a,l,k,v,j,h){if(!isDefined(h)){h=true}var o=null,c="",t=null,b="",f="";if(!isInitialised(a)){a=""}if(!isInitialised(l)){l=""}if(!isInitialised(v)){v=""}if(!isInitialised(j)){j=""}if(m.indexOf(":")>0){t=m.split(":");m=t[0];b=t[1]}if(g){o=genericGetElementByID(s);if(o!=null){if(m=="fulltelephone"){var n=genericGetElementByID(s+"_std");var w=genericGetElementByID(s+"_number");if(n!=null&&w!=null){if(n.value!=""&&w.value!=""){o.value=n.value+w.value}else{o.value=""}}}c=genericGetElementValue(o);f=String(c).replace("\r","");f=f.replace("\n","");if(r=="mandatory"){g=(f.replace(" ","")!="")}if(c!=""){if(m=="fulldate"){re=/^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((1[6-9]|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((1[6-9]|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((1[6-9]|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$/;myArray=c.match(re);if((myArray==null)&&(r=="mandatory")){e="Please enter the date in a valid UK format e.g. 01/07/2008.";g=false}}if(a!=""){if(Number(f.length)<Number(a)){e="Please enter a minimum of "+a+" characters.";g=false}}if(l!=""){if(Number(f.length)>Number(l)){var u=Number(f.length)-Number(l);e="Please enter a maximum of "+l+" characters. You are currently "+u+" characters over the maximum length.";g=false}}if(g){switch(m){case"alpha":g=checkValidChars(String(c),sAlphaChars);break;case"alphanumeric":g=checkValidChars(String(c),sAlphaNumericChars);break;case"compare":g=false;if((p!="undefined")&&(p!="")){var q=genericGetElementByID(p);if(q!=null){g=(String(c)==String(genericGetElementValue(q)))}else{e="Invalid field name, "+p+", specified in form XML "}}else{e="Compare field name not specified in form XML."}break;case"day":if(c=="dd"&&r!="mandatory"){}else{g=checkValidChars(String(c),sNumericChars)&&((Number(c)>=1)&&(Number(c)<=31))}break;case"email":g=IsEmail(String(c));break;case"filename":g=checkValidChars(String(c),sFileNameChars);break;case"fulldate":g=isDate(String(c),r);if(g){if(afterMinDate(c,a,r)==false){g=false;e="Date specified is before the allowed minimum: "+a}}if(g){if(beforeMaxDate(c,l,r)==false){g=false;e="Date specified is after the allowed maximum: "+l}}break;case"fulltelephone":if(r!="mandatory"&&c==" "){g=true}else{g=isTelephone(String(c))}break;case"month":if(c=="mm"&&r!="mandatory"){}else{g=checkValidChars(String(c),sNumericChars)&&((Number(c)>=1)&&(Number(c)<=12))}break;case"notdefault":if(b!=""){g=(String(c)!=String(b))}break;case"numeric":g=checkValidChars(String(c),sNumericChars);if(g&&(v!="")){g=(Number(c)>=v)}if(g&&(j!="")){g=(Number(c)<=j)}break;case"password":break;case"postcode":g=IsPostCode(String(c));break;case"telephone":g=checkValidChars(String(c),sTelephoneChars);break;case"text":g=String(c)!="";break;case"time":g=true;break;case"year":if(c=="yyyy"&&r!="mandatory"){}else{g=checkValidChars(String(c),sNumericChars)}break}}}}if(!g){if((e=="default")||(e=="")){switch(m){case"telephone":e="Please enter a valid Telephone number.";break;case"email":e="Please enter a valid E-mail address.";break;case"postcode":e="Please enter a valid Post Code.";break;case"day":e="Please enter a valid Day.";break;case"month":e="Please enter a valid Month.";break;case"year":e="Please enter a valid Year.";break;case"password":e="Please enter a valid Password.";break;case"compare":e="Fields do not match. Please reconfirm.";break;case"alphanumeric":e="Please enter alpha numeric characters only.";break;case"alpha":e="Please enter alpha characters only.";break;case"numeric":e="Please enter numeric characters only.";break;default:e="Invalid Entry.";break}}if(h){if(e!=null){alert(e)}if(isDefined(k)){setFocusedElement(d,k)}else{setFocusedElement(d,s)}}}}return(g)}function checkDenyList(c,g,e,b){var a=true;if(c){var f=genericGetElementByID(g);if(f!=null){var h=genericGetElementValue(f);for(var d=0;d<b.length;d++){if(h==b[d]){a=false;alert(e)}}}}return(a)}function checkAllowList(b,c,a){alert("check deny list")}function validateValidChars(h,g,f,a){var k=true;var j="";if(h){var d=genericGetElementByID(g);if(d!=null){var e=genericGetElementValue(d);for(var c=0;c<e.length;c++){var b=e.charAt(c);if(a.indexOf(b)==-1){k=false;j+=b}}if(!k){alert(f+" The following characters ("+j+") are not allowed")}}}return(k)}function setMultiEditHiddenField(a,g,d){var f=$(a);var e="";for(var c=1;c<=g;c++){var b=$(a+"_"+c);if(b){e+=b.value}}f.value=e}; 
/* .\wcm\system\csi\form.js */ 
function documentSelector_KeyDown(b,e){var f=b.keyCode;b.cancelBubble=true;if(f==32){var a=document.getElementById("documentSelectorTags");var c=e.value;var d=document.getElementById("documentSelectorList");d.src="/wcm/system/pages/documentlist.aspx?tags="+c}}function validateUploadHasOccured(a,c,g,d){var e=false;var f=document.frames(c).document.getElementById(d).outerText;var b=document.getElementById(g).value;if(b!=""){e=true}if(!e){if(f==""){a=false;alert("You must upload a file first.")}else{a=true;document.getElementById(g).value=f}}else{if(f!=""){document.getElementById(g).value=f}}return(a)}function validatePairing(f,a,e,d){var c=document.getElementById(a);var b=document.getElementById(e);if(c.value==""){if(b.value==""){f=false;alert(d)}}else{if(b.value!=""){f=false;alert(d)}}return(f)}function setFocusedElement(a,c){try{document.getElementById(c).focus();document.getElementById(c).select()}catch(b){}}function clearFileSelector(a){formelement=genericGetElementByID(a);if(formelement!=null){formelement.value=""}}function clearSelector(a){formelement=genericGetElementByID(a);if(formelement!=null){formelement.value=""}formelement=genericGetElementByID(a+"_description");if(formelement!=null){formelement.value=""}}function selecttextChange(b,a,c){element=document.getElementById(b+"_combo");textelement=document.getElementById(b+"_text");hiddenelement=document.getElementById(b);value=genericGetElementValue(element);if(value==a){if(c=="hide"){textelement.style.visibility="visible"}else{textelement.readOnly=false}textelement.focus();textelement.select()}else{if(c=="hide"){textelement.style.visibility="hidden"}else{textelement.readOnly=true}}}function selecttextRadioChange(d,c,f){var e="";textelement=document.getElementById(d+"_text");var a=document.getElementById(d+"_text").form.elements;for(var b=0;b<a.length;b++){if(a.item(b).name==d+"_radio"){if(a.item(b).checked){e=a.item(b).value;break}}}hiddenelement=document.getElementById(d);if(e==c){if(f=="hide"){textelement.style.visibility="visible"}else{textelement.readOnly=false}textelement.focus();textelement.select()}else{if(f=="hide"){textelement.style.visibility="hidden"}else{textelement.readOnly=true}}}function setSelectTextValue(b,a){element=genericGetElementByID(b+"_combo");textelement=genericGetElementByID(b+"_text");hiddenelement=genericGetElementByID(b);value=genericGetElementValue(element);if(value==a){hiddenelement.value=textelement.value}else{hiddenelement.value=value}}; 
/* .\wcm\site\csi\validation.js */ 
var initialLumpSumChanged=false;var monthlySavingsChanged=false;var interestRateChanged=false;var termInYearsChanged=false;function setupGrowthCalculator(){var c=$("#initialLumpSum");var a=$("#monthlySavings");var b=$("#interestRate");var d=$("#termInYears");var e=$("#growthCalculatorButton");e.css("display","none")}function validateGCValue(f,b,d,e,c){var a=d.test(f);if(a){a=(parseFloat(f)>=e)}if(c){setGCValueValidityStatus(b,a)}return(a)}function setGCValueValidityStatus(a,b){if(b){$("#"+a+"Error").css("display","none");$("#"+a+"Valid").css("display","block")}else{$("#"+a+"Error").css("display","block");$("#"+a+"Valid").css("display","none")}}function calculateGrowthCalculator(){var i=$("#initialLumpSum");var h=$("#monthlySavings");var B=$("#interestRate");var c=$("#termInYears");var j=$("#initialLumpSumSP");var A=$("#monthlySavingsSP");var e=$("#termInYearsSP");var q=$("#totalSP");var k=$("#todaysMoneySP");var x=i.val().replace(String.fromCharCode(163),"").replace(/,/g,"").replace(/ /g,"");var p=h.val().replace(String.fromCharCode(163),"").replace(/,/g,"").replace(/ /g,"");var d=B.val().replace(/%/g,"").replace(/,/g,"").replace(/ /g,"");var z=c.val();var n=false;var s=false;var m=false;var a=false;var w=false;s=validateGCValue(x,"initialLumpSum",/^[0-9]+(\.[0-9]{1,2})?$/,0,initialLumpSumChanged);m=validateGCValue(p,"monthlySavings",/^[0-9]+(\.[0-9]{1,2})?$/,0,monthlySavingsChanged);a=validateGCValue(d,"interestRate",/^[0-9]+(\.[0-9]{1,2})?$/,1,interestRateChanged);w=validateGCValue(z,"termInYears",/^[0-9]+$/,1,termInYearsChanged);if(z.indexOf(".")!=-1){w=false;setGCValueValidityStatus("termInYears",false)}if(s&&m&&a&&w){n=true;x=Number(x);p=Number(p);d=Number(d);d=(d/100);z=Number(z);if(x<0){n=false}if(p<0){n=false}if(d<=0){n=false}if(z<=0){n=false}var b=Number(1+d);var t=Math.pow(b,z);t=t*x;var v=Math.pow(1+d,1/12)-1;var r=((1+v)*p*(Math.pow(1+v,z*12)-1))/v;var f=t+r;if(String(f)!="NaN"){q.text(String.fromCharCode(163)+f.toFixed(2))}else{n=false}var g=f/Math.pow(1.025,z);if(String(g)!="NaN"){k.text(String.fromCharCode(163)+g.toFixed(2)+" ")}else{n=false}j.text(String.fromCharCode(163)+x+" ");A.text(String.fromCharCode(163)+p+" ");e.text(z+" ")}if(n){$("#GCresults").css("display","block");$("#GCcontent #inflationMessage").css("display","block");$("#GCcontent #enterValues").css("display","none")}else{$("#GCresults").css("display","none");$("#GCcontent #inflationMessage").css("display","none");$("#GCcontent #enterValues").css("display","block")}var o=($.browser.msie&&$.browser.version.substr(0,1)<7);if(o){var u=$("#mainContent");u.css("height",u.outerHeight());var l=$(".container");l.css("display","block");var y=$("#containerBottom");y.replaceWith('<div id="containerBottom"></div>')}LV2009Rebrand.IE6ResizeKick()}var mandatoryElements=null;var remainingMandatoryElements=0;var disabledButton=null;function AddMandatoryElement(a){if(mandatoryElements==null){mandatoryElements=new Array()}var b=document.getElementById(a);b.mandatoryClickOccured=false;mandatoryElements.push(b);$("#"+a).bind("click",function(c){mandatoryElementClick(a)})}function mandatoryElementClick(a){if(a){var b=$("#"+a);if(b){b.mandatoryClickOccured=true;remainingMandatoryElements=0;for(loopItem=0;loopItem<mandatoryElements.length;loopItem++){fetchItem=mandatoryElements[loopItem];switch(fetchItem.tagName.toLowerCase()){case"input":if(!fetchItem.checked){remainingMandatoryElements++}break;case"a":if(!fetchItem.mandatoryClickOccured){remainingMandatoryElements++}break}}if(remainingMandatoryElements==0){disabledButton.removeAttr("disabled");disabledButton.addClass("submit");disabledButton.removeClass("disabledSubmit")}else{disabledButton.attr("disabled","disable");disabledButton.addClass("disabledSubmit");disabledButton.removeClass("submit")}}}}function PressBackButton(){document.forms[0].onsubmit=function(){return true}}function DisableButtonPendingMandatoryElementsClick(b){var a=$("#"+b);a.addClass("disabledSubmit");a.removeClass("submit");a.attr({disabled:"disabled"});disabledButton=a}var defaultSubmit;var submitOwner;function FiftyPlusCalculator(){var c=document.getElementById("monthlyPremium");if(c){c.onkeypress=FiftyPlusPremiumKeyPress}var d=document.getElementById("sumAssured");if(d){d.onkeypress=FiftyPlusSumAssuredKeyPress}var b=$(".formBuilder");if(b.length!=0){var a=$(".formBuilder")[0];defaultSubmit=a.onsubmit;submitOwner=a;a.onsubmit=ValidateFiftyPlusAmounts}}function ValidateFiftyPlusAmounts(){var a=true;if(defaultSubmit){a=defaultSubmit(submitOwner)}if(a){var b=$("#monthlyPremium");var d=$("#sumAssured");var e=b.val();var c=d.val();if((e=="")&&(c=="")){alert("Please enter either a Monthly premium or Sum assured");a=false}else{if(e!=""){if(!InRange(e,5,50)){alert("The Monthly premium must be between "+String.fromCharCode(163)+"5 and "+String.fromCharCode(163)+"50");a=false}}if(c!=""){if(!InRange(c,0,25000)){alert("The Sum assured cannot be more than "+String.fromCharCode(163)+"25,000");a=false}}}}return(a)}function InRange(e,c,b){var d=/\u00a3/gi;
e=e.replace(d,"");e=e.replace(/,/g,"");e=e.replace(/ /g,"");var a=true;if((Number(e)<c)||(Number(e)>b)){a=false}return(a)}function FiftyPlusPremiumKeyPress(){var a=document.getElementById("monthlyPremium");if(a.value!=""){var b=document.getElementById("sumAssured");if(b){b.value=""}}}function FiftyPlusSumAssuredKeyPress(){var b=document.getElementById("sumAssured");if(b.value!=""){var a=document.getElementById("monthlyPremium");if(a){a.value=""}}}function FiftyPlusBankDetails(){DisableButtonPendingMandatoryElementsClick("continue_button");AddMandatoryElement("consent");AddMandatoryElement("ddGuarantee")}function FiftyPlusDeclarationAndConsent(){}function FiftyPlusSummaryOfCover(){DisableButtonPendingMandatoryElementsClick("button_calculate");AddMandatoryElement("consent");AddMandatoryElement("agree")}var current50PlusSourceCode="";function FiftyPlusCoverDetails(){var b=$("contentArea");var c=b.select(".formBuilder");if(c.length!=0){var a=b.select(".formBuilder")[0];defaultSubmit=a.onsubmit;submitOwner=a;a.onsubmit=ValidateFiftyPlusCoverDetails}var e=$("#div_freeGift");if(e){e.css("display","None")}var d=$("#sourceCode");if(d){current50PlusSourceCode=d.val();d.bind("keyup",UpdateGiftDropdown)}}var giftListPopulated=false;function UpdateGiftDropdown(b){var a=$("#sourceCode").val();if(a.length==4||a.length==0||giftListPopulated){$.get("/processors/FiftyPlusProcessor/PopulateGifts?sourcecode="+a,function(c){$("#div_freeGift").html(c);$("#div_freeGift").css("display","Block")});giftListPopulated=true}}function ValidateFiftyPlusCoverDetails(){var a=true;if(defaultSubmit){a=defaultSubmit(submitOwner)}return(a)}function DisableCoverDetailsValidation(){defaultSubmit=null;oldFormSubmit=null}function setPolicyNumberHiddenField(a){}; 
/* .\wcm\system\csi\embedflash.js */ 
function createFlashControl(n,a,o,m,t,j,b,g,e,d,c){if(!e){e=a+"_insertedObject"}else{if(e==""){e=a+"_insertedObject"}}var r=new SWFObject(n,e,o,m,"7","");BrowserDetect.init();if(!c){c=""}if(c!=""){r.addParam("wmode",c)}r.addParam("allowScriptAccess","always");if(t!=""){var h=t.split(";");var f=0;while(f<h.length){var q=h[f];f+=1;var p=q.split("=");if(p.length==2){r.addVariable(p[0],p[1])}}}try{if(j!=""){var h=j.split(";");var f=0;while(f<h.length){var q=h[f];f+=1;var p=q.split("=");if(p.length==2){r.addParam(p[0],p[1])}}}}catch(s){}if(String(g)!=""&&String(g)!="undefined"){var k=document.getElementById(a);var i=k.getElementsByTagName("img");if(i){if(i.length>=1){var l=i[0];l.src=g}}}else{if(b!=""&&b!="undefined"){r.setAttribute("redirectUrl",b)}}r.write(a)}function _createFlashControl(c,e,f,b,h){var g=document.getElementById(c);var a="";a=a+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+f+'" height="'+b+'" id="'+c+'_insertedObject" align="middle">';a=a+'<param name="allowScriptAccess" value="sameDomain" />';a=a+'<param name="movie" value="'+e+'" />';a=a+'<param name="quality" value="high" />';a=a+'<param name="bgcolor" value="#ffffff" />';a=a+'<param name="FlashVars" value="'+h+'"/>';a=a+'<embed src="'+e+'" quality="high" bgcolor="#ffffff" width="'+f+'" height="'+b+'" name="'+c+'_insertedEmbed" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';a=a+"</object>";g.innerHTML=a}function getAnyImageMap(b){var e=document.getElementById(b);var d=e.getElementsByTagName("map");var a=null;if(d.length==1){var c=d[0];a=new Object();a.id=c.id;a.html=c.innerHTML}return(a)}function attemptOverlay(b,c,a,d){BrowserDetect.init();if((BrowserDetect.browser=="Firefox")||(BrowserDetect.browser=="Camino")){var e=document.getElementById(b);e.style.position="relative";e.style.top="0px";e.style.left="0px";e.innerHTML=e.innerHTML+' <img usemap="'+d.id+'" src="/wcm/system/img/spacer.gif" width="'+c+'" height="'+a+'" style="position:absolute;top:0px;left:0px;z-index:1000;width:'+c+";height:"+a+';"/><map id="'+d.id+'" name="'+d.id+'">'+d.html+"</map>"}else{}}; 
/* .\wcm\system\csi\swfobject.js */ 
if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(f,d,m,g,j,l,n,i,a,e){if(!document.getElementById){return}this.DETECT_KEY=e?e:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(f){this.setAttribute("swf",f)}if(d){this.setAttribute("id",d)}if(m){this.setAttribute("width",m)}if(g){this.setAttribute("height",g)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var b=n?n:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var k=(i)?i:window.location;this.setAttribute("xiRedirectUrl",k);this.setAttribute("redirectUrl","");if(a){this.setAttribute("redirectUrl",a)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var a=new Array();var b;var c=this.getVariables();for(b in c){a[a.length]=b+"="+c[b]}return a},getSWFHTML:function(){var d="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}d='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';d+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var c=this.getParams();for(var a in c){d+=[a]+'="'+c[a]+'" '}var b=this.getVariablePairs().join("&");if(b.length>0){d+='flashvars="'+b+'"'}d+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}d='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';d+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var a in c){d+='<param name="'+a+'" value="'+c[a]+'" />'}var b=this.getVariablePairs().join("&");if(b.length>0){d+='<param name="flashvars" value="'+b+'" />'}d+="</object>"}return d},write:function(a){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof a=="string")?document.getElementById(a):a;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var c=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){c=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var d=1;var b=3;while(d){try{b++;d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);c=new deconcept.PlayerVersion([b,0,0])}catch(f){d=null}}}else{try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new deconcept.PlayerVersion([6,0,21]);d.AllowScriptAccess="always"}catch(f){if(c.major==6){return c}}try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}if(d!=null){c=new deconcept.PlayerVersion(d.GetVariable("$version").split(" ")[1].split(","))}}}return c};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false
}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(d){var c=document.location.search||document.location.hash;if(d==null){return c}if(c){var b=c.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==d){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var b=c.length-1;b>=0;b--){c[b].style.display="none";for(var a in c[b]){if(typeof c[b][a]=="function"){c[b][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject; 
/* .\wcm\site\csi\adviser-rebrand-2009\shared.js */ 
var Adviser2009Rebrand={SubsiteName:"",ExploreAdviserDropDownVisible:false,AnnuityCalculatorDropDownVisible:false,quoteApplyDropDownVisible:false,LoadDynamicStylesheets:function(){$("head").append('<link rel="stylesheet" type="text/css" href="/wcm/site/css/adviser-rebrand-2009/scriptedelements.css"></link>')},OverrideLauncherLinks:function(){$('[href^="/adviser/launcher/"]').each(function(c,d){var b=$(d);var a=b.attr("href");b.click(function(){window.open(a,"Launcher","status=yes,resizable=0,toolbar=no,menubar=no,location=no,");return false})})},PageLoad:function(b){Adviser2009Rebrand.SetupExploreAdviserDropDown();Adviser2009Rebrand.SetupQuoteApplyDropDown();Adviser2009Rebrand.OverrideLauncherLinks();var a=window.location.href},SetupQuoteApplyDropDown:function(){var b=$("#quoteApply");if(b){var e="quote-apply-container";var a='<div class="dropdown" id="quote-apply-container"><div onclick="Adviser2009Rebrand.ToggleQuoteApplyAdviserDropDown();return(false);">Please Select...</div><ol>';b.children().each(function(){var i=$(this);var g=i.val();var j=i.text();var h=""+i.attr("onclick");h=h.replace(/\"/g,"'");var f=h.substring(h.indexOf("{")+1,h.indexOf("}"));if(g){a+='<li><a href="'+g+'" onclick="'+f+'">'+j+"</a></li>"}});$("#quote-apply-container").replaceWith(a+"</ol></div>");var c=($.browser.msie&&$.browser.version.substr(0,1)<=7);if(c){var d=$("#quote-apply-container ol");d.css({height:"200px","overflow-y":"scroll"})}}},SetupExploreAdviserDropDown:function(){var a=$("#exploreLV");if(a){var b='<div id="exploreLVJS"><div onclick="Adviser2009Rebrand.ToggleExploreAdviserDropDown();return(false);">Explore LV= Adviser</div><ol>';a.children().each(function(){var g=$(this);var e=g.val();var h=g.text();var f=""+g.attr("onclick");f=f.replace(/\"/g,"'");var d=f.substring(f.indexOf("{")+1,f.indexOf("}"));if(e){b+='<li><a href="'+e+'" onclick="'+d+'">'+h+"</a></li>"}});b+="</ol></div>";var c=$("#exploreLVForm");c.replaceWith(b)}},ToggleQuoteApplyAdviserDropDown:function(){var a=$("#quote-apply-container ol");if(a){if(Adviser2009Rebrand.quoteApplyDropDownVisible){Adviser2009Rebrand.HideQuoteApplyDropDown()}else{Adviser2009Rebrand.ShowQuoteApplyDropDown()}}},ToggleExploreAdviserDropDown:function(){var a=$("#exploreLVJS ol");if(a){if(Adviser2009Rebrand.ExploreLVDropDownVisible){Adviser2009Rebrand.HideExploreLVDropDown()}else{Adviser2009Rebrand.ShowExploreLVDropDown()}}},ShowQuoteApplyDropDown:function(){var a=$("#quote-apply-container ol");if(a){Adviser2009Rebrand.quoteApplyDropDownVisible=true;a.fadeIn("fast")}},HideQuoteApplyDropDown:function(){var a=$("#quote-apply-container ol");if(a){Adviser2009Rebrand.quoteApplyDropDownVisible=false;a.fadeOut("fast")}},ShowExploreLVDropDown:function(){var a=$("#exploreLVJS ol");if(a){Adviser2009Rebrand.ExploreLVDropDownVisible=true;a.fadeIn("fast")}},HideExploreLVDropDown:function(){var a=$("#exploreLVJS ol");if(a){Adviser2009Rebrand.ExploreLVDropDownVisible=false;a.fadeOut("fast")}},ToggleAnnuityCalculatorDropDown:function(){var a=$("#exploreLVJS ol");if(a){if(Adviser2009Rebrand.AnnuityCalculatorDropDownVisible){Adviser2009Rebrand.HideAnnuityCalculatorDropDown()}else{Adviser2009Rebrand.ShowAnnuityCalculatorDropDown()}}},IE6ResizeKick:function(){var a=($.browser.msie&&$.browser.version.substr(0,1)<7);if(a){$("div").each(function(b,c){var d=$(c);d.css("height",d.css("height"))})}},ShowAnnuityCalculatorDropDown:function(){var a=$("#annuity-calc ol");if(a){Adviser2009Rebrand.AnnuityCalculatorDropDownVisible=true;a.fadeIn("fast")}},HideAnnuityCalculatorDropDown:function(){var a=$("#annuity-calc ol");if(a){Adviser2009Rebrand.AnnuityCalculatorDropDownVisible=false;a.fadeOut("fast")}},ShowAnnuityCalculatorResults:function(c,b){Adviser2009Rebrand.HideAnnuityCalculatorDropDown();var d=$("#annuity-calc-select");d.text(c);var e=($.browser.msie&&$.browser.version.substr(0,1)<7);if(e){var a=window.location.href+"?";a=a.substr(0,a.indexOf("?"));window.location.href=a+"?annuitycalcgroup="+b}else{$.get("/processors/Adviser/GetAnnuityCalculatorResults?groupindex="+b,function(g){var f=$("#annuity-calc-results");f.fadeOut("fast",function(){f.replaceWith(g);f=$("#annuity-calc-results");f.fadeIn("slow");var h=$("#annuity-upload-date");if(h){h.show()}$(".block75 div").each(function(i,j){var k=$(j);if(k.css("display")=="none"){k.show()}})})})}},ToggleExpander:function(a){var f=($.browser.msie&&$.browser.version.substr(0,1)<7);var g=$("#"+a+" > div.expanderHeader");var i=$("#"+a+" > div.expanderContent");var d=$("#mainContent");var b=$("#mainContentBottom");var h=b.offset({scroll:true});var e=h.top;if(i.css("display")=="none"){i.css("display","block");g.removeClass("headerClosed");g.addClass("headerOpen");if(f){d.css("height",d.outerHeight()+1)}}else{var c=i.outerHeight();i.css("display","none");g.removeClass("headerOpen");g.addClass("headerClosed");if(f){d.css("height",d.outerHeight()-1-c)}}},ShowMboxControls:function(){},HomepageNewsFirstShow:true,HomepageNewsData:null,HomepageNews:null,HomepageNewsItemsLIs:null,SetupNewsListingPaging:function(){var a=false;
if(document.referrer.toLowerCase().indexOf("news_detail")!=-1){var b;if($.cookie){b=$.cookie("adviserNewsPage")}if(b){Adviser2009Rebrand.ShowNewsListingPage(b);a=true}}if(!a){$(".paging a").each(function(d,e){var c=$(e);var g=c.attr("id");if(g!=""){var f=g.substr(12);c.click(function(){})}})}},lastPage:null,ShowNewsListingPage:function(b){var a=1;var d=6;if(Adviser2009Rebrand.lastPage==null){Adviser2009Rebrand.lastPage=Number($("#news-paging-last").text())}var f=Adviser2009Rebrand.lastPage;var c=$(".paging");c.empty();function g(j,k){var h=$("<li/>").appendTo(c);if(k!=null){var i=$('<a href="#'+k+'">'+j+"</a>").appendTo(h);i.click(function(){});if(k==b){h.addClass("selected")}}else{$("<span>"+j+"</span>").appendTo(h)}}if(b>1){g("&#171; Previous",b-1)}if(b>6){g("1",1);g("..",null);d=b;a=Number(b)-5}for(var e=a;e<=d;e++){g(e,e)}if(b!=f){g("..",null);g(f,f);g("Next &#187;",parseInt(b,10)+1)}if($.cookie){$.cookie("adviserNewsPage",b)}$.getJSON("/processors/Adviser/NewsListing?subsite="+Adviser2009Rebrand.SubsiteName+"&page="+b,function(h){Adviser2009Rebrand.PopulateNewsListing(h)})},PopulateNewsListing:function(a){Adviser2009Rebrand.NewsData=a.NewsItems;Adviser2009Rebrand.FadeOutNewsItem(1)},FadeOutNewsItem:function(b){var a=$("#news-item-"+b);a.fadeOut(200,function(){Adviser2009Rebrand.FadeInNewsItem(b)})},FadeInNewsItem:function(b){var a=$("#news-item-"+b);var c=Adviser2009Rebrand.NewsData[b-1];if(c){a.replaceWith('<li style="display:none" id="news-item-'+b+'"><p class="listing-date">'+c.Date+"</p><h3><a onclick=\"Tracker(this,'/_adviser_working-with-lv_news--events/NewsListing/"+c.NodeID+'/_/\');" alt="'+c.Title+'" href="news_detail?articleid='+c.NodeID+'" class="more" id="news'+c.NodeID+'">'+c.Title+"</a></h3><p>"+c.Summary+'<p><div class="pagelink right"><span class="pagelinklink"><a alt="'+c.Summary+' " href="news_detail?articleid='+c.NodeID+'" class="more" id="news'+c.NodeID+'">Read more</a></span></div></li>');a=$("#news-item-"+b);a.fadeIn(200,function(){if(b<6){Adviser2009Rebrand.FadeOutNewsItem(b+1)}})}}};var HomePageNewsFader=function(){};HomePageNewsFader.prototype={Articles:null,DetailPage:null,LoadHomepageNews:function(c,b){var a=window.location.href;var d=1000*60*10;setTimeout('window.location.href = "'+a+'"',d);if(c){this.Articles=new Array()}if(b&&b!=""){this.DetailPage=b}$.getJSON("/processors/Adviser/HomepageNews?subsite="+Adviser2009Rebrand.SubsiteName+"&rqsb="+new Date().getTime(),function(g){for(var e=0;e<g.NewsItems.length;e++){var f=new newsItem();f.nodeid=g.NewsItems[e].NodeID;f.title=g.NewsItems[e].Title;f.date=g.NewsItems[e].Date;f.summary=g.NewsItems[e].Summary;addArticle(f)}if(!Adviser2009Rebrand.HomePageNews.started){Adviser2009Rebrand.HomePageNews.started=true;Adviser2009Rebrand.HomePageNews.removeall();Adviser2009Rebrand.HomePageNews.draw()}})},removeall:function(){var a=$("#latest-news .homeContent ul");a.replaceWith("<ul></ul>")},redraw:function(){this.removeall();this.draw()},animate:function(){var a=$("#latest-news .homeContent ul li");for(x=0;x<a.length;x++){var b=$(a[x]).attr("id");cmd="Adviser2009Rebrand.HomePageNews.fade ('"+b+"')";var c=(x+1)*500;window.setTimeout(cmd,c)}},fade:function(a){var b=$("#"+a);if($.browser.msie&&$.browser.version=="6.0"){b.show()}else{b.fadeTo(100,0.1,function(){$(this).fixClearType()});b.fadeTo(200,1,function(){$(this).fixClearType()})}},draw:function(){if(this.Articles.length>0){var c="adviser";var b=siteUrl.split("_");if(b.length>1){c=b[1]}var a=$("#latest-news .homeContent ul");var g=true;do{var f=this.Articles[0];if(f){var d="/"+c+"/working-with-lv/news_detail?articleid="+f.nodeid;if(this.DetailPage!=null){d=this.DetailPage+"?articleid="+f.nodeid}var e=$('<li id="hni-'+f.nodeid+'">'+f.date+'<br/><a id="homepageNews'+f.nodeid+'" onclick="Tracker(this,\'/_adviser/HomepageNews/2120813/_/\');" href="'+d+'">'+f.title+"</a></li>");a.append(e);if($.browser.msie&&$.browser.version=="6.0"){e.css("display","none")}else{e.css("opacity","0")}g=f.willFit();if(g){this.Articles.splice(0,1)}else{e.remove()}}else{g=false}}while(g==true);this.animate();if(this.Articles.length<10){this.LoadHomepageNews()}window.setTimeout("Adviser2009Rebrand.HomePageNews.redraw()",5000)}}};addArticle=function(a){try{Adviser2009Rebrand.HomePageNews.Articles.push(a)}catch(b){alert(b.message)}};Adviser2009Rebrand.HomePageNews=new HomePageNewsFader();var newsItem=function(){};newsItem.prototype={nodeid:null,date:null,title:null,summary:null,visible:false,animated:false,fadeOut:function(){this.element().fadeTo(200,0.1,function(){$(this).fixClearType()});this.element().fadeTo(200,1,function(){$(this).fixClearType()});this.animated=true},element:function(){return $("#hni-"+this.nodeid)},willFit:function(){var d=Number($("#latest-news .homeContent").outerHeight());var c=0;var b=$("#latest-news .homeContent ul li");for(x=0;x<b.length;x++){var a=$(b[x]);c=c+(a.outerHeight()+22)}this.element().css("display","block");if(c<d){return true}else{return false}}};jQuery.fn.fixClearType=function(){return this.each(function(){if(!!(typeof this.style.filter&&this.style.removeAttribute)){this.style.removeAttribute("filter")
}})}; 
/* .\wcm\site\csi\lv-rebrand-2009\jquery.externalinterface.js */ 
(function(a){a.fn.externalInterface=function(b){this.each(function(){if(typeof(b.method)!="undefined"){try{if(typeof(b.args)!="undefined"){var d=this[b.method](b.args)}else{var d=this[b.method]()}if(typeof(b.success)!="undefined"){b.success(d)}}catch(c){if(typeof(b.error)!="undefined"){b.error(c)}}}});return this}})(jQuery); 
/* .\wcm\site\csi\lv-rebrand-2009\shared.js */ 
function stopOthers(a){LV2009Rebrand.stopOtherCTAGatewebPlayers(a)}function mediaplexTracking(){var d=escape(document.URL);var c=escape(document.referrer);var b=new Date();var a=b.getTimezoneOffset()+b.getTime();if(window.location.protocol=="https:"){document.write('<iframe src="https://secure.img-cdn.mediaplex.com/0/14242/universal.html?page_name=content&amp;mpt='+a+"&amp;url="+d+"&amp;ref="+c+'" HEIGHT=0 WIDTH=0 FRAMEBORDER=0 style="display:none"></iframe>')}else{document.write('<iframe src="http://img-cdn.mediaplex.com/0/14242/universal.html?page_name=content&amp;mpt='+a+"&amp;url="+d+"&amp;ref="+c+'" HEIGHT=0 WIDTH=0 FRAMEBORDER=0 style="display:none"></iframe>')}}function kenshoo_conv(i,e,g,b,h,f){h="lv50plus";var d="https://www.xg4ken.com/media/redir.php?track=1&id="+i+"&type="+e+"&val="+g+"&orderId="+b+"&valueCurrency="+f+"&promoCode="+h+"&ref="+document.referrer;var c=new Image(1,1);c.src=d;c.onload=function(){_uVoid()}}function _uVoid(){return}var LV2009Rebrand={ExploreLVDropDownVisible:false,ExploreLVDropDownDefaultText:"Explore LV.com",LoadDynamicStylesheets:function(){$("head").append('<link rel="stylesheet" type="text/css" href="/wcm/site/css/lv-rebrand-2009/scripted-elements.css"></link>')},fixQuoteUrl:function(a){a=a.replace(/&amp;/g,"&");a=escape(a);return(a)},gatewebMainCTAID:null,gatewebPlayers:new Array(),registerGatewebPlayer:function(b){for(var c=0;c<LV2009Rebrand.gatewebPlayers.length;c++){if(LV2009Rebrand.gatewebPlayers[c]==b){return}}LV2009Rebrand.gatewebPlayers.push(b)},stopOtherGatewebPlayers:function(e,d){if(d=="true"){$("#"+LV2009Rebrand.gatewebMainCTAID).externalInterface({method:"stopVideo"})}for(var d=0;d<LV2009Rebrand.gatewebPlayers.length;d++){var f=LV2009Rebrand.gatewebPlayers[d];if(f!=e){$("#"+f).externalInterface({method:"stopVideo"});if(d==null){$("#"+f).height(44)}}else{if(d==null){$("#"+f).height(210)}}}},addExpanderGateweb:function(b,d,c,a){var g=$("#"+b);if(g){var f=g.parents(".expander");if(f){$("#"+f.attr("id")+" ul").css("display","inline-block");$("#"+f.attr("id")+" ol").css("display","inline-block");var e=f.children(".expanderHeader");if(e){LV2009Rebrand.registerGatewebPlayer(b+"-player");e.click(function(){if(f.height()>22){var h=new SWFObject("/upload/Gateweb/extra-options-small.swf",b+"-player",c,a,"9.00","#ffffff");h.addParam("wmode","opaque");h.addVariable("video",d);h.write(b);LV2009Rebrand.stopOtherGatewebPlayers(b+"-player")}})}}}},hasFlash:function(){return(deconcept.SWFObjectUtil.getPlayerVersion().major>0)},gatewebLandingPageCTACount:0,AddLandingPageCTAGateweb:function(f,i,g){LV2009Rebrand.gatewebLandingPageCTACount++;var c="0"+LV2009Rebrand.gatewebLandingPageCTACount+"-vidget";var b=new SWFObject("/upload/Gateweb/01-vidget.swf",c,"337","200","9.00","#336699");b.addParam("wmode","transparent");b.addVariable("vidURL",i);b.write(f);LV2009Rebrand.registerGatewebPlayer(c);var e=$("#"+f);var a=e.parents("div.landingBlock50");var h=a.find("h2");var j=a.find("h2 a");var d=$("<div/>").appendTo(e);d.css("background-color","red");d.css({position:"relative",width:j.width(),height:30,top:-200,left:0,cursor:"pointer",opacity:0});d.click(function(){window.location.href=g});d.mouseover(function(){j.css("text-decoration","underline")});d.mouseout(function(){j.css("text-decoration","none")})},stopOtherCTAGatewebPlayers:function(e){for(var d=0;d<LV2009Rebrand.gatewebPlayers.length;d++){var f=LV2009Rebrand.gatewebPlayers[d];if(f!=e){$("#"+f).externalInterface({method:"stopVideo"})}}},GlossaryListingInit:function(){$("#glossaryFilter input.button").hide();var a=($.browser.msie&&$.browser.version.substr(0,1)<7);if(a){$("#contentArea").css("display","block")}},ShowGlossaryDefinition:function(a,b){$.ajax({url:"/processors/Glossary/GetDefinition?term="+encodeURIComponent(a)+"&pageCategoryId="+b,dataType:"html",cache:false,success:function(f){var c=$("body");var e=$('<div class="glossaryBackground"></div>');e.css({opacity:0.5,width:c.width(),height:c.height(),"z-index":10000});c.append(e);var d=$(f);c.append(d);d.css({top:(($(window).height()-d.outerHeight())/2+$(window).scrollTop())+"px",left:(($(window).width()-d.outerWidth())/2+$(window).scrollLeft())+"px"});e.bind("click",function(){LV2009Rebrand.CloseGlossaryDefinition(e,d)});$(".glossaryPopup a.glossaryClose").bind("click",function(){LV2009Rebrand.CloseGlossaryDefinition(e,d);return false});$(document).keydown(function(g){if(g.keyCode==27){LV2009Rebrand.CloseGlossaryDefinition(e,d)}})}})},CloseGlossaryDefinition:function(b,a){b.remove();a.remove();$(document).unbind("keydown")},GlossaryHighlightToggle:function(a){if($(".glossaryOn").length>0){LV2009Rebrand.GlossaryUnhighlight()}else{if($("#mainContent:has(.glossaryHighlightHidden)").length>0){LV2009Rebrand.GlossaryRehighlight(a)}else{LV2009Rebrand.GlossaryHighlight(a)}}},GlossaryHighlight:function(a){$(".glossaryOff a").hide();$(".glossaryLoading").show();$.ajax({url:"/processors/Glossary/GetAllTerms?categoryId="+a,dataType:"json",cache:false,success:function(b){$(b.glossaryTerms).each(function(c,d){$("#mainContent").highlight(d.term);
$(".highlight:eq(0)").addClass("glossaryHighlight").attr("title","Click for definition");$(".highlight").removeClass("highlight")});$(".glossaryHighlight").each(function(c,e){e=$(e);var d=e.text();e.bind("click",function(){LV2009Rebrand.ShowGlossaryDefinition(d,a);return false})});$(".glossaryLoading").hide();$(".glossaryToggle a").show()}});$(".glossaryOff").removeClass("glossaryOff").addClass("glossaryOn")},GlossaryRehighlight:function(a){$(".glossaryHighlightHidden").removeClass("glossaryHighlightHidden").addClass("glossaryHighlight");$(".glossaryHighlight").each(function(b,d){d=$(d);var c=d.text();d.bind("click",function(){LV2009Rebrand.ShowGlossaryDefinition(c,a);return false})});$(".glossaryOff").removeClass("glossaryOff").addClass("glossaryOn")},GlossaryUnhighlight:function(){$(".glossaryHighlight").removeClass("glossaryHighlight").addClass("glossaryHighlightHidden").unbind("click");$(".glossaryOn").removeClass("glossaryOn").addClass("glossaryOff")},GlossaryExpandToggle:function(b){var a=$("#"+b);if(a.hasClass("expanded")){$("#"+b+" .glossaryDefinition").hide("fast");a.removeClass("expanded")}else{$("#"+b+" .glossaryDefinition").show("fast");a.addClass("expanded")}},GlossaryShowSection:function(a){$("#glossaryFilter input[name='section']").val(a);if(a=="abc"||a=="def"||a=="ghi"||a=="jkl"||a=="mno"||a=="pqr"||a=="stu"||a=="vwxyz"){$("#glossarySectionHeading").text(a.toUpperCase());$("#glossaryList li:not(."+a+")").hide();$("."+a).show()}else{$("#glossarySectionHeading").text("Full A-Z");$("#glossaryList li").show()}},GlossaryDynamicFilter:function(b){var a="";$("#glossaryFilter input:checked").each(function(){if(a!=""){a+=","}a+=$(this).val()});$.ajax({url:"/processors/Glossary/DynamicFilterList?categories="+a,dataType:"html",cache:false,success:function(c){$("#glossaryList").replaceWith(c);var d=$("#glossaryFilter input[name='section']").val();LV2009Rebrand.GlossaryShowSection(d)}})},SetupMainMenuHovers:function(){var a=($.browser.msie&&$.browser.version.substr(0,1)<7);$("#primaryNav > ol > li").each(function(c,e){var d=$(e);var b=d.children("ol");d.mouseenter(function(){if(a){b.show()}d.addClass("hover")});d.mouseleave(function(){if(a){b.hide()}d.removeClass("hover")});if(a){b.css("width",Math.min(d.width()*1.5,220))}else{b.css("min-width",d.width())}})},IE6ResizeKick:function(){var a=($.browser.msie&&$.browser.version.substr(0,1)<7);if(a){$("div").each(function(b,c){var d=$(c);d.css("height",d.css("height"))})}},Continuity:function(){$("body").append('<link media="screen" rel="stylesheet" type="text/css" href="/wcm/system/css/pageeditor_standalone.css"/>');$.getScript("/wcm/system/csi/admin/dialogs.js",function(){$.getScript("/wcm/system/csi/admin/forms.js",function(){$.getScript("/wcm/system/csi/admin/continuity.js",function(){ContinuityStandalone.EditPage()})})})},PageLoad:function(a){LV2009Rebrand.SetupExploreLVDropDown();LV2009Rebrand.SetupMainMenuHovers();LV2009Rebrand.GlossaryListingInit();LV2009Rebrand.IE6ResizeKick();LV2009Rebrand.SetupExpanders();if($.browser.mozilla){$("#mkt-footer-address").css({"margin-left":"16px","margin-top":"6px","font-size":"10px","text-transform":"uppercase"});$("address").css("display","none")}},SetupExploreLVDropDown:function(){var a=$("#exploreLV");if(a){var b='<div id="exploreLVJS"><div onclick="LV2009Rebrand.ToggleExploreLVDropDown();return(false);">'+LV2009Rebrand.ExploreLVDropDownDefaultText+"</div><ol>";a.children().each(function(){var g=$(this);var e=g.val();var h=g.text();var f=""+g.attr("onclick");var i=g.attr("id");f=f.replace(/\"/g,"'");var d=f.substring(f.indexOf("{")+1,f.indexOf("}"));if(e){b+='<li><a id="'+i+'" href="'+e+'" onclick="'+d+'">'+h+"</a></li>"}});b+="</ol></div>";var c=$("#exploreLVForm");c.replaceWith(b)}},ToggleExploreLVDropDown:function(){var a=$("#exploreLVJS ol");if(a){if(LV2009Rebrand.ExploreLVDropDownVisible){LV2009Rebrand.HideExploreLVDropDown()}else{LV2009Rebrand.ShowExploreLVDropDown()}}},ShowExploreLVDropDown:function(){var a=$("#exploreLVJS ol");if(a){LV2009Rebrand.ExploreLVDropDownVisible=true;a.fadeIn("fast")}},HideExploreLVDropDown:function(){var a=$("#exploreLVJS ol");if(a){LV2009Rebrand.ExploreLVDropDownVisible=false;a.fadeOut("fast")}},SetupExpanders:function(){var a=($.browser.msie&&$.browser.version.substr(0,1)==7);if(a){$.each($(".expander"),function(c,b){b=$(b);var f=b.attr("id").substring(8);var e=b.find(".expanderHeader");e.css("position","relative");var d=$("<div/>").appendTo(e);d.css({position:"absolute",top:0,left:0,width:e.width(),height:e.height()})})}},ToggleExpander:function(a){var f=($.browser.msie&&$.browser.version.substr(0,1)<7);var g=$("#"+a+" > div.expanderHeader");var i=$("#"+a+" > div.expanderContent");var d=$("#mainContent");var b=$("#mainContentBottom");var h=b.offset({scroll:true});var e=h.top;if(i.css("display")=="none"){i.css("display","block");g.removeClass("headerClosed");g.addClass("headerOpen");if(f){d.css("height",d.outerHeight()+1)}}else{var c=i.outerHeight();i.css("display","none");g.removeClass("headerOpen");
g.addClass("headerClosed");if(f){d.css("height",d.outerHeight()-1-c)}}},ExpandAllExpanders:function(){var a=$("div.expander");a.each(function(c,d){var b=$(d).attr("id");var e=$(d).find("div.expanderContent");if(e.css("display")=="none"){LV2009Rebrand.ToggleExpander(b)}})},ShowMboxControls:function(){},HighlightUnTaggedLinks:function(){$("a").each(function(c,d){var b=$(d);LV2009Rebrand.AddLinkHighlighter(b)})},UnknownIDHighlighterID:0,CurrentHighlighterTooltip:"",AddToHighlighterTooltip:function(a){LV2009Rebrand.CurrentHighlighterTooltip+="<p>"+a+"</p>"},AddErrorToHighlighterTooltip:function(a){LV2009Rebrand.CurrentHighlighterTooltip+='<p class="error">'+a+"</p>"},AddWarningToHighlighterTooltip:function(a){LV2009Rebrand.CurrentHighlighterTooltip+='<p class="warning">'+a+" - check</p>"},AddLinkHighlighter:function(f){var i=$("body");var a=f.attr("id");var c=a+"-highlighter";var d="yellow";var j=f.attr("href").toLowerCase();LV2009Rebrand.CurrentHighlighterTooltip="";LV2009Rebrand.AddToHighlighterTooltip(j);if(c=="-highlighter"){c=LV2009Rebrand.UnknownIDHighlighterID+"-highlighter";LV2009Rebrand.UnknownIDHighlighterID++;d="red";LV2009Rebrand.AddErrorToHighlighterTooltip("No id defined")}var b=String(f.attr("onclick"));if(b=="undefined"){d="red";LV2009Rebrand.AddErrorToHighlighterTooltip("No onclick defined")}else{if(j.indexOf("http")==0){if(b.toLowerCase().indexOf("simigratecookie")==-1){LV2009Rebrand.AddWarningToHighlighterTooltip("External link with no SiMigrateCookie");d="red"}}var h=b.indexOf("{");b=b.substr(h+1,10000);b=b.replace("}","");var m=b.split(";");$(m).each(function(n,o){if(o.replace(/_/g,"")!=""){LV2009Rebrand.AddToHighlighterTooltip("- "+o)}})}i.append('<div class="link-taginfo-highlighter" id="'+c+'"></div>');var k=$("#"+c);var g=f.offset({scroll:true});k.css({top:g.top,left:g.left,width:f.outerWidth(),height:f.outerHeight(),"background-color":d,opacity:"0.5"});var l=c+"-tooltip";i.append('<div class="link-taginfo-highlighter-tooltip" id="'+l+'">'+LV2009Rebrand.CurrentHighlighterTooltip+"</div>");var e=$("#"+l);e.css({top:g.top+f.outerHeight(),left:g.left});k.mouseover(function(){var n=$("#"+l);n.css({display:"block"})});k.mouseout(function(){var n=$("#"+l);n.css({display:"none"})})},SetupSitemapFilter:function(){var b=new Array();$(".siteMapBlock li").each(function(e,f){var d=new Object();d.li=$(f);d.text="";d.li.find("a").each(function(h,g){d.text+=","+$(g).text().toLowerCase()});b.push(d)});var c=$("#advanced-site-map-filter-input");var a;c.keyup(function(){if(a){clearTimeout(a)}a=setTimeout(function(){LV2009Rebrand.SitemapFilter(b,c.val())},500)});c.focus(function(){if(c.attr("class")=="intro-text"){c.removeClass("intro-text");c.val("")}})},SitemapFilter:function(b,d){d=d.toLowerCase();var a=b.length;$.each(b,function(e,f){if(f.text.indexOf(d)==-1){f.li.fadeOut("fast",function(){a--})}else{if(f.li.parents(".siteMapSection").find("h3:visible").length==0){a++;f.li.parents(".siteMapSection").find("h3").fadeIn("fast",function(){a--})}if(f.li.parents(".siteMapBlock:visible").length==0){a++;f.li.parents(".siteMapBlock").fadeIn("fast",function(){a--})}f.li.fadeIn("fast",function(){a--})}});var c=setInterval(function(){if(a==0){clearInterval(c);$(".siteMapSection").each(function(e,f){if($(f).find("li:visible").length==0){$(f).find("h3").hide()}});$(".siteMapBlock").each(function(e,f){if($(f).find("li:visible").length==0){$(f).hide()}})}},500)},ContentCarouselNext:function(b){var a=$("#carouselStrip"+b);if(!a.hasClass("carouselScrolling")){a.addClass("carouselScrolling");a.animate({left:"-=302px"},500,function(){a.children(".carouselItem:first").appendTo(a);a.css("left","0");a.removeClass("carouselScrolling")})}return false},ContentCarouselPrev:function(b){var a=$("#carouselStrip"+b);if(!a.hasClass("carouselScrolling")){a.addClass("carouselScrolling");a.children(".carouselItem:last").prependTo(a);a.css("left","-302px");a.animate({left:"+=302px"},500,function(){a.removeClass("carouselScrolling")})}return false}}; 
/* .\wcm\system\csi\bitly.js */ 
var Bitly={Shorten:function(a,d,b,c){$.get("http://api.bit.ly/shorten",{version:"2.0.1",login:a,apiKey:d,longUrl:b},c,"jsonp")}}; 
/* .\wcm\system\csi\pageinfoloader.js */ 
var ContinuityPageInfoLoader={ShowPageInfo:function(){$("head").append('<link media="screen,projection" rel="stylesheet" type="text/css" href="/wcm/system/css/pageinfo.css"/>');$("head").append('<script type="text/javascript" src="/wcm/system/csi/pageinfo.js" ><\/script>')}}; 
/* .\wcm\site\csi\adviser-rebrand-2009\jquery.jcarousel.js */ 
/*
 * jCarousel - Riding carousels with jQuery
 *   http://sorgalla.com/jcarousel/
 *
 * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Built on top of the jQuery library
 *   http://jquery.com
 *
 * Inspired by the "Carousel Component" by Bill Scott
 *   http://billwscott.com/carousel/
 */
(function(b){b.fn.jcarousel=function(f){if(typeof f=="string"){var d=b(this).data("jcarousel"),e=Array.prototype.slice.call(arguments,1);return d[f].apply(d,e)}else{return this.each(function(){b(this).data("jcarousel",new a(this,f))})}};var c={vertical:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null};b.jcarousel=function(h,f){this.options=b.extend({},c,f||{});this.locked=false;this.container=null;this.clip=null;this.list=null;this.buttonNext=null;this.buttonPrev=null;this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?"left":"top";var m="",k=h.className.split(" ");for(var g=0;g<k.length;g++){if(k[g].indexOf("jcarousel-skin")!=-1){b(h).removeClass(k[g]);m=k[g];break}}if(h.nodeName=="UL"||h.nodeName=="OL"){this.list=b(h);this.container=this.list.parent();if(this.container.hasClass("jcarousel-clip")){if(!this.container.parent().hasClass("jcarousel-container")){this.container=this.container.wrap("<div></div>")}this.container=this.container.parent()}else{if(!this.container.hasClass("jcarousel-container")){this.container=this.list.wrap("<div></div>").parent()}}}else{this.container=b(h);this.list=this.container.find("ul,ol").eq(0)}if(m!=""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1){this.container.wrap('<div class=" '+m+'"></div>')}this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass("jcarousel-clip")){this.clip=this.list.wrap("<div></div>").parent()}this.buttonNext=b(".jcarousel-next",this.container);if(this.buttonNext.size()==0&&this.options.buttonNextHTML!=null){this.buttonNext=this.clip.after(this.options.buttonNextHTML).next()}this.buttonNext.addClass(this.className("jcarousel-next"));this.buttonPrev=b(".jcarousel-prev",this.container);if(this.buttonPrev.size()==0&&this.options.buttonPrevHTML!=null){this.buttonPrev=this.clip.after(this.options.buttonPrevHTML).next()}this.buttonPrev.addClass(this.className("jcarousel-prev"));this.clip.addClass(this.className("jcarousel-clip")).css({overflow:"hidden",position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,left:0,margin:0,padding:0});this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});var j=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var l=this.list.children("li");var n=this;if(l.size()>0){var d=0,g=this.options.offset;l.each(function(){n.format(this,g++);d+=n.dimension(this,j)});this.list.css(this.wh,d+"px");if(!f||f.size===undefined){this.options.size=l.size()}}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){n.next();return false};this.funcPrev=function(){n.prev();return false};this.funcResize=function(){n.reload()};if(this.options.initCallback!=null){this.options.initCallback(this,"init")}if(b.browser.safari){this.buttons(false,false);b(window).bind("load.jcarousel",function(){n.setup()})}else{this.setup()}};var a=b.jcarousel;a.fn=a.prototype={jcarousel:"0.2.4"};a.fn.extend=a.extend=b.extend;a.fn.extend({setup:function(){this.first=null;this.last=null;this.prevFirst=null;this.prevLast=null;this.animating=false;this.timer=null;this.tail=null;this.inTail=false;if(this.locked){return}this.list.css(this.lt,this.pos(this.options.offset)+"px");var d=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(d,false);b(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize)},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");if(this.options.initCallback!=null){this.options.initCallback(this,"reset")}this.setup()},reload:function(){if(this.tail!=null&&this.inTail){this.list.css(this.lt,a.intval(this.list.css(this.lt))+this.tail)}this.tail=null;this.inTail=false;if(this.options.reloadCallback!=null){this.options.reloadCallback(this)}if(this.options.visible!=null){var f=this;var g=Math.ceil(this.clipping()/this.options.visible),e=0,d=0;b("li",this.list).each(function(h){e+=f.dimension(this,g);if(h+1<f.first){d=e
}});this.list.css(this.wh,e+"px");this.list.css(this.lt,-d+"px")}this.scroll(this.first,false)},lock:function(){this.locked=true;this.buttons()},unlock:function(){this.locked=false;this.buttons()},size:function(d){if(d!=undefined){this.options.size=d;if(!this.locked){this.buttons()}}return this.options.size},has:function(f,g){if(g==undefined||!g){g=f}if(this.options.size!==null&&g>this.options.size){g=this.options.size}for(var d=f;d<=g;d++){var h=this.get(d);if(!h.length||h.hasClass("jcarousel-item-placeholder")){return false}}return true},get:function(d){return b(".jcarousel-item-"+d,this.list)},add:function(h,o){var k=this.get(h),f=0,n=0;if(k.length==0){var m,k=this.create(h),g=a.intval(h);while(m=this.get(--g)){if(g<=0||m.length){g<=0?this.list.prepend(k):m.after(k);break}}}else{f=this.dimension(k)}k.removeClass(this.className("jcarousel-item-placeholder"));typeof o=="string"?k.html(o):k.empty().append(o);var l=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var d=this.dimension(k,l)-f;if(h>0&&h<this.first){this.list.css(this.lt,a.intval(this.list.css(this.lt))-d+"px")}this.list.css(this.wh,a.intval(this.list.css(this.wh))+d+"px");return k},remove:function(f){var g=this.get(f);if(!g.length||(f>=this.first&&f<=this.last)){return}var h=this.dimension(g);if(f<this.first){this.list.css(this.lt,a.intval(this.list.css(this.lt))+h+"px")}g.remove();this.list.css(this.wh,a.intval(this.list.css(this.wh))-h+"px")},next:function(){this.stopAuto();if(this.tail!=null&&!this.inTail){this.scrollTail(false)}else{this.scroll(((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!=null&&this.last==this.options.size)?1:this.first+this.options.scroll)}},prev:function(){this.stopAuto();if(this.tail!=null&&this.inTail){this.scrollTail(true)}else{this.scroll(((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!=null&&this.first==1)?this.options.size:this.first-this.options.scroll)}},scrollTail:function(d){if(this.locked||this.animating||!this.tail){return}var e=a.intval(this.list.css(this.lt));!d?e-=this.tail:e+=this.tail;this.inTail=!d;this.prevFirst=this.first;this.prevLast=this.last;this.animate(e)},scroll:function(e,d){if(this.locked||this.animating){return}this.animate(this.pos(e),d)},pos:function(B){var k=a.intval(this.list.css(this.lt));if(this.locked||this.animating){return k}if(this.options.wrap!="circular"){B=B<1?1:(this.options.size&&B>this.options.size?this.options.size:B)}var y=this.first>B;var D=this.options.wrap!="circular"&&this.first<=1?1:this.first;var G=y?this.get(D):this.get(this.last);var A=y?D:D-1;var E=null,z=0,u=false,F=0,C;while(y?--A>=B:++A<B){E=this.get(A);u=!E.length;if(E.length==0){E=this.create(A).addClass(this.className("jcarousel-item-placeholder"));G[y?"before":"after"](E);if(this.first!=null&&this.options.wrap=="circular"&&this.options.size!==null&&(A<=0||A>this.options.size)){C=this.get(this.index(A));if(C.length){this.add(A,C.children().clone(true))}}}G=E;F=this.dimension(E);if(u){z+=F}if(this.first!=null&&(this.options.wrap=="circular"||(A>=1&&(this.options.size==null||A<=this.options.size)))){k=y?k+F:k-F}}var r=this.clipping();var t=[];var h=0,A=B,s=0;var G=this.get(B-1);while(++h){E=this.get(A);u=!E.length;if(E.length==0){E=this.create(A).addClass(this.className("jcarousel-item-placeholder"));G.length==0?this.list.prepend(E):G[y?"before":"after"](E);if(this.first!=null&&this.options.wrap=="circular"&&this.options.size!==null&&(A<=0||A>this.options.size)){C=this.get(this.index(A));if(C.length){this.add(A,C.find(">*").clone(true))}}}G=E;var F=this.dimension(E);if(F==0){alert("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");return 0}if(this.options.wrap!="circular"&&this.options.size!==null&&A>this.options.size){t.push(E)}else{if(u){z+=F}}s+=F;if(s>=r){break}A++}for(var q=0;q<t.length;q++){t[q].remove()}if(z>0){this.list.css(this.wh,this.dimension(this.list)+z+"px");if(y){k-=z;this.list.css(this.lt,a.intval(this.list.css(this.lt))-z+"px")}}var o=B+h-1;if(this.options.wrap!="circular"&&this.options.size&&o>this.options.size){o=this.options.size}if(A>o){h=0,A=o,s=0;while(++h){var E=this.get(A--);if(!E.length){break}s+=this.dimension(E);if(s>=r){break}}}var n=o-h+1;if(this.options.wrap!="circular"&&n<1){n=1}if(this.inTail&&y){k+=this.tail;this.inTail=false}this.tail=null;if(this.options.wrap!="circular"&&o==this.options.size&&(o-h+1)>=1){var w=a.margin(this.get(o),!this.options.vertical?"marginRight":"marginBottom");if((s-w)>r){this.tail=s-r-w}}while(B-->n){k+=this.dimension(this.get(B))}this.prevFirst=this.first;this.prevLast=this.last;this.first=n;this.last=o;return k},animate:function(g,d){if(this.locked||this.animating){return}this.animating=true;var e=this;var f=function(){e.animating=false;if(g==0){e.list.css(e.lt,0)}if(e.options.wrap=="circular"||e.options.wrap=="both"||e.options.wrap=="last"||e.options.size==null||e.last<e.options.size){e.startAuto()}e.buttons();e.notify("onAfterAnimation")
};this.notify("onBeforeAnimation");if(!this.options.animation||d==false){this.list.css(this.lt,g+"px");f()}else{var h=!this.options.vertical?{left:g}:{top:g};this.list.animate(h,this.options.animation,this.options.easing,f)}},startAuto:function(e){if(e!=undefined){this.options.auto=e}if(this.options.auto==0){return this.stopAuto()}if(this.timer!=null){return}var d=this;this.timer=setTimeout(function(){d.next()},this.options.auto*1000)},stopAuto:function(){if(this.timer==null){return}clearTimeout(this.timer);this.timer=null},buttons:function(f,e){if(f==undefined||f==null){var f=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!="first")||this.options.size==null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!=null&&this.last>=this.options.size){f=this.tail!=null&&!this.inTail}}if(e==undefined||e==null){var e=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!="last")||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!=null&&this.first==1){e=this.tail!=null&&this.inTail}}var d=this;this.buttonNext[f?"bind":"unbind"](this.options.buttonNextEvent+".jcarousel",this.funcNext)[f?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",f?false:true);this.buttonPrev[e?"bind":"unbind"](this.options.buttonPrevEvent+".jcarousel",this.funcPrev)[e?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",e?false:true);if(this.buttonNext.length>0&&(this.buttonNext[0].jcarouselstate==undefined||this.buttonNext[0].jcarouselstate!=f)&&this.options.buttonNextCallback!=null){this.buttonNext.each(function(){d.options.buttonNextCallback(d,this,f)});this.buttonNext[0].jcarouselstate=f}if(this.buttonPrev.length>0&&(this.buttonPrev[0].jcarouselstate==undefined||this.buttonPrev[0].jcarouselstate!=e)&&this.options.buttonPrevCallback!=null){this.buttonPrev.each(function(){d.options.buttonPrevCallback(d,this,e)});this.buttonPrev[0].jcarouselstate=e}},notify:function(d){var e=this.prevFirst==null?"init":(this.prevFirst<this.first?"next":"prev");this.callback("itemLoadCallback",d,e);if(this.prevFirst!==this.first){this.callback("itemFirstInCallback",d,e,this.first);this.callback("itemFirstOutCallback",d,e,this.prevFirst)}if(this.prevLast!==this.last){this.callback("itemLastInCallback",d,e,this.last);this.callback("itemLastOutCallback",d,e,this.prevLast)}this.callback("itemVisibleInCallback",d,e,this.first,this.last,this.prevFirst,this.prevLast);this.callback("itemVisibleOutCallback",d,e,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(h,l,d,j,g,f,e){if(this.options[h]==undefined||(typeof this.options[h]!="object"&&l!="onAfterAnimation")){return}var m=typeof this.options[h]=="object"?this.options[h][l]:this.options[h];if(!b.isFunction(m)){return}var n=this;if(j===undefined){m(n,d,l)}else{if(g===undefined){this.get(j).each(function(){m(n,this,j,d,l)})}else{for(var k=j;k<=g;k++){if(k!==null&&!(k>=f&&k<=e)){this.get(k).each(function(){m(n,this,k,d,l)})}}}}},create:function(d){return this.format("<li></li>",d)},format:function(g,f){var d=b(g).addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+f)).css({"float":"left","list-style":"none"});d.attr("jcarouselindex",f);return d},className:function(d){return d+" "+d+(!this.options.vertical?"-horizontal":"-vertical")},dimension:function(i,j){var h=i.jquery!=undefined?i[0]:i;var g=!this.options.vertical?h.offsetWidth+a.margin(h,"marginLeft")+a.margin(h,"marginRight"):h.offsetHeight+a.margin(h,"marginTop")+a.margin(h,"marginBottom");if(j==undefined||g==j){return g}var f=!this.options.vertical?j-a.margin(h,"marginLeft")-a.margin(h,"marginRight"):j-a.margin(h,"marginTop")-a.margin(h,"marginBottom");b(h).css(this.wh,f+"px");return this.dimension(h)},clipping:function(){return !this.options.vertical?this.clip[0].offsetWidth-a.intval(this.clip.css("borderLeftWidth"))-a.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-a.intval(this.clip.css("borderTopWidth"))-a.intval(this.clip.css("borderBottomWidth"))},index:function(d,e){if(e==undefined){e=this.options.size}return Math.round((((d-1)/e)-Math.floor((d-1)/e))*e)+1}});a.extend({defaults:function(e){return b.extend(c,e||{})},margin:function(i,h){if(!i){return 0}var g=i.jquery!=undefined?i[0]:i;if(h=="marginRight"&&b.browser.safari){var f={display:"block","float":"none",width:"auto"},d,j;b.swap(g,f,function(){d=g.offsetWidth});f.marginRight=0;b.swap(g,f,function(){j=g.offsetWidth});return j-d}return a.intval(b.css(g,h))},intval:function(d){d=parseInt(d);return isNaN(d)?0:d}})})(jQuery); 
/* .\wcm\site\csi\jquery.highlight-3.js */ 
jQuery.fn.highlight=function(b){function a(e,j){var l=0;if(e.nodeType==3){var k=e.data.toUpperCase().indexOf(j);if(k>=0){var h=document.createElement("span");h.className="highlight";var f=e.splitText(k);var c=f.splitText(j.length);var d=f.cloneNode(true);h.appendChild(d);f.parentNode.replaceChild(h,f);l=1}}else{if(e.nodeType==1&&e.childNodes&&!/(script|style)/i.test(e.tagName)){for(var g=0;g<e.childNodes.length;++g){g+=a(e.childNodes[g],j)}}}return l}return this.each(function(){a(this,b.toUpperCase())})};jQuery.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()}; 
/* .\wcm\site\csi\tracking.js */ 
var hceRoomsEntered={};var hceRoomsEnteredCount=0;function recordOutboundPopupLink(b){if(typeof(_gat)=="object"){var a=_gat._getTracker(window.gaAccountID);a._trackEvent("Outbound Link","Link",b.href)}}function recordClickConversion(e){for(var a=0;a<document.gaClickEvents.length;a++){var d=document.gaClickEvents[a];var c=d.url.toLowerCase();var f=e.href.toLowerCase();if(f.substr(0,c.length)==c){var b=_gat._getTracker(window.gaAccountID);b._trackPageview(d.testid)}else{}}}function hceShowRoom(a){if(hceRoomsEntered[a]){}else{hceRoomsEntered[a]=true;hceRoomsEnteredCount=hceRoomsEnteredCount+1;SiTrackData("hce-rooms-entered="+hceRoomsEnteredCount)}}function hceRoomComplete(c){if(c.length=2){var a=c[0];var b=c[1];if(a!=0&&String(a)!="undefined"){SiTrackData("hce-rooms-entered="+a);SiTrackData("hce-estimate-total="+b)}}else{}}function hceFinish(){var b=document.getElementById("footer");if(b){b.innerHTML+='<a onclick="Tracker(anchor,\'/_insurance_home_insurance_home-contents-estimator/HCE/Finish/_/\');" id="hceFinish" href="/insurance/home_insurance/home-contents-estimator#finish"></a>';var a=document.getElementById("hceFinish");SiTrackEvent(a);SiTrackLink(a)}}function hceQuote(){hceLaunchQuote()}function hceLaunchQuote(){var b=document.getElementById("footer");if(b){b.innerHTML+='<a onclick="Tracker(this,\'/_insurance_home_insurance_home-contents-estimator/HCE/Quote/_/\');" target="_blank" id="hceQuote" href="https://www.lvgirqp.co.uk/lv_gihm/H_Welcome.jsp?Group=lv&SourceCode=IELO"></a>';var a=document.getElementById("hceQuote");SiTrackLink(a);SiTrackEvent(a);SiMigrateCookie(a);window.open($("#hceQuote").attr("href"));$("#hceQuote").trigger("click")}}function SiDataSafe(b){var a=b.replace(/&pound;/g,"");a=a.replace(/ /g,"");a=a.replace(/,/g,"");return(a)}function DecodeOnClickForTrackingEditor(e){if(e){if(e.indexOf("Tracker(")==-1){return("")}else{var g=e.indexOf("Tracker(");var d=g+13;var b=e.indexOf("'",d+1);var f=e.substring(d+1,b);var c=f.split("/");for(var a=c.length-1;a>=0;a--){if(c[a]==""){c.splice(a,1)}}f=c[c.length-1];if(f=="_"){f=""}return(f)}}else{return("")}}function Adconion_OptimisationQuote(){var d=2557;var b=1440;var i=1;var a=(document.domain).split(".");var l=(a.length>1?"."+a[a.length-2]+"."+a[a.length-1]:document.domain);var h="L"+d+"=";var k=document.cookie.indexOf(h);var g=1;var j=0;var e;var f=(new Date()).getTime();if(k>=0){_pos=document.cookie.substring(k).indexOf(";");if(_pos>0){_val=document.cookie.substring(k+h.length,k+_pos)}else{_val=document.cookie.substring(k+h.length)}if(_val.indexOf(".")>0){g=_val.substring(0,_val.indexOf("."));e=_val.substring(_val.indexOf(".")+1);j=e-(new Date()).getTime()}if(j<=0){document.cookie=h+"; domain="+l+"; path=/; expires="+(new Date((new Date()).getTime()-1000000)).toGMTString()+";"}}if(g<i||j<=0){var c=(new Date((new Date()).getTime()+b*2*60*1000)).toGMTString();if(document.cookie.indexOf(h)<0){document.cookie=h+""+(1)+"."+((new Date()).getTime()+b*60*1000)+"; domain="+l+";path=/;expires="+c}else{document.cookie=h+""+(g-0+1)+"."+e+";domain="+l+"; path=/;expires="+c}document.write("<script language='javascript' src='http://adopt.euroclick.com/Custom/bht.jsp?px="+d+"&v=1&rnd="+f+"'>");document.write("<\/script>")}}function Adconion_OptimisationPolicy(){var d=2557;var b=1440;var i=1;var a=(document.domain).split(".");var l=(a.length>1?"."+a[a.length-2]+"."+a[a.length-1]:document.domain);var h="L"+d+"=";var k=document.cookie.indexOf(h);var g=1;var j=0;var e;var f=(new Date()).getTime();if(k>=0){_pos=document.cookie.substring(k).indexOf(";");if(_pos>0){_val=document.cookie.substring(k+h.length,k+_pos)}else{_val=document.cookie.substring(k+h.length)}if(_val.indexOf(".")>0){g=_val.substring(0,_val.indexOf("."));e=_val.substring(_val.indexOf(".")+1);j=e-(new Date()).getTime()}if(j<=0){document.cookie=h+"; domain="+l+"; path=/; expires="+(new Date((new Date()).getTime()-1000000)).toGMTString()+";"}}if(g<i||j<=0){var c=(new Date((new Date()).getTime()+b*2*60*1000)).toGMTString();if(document.cookie.indexOf(h)<0){document.cookie=h+""+(1)+"."+((new Date()).getTime()+b*60*1000)+"; domain="+l+";path=/;expires="+c}else{document.cookie=h+""+(g-0+1)+"."+e+";domain="+l+"; path=/;expires="+c}document.write("<script language='javascript' src='http://adopt.euroclick.com/Custom/bht.jsp?px="+d+"&v=1&rnd="+f+"'>");document.write("<\/script>")}}function Adconion_OptimisationLanding(){var d=2556;var b=1440;var i=1;var a=(document.domain).split(".");var l=(a.length>1?"."+a[a.length-2]+"."+a[a.length-1]:document.domain);var h="L"+d+"=";var k=document.cookie.indexOf(h);var g=1;var j=0;var e;var f=(new Date()).getTime();if(k>=0){_pos=document.cookie.substring(k).indexOf(";");if(_pos>0){_val=document.cookie.substring(k+h.length,k+_pos)}else{_val=document.cookie.substring(k+h.length)}if(_val.indexOf(".")>0){g=_val.substring(0,_val.indexOf("."));e=_val.substring(_val.indexOf(".")+1);j=e-(new Date()).getTime()}if(j<=0){document.cookie=h+"; domain="+l+"; path=/; expires="+(new Date((new Date()).getTime()-1000000)).toGMTString()+";"
}}if(g<i||j<=0){var c=(new Date((new Date()).getTime()+b*2*60*1000)).toGMTString();if(document.cookie.indexOf(h)<0){document.cookie=h+""+(1)+"."+((new Date()).getTime()+b*60*1000)+"; domain="+l+";path=/;expires="+c}else{document.cookie=h+""+(g-0+1)+"."+e+";domain="+l+"; path=/;expires="+c}document.write("<script language='javascript' src='http://adopt.euroclick.com/Custom/bht.jsp?px="+d+"&v=1&rnd="+f+"'>");document.write("<\/script>")}}function EncodeOnClickForTrackingEditor(b,c,a){var d="";b=b.toLowerCase();if(a==""){a="_"}if(c==""){c="' + getPageTrackingInfo() + '"}if(b.indexOf("https://www.lvinteract.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.lvgirqp.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.lvgiiq.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.magroup-online.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.lvinteract.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.lvgirqp.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.lvgiiq.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.magroup-online.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.manageyourinvestments.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.distribution-technology.com")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.lvadviser.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.manageyourinvestments.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.distribution-technology.com")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.lvadviser.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.lvprotection.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.lvprotection.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://lv-travel.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://lv-travel.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.brrquote.com")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.brrquote.com")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.lvpet.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.lvpet.co.uk")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.lvquoteforlife.com")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.lvquoteforlife.com")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.lvadviceforlife.com")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.lvadviceforlife.com")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://as-apexsys-middle")==0){d="SiMigrateCookie(this);"}if(b.indexOf("https://www.brrquote.com")==0){d="SiMigrateCookie(this);"}if(b.indexOf("http://www.brrquote.com")==0){d="SiMigrateCookie(this);"}if((b.toLowerCase().indexOf(".doc")!=-1)||(b.toLowerCase().indexOf(".pdf")!=-1)||(b.toLowerCase().indexOf(".doc")!=-1)){d+="DocTracker(this,href,'"+c+"/"+a+"/');"}else{d+="Tracker(this,'"+c+"/"+a+"/');"}return(d)}function GetHostName(){var a=window.location.toString();var c=a.indexOf("://")+3;a=a.substring(c,(a.length));var b=a.indexOf("/");a=a.substring(0,b);return(a)}function Tracker(e,d){var b=window.location.toString();if(d.substring(0,11)=="/_template_"){var i=b.indexOf("://")+3;b=b.substring(i,(b.length));var g=b.indexOf("/");b=b.substring(g,(b.length));b="/"+b.replace(/\//g,"_");if(d.substring(0,b.length)!=b){var a=b.substring(0,b.indexOf("/",2));d=d.replace("/_template_","/_"+a)}}d="/"+siteUrl+d.replace("/_/","//");var j=d.split("/");if(j.length<6){d=getPageTrackingUrl()+"/Main Content/Unknown//"}var f=e.target;var h=String(e.onclick);var c="";if(h.indexOf("SiMigrateCookie")!=-1){c="\n\nIncludes SiMigrateCookie"}if((f=="_blank")||(f=="_parent")||(f=="_new")){SiTrackEvent(e)}else{SiTrackLink(e)}}function DocTracker(a,d,c){if(c){d=c}d="/"+siteUrl+d.replace("/_/","//");SiTrackTracer(a.href,"Linktype="+d);var b=a.target;if((b=="_blank")||(b=="_parent")||(b=="_new")){SiTrackEvent(a)}else{SiTrackLink(a)}}function TrackForm(d,c,b,a){if(a){SiTrackForm(d,c,b)}return(a)}function getAnchorLocation(a){return("Main Content")}function SendOurTracer(a,c){var b=document.getElementById("footer");if(b){b.innerHTML+='<img src="/wcm/site/pages/tracking/tracker.aspx?info='+c+'" style="width:1px;height:1px;">'}}; 

