﻿/*
* Copyright 2009 Sellector GmbH
* All rights reserved.
* Usage only allowed with sellector.com backend.
* Reverse engineering strictly prohibited.
*/
function sellectorLoader(q,k,f,p){var l=32;var o=32;var h="loading.gif";var e;var j;var x;var v;var y="undefined";selD.dk=q;selD.ir=k;selD.ej=f;selD.nu=document.getElementsByTagName("head")[0];if(p){et();return}if(q=="-1"){selD.ta=selD.sh+selD.tapreview}else{selD.ta=selD.sf+selD.tausage}var d=document.location.hostname;var t;var z;z=d.split(".");t=0;while(z[t]){++t}if(z[t-2]&&z[t-1]){selD.sld=z[t-2];selD.tld=z[t-1]}else{selD.sld="void";selD.tld="void"}var n;if(typeof sellectorPresentation!=y&&sellectorPresentation.inputAreaTemplate){n=sellectorPresentation.inputAreaTemplate.dependency}var u="";if(n&&n.change){t=0;while(n.change[t]){if(n.change[t].loadDefinition){var w=0;while(n.change[t].loadDefinition[w]&&n.change[t].loadDefinition[w].name){if(t||w){u+="|"}u+=n.change[t].loadDefinition[w].name;++w}}++t}}if(u){u="&skipD="+encodeURIComponent(u)}var g;selD.sz("script",selD.ta+selD.gp+"?sid="+selD.dk+"&sld="+selD.sld+"&tld="+selD.tld+"&spd="+selD.ni+u);g=0;while(g<selD.scripts.no.length){selD.sz("script",selD.sg+selD.scripts.no[g]+"?sid="+selD.dk+"&sld="+selD.sld+"&tld="+selD.tld);++selD.dt;++g}var m=1;if(typeof sellectorFeature!=y&&sellectorFeature.nlg){m=0}e=document.getElementById(f);if(e&&m){x=((e.offsetWidth*1)-(o*1))/2;v=((e.offsetHeight*1)-(l*1))/2;e.innerHTML="<div style='position:absolute; z-index:20; height:"+e.offsetHeight+"px; width:"+e.offsetWidth+"px'></div>";j=e.firstChild;j.innerHTML+="<div style='position:absolute; top:"+v+"px; left:"+x+"px; width:"+o+"px; height:"+l+"px'><img src='"+selD.kp+h+"' width='"+(o).toString()+"' height='"+(l).toString()+"'></div>"}--selD.ds;if(selD.ds){window.setTimeout("dm()",2000)}selD.lw=window.onresize;window.onresize=resizeSellector}function sellectorScriptReady(d){++selD.dr;kj()}function catchParameterFileReady(){if(typeof sellectorParameterFile!="undefined"&&!(selD.gq||selD.gr)){sellectorParameterFileReady()}}function sellectorParameterFileReady(){window.clearInterval(selD.rw);if(sellectorParameterFile.command){selD.gr=true;if(sellectorParameterFile.command=="rejectDomain"){alert("The sellector with the ID "+selD.dk+' is not licensed\nfor this Domain: "'+selD.sld+"."+selD.tld+'"\nCheck your settings at www.sellector.com')}if(sellectorParameterFile.command=="noSuchSellector"){alert("No sellector with the ID "+selD.dk+" is currently published.\nCheck your settings at www.sellector.com")}}else{selD.gq=true;kj()}}function kj(){if(selD.gq&&(selD.dr>=selD.dt)){var e="undefined";if(typeof sellectorPresentation!=e){selD.ov=sellectorPresentation}if(typeof sellectorFeature!=e){selD.pa=sellectorFeature}if(typeof sellectorPreset!=e){selD.il=sellectorPreset}if(typeof sellectorMask!=e){selD.io=sellectorMask}if(typeof sellectorTileScripting!=e){selD.scripting=sellectorTileScripting}if(typeof sellectorScripting!=e){selD.scripting=sellectorScripting}if(typeof sellectorConfigurator!=e){selD.qp=sellectorConfigurator}if(sellectorParameterFile.prr){selD.gz=true}if(sellectorParameterFile.affiliateMode){selD.th=sellectorParameterFile.affiliateMode}if(sellectorParameterFile.afm){selD.th=sellectorParameterFile.afm}selI.rr(document.location.hash);if(selD.hw){window.clearInterval(selD.hw)}if(selD.pa&&selD.pa.selectStateUrl&&selD.pa.selectStateUrl.enableBackButton){selD.hw=window.setInterval(selD.hx,200)}selI.rz(sellectorParameterFile,selD.ir);selI.ki();selR.gl(sellectorParameterFile,selD.ej);var d=true;if(selD.il&&selD.il.presetValue){d=false}selD.de(selI.ls(d),"");selD.aq(d)}}function resizeSellector(){if(selI.en()||selR.en()){kj()}if(selD.lw){window.setTimeout(selD.lw,1)}}function eu(d,e,f){selR.eo(selD.mv());selR.kt(true);selR.ku("force");selD.de(selI.ls(f),selI.qq(d,e));selD.aq(f)}function sellectorRankResponseReady(){selD.dz=false;window.clearTimeout(selD.dv);var d;d=sellectorRankResponse;if(d){if(d.initialize){et()}else{selR.ev(d,selD.mv());if(!selR.lt()){if(d.inputElement){selI.ar(d.inputElement)}if(d.ief){selI.au(d.ief)}}}}}function dm(){if(((selD.dr!=selD.dt)||(!selD.gq))&&(!selD.gr)){et()}}function et(){selD.om(selD.ta+selD.gp);sellectorParameterFile=false;selD.gq=false;var d=0;while(d<selD.scripts.no.length){selD.om(selD.sg+selD.scripts.no[d]);++d}selD.dr=0;selD.dt=0;sellectorLoader(selD.dk,selD.ir,selD.ej)}function di(e,f,d){var g=false;if(selD.pa){if(selD.pa.openResultTarget){g=selD.pa.openResultTarget}if(selD.pa.affiliatePattern&&selD.th){e=selD.pa.affiliatePattern.replace(/<sellectorDestination\/>/g,e);if(selD.pa.affiliateId){e=e.replace(/<affiliateId\/>/g,selD.pa.affiliateId)}}}selD.dg(f,d);if(selD.pa&&selD.pa.selectStateUrl&&selD.pa.selectStateUrl.addToDestination){e+=("#SEL"+selI.pl)}dj(e,g)}function sellectorClick(e,f,d){di(e,f,d)}function sellectorSelectedResponseReady(){}function df(){var d;d=selI.lm();selD.dc(d);return false}function sellectorFeedBackResponseReady(){if(sellectorFeedBackResponse){selI.an(sellectorFeedBackResponse)}}function dj(d,e){if(d=="sellector"){d="http://www.sellector.com"}if(d){if(e){window.open(d,e)}else{window.location.href=d}}}var selD={nu:null,lw:null,dt:0,dr:0,ds:3,dd:2,dv:null,dz:false,rw:null,ru:null,gq:false,gr:false,dk:false,ir:false,ej:false,sld:"",tld:"",gz:false,ni:true,ov:false,pa:false,hw:null,qb:"",scripting:null,th:0,il:false,io:false,qp:false,sg:"",kp:"http://cdn.easeofchoice.com/scripts/",sf:"http://search.sellector.com/",tausage:"api/sellector/",sh:"http://www.sellector.com/",tapreview:"sellector/api/preview/",ta:false,gp:"",cw:"search",fe:"getpd",fa:"selected",mm:"feedback",scripts:{no:[]},de:function(g,j,e){if(!e){e=0}var f=null;var d=null;d=selR.ln();if(selD.gz){f=selR.lp()*selR.lt()}var h="";if(d!=null){h+="&nop="+d}if(f!=null){h+="&ofs="+f}selD.om(this.ta+this.cw);if(typeof sellectorRankResponse!="undefined"){sellectorRankResponse=null}selD.sz("script",this.ta+this.cw+"?sid="+this.dk+"&sld="+this.sld+"&tld="+this.tld+h+j+"&"+g);selD.dz=true;if(e<selD.dd){selD.dv=window.setTimeout(function(){selD.dw(g,j,e)},2000)}},dw:function(e,f,d){window.clearTimeout(selD.dv);if(selD.dz){selD.de(e,f,++d)}},rv:function(){if(selD.dz){if(typeof sellectorRankResponse!="undefined"&&sellectorRankResponse!=null){sellectorRankResponseReady()}}else{window.clearInterval(selD.ru)}},dg:function(e,d){selD.om(this.ta+this.fa);selD.sz("script",this.ta+this.fa+"?sid="+this.dk+"&sld="+this.sld+"&tld="+this.tld+"&fk="+e+"&pid="+d)},dc:function(d){selD.om(this.ta+this.mm);selD.sz("script",this.ta+this.mm+"?sid="+this.dk+"&sld="+this.sld+"&tld="+this.tld+"&feedBack="+d)},om:function(f){var e;var d;d=selD.nu.firstChild;while(d){if(d.src){if(d.src.substr(0,f.length)==f){selD.nu.removeChild(d)}}if(d.href){if(d.href.substr(0,f.length)==f){selD.nu.removeChild(d)}}d=d.nextSibling}},sz:function(e,f){var d;switch(e){case"script":d=document.createElement("script");d.type="text/javascript";d.src=f;break;case"link":d=document.createElement("link");d.type="text/css";d.href=f;d.rel="stylesheet";break}selD.nu.appendChild(d)},aq:function(g){if(selD.pa&&selD.pa.selectStateUrl){var f=document.location.href.split("#");var e="#SEL"+selI.pl;var d=selD.pa.selectStateUrl;if(d.encoding&&d.encoding=="readable"){e=""}if(f[1]&&f[1].substr(0,3)!="SEL"){e=f[1]}selD.qb=e;if(g){document.location.replace(f[0]+e)}else{document.location.href=f[0]+e}}},mv:function(){return null},hx:function(){if(document.location.hash!=selD.qb){window.clearInterval(selD.hw);window.clearTimeout(selD.dv);selR.eo(selD.mv());selR.kt(true);selR.ku("force");kj();selD.qb=document.location.hash}}};var selI={is:[{id:false,sc:false,innerBoxPointer:false,sb:false,sd:false,er:false,es:false,inputElement:null,ip:null,mx:null,elementMargin:null}],ax:"sellectInput",hi:"none",dq:18,ml:"",pl:"",kk:false,gs:false,dh:"",ky:"",kx:null,kw:0,fu:new Array,it:"vertical",kc:"#000000",ix:"#000000",kd:"#000000",kf:"#E0E0E0",iu:"Verdana",iv:10,iw:4,kb:"#E0E0E0",iz:"#FF6600",iy:"#FFCCAA",ka:"#AAAAAA",ke:"#000000",la:null,kz:null,qs:10,re:10,ro:"",rk:"left",qw:0,rc:"pale",ri:"#333333",rg:2,qu:20,qt:null,rf:null,rp:null,rl:null,qx:null,rd:null,rj:null,rh:null,qv:null,rb:false,nm:"---",nk:null,nkColor:null,ck:0,bz:0,bx:false,cb:null,cj:null,by:0,bw:false,aw:"",hp:null,hn:null,nx:null,ho:null,hm:50,nw:" (<inputElementMatchCount/>)",ll:false,lh:false,lg:0,le:[],lf:[],qc:null,kv:false,cf:false,cc:0,qy:new Array,rz:function(e,h){if(!this.lh){this.lh=new Array()}else{while(this.lh.lastChild){this.lh.removeChild(this.lh.lastChild)}}this.lg=0;if(!this.cf){this.cf=new Array()}else{while(this.cf.lastChild){this.cf.removeChild(this.cf.lastChild)}}this.cc=0;this.ky="";if(!this.kx){this.kx=new Array()}this.kw=0;this.gs=e;if(this.gs.version){this.dh=this.gs.version}if(this.gs.inputOrientation){this.it=this.gs.inputOrientation}if(this.gs.inputColorHeading){this.kc=this.gs.inputColorHeading}if(this.gs.inputColorText){this.ix=this.gs.inputColorText}if(this.gs.inputColorFrames){this.kd=this.gs.inputColorFrames}if(this.gs.inputColorBackground){this.kf=this.gs.inputColorBackground}if(this.gs.inputFontStyle){this.iu=this.gs.inputFontStyle}if(this.gs.inputFontSize){this.iv=this.gs.inputFontSize}if(this.gs.inputCorner){this.iw=this.gs.inputCorner}if(this.gs.inputColorSlider){this.kb=this.gs.inputColorSlider}if(this.gs.inputColorSliderMarker){this.iz=this.gs.inputColorSliderMarker}if(this.gs.inputColorSliderTrack){this.iy=this.gs.inputColorSliderTrack}if(this.gs.inputColorSliderBorder){this.ka=this.gs.inputColorSliderBorder}if(this.gs.inputColorCheckbox){this.ke=this.gs.inputColorCheckbox}if(selD.ov&&selD.ov.inputAreaTemplate){if(selD.ov.inputAreaTemplate.backgroundColor){this.kf=selD.ov.inputAreaTemplate.backgroundColor}if(selD.ov.inputAreaTemplate.matchCountForAll){this.ll=true}}var f;if(selD.ov&&selD.ov.inputAreaTemplate&&selD.ov.inputAreaTemplate.box){var g=selD.ov.inputAreaTemplate.box;f=0;var k=0;while(g[f]){if(g[f].divId&&document.getElementById(g[f].divId)&&g[f].element){if(!this.is[k]){this.is[k]=new Object}this.is[k].id=g[f].divId;this.is[k].sc=document.getElementById(g[f].divId);if(g[f].singleElementWidth){this.is[k].mx=g[f].singleElementWidth}else{this.is[k].mx=null}if(g[f].elementSpacing){this.is[k].elementMargin=g[f].elementSpacing}else{this.is[k].elementMargin=null}var d=0;var j=0;if(!this.is[k].element){this.is[k].inputElement=new Array}if(!this.is[k].ip){this.is[k].ip=new Array}while(g[f].element[d]){this.is[k].ip[j]="";if(!this.is[k].inputElement[j]){this.is[k].inputElement[j]=new Object}if(g[f].element[d].id){this.is[k].inputElement[j].id=g[f].element[d].id;++j}else{if(g[f].element[d].name){this.is[k].inputElement[j].name=g[f].element[d].name;++j}}++d}this.is[k].inputElement[j]=null;++k}++f}this.is[k]=null}else{this.is[0].id=h;this.is[0].sc=document.getElementById(h);if(!this.is[0].ip){this.is[0].ip=new Array}this.is[0].ip[0]=""}f=0;while(this.is[f]){if(this.is[f].sc.offsetWidth){this.is[f].sb=this.is[f].sc.offsetWidth;if(this.is[f].sc.style.borderLeftWidth){this.is[f].sb-=this.is[f].sc.style.borderLeftWidth.substring(0,this.is[f].sc.style.borderLeftWidth.length-2)}if(this.is[f].sc.style.borderRightWidth){this.is[f].sb-=this.is[f].sc.style.borderRightWidth.substring(0,this.is[f].sc.style.borderRightWidth.length-2)}if(this.is[f].sc.style.paddingLeft){this.is[f].sb-=this.is[f].sc.style.paddingLeft.substring(0,this.is[f].sc.style.paddingLeft.length-2)}if(this.is[f].sc.style.paddingRight){this.is[f].sb-=this.is[f].sc.style.paddingRight.substring(0,this.is[f].sc.style.paddingRight.length-2)}}else{if(this.is[f].sc.style.width.substr(this.is[f].sc.style.width.length-2)=="px"){this.is[f].sb=this.is[f].sc.style.width.substring(0,this.is[f].sc.style.width.length-2)}}if(this.is[f].sc.offsetHeight){this.is[f].sd=this.is[f].sc.offsetHeight;if(this.is[f].sc.style.borderTopWidth){this.is[f].sd-=this.is[f].sc.style.borderTopWidth.substring(0,this.is[f].sc.style.borderTopWidth.length-2)}if(this.is[f].sc.style.borderBottomWidth){this.is[f].sd-=this.is[f].sc.style.borderBottomWidth.substring(0,this.is[f].sc.style.borderBottomWidth.length-2)}if(this.is[f].sc.style.paddingTop){this.is[f].sb-=this.is[f].sc.style.paddingTop.substring(0,this.is[f].sc.style.paddingTop.length-2)}if(this.is[f].sc.style.paddingBottom){this.is[f].sb-=this.is[f].sc.style.paddingBottom.substring(0,this.is[f].sc.style.paddingBottom.length-2)}}else{if(this.is[f].sc.style.height.substr(this.is[f].sc.style.height.length-2)=="px"){this.is[f].sd=this.is[f].sc.style.height.substring(0,this.is[f].sc.style.height.length-2)}}this.is[f].er=this.is[f].sb;this.is[f].es=this.is[f].sd;this.is[f].sc.innerHTML="<div style='position:absolute; line-height:120%; text-align:left; overflow:inherit; padding:0px 0px 0px 0px; height:"+this.sd+"px; width:"+this.is[f].sb+"px; ; height:"+this.is[f].sd+"px'>&nbsp;</div>";this.is[f].innerBoxPointer=this.is[f].sc.firstChild;this.is[f].innerBoxPointer.style.fontFamily=this.iu;this.is[f].innerBoxPointer.style.fontSize=this.iv+"px";this.is[f].innerBoxPointer.style.color=this.ix;this.is[f].innerBoxPointer.style.backgroundColor=this.kf;++f}if(selD.qp){sellectorConfigurator.da()}this.ab()},ab:function(){var m;var B=0;var g;var e;var h=this.is;var d;var j=this.gs.inputElement;if(selD.ov&&selD.ov.inputAreaTemplate&&selD.ov.inputAreaTemplate.choicePresentation){var g=selD.ov.inputAreaTemplate.choicePresentation;var A=0;while(g[A]){if(g[A].type=="searchBox"){break}++A}if(g[A]){m=0;while(j[m]){if(j[m].id=="e0"){break}++m}if(!j[m]){j[m]=new Object}j[m].id="e0";j[m].name=g[A].name;j[m].type=g[A].type}}m=0;while(j[m]){e=this.findDestinationInputBox(j[m]);d=this.elementPosInBox;if(e){if(e.ip[d]&&!e.inputElement){e.ip[d]+=this.ad(1,e.sb)}if(j[m].type=="rangeSlider"){j[m].type="numRangeSlider"}if(j[m].type=="group"){j[m].type="checkGroup"}var o=j[m].type;this.la=null;this.kz=null;this.nk=this.nm;this.nkColor=this.ix;this.ck=this.cj;this.bz=this.by;this.bx=this.bw;this.cb=null;this.aw="";g=this.mf(j[m]);if(g&&g.type){var q=null;switch(g.type.toLowerCase()){case"numrangeslider":q="numRangeSlider";break;case"numminslider":q="numMinSlider";break;case"nummaxslider":q="numMaxSlider";break;case"checkbox":q="checkBox";break;case"checkgroup":q="checkGroup";break;case"multiplecheckgroup":q="multipleCheckGroup";break;case"checkboxgroup":q="checkGroup";break;case"dropdown":q="dropDown";break;case"clickpanel":q="clickPanel";break;case"multipleclickpanel":q="multipleClickPanel";break;case"clickelement":q="clickElement";break}if(q){var z=j[m].type.substr(j[m].type.length-5);var x=q.substr(q.length-5);var u=false;switch(z){case"lider":if(x==z){u=true}break;case"ckBox":if(x==z||x=="ement"){u=true}break;case"Group":case"pDown":switch(x){case"Panel":case"pDown":case"Group":u=true;break}break}if(u){j[m].type=q}}currentType=j[m].type;if(g.screenName!=null){this.la=g.screenName}if(g.screenNameStyle!=null){this.kz=g.screenNameStyle}this.gm(j[m],g);if(currentType=="dropDown"){if(g.defaultText){this.nk=g.defaultText}if(g.defaultTextColor){this.nkColor=g.defaultTextColor}}var f=currentType.substr(0,3);var n=currentType.substr(currentType.length-6);if(f=="num"&&n=="Slider"){if(g.decimalDigits!=null){this.ck=g.decimalDigits}if(g.step){this.bz=g.step}if(g.lockStep){this.bx=g.lockStep}if(g.samplePoint){this.cb=g.samplePoint}if(g.sliderValueUnit){this.aw=g.sliderValueUnit}}}e.ip[d]+=this.ac(j[m],e);var C=false;this.kv=false;this.qc=null;switch(j[m].type){case"multipleCheckGroup":C=true;case"checkGroup":this.lh[this.lg]=new Object();this.lh[this.lg].lk=new Array();this.lh[this.lg].hu=C;this.lh[this.lg].id=j[m].id;e.ip[d]+=this.aa(j[m],this.lh[this.lg],g,e);e.ip[d]+="</div></div>";if(selD.qp){sellectorConfigurator.addToMarkup("</div>")}++this.lg;break;case"dropDown":e.ip[d]+=this.aa(j[m],this.lh[this.lg],g,e);e.ip[d]+="</select></div>";this.le[this.le.length-1].toDo=true;if(e.elementMargin){e.ip[d]+="<div class='selFloatSpacer' style='width:"+e.elementMargin+"px'></div>"}e.ip[d]+="</div>";if(selD.qp){sellectorConfigurator.addToMarkup("</select></div>")}break;case"multipleClickPanel":C=true;case"clickPanel":this.lh[this.lg]=new Object();this.lh[this.lg].lk=new Array();this.lh[this.lg].hu=C;this.lh[this.lg].id=j[m].id;e.ip[d]+=this.aa(j[m],this.lh[this.lg],g,e);e.ip[d]+="</div></div>";if(selD.qp){sellectorConfigurator.addToMarkup("</div>")}this.qy[B]=new Object;this.qy[B].size=this.lh[this.lg].lk.length;this.qy[B].qt=this.qt;this.qy[B].rf=this.rf;this.qy[B].qx=this.qx;++B;++this.lg;break}}else{this.ti(j[m])}++m}bi=0;while(h[bi]){var d=0;var k="";var p=false;while(h[bi].ip[d]){if(p&&!h[bi].mx){k+=this.ad(1,h[bi].sb);p=false}if(h[bi].ip[d]){k+=h[bi].ip[d];p=true}++d}h[bi].innerBoxPointer.innerHTML=k;++bi}if(selD.qp){sellectorConfigurator.displayConfigurator()}var y=0;var w=this.le;while(w[y]){if(w[y].toDo){var v=this.mg(w[y].id).firstChild;if(v&&v.nextSibling){if(!w[y].hb){w[y].hb=new Object}a=w[y].hb;b=v.nextSibling.style;a.backgroundColor=b.backgroundColor;a.color=b.color;a.fontSize=b.fontSize;a.fontStyle=b.fontStyle}else{w[y].hb=null}w[y].toDo=false}++y}},gm:function(e,d){currentType=e.type;if(currentType=="clickElement"||currentType=="clickPanel"||currentType=="multipleClickPanel"){if(d.width!=null){this.qt=d.width}else{this.qt=this.qs}if(d.height!=null){this.rf=d.height}else{this.rf=this.re}if(d.content!=null){this.rp=d.content}else{this.rp=this.ro}if(d.contentInactive!=null){this.rn=d.contentInactive}else{this.rn=null}if(d.floating){this.rl=d.floating}else{this.rl=this.rk}if(d.spacing!=null){this.qx=d.spacing}else{this.qx=this.qw}if(d.highlight){this.rd=d.highlight}else{this.rd=this.rc}if(d.frameColor){this.rj=d.frameColor}else{this.rj=this.ri}if(d.frameWidth!=null){this.rh=d.frameWidth}else{this.rh=this.rg}if(d.opacity!=null){this.qv=d.opacity}else{this.qv=this.qu}if(d.mapping){this.rb=d.mapping}else{this.rb=false}}},aa:function(f,j,e,d,h){var g="";this.qc=f.name;if(this.mc(f)){this.kv=true}var k=this.bu(f,e,h).bv;var l=0;while(k[l]){i=0;while(f.group[i]){if(f.group[i].name==k[l]){switch(f.type){case"multipleCheckGroup":case"checkGroup":f.group[i].type="checkBox";j.lk[l]=new Object();j.lk[l].id=f.group[i].id;break;case"dropDown":f.group[i].type="option";break;case"multipleClickPanel":case"clickPanel":f.group[i].type="panelElement";j.lk[l]=new Object();j.lk[l].id=f.group[i].id;break}g+=this.ac(f.group[i],d);break}++i}++l}return g},ad:function(e,f){var d="";switch(e){case 1:d+="<div style='line-height:"+(this.iv*0.4)+"px; width:"+f+"px;'>&nbsp;</div>";break}return d},ac:function(l,f){var n="";this.setHiddenResultAttribute(l);if(!this.mc(l)&&!this.kv){var e=f.sb;var A="";var q="";var G=0;var x=e;if(f.mx){x=f.mx;A="float:left; ";if(f.elementMargin){q="<div class='selFloatSpacer' style='width:"+f.elementMargin+"px'></div>";G=f.elementMargin}}var I=0;var p=this.iv;var C="";var D=l.name;if(this.la!=null){D=this.la}var H="color:"+this.kc+"; text-align:left";var t="text-decoration:underline; ";if(this.kz!=null){H=this.kz;t=""}var j=l.type;var P=l.id;if(false){C="<div style='float:right; border:"+(Math.round(p/10)?Math.round(p/10):1)+"px solid; border-color:"+this.kc+"; width:"+(p*0.8)+"px; height:"+(p*0.58)+"px; padding-top:"+(p*0.22)+"px; line-height:1px; margin-top:"+(p*0.1)+"px; cursor:pointer' onclick='selI.av(this)'><span style='font-size:"+(p*0.9)+"px; padding-left:"+(p*0.1)+"px'>x</span></div>"}switch(j){case"multipleCheckGroup":case"checkGroup":n+="<div id='"+j+"' style='width:"+(e-1)+"px; overflow:hidden; margin-left:1px'>";n+="<div style='width:"+(e-1)+"px; overflow:hidden; margin-left:1px'><span class='selElHead' style='"+t+H+"'>"+D+"</span>"+C+"</div>";n+="<div id='"+P+"' style='width:"+(e-1)+"px; overflow:hidden; margin-left:-1px'>";break;case"dropDown":var h="";if(this.mh(l)){var B=1}if(selD.qp){B=sellectorConfigurator.getSelectSize()}n+="<div id='"+j+"' style='width:"+(x*1+f.elementMargin*1)+"px; "+A+"'>";n+="<div style='color:"+this.kc+"; width:"+(x-1)+"px; overflow:hidden; margin-left:1px'><span class='selElHead' style='"+t+H+"'>"+D+"</span>"+C+"</div>";n+="<div style='text-align:left; width:"+(x-1)+"px; overflow:hidden; margin-left:1px'><select size='"+B+"' style='width:"+(x-1)+"px; font-size:"+this.iv+"px; font-style"+this.iu+"' onchange='eu(this, \""+j+"\")'"+h+">";n+="<option value='"+P+"' style='color:"+this.nkColor+"; background-color:"+this.kf+"'>"+this.nk+"</option>";break;case"multipleClickPanel":case"clickPanel":n+="<div id='"+j+"' style='text-align:left; width:"+(e-1)+"px; overflow:hidden; margin-left:1px'>";n+="<div style='color:"+this.kc+"; width:"+(e-1)+"px; overflow:hidden; margin-left:1px'><span class='selElHead' style='"+t+H+"'>"+D+"</span></div>";n+="<div id='"+P+"' style='text-align:left; width:"+(e-1)+"px; overflow:hidden; margin-left:-1px'>";break;case"checkBox":var M="";var d=l.name;if(!P.split("_")[1]){d=D}if(l.selected||l.checked||this.mb(l)){M="checked"}n+=("<div id='"+P+"' style='width:"+x+"px; "+A+"overflow:hidden'><input type='checkbox' name='' onclick='selI.sy(this, \""+j+"\")' "+M+"><span class='selCbText' style='text-align:left'>"+d+"</span>"+q+"</div>");break;case"option":var y="";if(l.selected||l.checked||this.mb(l)){y="selected"}n+=("<option value='"+P+"' style='color:"+this.ix+"; background-color:"+this.kf+"; font-size:"+this.iv+"px; font-style:"+this.iu+"'"+y+">"+l.name+"</option>");break;case"panelElement":var o="peu";var k;if(l.selected||l.checked||this.mb(l)){o="pes"}if(this.rd=="fade"){if(o=="pes"){k=100}else{k=this.qv}k="filter:alpha(opacity="+k+"); opacity:"+(k/100)+";";o+="_fd"}else{if(o=="pes"){k=this.rj}else{k="transparent"}k="border-width:"+this.rh+"px; border-color:"+k+"; border-style:solid;";o+="_fr"}var w=this.rp.replace(/<sellectorCellContent\/>/g,l.name);w=w.replace(/<sellectorCellContent>/g,l.name);if(this.rn){k="";if(o.split("_")[0]=="peu"){w=this.rn.replace(/<sellectorCellContent\/>/g,l.name)}o=o.split("_")[0]+"_ct"}var u=false;if(this.rb){var F=0;while(this.rb[F]){if(this.rb[F].sourceValue&&this.rb[F].displayValue&&(this.rb[F].sourceValue==l.name)){w=this.rb[F].displayValue;if(this.rb[F].displayInactive){k="";if(o.split("_")[0]=="peu"){w=this.rb[F].displayInactive}o=o.split("_")[0]+"_mt"}this.rb[F].id=l.id;break}++F}if(!this.rb[F]){u=true}}if(!u){n+=("<div id='"+l.id+"' style='width:"+this.qt+"px; height:"+this.rf+"px; margin:"+this.qx+"px; "+k+" float:"+this.rl+"; overflow:hidden'><div id='"+o+"' style='cursor:pointer; text-align:left' onclick='selI.sy(this, \""+j+"\")'>"+w+"</div></div>")}break;case"clickElement":var o="ceu";var k;if(l.selected||l.checked||this.mb(l)){o="ces"}if(this.rd=="fade"){if(o=="ces"){k=100}else{k=this.qv}k="filter:alpha(opacity="+k+"); opacity:"+(k/100)+";";o+="_fd"}else{if(o=="ces"){k=this.rj}else{k="transparent"}k="border-width:"+this.rh+"px; border-color:"+k+"; border-style:solid;";o+="_fr"}var w=this.rp.replace(/<sellectorCellContent\/>/g,l.name);var E=this.rb;if(E&&E[0]&&E[0].displayValue){E=E[0]}if(E.displayValue){w=E.displayValue;if(E.displayInactive){k="";if(o.split("_")[0]=="ceu"){w=E.displayInactive}o=o.split("_")[0]+"_mt"}}n+=("<div id='"+l.id+"' style='width:"+e+"px; height:"+this.rf+"px; margin:"+this.qx+"px; "+k+" float:"+this.rl+"; overflow:hidden'><div id='"+o+"' style='cursor:pointer; text-align:left' onclick='selI.toggleClickElement(this, \""+j+"\")'>"+w+"</div></div>");break;case"numRangeSlider":++I;case"numMaxSlider":++I;case"numMinSlider":++I;var g=null;var O=l.sliderMin;var N=l.sliderMax;var L;var K;if(l.cd!=null){L=l.cd}else{L=l.sliderMin}if(l.cg!=null){K=l.cg}else{K=l.sliderMax}g=this.mb(l);if(g){if(g.min!=null){O=g.min}if(g.max!=null){N=g.max}if((g.lowDefault!=null)&&(g.lowDefault>=O)){L=g.lowDefault}else{L=O}if((g.highDefault!=null)&&(g.highDefault<=N)){K=g.highDefault}else{K=N}}var v=20;this.cf[this.cc]=new Object();this.cf[this.cc].id=P+"slider";this.cf[this.cc].sliderMin=O;this.cf[this.cc].sliderMax=N;this.cf[this.cc].cd=L;this.cf[this.cc].cg=K;this.cf[this.cc].ci=I;this.cf[this.cc].ck=this.ck;this.cf[this.cc].br=this.bz;this.cf[this.cc].bs=this.bx;this.cf[this.cc].cb=this.cb;this.cf[this.cc].aw2=this.aw;var J=this.mf(l);if(J&&J.sliderSingleUnit){this.cf[this.cc].aw1=""}else{this.cf[this.cc].aw1=this.aw}if(J){J=J.sliderDesign}if(J){if(J.height){v=J.height}this.cf[this.cc].cm=J}++this.cc;n+="<div id='slider' style='width:"+(x*1+f.elementMargin*1)+"px; "+A+"'>";n+="<div id='"+P+"' style='width:"+x+"px; overflow:hidden'><span class='selElHead' style='float:left; margin-left:1px; "+H+"'>"+D+"</span><span class='selSlVal' style='float:right; margin-right:0px; "+H+"'>"+l.cd+" - "+l.cg+"&nbsp;</span></div>";n+="<div id='"+P+"slider' style='width:"+((x*1)-10)+"px; top:"+(0)+"px; font-size:1px; height:"+v+"px; margin-left:4px; margin-right:3px'></div>";n+=q+"</div>";break;case"searchBox":var m="";var g=this.mb(l);if(g&&g.query){m=g.query}n+="<div id='searchBox' style='width:"+(x*1+f.elementMargin*1)+"px; "+A+"'>";n+="<div style='width:"+x+"px; overflow:hidden'><span class='selElHead' style='float:left; margin-left:1px; "+H+"'>"+D+"</span></div>";n+="<div id='"+P+"' style='width:"+x+"px'><form onsubmit='eu(this, \""+j+"\"); return false' action=''><input type='text' value='"+m+"' style='width:"+(x-6)+"px'/></form></div>";n+=q+"</div>";break;case"feedBackBox":n+=("<div id='"+P+"'><br/><form onsubmit='return df()' action=''><div id='"+this.ax+"feedBackHead'>"+l.name+"</div>&nbsp;<input type='text' name='' id='"+this.ax+"feedBackBox' size='15' maxlength='30'></form></div>");this.ml=l.feedBackSent;if(l.disabled){document.getElementById(this.ax+"feedBackBox").setAttribute("disabled",true,0)}else{document.getElementById(this.ax+"feedBackBox").removeAttribute("disabled",0)}break}if(selD.qp){sellectorConfigurator.ac(l)}}else{this.ti(l)}return n},ar:function(j){var d=0;while(j[d]){if(j[d].group){var f=this.mj(j[d].id);var h=f.group;var e=j[d].group;var g=0;while(e[g]){if(!h[g]){h[g]=new Object}for(var k in e[g]){h[g][k]=e[g][k]}++g}while(h[g]){h[g]=null;++g}this.as(f);++d}}},as:function(f){var h=this.mg(f.id);var e=this.mf(f);var d=this.findDestinationInputBox(f);i=0;while(this.lh[i]){if(this.lh[i].id==f.id){break}++i}var g=this.lh[i];this.gm(f);var j=this.aa(f,g,e,d,true);if(f.type=="dropDown"){dropDownBody=h.parentNode.innerHTML.split("</")[0];outerParentNode=h.parentNode;outerParentNode.innerHTML=dropDownBody+"</option>"+j+"</select>"}else{h.innerHTML=j}},bu:function(e,d,h){var f=e.group;var j=e.id;var g=0;while(this.le[g]){if(this.le[g].id==j){break}++g}if(!this.le[g]||h){var l=0;var k;if(this.le[g]){k=this.le[g].bv}else{k=new Array;this.le[g]=new Object;this.le[g].id=j;this.le[g].name=e.name;this.le[g].bv=k}if(d&&d.sort=="list"&&d.sortList){while(d.sortList[l]){k[l]=d.sortList[l];++l}}else{while(f[l]){if(!f[l].name){f[l].name=this.hi}k[l]=f[l].name.toUpperCase()+"|"+f[l].name;++l}if(d&&d.sort){switch(d.sort){case"up":k.sort();break;case"down":k.sort();k.reverse();break}}r=0;while(k[r]){k[r]=k[r].split("|")[1];++r}}while(k[l]){k[l]=null;++l}}else{k=this.le[g].bv}return this.le[g]},sy:function(f,q,k){var v;var p;var t;var n;var u;var m=false;v=0;while(this.lh[v]){p=0;while(this.lh[v].lk[p]){if(this.lh[v].lk[p].id==f.parentNode.id){t=true;break}++p}if(t){break}++v}if(t){if(f.type=="checkbox"){if(!this.lh[v].hu&&(f.checked||k)){p=0;while(this.lh[v].lk[p]){if(this.lh[v].lk[p].id!=f.parentNode.id||k){n=this.mg(this.lh[v].lk[p].id);if(n){n.firstChild.checked=false}}++p}}if(!f.checked){u=true;if(this.lh[v].hu){p=0;while(this.lh[v].lk[p]){if(this.lh[v].lk[p].id!=f.parentNode.id||k){n=this.mg(this.lh[v].lk[p].id);if(n&&n.firstChild.checked){u=false}}++p}}}}else{var l=f;var o;if(l){highlight=l.id.split("_");if(highlight[2]&&highlight[2]=="d"){return m}na=highlight[0];l=l.parentNode;var e=this.mf(l);var j=this.mj(l.id);var d=(this.ll||e.matchCountContent||e.noMatchHighlight);var g=0;if(e.mapping){while(e.mapping[g]){if(e.mapping[g].id==l.id){break}++g}}if(na=="peu"||k){switch(highlight[1]){case"fr":l.style.borderColor=this.rj;break;case"mt":if(e.mapping){l.firstChild.innerHTML=e.mapping[g].displayValue.replace(/<sellectorCellContent\/>/g,j.name)}break;case"ct":if(!d){l.firstChild.innerHTML=e.content.replace(/<sellectorCellContent\/>/g,j.name)}break;case"fd":l.style.opacity=1;l.style.filter="";break}l.firstChild.id="pes_"+highlight[1];if(!this.lh[v].hu||k){o=l.parentNode.firstChild;while(o){highlight=o.firstChild.id.split("_");if(((o!=l)||k)&&(highlight[0]=="pes")){j=this.mj(o.id);switch(highlight[1]){case"fr":o.style.borderColor="transparent";break;case"mt":if(e.mapping){g=0;while(e.mapping[g]){if(e.mapping[g].id==o.id){break}++g}o.firstChild.innerHTML=e.mapping[g].displayInactive.replace(/<sellectorCellContent\/>/g,j.name)}break;case"ct":if(!d){o.firstChild.innerHTML=e.contentInactive.replace(/<sellectorCellContent\/>/g,j.name)}break;case"fd":var h=this.qv;if(e&&e.opacity){h=e.opacity}o.style.opacity=(h/100);o.style.filter="alpha(opacity="+h+")";break}o.firstChild.id="peu_"+highlight[1]}o=o.nextSibling}}}else{switch(highlight[1]){case"fr":l.style.borderColor="transparent";break;case"mt":if(e.mapping){l.firstChild.innerHTML=e.mapping[g].displayInactive.replace(/<sellectorCellContent\/>/g,j.name)}break;case"ct":if(!d){l.firstChild.innerHTML=e.contentInactive.replace(/<sellectorCellContent\/>/g,j.name)}break;case"fd":var h=this.qv;if(e&&e.opacity){h=e.opacity}l.style.opacity=(h/100);l.style.filter="alpha(opacity="+h+")";break}l.firstChild.id="peu_"+highlight[1];u=true;if(this.lh[v].hu){o=l.parentNode.firstChild;while(o){o.firstChild.id.split("_");if(o.firstChild.id.split("_")[0]=="pes"){u=false}o=o.nextSibling}}}}}}else{m=true}if(k){u=true}if(u){q+="|"+u}eu(f,q);return m},av:function(d){var e=d;while(e){if(e.nextSibling){break}e=e.parentNode}if(e){if(!e.id){e=e.nextSibling}switch(e.id){case"dropDown":var g=e.firstChild.firstChild;g.selected="selected";var f=g.nextSibling;while(f){f.selected=null;f=f.nextSibling}eu(g,e.id);break;case"multipleCheckGroup":case"checkGroup":this.sy(e.nextSibling.firstChild,e.id,true);break;case"multipleClickPanel":case"clickPanel":this.sy(e.nextSibling.firstChild.firstChild,e.id,true);break}}},toggleClickElement:function(e,j){var h=e;while(h){if(h.id&&(h.id.split("_")[0]=="ces"||h.id.split("_")[0]=="ceu")){break}if(h.parentNode){h=h.parentNode}else{h=null}}if(h){highlight=h.id.split("_");if(highlight[2]&&highlight[2]=="d"){return}na=highlight[0];h=h.parentNode;var d=this.mf(h);var f=d.mapping;if(f&&f[0]&&f[0].displayValue){f=f[0]}if(na=="ceu"){switch(highlight[1]){case"fr":h.style.borderColor=this.rj;break;case"mt":if(f){h.firstChild.innerHTML=f.displayValue}break;case"fd":h.style.opacity=1;h.style.filter="alpha(opacity=100)";break}h.firstChild.id="ces_"+highlight[1]}else{switch(highlight[1]){case"fr":h.style.borderColor="transparent";break;case"mt":if(d.mapping){h.firstChild.innerHTML=f.displayInactive}break;case"fd":var g=this.qv;if(d&&d.opacity){g=d.opacity}h.style.opacity=(g/100);h.style.filter="alpha(opacity="+g+")";break}h.firstChild.id="ceu_"+highlight[1];j+="|t"}eu(h,j)}},ki:function(){var g=0;while(selI.cf[g]){sl=selI.cf[g];var o=null;var n=null;var l=null;var m=null;var j=selI.iy;var k=4;var f=selI.iz;var e=selI.ka;var d=selI.kb;var h=8;if(sl.cm){var p=sl.cm;if(p.handleRight){o=selI.ql(p.handleRight)}if(p.handleLeft){n=selI.ql(p.handleLeft)}if(p.trackActive){l=selI.ql(p.trackActive);if(p.trackActive.color){f=p.trackActive.color}}if(p.trackInactive){m=selI.ql(p.trackInactive);if(p.trackInactive.color){j=p.trackInactive.color}if(p.trackInactive.height){k=p.trackInactive.height}}if(p.colorBorder){e=p.colorBorder}if(p.colorHandle){d=p.colorHandle}if(p.trackOffsetX){h=p.trackOffsetX}}sl.sliderObject=new Slider({qn:sl.id,ce:g,ah:sl.sliderMin,aj:sl.sliderMax,oq:sl.cd,or:sl.cg,handleMode:sl.ci,decimal:sl.ck,br:sl.br,bs:sl.bs,samplingPoint:sl.cb,oi:o,oj:n,ol:l,ok:m,ia:f,bc:j,bb:k,borderColor:e,ld:d,bd:h,he:function(u,q,w,v){var t=selI.cf[v];t.maxVal=w;t.minVal=q;u.previousSibling.firstChild.nextSibling.innerHTML=q+t.aw1+" - "+w+t.aw2},hd:function(t,q,u){eu(sl.id,"slider")}});++g}},ql:function(d){target=new Object;target.wd=d.width;target.ht=d.height;target.img=d.image;target.kn=d.imageOffsetX;target.km=d.imageOffsetY;return target},ls:function(j){var q;var f;var g="";var o;if(j&&selD.gz){s="t"}else{s="f"}f="init="+s+"&v="+this.dh;this.cy();var h=0;while(this.is[h]){q=this.is[h].innerBoxPointer.firstChild;if(q){var x=0;var l=new Array;while(q){if(q.id){switch(q.id){case"dropDown":var e=q.firstChild.nextSibling.firstChild.options;var n;var k=1;var v="";while(e[k]){n=this.rs(e[k].value);if(e[k].selected&&!n){f+="&"+e[k].value+"=t";v=this.mw(v,e[k].value.split("_")[1]);this.cy(e[k].value)}++k}if(v){g+="&"+e[0].value.split("_")[0]+"="+v}break;case"multipleClickPanel":case"clickPanel":var e=q.firstChild.nextSibling.firstChild;var n;var v="";while(e){n=this.rs(e.id);if(e.firstChild.id.split("_")[0]=="pes"&&!n){f+="&"+e.id+"=t";v=this.mw(v,e.id.split("_")[1]);this.cy(e.id)}e=e.nextSibling}if(v){g+="&"+q.firstChild.id.split("_")[0]+"="+v}break;case"multipleCheckGroup":case"checkGroup":var e=q.firstChild.nextSibling.firstChild;var n;var v="";while(e){n=this.rs(e.id);if(e.id&&e.firstChild.checked&&!n){f+="&"+e.id+"=t";v=this.mw(v,e.id.split("_")[1]);this.cy(e.id)}e=e.nextSibling}if(v){g+="&"+q.firstChild.nextSibling.id+"="+v}break;case"slider":f+="&"+q.firstChild.id;var k=0;var t=selI.cf;while(t[k]){if(q.lastChild.id==t[k].id){break}++k}if(t[k]){f+="="+t[k].minVal+"_"+t[k].maxVal;g+="&"+q.firstChild.id+"="+t[k].minVal+"_"+t[k].maxVal}else{alert("Slider not Found")}break;case"searchBox":var w=q.lastChild.firstChild.firstChild;if(w.value){var p=w.value;var d="&query=";f+=d+encodeURIComponent(p+"~ OR "+p+"* OR "+p);g+=d+p}break;default:var m=this.mj(q.id);if(m&&m.type){var n;switch(m.type){case"checkBox":n=this.rs(q.id);if(q.firstChild.checked&&!n){f+="&"+q.id+"=t";g+="&"+q.id;this.cy(q.id)}break;case"clickElement":n=this.rs(q.id);if(q.firstChild.id.split("_")[0]=="ces"&&!n){f+="&"+q.id+"=t"}break}}break}}q=q.nextSibling}}++h}var k=0;while(this.lf[k]&&this.lf[k].id){if(this.lf[k].unchecked&&this.lf[k].hiddenAttribute){f+=this.lf[k].fullSettings}else{f+=this.lf[k].hiddenSettings}++k}selI.pl=g;f+=this.ky;return(f)},mw:function(g,h){if(!g){g=""}var f=g.length-Math.floor(h/5)-1;while(f<0){g="0"+g;++f}var e=h%5;var d=(parseInt(g.substr(f,1),32)|(1<<e)).toString(32);g=g.substr(0,f)+d+g.substr(f+1);return g},cy:function(f){if(f){var d=f.split("_");if(d[1]){var e=0;while(this.lf[e]){if(this.lf[e].id&&this.lf[e].id==d[0]){this.lf[e].unchecked=false}++e}}}else{var e=0;while(this.lf[e]){this.lf[e].unchecked=true;++e}}},ti:function(d){var f=this.rs(d.id);var e=this.findOrAddGroupSetting(d.id,true);switch(d.type){case"checkBox":if((d.selected||d.checked||this.mb(d))&&!f){if(e){e.hiddenSettings+="&"+id+"=t"}else{this.ky+="&"+d.id+"=t"}}break;case"option":if((d.selected||d.checked||this.mb(d))&&!f){if(e){e.hiddenSettings+="&"+id+"=t"}else{this.ky+="&"+d.id+"=t"}}break;case"panelElement":if((d.selected||d.checked||this.mb(d))&&!f){if(e){e.hiddenSettings+="&"+id+"=t"}else{this.ky+="&"+d.id+"=t"}}break;case"clickElement":if((d.selected||d.checked||this.mb(d))&&!f){this.ky+="&"+d.id+"=t"}break;case"numRangeSlider":case"numMaxSlider":case"numMinSlider":var j;var h;if(d.cd){j=d.cd}else{j=d.sliderMin}if(d.cg){h=d.cg}else{h=d.sliderMax}var g=this.mb(d);if(g){if(g.min){pf=g.min}if(g.max){pg=g.max}if(g.lowDefault&&(g.lowDefault>=d.sliderMin)){j=g.lowDefault}else{j=d.sliderMin}if(g.highDefault&&(g.highDefault<=d.sliderMax)){h=g.highDefault}else{h=d.sliderMax}}this.ky+="&"+d.id+"="+j+"_"+h;break}},au:function(A){var p;var g;var D;var f;var u=this.le;var G=0;var z;var e=0;while(this.is[e]){p=this.is[e].innerBoxPointer.firstChild;if(p){var o=0;var j=new Array;while(p){if(p.id){switch(p.id){case"dropDown":var q=p.firstChild.nextSibling.firstChild;var t=q.options[0];D=this.mj(t.value);f=this.mf(D);if(this.ll||(f&&(f.matchCountContent||f.noMatchHighlight))){var d=this.hm;if((this.ll&&!f.matchCountContent)||f.matchCountContent==true){hz=this.nw}else{hz=f.matchCountContent}var y=0;while(u[y]){if(u[y].id==t.value){break}++y}if(u[y]){var x;var w="";var G=0;while(u[y].bv[G]){var F=0;while(D.group[F]&&D.group[F].name!=u[y].bv[G]){++F}if(D.group[F]&&!this.mc(D.group[F])){z=this.me(A,D.group[F].id);if(!(f.noMatchHighlight=="hide"&&!z)){t=t.nextSibling;if(!t){t=document.createElement("option");t.value=D.group[F].id;q.appendChild(t);if(u[y].hb){for(var E in u[y].hb){t.style[E]=u[y].hb[E]}}}else{if(t.selected){w+="|"+t.value}t.value=D.group[F].id}x=D.group[F].name;if(this.ll||f.matchCountContent){x+=hz.replace(/<inputElementMatchCount\/>/g,z)}t.innerHTML=x;if(f.noMatchHighlight=="disable"&&!z){t.disabled="disabled"}else{t.disabled=false}}}++G}var C=t;t=q.lastChild;while(t!=C){if(t.selected){w+="|"+t.value}q.removeChild(t);t=q.lastChild}E=w.split("|");t=q.firstChild;while(t){G=1;while(E[G]){if(t.value==E[G]){t.selected="selected"}++G}t=t.nextSibling}}}break;case"multipleClickPanel":case"clickPanel":var n=p.firstChild.nextSibling.firstChild;while(n){if(n.id){D=this.mj(n.id);f=this.mf(D);var m=0;var k=null;if(f&&f.mapping){k=f.mapping;while(k[m]){if(k[m].id==n.id){break}++m}}if(this.ll||(f&&(f.matchCountContent||f.noMatchHighlight||(k&&k[m]&&k[m].displayNoMatch)))){z=this.me(A,n.id);highlight=n.firstChild.id.split("_");var B=f.matchCountContent;if(!B||B==true){B=""}if(f&&f.content&&(!k||(k&&!k[m]))){if(highlight[0].split("_")=="peu"&&f.contentInactive){n.firstChild.innerHTML=f.contentInactive.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}else{n.firstChild.innerHTML=f.content.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}}if(z){if(k&&k[m]&&k[m].displayValue){if(highlight[0].split("_")=="peu"&&k[m].displayInactive){n.firstChild.innerHTML=k[m].displayInactive.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}else{n.firstChild.innerHTML=k[m].displayValue.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}}if(f.noMatchHighlight){n.style.display="block";n.style.opacity=1;n.style.filter=""}n.firstChild.id=highlight[0]+"_"+highlight[1]}else{if(k&&k[m]&&k[m].displayNoMatch&&k[m].displayValue&&highlight[0]!="pes"){n.firstChild.innerHTML=k[m].displayNoMatch.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}if(f.noMatchHighlight){switch(f.noMatchHighlight){case"hide":n.style.display="none";break;case"disable":n.firstChild.id=highlight[0]+"_"+highlight[1]+"_d";case"fade":var d=this.hm;if(f.noMatchOpacity){d=f.noMatchOpacity}n.style.filter="alpha(opacity="+d+")";n.style.opacity=d/100;break}}}}}n=n.nextSibling}break;case"multipleCheckGroup":case"checkGroup":var h=p.firstChild.nextSibling.firstChild;while(h){this.cz(A,h);h=h.nextSibling}break;case"slider":case"searchBox":break;default:var D=this.mj(p.id);if(D){switch(D.type){case"checkBox":this.cz(A,p);break;case"clickElement":f=this.mf(D);var k=null;if(f&&f.mapping){k=f.mapping;if(k&&k[0]&&k[0].displayValue){k=f.mapping[0]}}if(this.ll||(f&&(f.matchCountContent||f.noMatchHighlight||(k&&k.displayNoMatch)))){z=this.me(A,p.id);highlight=p.firstChild.id.split("_");var B=f.matchCountContent;if(!B||B==true){B=""}if(f&&f.content&&!k){if(highlight[0].split("_")=="peu"&&f.contentInactive){p.firstChild.innerHTML=f.contentInactive.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}else{p.firstChild.innerHTML=f.content.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}}if(z){if(k&&k.displayValue){if(highlight[0].split("_")=="ceu"&&k.displayInactive){p.firstChild.innerHTML=k.displayInactive.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}else{p.firstChild.innerHTML=k.displayValue.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}}if(f.noMatchHighlight){p.style.display="block";p.style.opacity=1;p.style.filter=""}p.firstChild.id=highlight[0]+"_"+highlight[1]}else{if(k&&k.displayNoMatch&&k.displayValue&&highlight[0]!="ces"){p.firstChild.innerHTML=k.displayNoMatch.replace(/<sellectorCellContent\/>/g,D.name).replace(/<matchCountContent\/>/g,B).replace(/<inputElementMatchCount\/>/g,z)}if(f.noMatchHighlight){switch(f.noMatchHighlight){case"hide":p.style.display="none";break;case"disable":p.firstChild.id=highlight[0]+"_"+highlight[1]+"_d";case"fade":var d=this.hm;if(f.noMatchOpacity){d=f.noMatchOpacity}p.style.filter="alpha(opacity="+d+")";p.style.opacity=d/100;break}}}}break}}break}}p=p.nextSibling}}++e}},cz:function(h,d){if(d.id){currentParamElement=this.mj(d.id);qh=this.mf(currentParamElement);currentFreq=this.me(h,d.id);if(this.ll||(qh&&(qh.matchCountContent||qh.noMatchHighlight))){var f;if((this.ll&&!qh.matchCountContent)||qh.matchCountContent==true){f=this.nw}else{f=qh.matchCountContent}f=f.replace(/<inputElementMatchCount\/>/g,currentFreq);var e=currentParamElement.name;if(qh.screenName!=null&&!currentParamElement.id.split("_")[1]){e=qh.screenName}if(d.lastChild.nodeName=="SPAN"){d.lastChild.innerHTML=e+f}else{d.lastChild.previousSibling.innerHTML=e+f}}if(!currentFreq&&qh.noMatchHighlight){switch(qh.noMatchHighlight){case"fade":var g=this.hm;if(qh.noMatchOpacity){g=qh.noMatchOpacity}d.style.filter="alpha(opacity="+g+")";break;case"hide":d.style.display="none";break;case"disable":d.disabled="disabled";break}}else{d.disabled=false;d.style.display="block";d.style.filter=""}}},findDestinationInputBox:function(g){var e=0;var d=null;var h=this.is;if(h[0].inputElement){var f=0;while(h[f]){e=0;while(h[f].inputElement[e]){if(h[f].inputElement[e].name==g.name){d=h[f]}if(h[f].inputElement[e].id==g.id){d=h[f]}if(d){break}++e}if(d){break}++f}}else{d=h[0]}this.elementPosInBox=e;return d},mg:function(g){var e;var f;var d=0;while(this.is[d]){e=this.is[d].innerBoxPointer.firstChild;while(e){if(e.id==g){break}if(e.id=="dropDown"){f=e.firstChild.nextSibling.firstChild.firstChild;if(f.value==g){f=f.parentNode}else{while(f){if(f.value==g){break}f=f.nextSibling}}}if(e.id=="clickPanel"||e.id=="multipleClickPanel"||e.id=="checkGroup"||e.id=="multipleCheckGroup"){f=e.firstChild.nextSibling;if(f.id!=g){f=f.firstChild;while(f){if(f.id==g){break}f=f.nextSibling}}}if(e.id=="slider"){if(e.firstChild.id==g){f=e.firstChild}}if(f){e=f;break}e=e.nextSibling}if(e){break}++d}return(e)},me:function(g,f){var d=0;var e=0;while(g[e]){if(g[e].id&&g[e].id==f){if(g[e].freq){d=g[e].freq}if(g[e].f){d=g[e].f}break}++e}return d},mj:function(k,e){var d=0;var g;var f;var j=this.gs.inputElement;while(j[d]&&!f){var l;var h;l=k.split("_");h=k.split("|");if(((!e&&(l[1]&&l[0]==j[d].id))||(e&&(h[1]&&h[0]==j[d].name)))&&j[d].group){g=0;while(j[d].group[g]&&!f){if((!e&&(j[d].group[g].id==k))||(e&&(j[d].group[g].name==h[1]))){f=j[d].group[g];break}++g}}else{if((!e&&(j[d].id==k))||(e&&(j[d].name==k))){f=j[d]}}++d}return f},mb:function(e){var d=false;var k;var f;if(e.id.split("_")[1]&&this.qc){k=this.qc+"|"+e.name}else{k=e.name}if(selD.il&&selD.il.presetValue){f=0;while(selD.il.presetValue[f]){if(selD.il.presetValue[f].id==e.id){d=selD.il.presetValue[f]}if(selD.il.presetValue[f].name==k){d=selD.il.presetValue[f]}++f}}if(this.fu[0]){f=0;while(this.fu[f]){if(this.fu[f].id==e.id){d=this.fu[f]}if((this.fu[f].id==e.id.split("_")[0])&&e.id.split("_")[1]){var j=e.id.split("_")[1];var h=this.fu[f].val.length-Math.floor(j/5)-1;if(h>=0){var g=j%5;if(parseInt(this.fu[f].val.substr(h,1),32)&(1<<g)){d=this.fu[f]}}}if(this.fu[f].name==k){d=this.fu[f]}++f}}return d},mc:function(e){var d=false;var l;var k;var g=0;if(selD.io&&selD.io.hideElement){if(e.type=="checkGroup"||e.type=="multipleCheckGroup"||e.type=="dropDown"||e.type=="clickPanel"||e.type=="multipleClickPanel"){l=e.group[0].id.split("_")[0]}else{l=e.id}var f=l.split("_");if(f[1]){var h="";if(this.qc){h=this.qc}else{var j=0;while(this.le[j]){if(this.le[j].id==f[0]){h=this.le[j].name;break}++j}}k=h+"|"+e.name}else{k=e.name}while(selD.io.hideElement[g]){if(selD.io.hideElement[g].id==l){d=selD.io.hideElement[g]}if(selD.io.hideElement[g].name==k){d=selD.io.hideElement[g]}++g}}return d},qq:function(d,g){var k="";var m;var e;var j=g.split("|");var n=j[1];switch(j[0]){case"dropDown":e=d.value;if(!e.split("_")[1]){n=true}break;case"checkBox":case"panelElement":e=d.parentNode.id;break;case"slider":e=d.substr(0,d.length-("slider").length);break;case"clickElement":e=d.id;break;case"searchBox":e=d.parentNode.id;if(!d.firstChild.value){n=true}break}if(e){m=this.mj(e.split("_")[0]);if(m){var l=this.mi("c",m);if(l&&l.loadDefinition){var f=0;while(l.loadDefinition[f]){var h=this.mj(l.loadDefinition[f].name,true);if(h.group){if(n){h.group=new Array;this.as(h)}else{if(f){k+="|"}k+=h.id}}++f}if(k){k="&getD="+encodeURIComponent(k)}}}}return k},mi:function(h,e){var d;if(selD.ov&&selD.ov.inputAreaTemplate&&selD.ov.inputAreaTemplate.dependency){var f=selD.ov.inputAreaTemplate.dependency;var j;switch(h){case"c":j=f.change;break}if(e){if(j){var g=0;while(j[g]){if(j[g].name==e.name){d=j[g];break}++g}}}else{d=j}}return d},mh:function(g){var d=false;if(g){var f=this.mi("c");if(f){var h=0;while(f[h]){if(f[h].loadDefinition){var e=0;while(f[h].loadDefinition[e]&&f[h].loadDefinition[e].name){if(f[h].loadDefinition[e].name==g.name){d=true}break;++e}}if(d){break}++h}}}return d},rr:function(m){if(selD.pa.selectStateUrl){if(m.substr(1,3)=="SEL"){var g=m.replace(/%20/g," ").split("&");var k;var n=0;while(g[n+1]){if(!this.fu[n]){this.fu[n]=new Object}var j=null;var l=null;var o=null;var f=null;var d=null;var h=null;k=g[n+1].split("=");if(k[0].substr(0,1)=="e"&&(k[0].substr(1,1)*1||k[0].substr(1,1)=="0")){j=k[0]}else{l=k[0]}if(k[1]){if(k[0]=="query"){j="e0";h=k[1]}else{var e=k[1].split("_");if(e[1]){f=e[0]*1;d=e[1]*1}else{l=k[0]+"|"+k[1];o=k[1]}}}this.fu[n].id=j;this.fu[n].name=l;this.fu[n].val=o;this.fu[n].query=h;this.fu[n].lowDefault=f;this.fu[n].highDefault=d;++n}if(this.fu[n]){this.fu[n].id=null}}}},setHiddenResultAttribute:function(d){var h=false;if(selD.io&&selD.io.hideInResult){var e;var f=0;var g=d.name;if(d.id.split("_")[1]){var g=this.qc+"|"+d.name}while(selD.io.hideInResult[f]){if(selD.io.hideInResult[f].id==d.id||selD.io.hideInResult[f].name==g){h=true;this.kx[this.kw]=d.id;++this.kw;this.kx[this.kw]=null;e=this.findOrAddGroupSetting(d.id,true);if(e){e.hiddenAttribute=true}}++f}if(!h){e=this.findOrAddGroupSetting(d.id,true);if(e){e.fullSettings+="&"+d.id+"=t"}}}},rs:function(f){var e=0;var d=false;while(this.kx[e]){if(f==this.kx[e]){d=true}++e}return d},findOrAddGroupSetting:function(h,f){var d=h.split("_");var e=this.lf;if(d[1]){var g=0;while(e[g]){if(e[g].id&&e[g].id==d[0]){break}++g}if(f&&!e[g]){e[g]=new Object;e[g].id=d[0];e[g].hiddenAttribute=false;e[g].fullSettings="";e[g].hiddenSettings=""}}return e[g]},mf:function(e){var d=false;var f=0;var g;if(e&&e.id){g=e.id.split("_")[0];if(selD.ov&&selD.ov.inputAreaTemplate&&selD.ov.inputAreaTemplate.choicePresentation){while(selD.ov.inputAreaTemplate.choicePresentation[f]){if(selD.ov.inputAreaTemplate.choicePresentation[f].id==g){d=selD.ov.inputAreaTemplate.choicePresentation[f];break}if(selD.ov.inputAreaTemplate.choicePresentation[f].name&&selD.ov.inputAreaTemplate.choicePresentation[f].name==e.name){d=selD.ov.inputAreaTemplate.choicePresentation[f];selD.ov.inputAreaTemplate.choicePresentation[f].id=g;break}++f}}}return d},en:function(){var e;var d=false;if(!this.is[0].inputElement){e=document.getElementById(this.is[0].id);if((e.offsetWidth!=this.is[0].er)||e.offsetHeight!=this.is[0].es){d=true}}return d},lm:function(){var d;var g=0;var h=document.getElementById(this.ax+"feedBackBox");var f="";var e;h.disabled="true";while(h.value.substr(g,1)){e=h.value.substr(g,1);if(((e>="A"&&e<="Z")||(e>="a"&&e<="z"))||(e>="0"&&e<="9")){f+=e}else{f+="_"}++g}d="&feedBack="+h.value;return d},an:function(d){if(d.success){document.getElementById(this.ax+"feedBackHead").innerHTML=this.ml}}};function Slider(d){this.VERSION="2.0";this.init(d)}Slider.prototype={ia:"#ff8000",bc:"#ffad5b",borderColor:"#ccc",ld:"#eee",bb:4,bd:8,lc:14,lb:6,se:1,ch:null,trackWidth:null,trackImgPosX:0,trackImgPosY:0,te:200,he:null,hd:null,nr:null,nq:0,np:0,go:0,gn:0,qo:null,ry:null,track:null,range:null,cn:null,co:null,ah:10,aj:90,posMin:10,posMax:90,samplingPoint:null,ag:0,ai:0,decimal:0,ou:1,bs:false,handleMode:3,ey:0,ez:100,tc:null,td:null,tf:null,tb:null,addEvent:function(f,d,e){if(f.addEventListener){f.addEventListener(d,e,false)}else{if(f.attachEvent){f.attachEvent("on"+d,e)}}},removeEvent:function(f,d,e){if(f.removeEventListener){f.removeEventListener(d,e,false)}else{if(f.detachEvent){f.detachEvent("on"+d,e)}}},tl:function(g){var f=0;var d=0;while(g.offsetParent){f+=g.offsetLeft-g.scrollLeft;d+=g.offsetTop-g.scrollTop;g=g.offsetParent}f+=g.offsetLeft;d+=g.offsetTop;return{x:f,y:d}},getStyle:function(g,f,e){if(typeof e=="undefined"){e=f}var d=(typeof g=="string")?document.getElementById(g):g;if(d.currentStyle){var h=d.currentStyle[e]}else{if(window.getComputedStyle){var h=document.defaultView.getComputedStyle(d,null).getPropertyValue(f)}}return h},lr:function(e){var d;d=0;if((e-Math.floor(e))!=0){if((e*10-Math.floor(e*10))!=0){d=2}else{d=1}}return d},at:function(){var d=this.posMin;var e=this.posMax;if(this.tb=="min"){d=this.tf}if(this.tb=="max"){e=this.tf}if(this.cn){this.cn.style.left=d+"%"}if(this.co){this.co.style.left=e+"%"}this.range.style.left=d+"%";if(this.range.style.backgroundImage&&this.range.style.width){this.range.style.backgroundPosition=(this.trackImgPosX-this.trackWidth/100*d)+"px "+this.trackImgPosY+"px"}this.range.style.width=(e-d)+"%"},am:function(d){if(this.ah*1<this.ey*1){this.ah=this.ey}if(this.aj*1>this.ez*1){this.aj=this.ez}if(this.ah*1>this.aj*1){this.ah=this.aj}if(this.he){this.he(this.qo,this.ah,this.aj,this.ce)}if(this.hd&&d){this.hd(this.qo,this.ah,this.aj)}},init:function(m){if(!m){return}this.qo=document.getElementById(m.qn);if(!this.qo){return}this.ce=m.ce;var k=this;if(typeof m.he!="undefined"){this.he=m.he}if(typeof m.hd!="undefined"){this.hd=m.hd}this.ey=m.ah;this.ez=m.aj;if(m.decimal!=null){this.decimal=m.decimal}else{this.decimal=Math.max(this.lr(this.ey),this.lr(this.ez))}if(m.br){this.ou=1/m.br}else{this.ou=Math.pow(10,this.decimal)}if(m.bs){this.bs=m.bs}if(m.oq<m.ah){this.ah=this.ey}else{this.ah=m.oq}if(m.or>m.aj){this.aj=this.ez}else{this.aj=m.or}if(this.ez-this.ey){this.posMin=Math.round((this.ah-this.ey)*100/(this.ez-this.ey))}if(!this.posMin||this.posMin<0){this.posMin=0}if(this.ez-this.ey){this.posMax=Math.round((this.aj-this.ey)*100/(this.ez-this.ey))}if(!this.posMax||this.posMax>100){this.posMax=100}if(m.ah<m.oq||this.ah==this.ah.toFixed(this.decimal)){this.ah=this.ah.toFixed(this.decimal)}if(m.aj>m.or||this.aj==this.aj.toFixed(this.decimal)){this.aj=this.aj.toFixed(this.decimal)}if(m.samplingPoint){var g=0;this.samplingPoint=new Array;while(m.samplingPoint[g]&&m.samplingPoint[g].trackPosition&&m.samplingPoint[g].value){this.samplingPoint[g]=new Object;this.samplingPoint[g].trackPosition=m.samplingPoint[g].trackPosition;this.samplingPoint[g].value=m.samplingPoint[g].value;++g}}if(m.bb){this.bb=m.bb}if(m.bd){this.bd=m.bd}if(m.handleMode){this.handleMode=m.handleMode}if(m.oi){this.oi=m.oi}if(m.oj){this.oj=m.oj}if(m.ol){this.ol=m.ol}if(m.ok){this.ok=m.ok}this.ia=m.ia;this.bc=m.bc;this.borderColor=m.borderColor;this.ld=m.ld;this.ry=document.createElement("div");this.ry.className="slider";this.ry.setAttribute("unselectable","on");this.ry.style.width="100%";this.ry.style.height=this.qo.style.height;this.ry.style.top="0px";this.ry.style.clear="both";this.ry.style.position="relative";this.ry.style.fontSize="1px";this.qo.appendChild(this.ry);this.ch=this.ry.offsetHeight;this.track=document.createElement("div");this.track.className="track";this.track.style.position="absolute";var e=(this.bd-this.bb/2);this.track.style.width="100%";this.track.style.height=this.bb+"px";var d=this.bc;var j=0;var h=0;if(this.ok&&this.ok.img){if(this.ok.kn){j=this.ok.kn}if(this.ok.km){h=this.ok.km}d="url("+this.ok.img+") "+j+"px "+h+"px"}else{this.track.style.border=this.se+"px solid "+this.borderColor;e-=this.se}this.track.style.top=e+"px";this.track.style.background=d;this.track.onmousedown=function(n){k.moveto(n||window.event);return false};this.ry.appendChild(this.track);d=this.ia;this.range=document.createElement("div");this.range.className="range";this.range.style.position="absolute";this.range.style.top="0px";this.range.style.fontSize="1px";var l=this.bb;var f=this.bd-this.bb/2;if(this.ol){if(this.ol.ht){l=this.ol.ht;f=this.bd-l/2}if(this.ol.img){if(this.ol.kn){this.trackImgPosX=this.ol.kn}if(this.ol.km){this.trackImgPosY=this.ol.km}d="url("+this.ol.img+") "+this.trackImgPosX+"px "+this.trackImgPosY+"px"}}this.range.style.height=l+"px";this.range.style.top=f+"px";this.range.style.background=d;this.range.onmousedown=function(n){k.moveto(n||window.event);return false};this.ry.appendChild(this.range);if(this.handleMode&1){this.cn=document.createElement("div");this.cn.className="handle min";this.cn.style.position="absolute";d=this.ld;if(this.oi){if(this.oi.wd){this.cn.style.width=this.oi.wd+"px";this.cn.style.marginLeft="-"+this.oi.wd/2+"px"}if(this.oi.ht){this.cn.style.height=this.oi.ht+"px";f=(this.bd-this.oi.ht/2)+"px"}if(this.oi.img){j=0;h=0;if(this.oi.kn){j=this.oi.kn}if(this.oi.km){h=this.oi.km}d="url("+this.oi.img+") "+j+"px "+h+"px"}}else{this.cn.style.width=this.lb+"px";this.cn.style.height=this.lc+"px";f=this.bd-this.lc/2-this.se;this.cn.style.border=this.se+"px solid "+this.borderColor;this.cn.style.marginLeft="-"+this.lb/2+"px"}this.cn.style.marginTop=f;this.cn.style.background=d;this.cn.style.zIndex="1";this.cn.onmousedown=function(n){k.no(n||window.event);return false};this.cn.style.cursor="w-resize";this.ry.appendChild(this.cn)}if(this.handleMode&2){this.co=document.createElement("div");this.co.className="handle max";this.co.style.position="absolute";d=this.ld;if(this.oj){if(this.oj.wd){this.co.style.width=this.oj.wd+"px";this.co.style.marginLeft="-"+this.oj.wd/2+"px"}if(this.oj.ht){this.co.style.height=this.oj.ht+"px";f=(this.bd-this.oi.ht/2)+"px"}if(this.oj.img){j=0;h=0;if(this.oj.kn){j=this.oj.kn}if(this.oj.km){h=this.oj.km}d="url("+this.oj.img+") "+j+"px "+h+"px"}}else{this.co.style.width=this.lb+"px";this.co.style.height=this.lc+"px";f=this.bd-this.lc/2-this.se;this.co.style.border=this.se+"px solid "+this.borderColor;this.co.style.marginLeft="-"+this.lb/2+"px"}this.co.style.marginTop=f;this.co.style.background=d;this.co.onmousedown=function(n){k.no(n||window.event);return false};this.co.style.cursor="w-resize";this.ry.appendChild(this.co)}this.addEvent(document,"mousemove",function(n){k.drag(n||window.event)});this.addEvent(document,"mouseup",function(n){k.nn(n||window.event)});this.addEvent(document,"mouseout",function(n){k.nn(n||window.event)},true);if(typeof this.ry.onselectstart!="undefined"){this.ry.onselectstart=function(){return false}}else{if(typeof this.ry.style.MozUserSelect!="undefined"){this.ry.style.MozUserSelect="none"}}this.ry.style.cursor="default";this.am();this.at();this.trackWidth=this.range.offsetWidth},no:function(f){var d=f.target;if(!d){d=f.srcElement}this.ag=this.ah;this.ai=this.aj;this.nr=d;this.nq=this.go-this.tl(this.nr).x;this.np=this.gn-this.tl(this.nr).y;if(this.handleMode==3){var d=this.ry.firstChild;while(d){if(d.className.substr(0,6)=="handle"){d.style.zIndex=d.style.zIndex&1^1}d=d.nextSibling}}},nn:function(f){if(this.nr!=null){var d;if(!f){f=window.event}if(f.target){d=f.target}else{if(f.srcElement){d=f.srcElement}}if(d.nodeType==3){d=d.parentNode}if(f.type=="mouseout"&&d.nodeName!="HTML"){return}this.nr=null;if((this.ah!=this.ag)||(this.aj!=this.ai)){this.am(true)}}},drag:function(n){if(n.pageX==null&&n.clientX!=null){var q=document.documentElement,k=document.body;n.pageX=n.clientX+(q&&q.scrollLeft||k&&k.scrollLeft||0)-(q.clientLeft||0);n.pageY=n.clientY+(q&&q.scrollTop||k&&k.scrollTop||0)-(q.clientTop||0)}this.go=n.pageX;this.gn=n.pageY;if(this.nr!=null){this.bq();var f=parseInt(this.getStyle(this.nr,"margin-left","marginLeft"));this.go-=f;var p=(this.go-this.tl(this.track).x-this.nq)*100/this.ry.offsetWidth;var o=(this.gn-this.tl(this.track).y-this.np)*100/this.ry.offsetHeight;if(p>100){p=100}if(p<0){p=0}if(o>100){o=100}if(o<0){o=0}var d=0;var j=100;var m=this.ey;var l=this.ez;if(this.samplingPoint){var h=0;while(this.samplingPoint[h]&&this.samplingPoint[h].trackPosition&&this.samplingPoint[h].value){if(p>=this.samplingPoint[h].trackPosition){m=this.samplingPoint[h].value;d=this.samplingPoint[h].trackPosition}else{l=this.samplingPoint[h].value;j=this.samplingPoint[h].trackPosition;break}++h}}var g=(Math.round(((p-d)/(j-d)*(l-m)+m)*this.ou)/this.ou).toFixed(this.decimal);if(this.bs){p=(g-m)/(l-m)*(j-d)+d}if(this.nr==this.cn){if(p<=this.posMax*1){if(Math.abs(g-this.ey)<1/this.ou){if(this.ey==this.ey.toFixed(this.decimal)){this.ah=this.ey.toFixed(this.decimal)}else{this.ah=this.ey}}else{this.ah=g}this.posMin=p}}else{if(p>=this.posMin*1){if(Math.abs(g-this.ez)<1/this.ou){if(this.ez==this.ez.toFixed(this.decimal)){this.aj=this.ez.toFixed(this.decimal)}else{this.aj=this.ez}}else{this.aj=g}this.posMax=p}}this.am();this.at()}},bq:function(){if(this.tc){clearInterval(this.tc);this.tc=null}this.tb=null},tg:function(f,j){this.bq();var e=this,d=new Date().getTime(),g=(f=="min"?e.posMin:e.posMax),k=g-j;this.tb=f;function h(){var m=new Date().getTime()-d;if(m>=e.te){e.bq();e.at()}var l=m*100/e.te;var n=Math.abs(k)*l/100;if(k<0){n*=-1}e.tf=j+n;e.at()}this.tc=setInterval(h,10)},moveto:function(n){var k=n.target;if(!k){k=n.srcElement}this.ag=this.ah;this.ai=this.aj;var q=(this.go-this.tl(this.track).x)*100/this.ry.offsetWidth;var p=(this.gn-this.tl(this.track).x)*100/this.ry.offsetHeight;if(q>100){q=100}if(q<0){q=0}if(p>100){p=100}if(p<0){p=0}var d=0;var l=100;var o=this.ey;var m=this.ez;if(this.samplingPoint){var j=0;while(this.samplingPoint[j]&&this.samplingPoint[j].trackPosition&&this.samplingPoint[j].value){if(q>=this.samplingPoint[j].trackPosition){o=this.samplingPoint[j].value;d=this.samplingPoint[j].trackPosition}else{m=this.samplingPoint[j].value;l=this.samplingPoint[j].trackPosition;done=true;break}++j}}var h=(Math.round(((q-d)/(l-d)*(m-o)+o)*this.ou)/this.ou).toFixed(this.decimal);if(this.bs){q=(h-o)/(m-o)*(l-d)+d}var g,t;var f=0;if(this.cn&&this.co){if(q<this.posMax*1&&(q<this.posMin*1||Math.abs(this.posMin-q)<=Math.abs(this.posMax-q))){f=1}else{f=2}}else{if(this.cn){f=1}if(this.co){f=2}}if(f){if(f==1){this.nr=this.cn;g=this.posMin;if(Math.abs(h-this.ey)<1/this.ou){if(this.ey==this.ey.toFixed(this.decimal)){this.ah=this.ey.toFixed(this.decimal)}else{this.ah=this.ey}}else{this.ah=h}this.posMin=q;t="min"}if(f==2){this.nr=this.co;g=this.posMax;if(Math.abs(h-this.ez)<1/this.ou){if(this.ez==this.ez.toFixed(this.decimal)){this.aj=this.ez.toFixed(this.decimal)}else{this.aj=this.ez}}else{this.aj=h}this.posMax=q;t="max"}this.am();this.tg(t,g);this.nq=this.nr.offsetWidth/2;this.np=this.nr.offsetTop/2}}};var selR={kl:0,ax:"sellectResult",oo:null,gy:"page",gt:"fade",cv:0,cu:0,ct:null,sj:null,skMax:null,fg:new Array,pu:0,pt:1,po:false,hl:0,du:0,qr:0,ee:0,ed:20,os:"http://www.sellector.com",ej:false,ek:false,kg:false,dx:false,ea:false,tk:null,pk:null,eh:false,ei:false,sb:false,sd:false,bf:false,bi:false,fadeEvent:false,oa:false,oe:false,od:true,oc:null,ob:null,mr:false,margin:10,ow:0,oy:0,ox:"",oz:"",ik:15,sq:39,su:35,sr:null,sv:null,ss:"arrowUpDark.gif",sw:"arrowDownDark.gif",st:"arrowUpBright.gif",sx:"arrowDownBright.gif",so:30,qm:"#000000",sa:"#F0F0F0",hk:false,eg:false,fd:false,fq:"table",gh:"#000000",gg:"#000000",gi:"#000000",gj:"#E0E0E0",fp:null,fm:null,fr:"Verdana",fs:10,gf:4,fn:140,fo:90,gb:280,gc:180,fl:"#f0f0f0",fk:null,fi:null,ge:null,gd:null,ga:null,gk:"float",gl:function(d,e){this.kl=false;this.ej=e;this.fd=d;this.ek=document.getElementById(e);ek=this.ek;if(ek.offsetWidth){this.sb=ek.offsetWidth;if(ek.style.borderLeftWidth){this.sb-=ek.style.borderLeftWidth.substring(0,ek.style.borderLeftWidth.length-2)}if(ek.style.borderRightWidth){this.sb-=ek.style.borderRightWidth.substring(0,ek.style.borderRightWidth.length-2)}if(ek.style.paddingLeft){this.sb-=ek.style.paddingLeft.substring(0,ek.style.paddingLeft.length-2)}if(ek.style.paddingRight){this.sb-=ek.style.paddingRight.substring(0,ek.style.paddingRight.length-2)}}else{if(ek.style.width.substring(ek.style.width.length-2)=="px"){this.sb=ek.style.width.substring(0,ek.style.width.length-2)}}if(ek.offsetHeight){this.sd=ek.offsetHeight;if(ek.style.borderTopWidth){this.sd-=ek.style.borderTopWidth.substring(0,ek.style.borderTopWidth.length-2)}if(ek.style.borderBottomWidth){this.sd-=ek.style.borderBottomWidth.substring(0,ek.style.borderBottomWidth.length-2)}if(ek.style.paddingTop){this.sb-=ek.style.paddingTop.substring(0,ek.style.paddingTop.length-2)}if(ek.style.paddingBottom){this.sb-=ek.style.paddingBottom.substring(0,ek.style.paddingBottom.length-2)}}else{if(ek.style.height.substring(ek.style.height.length-2)=="px"){this.sd=ek.style.height.substring(0,ek.style.height.length-2)}}ek.align="left";this.oo=new Date(sellectorParameterFile.version);if(this.fd.presentationFormat){this.fq=this.fd.presentationFormat}if(this.fd.presentationColorHeading){this.gh=this.fd.presentationColorHeading}if(this.fd.presentationColorText){this.gg=this.fd.presentationColorText}if(this.fd.presentationColorFrames){this.gi=this.fd.presentationColorFrames}if(this.fd.presentationColorBackground){this.gj=this.fd.presentationColorBackground}if(this.fd.presentationFontStyle){this.fr=this.fd.presentationFontStyle}if(this.fd.presentationFontSize){this.fs=this.fd.presentationFontSize}if(this.fd.presentationCorner){this.gf=this.fd.presentationCorner}if(this.fd.presentationAnimation){this.gk=this.fd.presentationAnimation}if(this.fd.presentationPictureWidth){this.fn=this.fd.presentationPictureWidth}if(this.fd.presentationPictureHeight){this.fo=this.fd.presentationPictureHeight}if(this.fd.presentationHoverPictureWidth){this.gb=this.fd.presentationHoverPictureWidth}if(this.fd.presentationHoverPictureHeight){this.gc=this.fd.presentationHoverPictureHeight}if(this.fd.presentationTileColor){this.fl=this.fd.presentationTileColor}if(selD.ov&&selD.ov.resultAreaTemplate){if(selD.ov.resultAreaTemplate.backgroundColor){this.gj=selD.ov.resultAreaTemplate.backgroundColor}if(selD.ov.resultAreaTemplate.backgroundImage){this.fp=selD.ov.resultAreaTemplate.backgroundImage}if(selD.ov.resultAreaTemplate.backgroundRepeat){this.fm=selD.ov.resultAreaTemplate.backgroundRepeat}}if((parseInt("0x"+this.gj.substr(1,1))*1+parseInt("0x"+this.gj.substr(3,1))*1+parseInt("0x"+this.gj.substr(5,1))*1)<=21&&this.gj!="transparent"){this.qm=this.sa;this.sr=selD.kp+this.st;this.sv=selD.kp+this.sx}else{this.sr=selD.kp+this.ss;this.sv=selD.kp+this.sw}if(selD.ov&&selD.ov.resultTileTemplate){if(selD.ov.resultTileTemplate.spacing){this.margin=selD.ov.resultTileTemplate.spacing}if(selD.ov.resultTileTemplate.imgWidth){this.fn=selD.ov.resultTileTemplate.imgWidth}if(selD.ov.resultTileTemplate.imgHeight){this.fo=selD.ov.resultTileTemplate.imgHeight}if(selD.ov.resultTileTemplate.width){this.bf=selD.ov.resultTileTemplate.width}else{this.bf=(this.fn*1)+(this.margin*1)}if(selD.ov.resultTileTemplate.height){this.bi=selD.ov.resultTileTemplate.height}else{this.bi=(this.fo*1)+(this.fs*2.7)}if(selD.ov.resultTileTemplate.backgroundColor){this.fl=selD.ov.resultTileTemplate.backgroundColor}if(selD.ov.resultTileTemplate.backgroundImage){this.fk=selD.ov.resultTileTemplate.backgroundImage}if(selD.ov.resultTileTemplate.backgroundRepeat){this.fi=selD.ov.resultTileTemplate.backgroundRepeat}}else{this.bf=(this.fn*1)+(this.margin*1);this.bi=(this.fo*1)+(this.fs*2.7);if(selD.ov&&selD.ov.resultTileFooter){if(selD.ov.resultTileFooter.height){this.bi=(this.bi*1)+(selD.ov.resultTileFooter.height)}else{this.bi=(this.bi*1)+(this.fs*1.7)}}}if(selD.ov&&selD.ov.detailsTileTemplate){if(selD.ov.detailsTileTemplate.backgroundColor){this.ge=selD.ov.detailsTileTemplate.backgroundColor}if(selD.ov.detailsTileTemplate.backgroundImage){this.gd=selD.ov.detailsTileTemplate.backgroundImage}if(selD.ov.detailsTileTemplate.backgroundRepeat){this.ga=selD.ov.detailsTileTemplate.backgroundRepeat}if(selD.ov.detailsTileTemplate.width){this.oa=selD.ov.detailsTileTemplate.width}else{this.oa=(this.gb*1)+(this.margin*1)}if(selD.ov.detailsTileTemplate.height){this.oe=selD.ov.detailsTileTemplate.height;this.od=false}else{this.oe=(this.gc*1.5)}if(selD.ov.detailsTileTemplate.imgWidth){this.gb=selD.ov.detailsTileTemplate.imgWidth}if(selD.ov.detailsTileTemplate.imgHeight){this.gc=selD.ov.detailsTileTemplate.imgHeight}}else{this.oa=(this.gb*1)+(this.margin*1);this.oe=(this.gc*1.5)}if(selD.pa){if(selD.pa.paging){this.gt=selD.pa.paging}if(selD.pa.resLenTarget){this.ed=selD.pa.resLenTarget}}qrz=ek;this.eh=0;this.ei=0;while(qrz){this.eh+=qrz.offsetTop;this.ei+=qrz.offsetLeft;qrz=qrz.offsetParent}qr=Math.floor((this.sb-this.margin)/(this.bf+this.margin));if(qr==0){qr=1}du=Math.floor((this.sd-this.margin-this.ik-this.ow-this.oy)/(this.bi+this.margin));if(du==0){du=1}this.du=du;this.qr=qr;this.hk=qr*du;this.ee=(Math.round(this.ed/this.hk))*this.hk;if(!this.ee){this.ee=this.hk}this.pu=0},ly:function(){var l;var d;var f;var p;var h;var n;this.ek.innerHTML="<div style='position:absolute; overflow:hidden; line-height: 120%; height:"+this.sd+"px; width:"+this.sb+"px'>&nbsp;</div>";this.kg=this.ek.firstChild;kg=this.kg;kg.style.fontFamily=this.fr;kg.style.fontSize=this.fs+"px";kg.style.backgroundColor=this.gj;if(this.fp){kg.style.backgroundImage="url("+this.fp+")";if(this.fm){kg.style.backgroundRepeat=this.fm}}kg.style.color=this.gg;resultStyleString="; background-color:"+this.gj;if(this.fp){resultStyleString+="; background-image: url("+this.fp+")";if(this.fm){resultStyleString+="; background-repeat: "+this.fm}}kg.innerHTML="<div id='seRePaneA' style='position:absolute; overflow:hidden; left:0px; line-height:120%; height:"+this.sd+"px; width:"+this.sb+"px"+resultStyleString+"'></div>";this.tk="A";this.pk="B";this.dx=kg.firstChild;this.dx.style.backgroundColor=this.gj;if(this.gt=="shift"||this.gt=="slide"){kg.innerHTML+="<div id='seRePaneB' style='position:absolute; overflow:hidden; display:none; left:"+this.sb+"px; line-height:120%; height:"+this.sd+"px; width:"+this.sb+"px"+resultStyleString+"'></div>";this.ea=kg.lastChild;this.dx=document.getElementById("seRePaneA");this.ea.style.backgroundColor=this.gj}this.qj();var o=false;if(selD.ov&&selD.ov.resultAreaTemplate){o=selD.ov.resultAreaTemplate;if(o.headerHeight){this.ow=(o.headerHeight*1);if(o.headerContent){this.ox=o.headerContent}kg.innerHTML+="<div id='"+this.ax+"h' style='position:absolute; z-index:9; top:0px; left:0px; height:"+this.ow+"px; width:"+this.sb+"px'>&nbsp;</div>"}if(o.footerHeight){this.oy=(o.footerHeight*1);if(o.footerContent){this.oz=o.footerContent}kg.innerHTML+="<div id='"+this.ax+"f' style='position:absolute; z-index:9; top:"+(this.sd-this.oy-this.ik)+"px; left:0px; height:"+this.oy+"px; width:"+this.sb+"px'>&nbsp;</div>"}this.dx=document.getElementById("seRePaneA");this.ea=document.getElementById("seRePaneB")}var q="";if(this.fk){q="; background-image: url("+this.fk+")";if(this.fi){q+="; background-repeat:"+this.fi}}h=(this.sb-this.margin)%(this.bf+this.margin)/2;r=0;f=this.du;p=this.qr;while(r<f){c=0;while(c<p){l=r*p+c+1;positionX=this.margin+h+c*(this.bf+this.margin);positionY=this.margin+this.ow+r*(this.bi+this.margin);this.dx.innerHTML+="<div name='sp' id='"+this.ax+"A"+(l-1)+"' style='filter:alpha(opacity=000); opacity:0; position:absolute; overflow:hidden; top:"+positionY+"px; left:"+positionX+"px; width:"+this.bf+"px; height:"+this.bi+"px; font-family:"+this.fr+"; background-color:"+this.fl+q+"'>&nbsp;</div>";if(this.gt=="shift"||this.gt=="slide"){this.ea.innerHTML+="<div id='"+this.ax+"B"+(l-1)+"' style='position:absolute; overflow:hidden; top:"+positionY+"px; left:"+positionX+"px; width:"+this.bf+"px; height:"+this.bi+"px; font-family:"+this.fr+"; background-color:"+this.fl+q+"'>&nbsp;</div>"}++c}++r}var e=this.margin;if(o){if(o.arrowImageRight){this.sr=o.arrowImageRight}if(o.arrowImageLeft){this.sv=o.arrowImageLeft}if(o.arrowImageWidth){this.sq=o.arrowImageWidth}if(o.arrowImageHeight){this.su=o.arrowImageHeight}if(o.arrowTransparency){this.so=o.arrowTransparency}if(o.arrowMarginLR!=null){e=o.arrowMarginLR}}var k;var j;var g;if(o&&o.arrowMarginTop){k=selD.ov.resultAreaTemplate.arrowMarginTop}else{if(Math.floor(f/2)==f/2){k=this.margin+(f/2)*(this.bi+this.margin)-this.su/2}else{k=this.margin+(Math.floor(f/2)+0.5)*(this.bi+this.margin)-this.su/2}}g=e;j=this.sb-e-this.sq;var m="";if(this.so<100){m="filter:alpha(opacity="+this.so+"); opacity:"+this.so/100+"; "}kg.innerHTML+="<div name='' id='' style='"+m+"display:none; position:absolute; z-index:10; top:"+k+"px; left:"+g+"px'><img src='"+this.sv+"' height="+this.su+"px width="+this.sq+"px  onclick='selR.gw(\"down\")' style='cursor:pointer; margin:0px; padding: 0px; border:0px;'/></div>";this.arrowDown=kg.lastChild;kg.innerHTML+="<div name='' id='' style='"+m+"display:none; position:absolute; z-index:10; top:"+k+"px; left:"+j+"px'><img src='"+this.sr+"' height="+this.su+"px width="+this.sq+"px  onclick='selR.gw(\"up\")' style='cursor:pointer; margin:0px; padding: 0px; border:0px;'/></div>";this.arrowUp=kg.lastChild;kg.innerHTML+="<div style='position:absolute; z-index:10; top:"+(this.sd-this.ik).toString()+"px; left:"+(this.sb-150).toString()+"px; height:15px; width:145px; font-family:Verdana; font-size:10px; font-weight:normal; color:"+this.qm+"; cursor:pointer' align='right' onclick=\"dj('sellector','_blank')\">powered by sellector.com</div>";this.kl=true},ev:function(j,v){if(!this.kl){this.ly()}var k;var u;var e;var f;var l;var m;var p;var d;var o=false;var t;if(v!=null){this.pu=v}else{v=this.pu}if(j){if(selD.gz){if(this.pu>0){var g=0;while(j.rank[g]){this.eg.rank[this.hk*this.pu+g]=j.rank[g];++g}}else{this.eg=j;this.hl=j.nor;o=true;if(!j.nor){this.nv()}}}else{this.eg=j;this.hl=j.rank.length;o=true}if(selD.ni||selD.gz){this.bp(j,true);j=this.eg}}else{if(this.eg){j=this.eg}else{alert("No eb")}}if(this.ow){document.getElementById(this.ax+"h").innerHTML=this.ay(this.ox)}if(this.oy){document.getElementById(this.ax+"f").innerHTML=this.ay(this.oz)}k=v*this.hk;u=0;var n;if(selD.ov&&selD.ov.resultTileTemplate){t=selD.ov.resultTileTemplate}while(u<this.hk){if((this.gt=="shift"||this.gt=="slide")&&!o&&this.hl/this.hk>1){bj=document.getElementById(this.ax+this.pk+u);n=this.pk}else{bj=document.getElementById(this.ax+this.tk+u);n=this.tk}if(j.rank[k]){bj.name=this.ax+j.rank[k];d=null;if(selD.ni||selD.gz){d=this.fg[this.pu].product[u]}else{d=this.lz(j.rank[k])}if(d){if(d.destinationURL){p=d.destinationURL}else{p=this.os}var h="";if(t){var q=" onclick='di(\""+p+'", "'+d.foreignProductKey+'", "'+d.id+"\")' ";if(t.clickable!="image"){bj.onclick=new Function('di("'+p+'", "'+d.foreignProductKey+'", "'+d.id+'")');q=""}if(t.content){h=t.content;h=h.replace(/<sellectorDestination\/>/g,p);h=h.replace(/<sellectorProductName\/>/g,d.name);if(d.foreignProductKey){h=h.replace(/<sellectorProductId\/>/g,d.foreignProductKey)}if(d.smallImage){h=h.replace(/<sellectorSmallImage\/>/g,"<div id='img"+this.ax+n+u+"' onmouseover='selR.cs(this)'"+q+"><img src='"+d.smallImage+"' onload='selR.cq(this)' style='cursor:pointer; margin:0px; padding: 0px; border:0px; visibility:hidden'/></div>")}if(d.shortDescription){h=h.replace(/<sellectorDescription\/>/g,d.shortDescription)}if(d.custProdText){h=h.replace(/<sellectorCustomProductText\/>/g,d.custProdText)}if(d.selProdText){h=h.replace(/<sellectorSelectableProductText\/>/g,d.selProdText)}if(d.price){h=h.replace(/<sellectorPrice\/>/g,d.price);h=h.replace(/<sellectorPriceDecimal\/>/g,parseFloat(d.price.toString()).toFixed(2))}}}else{bj.onclick=new Function('di("'+p+'", "'+d.foreignProductKey+'", "'+d.id+'")');h="<center><nobr><span style='font-family:"+this.fr+"; color:"+this.gh+"'>"+d.name+"</span></nobr></center>";if(d.smallImage!=null){h+="<center><div style='height:"+this.fo+"px; width:"+this.fn+"px'><div style='width:inherit; font-size:0px; line-height:0px'></div><div onmouseover='selR.cs(this)'><img src='"+d.smallImage+"' onload='selR.cq(this)' style='cursor:pointer; margin:0px; padding: 0px; border:0px; visibility:hidden'/></div></div></center>"}if(d.shortDescription!=null){h+=("<div style='height:"+(this.fs*1.2)+"px; overflow:hidden'>"+d.shortDescription+"</div>")}if(selD.ov&&selD.ov.resultTileFooter){if(selD.ov.resultTileFooter.content&&d.price){h+=selD.ov.resultTileFooter.content.replace(/<sellectorPrice\/>/g,d.price);h=h.replace(/<sellectorPriceDecimal\/>/g,parseFloat(d.price.toString()).toFixed(2));h=h.replace(/<sellectorPrice>/g,d.price)}}}if(selD.scripting&&selD.scripting.resultTile){h=selD.scripting.resultTile(d,h)}bj.innerHTML=h;bj.style.visibility="visible"}}else{bj.name="";bj.innerHTML="";bj.style.visibility="hidden"}++k;++u}if((this.gt=="shift"||this.gt=="slide")&&!o&&this.hl/this.hk>1){this.ea=document.getElementById("seRePane"+this.pk);this.dx=document.getElementById("seRePane"+this.tk);this.cv=this.sb*this.pt;this.cu=(-this.sb/32)*this.pt;this.ea.style.left=this.cv;this.ea.style.visibility="visible";this.ea.style.display="inline";this.ku("force");this.gv()}else{this.ms(0)}m=false;if(v>0){this.kg.lastChild.previousSibling.previousSibling.style.display="inline";m=true}else{this.kg.lastChild.previousSibling.previousSibling.style.display="none"}if(this.hl>this.hk*(v+1)){this.kg.lastChild.previousSibling.style.display="inline";m=true}else{this.kg.lastChild.previousSibling.style.display="none"}this.db()},bp:function(f,d){var g;var h=0;if(f.product&&f.product[0]){g=0;while(this.fg[g]&&this.fg[g].valid==true){++g}h=g*this.hk;var j=g;var k=0;if(!this.fg[g]||!this.fg[g].valid){h=0;while(f.product[h]){if(h==0||k>=this.hk){if(k>=this.hk){++g;k=0}if(!this.fg[g]){this.fg[g]=new Object}this.fg[g].valid=true;if(!this.fg[g].product){this.fg[g].product=new Array}}if(!this.fg[g].product[k]){this.fg[g].product[k]=new Object}for(var e in this.fg[g].product[k]){this.fg[g].product[k][e]=null}for(var e in f.product[h]){this.fg[g].product[k][e]=f.product[h][e]}++h;++k}if(!d&&j<=this.pu<=g){this.ev(null,this.pu)}}}this.po=false},eo:function(e){this.bl();if(!e){e=0}this.pu=e;this.mp();var d=0;while(this.fg[d]!=null){this.fg[d].valid=false;++d}},lz:function(e){var d=null;var f=0;if(selD.ni){while(this.fg[this.pu].product[f]){if(this.fg[this.pu].product[f].id==e){d=this.fg[this.pu].product[f];break}++f}}else{if(this.fd.product){while(this.fd.product[f].id){if(this.fd.product[f].id==e){d=this.fd.product[f];break}++f}}}return d},gw:function(j,h){if(this.po){return}if(!h){this.kt(true)}if(j=="up"){++this.pu;this.pt=1}else{--this.pu;this.pt=-1}if(this.gt=="fade"){this.mp()}var f=false;if(selD.ni||selD.gz){if(!this.fg[this.pu]){f=true}else{if(!this.fg[this.pu].valid){f=true}}if(f){this.po=true;if(selD.gz){selD.de(selI.ls(),"")}else{if(selD.ni){var d="[";var g=this.pu*this.hk;var e=0;while((e<this.hk)&&this.eg.rank[g+e]){if(e!=0){d+=","}d+=""+this.eg.rank[g+e]+"";++e}d+="]";if(e!=0){selD.lo(d)}}}}}selD.aq();if(!f){this.ev(null,this.pu)}},gv:function(e,d){window.clearTimeout(selR.ct);if(!e){e=selR.cu}if(d==undefined){d=true}if(Math.round(selR.cv)!=0){selR.cv+=e;if(selR.cv*selR.cu>0){selR.cv=0}if(selR.gt=="shift"){if(selR.cu>0){selR.dx.style.left=(selR.cv+selR.sb)+"px"}else{selR.dx.style.left=(selR.cv-selR.sb)+"px"}}selR.ea.style.left=selR.cv+"px";if(Math.abs(e)>Math.abs(selR.cu*6)||!d){if(Math.abs(e)>Math.abs(selR.cu)){e/=1.5}d=false}else{e*=1.5}selR.ct=window.setTimeout(function(){selR.gv(e,d)},20)}else{selR.bl()}},bl:function(){if((this.gt!="shift"&&this.gt!="slide")||!selR.cu){return}selR.cu=0;selR.cv=0;selR.ea.style.left="0px";selR.dx.style.left="0px";var d=selR.tk;selR.tk=selR.pk;selR.pk=d;selR.ea=document.getElementById("seRePane"+selR.pk);selR.dx=document.getElementById("seRePane"+selR.tk);selR.ea.style.visibility="hidden";selR.ea.style.display="none";selR.ea.style.zIndex=2;selR.dx.style.zIndex=1},sk:function(){if(((selR.pu+1)<Math.ceil(selR.hl/selR.hk))&&(!selR.skMax||(selR.pu+1)<selR.skMax)){selR.gw("up",true)}else{selR.pu=1;selR.gw("down",true)}if(selD.pa&&selD.pa.slideShow&&selD.pa.slideShow.wait){window.clearTimeout(selR.sj);selR.sj=window.setTimeout(selR.sk,(selD.pa.slideShow.wait*1000))}},db:function(d){if(selD.pa&&selD.pa.slideShow&&selD.pa.slideShow.wait&&Math.floor(this.hl/this.hk)){if(selD.pa.slideShow.maxPages){selR.skMax=selD.pa.slideShow.maxPages}else{selR.skMax=0}if(!this.sj){window.clearTimeout(this.sj);if(d&&selD.pa.slideShow.restart){this.sj=window.setTimeout(selR.sk,(selD.pa.slideShow.restart*1000))}else{selR.sj=window.setTimeout(selR.sk,(selD.pa.slideShow.wait*1000))}}}},kt:function(d){if(this.sj){window.clearTimeout(this.sj)}this.sj=null;if(selD.pa&&selD.pa.slideShow&&selD.pa.slideShow.restart&&d){this.sj=window.setTimeout(selR.sk,(selD.pa.slideShow.restart*1000))}},qj:function(){oc=this.oc;ob=this.ob;if(oc){document.getElementsByTagName("body")[0].removeChild(oc);oc=null}if(ob){document.getElementsByTagName("body")[0].removeChild(ob);ob=null}oc=document.createElement("div");oc.className="sellectorDetailsTile";oc.id="sellectorDetailsTile";oc.setAttribute("unselectable","on");oc.style.top="0px";oc.style.left="0px";oc.style.filter="alpha(opacity=000)";oc.style.opacity="0";oc.style.overflow="hidden";oc.style.position="absolute";oc.style.fontFamily=this.fr;oc.style.fontSize=this.fs+"px";oc.style.color=this.gg;ob=document.createElement("div");ob.className="sellectorDetailsTile";ob.id="sellectorDetailsShadow";ob.setAttribute("unselectable","on");ob.style.width=this.oa+"px";ob.style.top="0px";ob.style.left="0px";ob.style.filter="alpha(opacity=000)";ob.style.opacity="0";ob.style.overflow="hidden";ob.style.position="absolute";ob.style.backgroundColor="#000000";document.getElementsByTagName("body")[0].appendChild(oc);document.getElementsByTagName("body")[0].appendChild(ob);this.oc=oc;this.ob=ob},ay:function(d){d=d.replace(/<productsMatching\/>/g,this.hl);d=d.replace(/<pagesAvailable\/>/g,Math.ceil(this.hl/this.hk));d=d.replace(/<page\/>/g,(this.pu*1+1));d=d.replace(/<lastUpdatedDDMMYYYY\/>/g,(this.oo.getDate()+"."+(this.oo.getMonth()+1)+"."+this.oo.getFullYear()));d=d.replace(/<lastUpdatedYYYYMMDD\/>/g,(this.oo.getFullYear()+"-"+(this.oo.getMonth()+1)+"-"+this.oo.getDate()));d=d.replace(/<lastUpdateTime\/>/g,(this.oo.getHours()+":"+this.oo.getMinutes()));return d},cq:function(d){if(d.width>this.fn||d.height>this.fo){if((d.width/this.fn)>(d.height/this.fo)){d.height=(d.height/(d.width/this.fn));d.width=this.fn}else{d.height=this.fo;d.width=d.width*(d.height/this.fo)}}if(d.height<this.fo&&!(selD.ov&&selD.ov.resultTileTemplate)){if(selD.ov&&selD.ov.resultTileTemplate){d.parentNode.previousSibling.style.height=(this.fo-d.height)/2+"px"}}d.style.visibility="visible"},cr:function(e,d){if(e.width>this.gb||e.height>this.gc){if((e.width/this.gb)>(e.height/this.gc)){e.width=this.gb;e.height=(e.height/(e.width/this.gb))}else{e.height=this.gc;e.width=e.width*(e.height/this.gc)}}e.parentNode.style.visibility="visible";this.mu(1,d)},mu:function(f,g){var e=this.oc;var h=this.ob;var d;if(f){e.style.zIndex=5000;if(!this.od){e.style.height=this.oe+"px"}d="visible";e.style.visibility=d;if(g){h.style.zIndex=4999;h.style.height=e.offsetHeight+"px";h.style.visibility=d}this.mt(0,e)}else{d="alpha(opacity=0)";e.style.filter=d;e.style.opacity=0;h.style.filter=d;h.style.opacity=0;e.innerHTML="";d="hidden";e.style.visibility=d;h.style.visibility=d;window.clearTimeout(this.fadeEvent)}},mt:function(h,d){var f;f=d.style.opacity*100;h+=10;if(h<=100){this.fadeEvent=window.setTimeout(function(){selR.mt(h,d)},1)}else{}f+=10;if(f>100){f=100}if(f>=100){d.style.filter=""}else{d.style.filter="alpha(opacity="+f+")"}d.style.opacity=f/100;var e=this.ob;var g=f/3;e.style.filter="alpha(opacity="+g+")";e.style.opacity=g/100},mp:function(){var e;var d;e=0;d=document.getElementById(this.ax+this.tk+e);while(e<this.hk){d.style.filter="alpha(opacity=0)";d.style.opacity=0/100;d.innerHTML="&nbsp;";d.style.visibility="hidden";++e;d=d.nextSibling}},ms:function(g){var f;var e;var d;var h=6;d=document.getElementById(this.ax+this.tk+"0");f=d.style.opacity*100;f+=h;if(f>100){f=100}op=f/100;e=0;d=document.getElementById(this.ax+this.tk+e);while(e<this.hk){if(d.style.visibility=="visible"){if(f>=100){d.style.filter=""}else{d.style.filter="alpha(opacity="+f+")"}d.style.opacity=op}++e;d=d.nextSibling}g+=h;if(g<=100){window.setTimeout(function(){selR.ms(g)},1)}},cs:function(l){var d;var o;var m;var f;var n;var g;var p;var e=true;if(selR.cv!=0){return}selR.kt(false);if(selD.ov&&selD.ov.detailsTileTemplate){p=selD.ov.detailsTileTemplate;if(p.shadow==false){e=false}}if(selD.ov&&selD.ov.resultTileTemplate){m=document.getElementById(l.id.substr(3))}else{m=l.parentNode.parentNode.parentNode}d=document.getElementById("sellectorDetailsTile");o=document.getElementById("sellectorDetailsShadow");var k=this.ek;this.eh=0;this.ei=0;while(k){this.eh+=k.offsetTop;this.ei+=k.offsetLeft;k=k.offsetParent}d.style.top=((m.offsetTop*1)+(this.eh*1))+"px";d.style.left=((m.offsetLeft*1)+(this.ei*1))+"px";o.style.top=((m.offsetTop*1)+(this.eh*1)+10)+"px";o.style.left=((m.offsetLeft*1)+(this.ei*1)+10)+"px";f=this.lz(m.name.substr(this.ax.length));if(f){if(f.largeImage||f.longDescription||p){if(f.destinationURL){n=f.destinationURL}else{n=this.os}this.mr=true;var j="";if(p){if(p.content){j+=p.content;j=j.replace(/<sellectorDestination\/>/g,n);j=j.replace(/<sellectorProductName\/>/g,f.name);if(f.foreignProductKey){j=j.replace(/<sellectorProductId\/>/g,f.foreignProductKey)}if((j.search(/<sellectorLargeImage\/>/)==-1)&&(j.search(/<sellectorSmallImage\/>/)==-1)){g=true}if(f.largeImage){j=j.replace(/<sellectorLargeImage\/>/g,"<div style='visibility:hidden'><img src='"+f.largeImage+"' onload='selR.cr(this, "+e+")' onclick='di(\""+n+'", "'+f.foreignProductKey+'", "'+f.id+"\")' style='cursor:pointer'/></div>")}if(f.smallImage){j=j.replace(/<sellectorSmallImage\/>/g,"<div style='visibility:hidden'><img src='"+f.smallImage+"' onload='selR.cr(this, "+e+")' onclick='di(\""+n+'", "'+f.foreignProductKey+'", "'+f.id+"\")' style='cursor:pointer'/></div>")}if(f.shortDescription){j=j.replace(/<sellectorDescription\/>/g,f.shortDescription)}if(f.custProdText){j=j.replace(/<sellectorCustomProductText\/>/g,f.custProdText)}if(f.selProdText){j=j.replace(/<sellectorSelectableProductText\/>/g,f.selProdText)}if(f.price){j=j.replace(/<sellectorPrice\/>/g,f.price);j=j.replace(/<sellectorPriceDecimal\/>/g,parseFloat(f.price.toString()).toFixed(2))}}}else{j="<center><nobr><span style='font-family:"+this.fr+"; color:"+this.gh+"'>"+f.name+"</span></nobr></center>";if(f.largeImage!=null){j+="<center><div style='visibility:hidden'><img src='"+f.largeImage+"' onload='selR.cr(this, "+e+")' onclick='di(\""+n+'", "'+f.foreignProductKey+'", "'+f.id+"\")' style='cursor:pointer'/></div></center>"}else{if(f.smallImage!=null){j+="<center><div style='visibility:hidden'><img src='"+f.smallImage+"' onload='selR.cr(this, "+e+")' onclick='di(\""+n+'", "'+f.foreignProductKey+'", "'+f.id+"\")' style='cursor:pointer'/></div></center>"}}if(f.longDescription!=null){j+=(f.longDescription)}else{if(f.shortDescription!=null){j+="<span>"+f.shortDescription+"<br/></span> "}}if(selD.ov&&selD.ov.resultTileFooter){if(selD.ov.resultTileFooter.content&&f.price){var h;h=selD.ov.resultTileFooter.content.replace(/<sellectorPrice\/>/g,f.price);h=h.replace(/<sellectorPriceDecimal\/>/g,parseFloat(f.price.toString()).toFixed(2));h=h.replace(/<sellectorPrice>/g,f.price);j+=h}}}if(selD.scripting&&selD.scripting.detailsTile){j=selD.scripting.detailsTile(f,j)}d.innerHTML=j;d.style.width=this.oa+"px";if(this.ge){d.style.backgroundColor=this.ge}else{if(this.fl=="transparent"){if(this.gj=="transparent"){d.style.backgroundColor="#ffffff"}else{d.style.backgroundColor=this.gj}}else{d.style.backgroundColor=this.fl}}if(this.gd){d.style.backgroundImage="url("+this.gd+")"}if(this.ga){d.style.backgroundRepeat=this.ga}d.onmouseout=function(q){selR.ku(q||window.event)};if((!f.largeImage&&f.longDescription)||g){d.style.zIndex=5000;if(!this.od){d.style.height=this.oe+"px"}this.mu(1,e)}}else{selR.kt(true)}}},ku:function(j){if(j!="force"){var g;var f;if(!j){j=window.event}if(j.clientX<0||j.clientY<0){return}var k=(this.oc.style.left.substring(0,(this.oc.style.left.length-2))*1);var h=(this.oc.style.top.substring(0,(this.oc.style.top.length-2))*1);try{g=pageXOffset;f=pageYOffset}catch(d){g=document.documentElement.scrollLeft;f=document.documentElement.scrollTop}g+=(j.clientX*1);f+=(j.clientY*1);if((g>k)&&(g<(k+(this.oc.offsetWidth)*1))&&(f>h)&&(f<(h+(this.oc.offsetHeight*1)))){return}}this.oc.style.zIndex=0;this.ob.style.zIndex=0;this.mu(0);selR.db(true)},nv:function(){if(selD.ov&&selD.ov.emptyResultTemplate){oc=this.oc;noResultTemplate=selD.ov.emptyResultTemplate;var d=this.ek;this.eh=0;this.ei=0;while(d){this.eh+=d.offsetTop;this.ei+=d.offsetLeft;d=d.offsetParent}offsetLeft=noResultTemplate.left;if(!offsetLeft){offsetLeft=0}offsetTop=noResultTemplate.top;if(!offsetTop){offsetTop=0}oc.style.top=((offsetTop*1)+(this.eh*1))+"px";oc.style.left=((offsetLeft*1)+(this.ei*1))+"px";oc.innerHTML=noResultTemplate.content;oc.style.height=noResultTemplate.height+"px";oc.style.width=noResultTemplate.width+"px";if(noResultTemplate.backgroundColor){oc.style.backgroundColor=noResultTemplate.backgroundColor}else{if(this.fl=="transparent"){if(this.gj=="transparent"){oc.style.backgroundColor="#ffffff"}else{oc.style.backgroundColor=this.gj}}else{oc.style.backgroundColor=this.fl}}if(noResultTemplate.backgroundImage){oc.style.backgroundImage="url("+noResultTemplate.backgroundImage+")"}if(noResultTemplate.backgroundRepeat){oc.style.backgroundRepeat=noResultTemplate.backgroundRepeat}oc.onmouseout=null;this.mu(true,false)}},en:function(){var f;var e;var g;var k;var j;var d;var h;e=false;f=document.getElementById(this.ej);if(!this.sd&&!this.sb){return false}if(!f.offsetWidth&&!f.offsetHeight){return false}d=f.offsetWidth;if(f.style.borderLeftWidth){d-=f.style.borderLeftWidth.substring(0,f.style.borderLeftWidth.length-2)*1}if(f.style.borderLeftWidth){d-=f.style.borderRightWidth.substring(0,f.style.borderRightWidth.length-2)*1}h=f.offsetHeight;if(f.style.borderTopWidth){h-=f.style.borderTopWidth.substring(0,f.style.borderTopWidth.length-2)*1}if(f.style.borderBottomWidth){h-=f.style.borderBottomWidth.substring(0,f.style.borderBottomWidth.length-2)*1}if((d!=this.sb)||h!=this.sd){return true}g=f;k=0;j=0;while(g){k+=g.offsetTop;j+=g.offsetLeft;g=g.offsetParent}if((k!=this.eh)||(j!=this.ei)){this.eh=k;this.ei=j}return false},lp:function(){return this.hk},lt:function(){return this.pu},ln:function(){return this.ee}};
