﻿LCB_version=2.8;_mac=navigator.userAgent.indexOf("Mac")!=-1;_ie512=navigator.userAgent.indexOf("MSIE 5.12")!=-1;_dom=document.all?(document.getElementById?2:1):(document.getElementById?4:(document.layers?3:0));_createLayerNo=0;function initCrossBrowserLib(){_mac=navigator.userAgent.indexOf("Mac")!=-1;_ie512=navigator.userAgent.indexOf("MSIE 5.12")!=-1;_dom=document.all?(document.getElementById?2:1):(document.getElementById?4:(document.layers?3:0));_createLayerNo=0}initCrossBrowserLib();function getWindowWidth(){if(_dom==4||_dom==3){return window.innerWidth}if(_dom==2||_dom==1){return document.body.clientWidth}return 0}function getWindowHeight(){if(_dom==4||_dom==3){return window.innerHeight}if(_dom==2||_dom==1){return document.body.clientHeight}return 0}function getWinXOffset(){if(_dom==4){return window.scrollX}if(_dom==2||_dom==1){return document.body.scrollLeft}if(_dom==3){return window.pageXOffset}return 0}function getWinYOffset(){if(_dom==4){return window.scrollY}if(_dom==2||_dom==1){return document.body.scrollTop}if(_dom==3){return window.pageYOffset}return 0}function getDivFromName(nm){if(_dom==4||_dom==2){return document.getElementById(nm)}if(_dom==1){return document.all(nm)}if(_dom==3){var s="";for(var i=1;i<arguments.length;i++){s+="document.layers."+arguments[i]+"."}return eval(s+"document.layers."+nm)}return null}function getDivName(A){if(_dom==4||_dom==2||_dom==1){return A.id}if(_dom==3){return A.name}return""}function createLayer(E,K,D,M,A){var N="";if(arguments.length>5){for(var F=5;F<arguments.length;F++){N+=arguments[F]}}if(_dom==4){var H="_js_layer_"+_createLayerNo;_createLayerNo++;var L=A?A:document.body;var B=document.createElement("DIV");B.id=H;B.setAttribute("style","position:absolute;left:"+E+";top:"+K+(D>0?(";width:"+D):"")+(M>0?(";height:"+M):"")+";visibility:hidden");var G=document.createRange();G.selectNodeContents(B);G.collapse(true);var C=G.createContextualFragment(N);B.appendChild(C);L.appendChild(B);return B}if(_dom==2||_dom==1){var J=(_mac&&!_ie512)?" ":"";var H="_js_layer_"+_createLayerNo;_createLayerNo++;var I=(M>0)?(";height:"+M):"";var L=A?A:document.body;L.insertAdjacentHTML("BeforeEnd",'<div id="'+H+'" style="position:absolute;left:'+E+";top:"+K+(D>0?(";width:"+D):";width:1")+(M>0?(";height:"+M):"")+';visibility:hidden;">'+N+"</div>"+J);return document.all(H)}if(_dom==3){var B=A?(new Layer(D,A)):(new Layer(D));if(M>0){B.resizeTo(D,M)}B.moveTo(E,K);if(N!=""){B.document.open("text/html","replace");B.document.write(N);B.document.close()}return B}return null}function createExLayer(C,E,J,D,K,A){if(_dom==4){var G="_js_layer_"+_createLayerNo;_createLayerNo++;var L=A?A:document.body;var B=document.createElement("IFRAME");B.id=G;B.name=G;B.setAttribute("style","position:absolute;left:"+E+";top:"+J+";width:"+D+(K>0?(";height:"+K):"")+";visibility:hidden");B.setAttribute("src",C);B.setAttribute("frameborder",0);B.setAttribute("scrolling","no");L.appendChild(B);return B}if(_dom==2||_dom==1){var I=(_mac&&_ie512)?" ":"";var F,G="_js_layer_"+_createLayerNo;_createLayerNo++;var H=(K>0)?(";height:"+K):"";if(arguments.length>5&&A){F=A}else{F=document.body}F.insertAdjacentHTML("BeforeEnd",'<div id="'+G+'" style="position:absolute;left:'+E+";top:"+J+";width:"+D+H+';visibility:hidden;"><iframe src="'+C+'" name="'+G+'_if" width='+D+" height="+K+'marginwidth=0 marginheight=0 scrolling="no" frameborder="no"></iframe></div>'+I);return document.all(G)}if(_dom==3){var B=A?(new Layer(D,A)):(new Layer(D));if(K>0){B.resizeTo(D,K)}B.moveTo(E,J);B.load(C,D);return B}return null}function getDivImage(B,A){if(_dom==4){return document.images[A]}if(_dom==2||_dom==1){return document.images(A)}if(_dom==3){return B.document.images[A]}return null}function getDivForm(B,A){if(_dom==4){return document.forms[A]}if(_dom==2||_dom==1){return document.forms(A)}if(_dom==3){return B.document.forms[A]}return null}function initDivPos(A){if(_dom==4){A.style.left=A.offsetLeft+"px";A.style.top=A.offsetTop+"px"}else{if(_dom==2||_dom==1){A.style.pixelLeft=A.offsetLeft;A.style.pixelTop=A.offsetTop}}return A}function getDivLeft(A){if(_dom==4||_dom==2){return A.offsetLeft}if(_dom==1){return A.style.pixelLeft}if(_dom==3){return A.left}return 0}function getDivTop(A){if(_dom==4||_dom==2){return A.offsetTop}if(_dom==1){return A.style.pixelTop}if(_dom==3){return A.top}return 0}function moveDivTo(C,B,A){if(_dom==4){C.style.left=B+"px";C.style.top=A+"px";return }if(_dom==2||_dom==1){C.style.pixelLeft=B;C.style.pixelTop=A;return }if(_dom==3){C.moveTo(B,A);return }}function moveDivBy(C,B,A){if(_dom==4){C.style.left=C.offsetLeft+B;C.style.top=C.offsetTop+A;return }if(_dom==2){C.style.pixelLeft=C.offsetLeft+B;C.style.pixelTop=C.offsetTop+A;return }if(_dom==1){C.style.pixelLeft+=B;C.style.pixelTop+=A;return }if(_dom==3){C.moveBy(B,A);return }}function scrollExlHItTo(C,A){if(_dom==4){frames[C.id].scrollTo(A,frames[C.id].scrollY);return }if(_dom==2||_dom==1){frames(C.id+"_if").scrollTo(A,frames(C.id+"_if").document.body.scrollTop);return }if(_dom==3){var B=A-C.clip.left,D=C.clip.width;C.left-=B;C.clip.left=A;C.clip.width=D;return }return }function scrollExlVItTo(B,D){if(_dom==4){frames[B.id].scrollTo(frames[B.id].scrollX,D);return }if(_dom==2||_dom==1){frames(B.id+"_if").scrollTo(frames(B.id+"_if").document.body.scrollLeft,D);return }if(_dom==3){var A=D-B.clip.top,C=B.clip.height;B.top-=A;B.clip.top=D;B.clip.height=C;return }return }function initDivSize(A){if(_dom==4){A.style.width=A.offsetWidth+"px";A.style.height=A.offsetHeight+"px"}else{if(_dom==2||_dom==1){A.style.pixelWidth=A.offsetWidth;A.style.pixelHeight=A.offsetHeight}}return A}function getDivWidth(A){if(_dom==4||_dom==2){return A.offsetWidth}if(_dom==1){return A.style.pixelWidth}if(_dom==3){return A.clip.width}return 0}function getDivHeight(A){if(_dom==4||_dom==2){return A.offsetHeight}if(_dom==1){return A.style.pixelHeight}if(_dom==3){return A.clip.height}return 0}function resizeDivTo(C,B,A){if(_dom==4){C.style.width=B+"px";C.style.height=A+"px";return }if(_dom==2||_dom==1){C.style.pixelWidth=B;C.style.pixelHeight=A;return }if(_dom==3){C.resizeTo(B,A);return }}function resizeDivBy(C,B,A){if(_dom==4){C.style.width=(C.offsetWidth+B)+"px";C.style.height=(C.offsetHeight+A)+"px";return }if(_dom==2){C.style.pixelWidth=C.offsetWidth+B;C.style.pixelHeight=C.offsetHeight+A;return }if(_dom==1){C.style.pixelWidth+=B;C.style.pixelHeight+=A;return }if(_dom==3){C.resizeBy(B,A);return }}function getExlWidth(A){if(_dom==4){return A.contentDocument.body.offsetWidth}if(_dom==2||_dom==1){return _mac?frames(A.id+"_if").document.body.offsetWidth:frames(A.id+"_if").document.body.scrollWidth}if(_dom==3){return A.document.width}return 0}function getExlHeight(A){if(_dom==4){return A.contentDocument.body.offsetHeight}if(_dom==2||_dom==1){return _mac?frames(A.id+"_if").document.body.offsetHeight:frames(A.id+"_if").document.body.scrollHeight}if(_dom==3){return A.document.height}return 0}function setDivVisibility(B,A){if(_dom==4||_dom==2||_dom==1){B.style.visibility=(A)?"inherit":"hidden";return }if(_dom==3){B.visibility=(A)?"inherit":"hide";return }}function setDivVisibilities(B,C){if(_dom==4||_dom==2||_dom==1){for(var A=0;A<B.length;A++){B[A].style.visibility=(C)?"inherit":"hidden"}}if(_dom==3){for(var A=0;A<B.length;A++){B[A].visibility=(C)?"inherit":"hide"}}return B}function setDivClip(E,D,B,A,C){if(_dom==4||_dom==2||_dom==1){E.style.clip="rect("+D+"px "+B+"px "+A+"px "+C+"px)";return }if(_dom==3){E.clip.top=D;E.clip.right=B;E.clip.bottom=A;E.clip.left=C;return }}function writeDivHTML(G,F,A){var D="";for(var C=3;C<arguments.length;C++){D+=arguments[C]}if(_dom==4){if(F){while(G.hasChildNodes()){G.removeChild(G.lastChild)}}var B=document.createRange();B.selectNodeContents(G);B.collapse(true);var E=B.createContextualFragment(D);G.appendChild(E);return }if(_dom==2||_dom==1){if(F){G.innerHTML=""}if(_mac&&!_ie512){G.innerHTML+=D}else{G.insertAdjacentHTML("BeforeEnd",D)}return }if(_dom==3){if(F){G.document.open("text/html","replace")}G.document.write(D);if(A){G.document.close()}return }}function setDivBackgroundColor(B,A){if(A==null){A="transparent"}if(_dom==3){B.bgColor=A}else{B.style.backgroundColor=A}}function setDivBackgroundImage(B,A){if(_dom==3){B.background.src=A?A:null}else{B.style.backgroundImage=A?("url("+A+")"):"none"}}function setDivZIndex(B,A){if(_dom==4||_dom==2||_dom==1){B.style.zIndex=A;return }if(_dom==3){B.zIndex=A;return }}function setDivStyleAttribute(div,nm,value){if(_dom!=0&&_dom!=3){eval("div.style."+nm+"=value")}return div}function changeExlURL(B,A){if(_dom==4){B.setAttribute("src",A);return }if(_dom==2||_dom==1){frames(B.id+"_if").location.replace(A);return }if(_dom==3){B.load(A,B.clip.width);return }return }function getLeftFromEvent(A){if(_dom==4){return A.clientX+window.scrollX}if(_dom==2||_dom==1){return document.body.scrollLeft+window.event.clientX}if(_dom==3){return A.pageX}return 0}function getTopFromEvent(A){if(_dom==4){return A.clientY+window.scrollY}if(_dom==2||_dom==1){return document.body.scrollTop+window.event.clientY}if(_dom==3){return A.pageY}return 0}_grabObj=null;function EventCtrl(A){this.div=A;this.type="";this.mask=0;this.pageX=0;this.pageY=0}EventCtrl.prototype.linkCtrl=function(A){if(A&&!A.eventCtrl){A.eventCtrl=this}return this};EventCtrl.prototype.setThreshold=function(A){this.threshold=A;return this};function getCtrlFromElementIE(B,A){for(;B;B=B.parentElement){if((A==null||B.tagName==A)&&B.eventCtrl){return B.eventCtrl}}return null}function getCtrlFromEventIE(H,B){var F=_grabObj;var E=window.event;var G,D;if(F==null){var A=0,C=E.type;switch(C){case"mouseover":G=getCtrlFromElementIE(E.fromElement,B);D=getCtrlFromElementIE(E.toElement,B);if(G!=D){F=D}if(!F||(F.mask&1)==0){F=null}break;case"mouseout":G=getCtrlFromElementIE(E.fromElement,B);D=getCtrlFromElementIE(E.toElement,B);if(G!=D){F=G}if(!F||(F.mask&1)==0){F=null}break;case"mousedown":case"mousemove":case"mouseup":F=getCtrlFromElementIE(E.srcElement,B);if(F&&(F.mask&2)!=0){break}default:F=null;break}}if(F){F.pageX=document.body.scrollLeft+E.clientX;F.pageY=document.body.scrollTop+E.clientY;F.type=E.type}return F}function getCtrlFromEventNN4(D,B){var C=_grabObj;if(C==null){C=D.target.eventCtrl}if(C){var A=0;switch(D.type){case"mouseover":case"mouseout":A|=1;break;case"mousedown":case"mousemove":case"mouseup":A|=2;break}if((C.mask&A)!=0){C.pageX=D.pageX;C.pageY=D.pageY;C.type=D.type}else{C=null}}return C}function getCtrlFromEventMz(D,B){var C=_grabObj;if(C==null){for(var A=D.target;A!=null;A=A.parentNode){if((B==null||(A.nodeType==Node.ELEMENT_NODE&&A.tagName==B))&&("undefined"!=typeof (A.eventCtrl))){C=A.eventCtrl;break}}}if(C){C.pageX=D.clientX+window.scrollX;C.pageY=D.clientY+window.scrollY;C.type=D.type}return C}function getCtrlFromEventNop(B,A){return null}getCtrlFromEvent=(_dom==1||_dom==2)?getCtrlFromEventIE:(_dom==3?getCtrlFromEventNN4:(_dom==4?getCtrlFromEventMz:getCtrlFromEventNop));function ech_mouseover(B){var A=getCtrlFromEvent(B,null);if(A&&A.mouseover&&!A.mouseoverState){A.mouseoverState=true;if(A.mouseover){A.mouseover(A,A.mouseoverClient)}}}function ech_mouseout(B){var A=getCtrlFromEvent(B,null);if(A&&A.mouseover&&A.mouseoverState){A.mouseoverState=false;if(A.mouseout){A.mouseout(A,A.mouseoutClient)}}}function ech_mousedown(B){var A=getCtrlFromEvent(B,null);if(A&&!A.dragging){_grabObj=A;A.dragging=true;A.dragged=false;A.startX=A.curX=A.pageX;A.startY=A.curY=A.pageY;if(A.mousedown){A.mousedown(A,A.mousedownClient)}return false}return true}function ech_mousemove(B){var A=getCtrlFromEvent(B,null);if(A&&A.dragging){if(A.curX!=A.pageX||A.curY!=A.pageY){if(Math.abs(A.pageX-A.startX)>A.threshold||Math.abs(A.pageY-A.startY)>A.threshold){A.dragged=true}if(A.mousemove){A.mousemove(A,A.mousemoveClient)}A.curX=A.pageX;A.curY=A.pageY}return false}return true}function ech_mouseup(B){var A=getCtrlFromEvent(B,null);if(A&&A.dragging){_grabObj=null;A.dragging=false;if(A.mouseup){A.mouseup(A,A.mouseupClient)}if(!A.dragged&&A.mouseclick){A.mouseclick(A,A.mouseclickClient)}A.curX=A.pageX;A.curY=A.pageY;return false}return true}function ech_attachMouseOverOut(F,B,C,E,A){if(!F.eventCtrl){F.eventCtrl=new EventCtrl(F)}var D=F.eventCtrl;D.mouseoverState=false;D.mouseover=B;D.mouseoverClient=C;D.mouseout=E;D.mouseoutClient=A;F.onmouseover=ech_mouseover;F.onmouseout=ech_mouseout;D.mask|=1;return D}function ech_detachMouseOverOut(B){var A=B.eventCtrl;if(A){A.div.onmouseover=null;A.div.onmouseout=null;A.mask=~1}}function ech_attachMouseDrag(C,D,G,H,I,B,F,K,E){var J;if(_dom==1||_dom==2){J=C;J.onmousedown=ech_mousedown;document.onmousemove=ech_mousemove;document.onmouseup=ech_mouseup}else{if(_dom==3){J=C.document;J.onmousedown=ech_mousedown;J.onmousemove=ech_mousemove;J.onmouseup=ech_mouseup;J.captureEvents(Event.MOUSEDOWN|Event.MOUSEMOVE|Event.MOUSEUP)}else{if(_dom==4){J=C;C.onmousedown=ech_mousedown;document.body.onmousemove=ech_mousemove;document.body.onmouseup=ech_mouseup}else{return null}}}if(!J.eventCtrl){J.eventCtrl=new EventCtrl(C)}var A=J.eventCtrl;A.dragging=false;A.dragged=false;A.startX=0;A.startY=0;A.curX=0;A.curY=0;A.mousedown=D;A.mousedownClient=G;A.mousemove=H;A.mousemoveClient=I;A.mouseup=B;A.mouseupClient=F;A.mouseclick=K;A.mouseclickClient=E;A.threshold=5;A.mask|=2;return A}function ech_detachMouseDrag(C){var A=null;if(_dom==1||_dom==2){A=C.eventCtrl;if(A){A.div.onmousedown=null}}else{if(_dom==3){A=C.document.eventCtrl;if(A){var B=A.div.document;B.releaseEvents(Event.MOUSEDOWN|Event.MOUSEMOVE|Event.MOUSEUP);B.onmousedown=null;B.onmousemove=null;B.onmouseup=null}}else{if(_dom==4){A=C.eventCtrl;if(A){A.div.onmousedown=null}}}}if(A){A.mask&=~2}}function bsFormGetFormForField(A){if(document.forms.length==1){return document.forms[0]}if(A.tagName=="form"){return A}if(A.parentNode){return bsFormGetFormForField(A.parentNode)}return false}function bsFormGetNextField(D){var B=bsFormGetFormForField(D);if(!B){return false}var A=false;for(var C=0;C<B.elements.length;C++){if(A){return B.elements[C]}if(B.elements[C]==D){A=true}}return false}function bsFormToggleCheckbox(A,C){try{if(document.forms[A].elements[C].checked){document.forms[A].elements[C].checked=false}else{document.forms[A].elements[C].checked=true}}catch(B){}}function bsFormToggleContainer(D){if(document.getElementById){var E=document.getElementById(D);if(typeof (E)!="undefined"){E.style.display=(E.style.display=="none")?"block":"none";var A=document.getElementById("contToggleImg"+D.substr(9));if(typeof (A)!="undefined"){if(E.style.display=="none"){A.src=A.src.substr(0,A.src.length-6)+"down.gif"}else{A.src=A.src.substr(0,A.src.length-8)+"up.gif"}}var B=document.getElementById("contToggleTextO"+D.substr(9));var C=document.getElementById("contToggleTextC"+D.substr(9));if(typeof (B)!="undefined"){if(E.style.display=="none"){B.style.display="inline";C.style.display="none"}else{B.style.display="none";C.style.display="inline"}}return }}if(document.all){if(document.all[D].style.display=="none"){document.all[D].style.display="block"}else{document.all[D].style.display="none"}}}function bsFormCheckOnlyIf(C,F,D){if(typeof (bsFormVars)=="undefined"){return }if(typeof (bsFormVars[C])=="undefined"){return }for(var A in bsFormVars[C]){if(typeof (bsFormVars[C][A]["onlyIf"])=="undefined"){continue}var B=_bsForm_anyIfCase(bsFormVars[C][A]["onlyIf"]);var E=document.getElementById(A);if((typeof (E)!="undefined")&&(E!=null)){if(!B){E.disabled=true}else{E.disabled=false}}}}function bsFormGetFieldValue(A){var D=document.getElementById(A);if((typeof (D)=="undefined")||(D==null)||(D.id!=A)){var D=document.getElementById(A+"0");var C=document[D.form.name][D.name];D=C}else{var C=document[D.form.name][D.name]}for(var B=0;B<C.length;B++){if(C[B].checked){return C[B].value}}return D.value}function _bsForm_anyIfCase(myIf){if((typeof (myIf)=="object")&&(myIf.length>0)){var stack=new Array();for(i=0;i<myIf.length;i++){stack[i]=new Array();stack[i]["operator"]=(typeof (myIf[i]["operator"])!="undefined")?myIf[i]["operator"]:"|";stack[i]["compare"]=(typeof (myIf[i]["compare"])!="undefined")?myIf[i]["compare"]:"=";stack[i]["boolean"]=false;do{if(typeof (myIf[i]["value"])!="undefined"){var t=bsFormGetFieldValue(myIf[i]["field"]);if(typeof (t)!=null){switch(stack[i]["compare"]){case"=":stack[i]["boolean"]=(t==myIf[i]["value"]);break;case">":stack[i]["boolean"]=(t>myIf[i]["value"]);break;case"<":stack[i]["boolean"]=(t<myIf[i]["value"]);break;case">=":stack[i]["boolean"]=(t>=myIf[i]["value"]);break;case"<=":stack[i]["boolean"]=(t<=myIf[i]["value"]);break;case"!=":case"<>":stack[i]["boolean"]=(t!=myIf[i]["value"]);break;default:}break}}else{break}}while(false)}if((typeof (stack)=="object")&&(stack.length>0)){var evalStr="";for(var i=0;i<stack.length;i++){if(i>0){evalStr+=(stack[i]["operator"]=="&")?"&& ":"|| "}evalStr+=(stack[i]["boolean"])?"true ":"false "}evalStr=" ("+evalStr+");";if(eval(evalStr)){return true}}}return false}function bsFormCheckMail(D,F,A){var H=F.name;var B=F.id;var C=F.value;var G=document.getElementById("bsMailCheck"+H);D+="?email="+C+"&checkType="+A;var E=new Date();D+="&random="+E.getMilliseconds();G.src=D}function bsFormJumpToFirstError(D,B,A){try{if(document.forms[B].elements[D]){if(A&&(document.forms[B].elements[D].value!="")){if(document.forms[B].elements[D].select){document.forms[B].elements[D].select()}}if(document.forms[B].elements[D].focus){document.forms[B].elements[D].focus()}}}catch(C){}}function bsFormEnterSubmit(B,A){var B=("object"==typeof (window.event))?window.event:B;if(B&&B.keyCode==13){A.submit()}return true}function bsFormNoEnter(A){if(typeof (A)=="undefined"){A=window.event}if(A){return(A.keyCode!=13)}return true}function bsFormEnterToTab(B){B=("object"==typeof (window.event))?window.event:B;if((B&&(B.keyCode==13))||(B.which&&(B.which==13))){if((typeof (ie)=="undefined")||ie){B.keyCode=9}else{var A=bsFormGetNextField(B.srcElement);if(A){try{A.focus()}catch(C){}}return false}}return true}function bsFormHandleEnter(ev,functionName){var ev=("object"==typeof (window.event))?window.event:ev;if(ev&&ev.keyCode==13){return eval(functionName+"();")}return true}function bsFormFieldSetFocusAndSelect(C,A){if(typeof (C)=="string"){C=document.getElementById(C)}if(!C){return false}try{if(A||!C.hasFocus){C.focus();C.select()}}catch(B){return false}return true}function rc4encryptFormValues(C,A){for(var B=0;B<document[C].length;++B){var D=document[C].elements[B];if(typeof (D.name)=="undefined"){continue}if(D.name.substr(0,8)=="bs_form["){continue}if((typeof (D.value)!="undefined")&&(typeof (D.value)!="object")&&(D.value!="")){switch(D.type){case"text":case"password":case"hidden":D.value="_crp_"+base64_encode(rc4crypt(A,D.value));break}}}}function flowerPower1(B,A){rc4encryptFormValues(B,A)}function rc4decryptFormValues(C,A){for(var B=0;B<document[C].length;++B){var D=document[C].elements[B];if((typeof (D.value)!="undefined")&&(D.value!="")&&(D.value.substr(0,5)=="_crp_")){D.value=rc4crypt(A,base64_decode(D.value.substr(5)))}}}function flowerPower2(B,A){rc4decryptFormValues(B,A)}function bsFormDoHiddenSubmit(G,J,C,H,E,L){var F=new Array();var K=0;F[K++]='<form name="smSubmitForm" action="'+L+'" method="post">';F[K++]='<input type="hidden" name="bs_todo[nextScreen]" value="'+C+'">';F[K++]='<input type="hidden" name="bs_todo[exitScreen]" value="'+G+'">';switch(typeof (H)){case"string":F[K++]='<input type="hidden" name="bs_todo[nextAction]" value="'+H+'">';break;case"object":for(var I in H){F[K++]='<input type="hidden" name="bs_todo[nextAction]['+I+']" value="'+H[I]+'">'}default:}switch(typeof (J)){case"string":F[K++]='<input type="hidden" name="bs_todo[exitAction]" value="'+J+'">';break;case"object":for(var I in J){F[K++]='<input type="hidden" name="bs_todo[exitAction]['+I+']" value="'+J[I]+'">'}default:}E=_recursiveObj2Hash(E);for(var M in E){if(typeof (E[M])=="function"){continue}var B=bs_filterForHtml(E[M]+"");F[K++]='<input type="hidden" name="bs_todo[dataHash]'+M+'" value="'+B+'">'}F[K++]="</form>";var D=document.getElementsByTagName("body").item(0);D.innerHTML=F.join("");var A=document.smSubmitForm;A.submit()}function _recursiveObj2Hash(B,D,E){if(!E){E=new Object();D=""}if(typeof (B)!="object"){E[D]=B}else{for(var C in B){var A=D+"["+C+"]";_recursiveObj2Hash(B[C],A,E)}}return E}if(!Bs_Objects){var Bs_Objects=[]}function Bs_Slider(theFieldnamePrefix){this._objectId;this.fieldName;this.fieldName2;this._disabled=false;this.direction=0;this.width=100;this.height=20;this.minVal=0;this.maxVal=100;this.valueDefault=0;this.arrowAmount=1;this.arrowMouseOver=false;this.arrowKeepFiringTimeout=10;this._stopFireArrowFlag=false;this.wheelAmount=5;this.colorbar;this.colorbar2;this.baseZindex=1000;this.moveX=0;this.moveY=0;this.imgBasePath;this.imgDir="/_bsJavascript/components/slider/img/";this._bgImgSrc;this._bgImgRepeat;this._bgImgCssStyle;this._bgImgLeftSrc;this._bgImgLeftWidth;this._bgImgLeftHeight;this._bgImgRightSrc;this._bgImgRightWidth;this._bgImgRightHeight;this._sliderImgSrc;this._sliderImgWidth;this._sliderImgHeight;this.styleContainerClass;this.styleValueFieldClass="smalltxt spanSliderField";this.styleValueFieldClass2="smalltxt spanSliderField";this.styleValueTextClass="smalltxt spanSliderText";this.styleValueTextClass2="smalltxt spanSliderText";this.bgColor;this._arrowIconLeftSrc;this._arrowIconLeftWidth=0;this._arrowIconLeftHeight=0;this._arrowIconLeftCssStyle=0;this._arrowIconRightSrc;this._arrowIconRightWidth=0;this._arrowIconRightHeight=0;this._arrowIconRightCssStyle=0;this.valueInterval=1;this.valueInterval2=1;this.useInputField=2;this.useInputField2=2;this.inputTextFieldEvent="over";this.useSecondKnob;this.preventValueCrossing;this.ctrl;this.ctrl2;this._valueInternal;this._valueInternal2;this._display=2;this._arrowLeftContainerId;this._arrowLeftContainerObj;this._arrowLeftIconId;this._arrowLeftIconObj;this._arrowRightContainerId;this._arrowRightContainerObj;this._arrowRightIconId;this._arrowRightIconObj;this._valueContainerId;this._valueContainerObj;this._handleId;this._handleObj;this._valueFieldId;this._valueFieldObj;this._valueFieldObj2;this._valueTextId;this._valueTextObj;this._valueTextObj2;this._slideBarId;this._slideBarObj;this._colorbarId;this._colorbarObj;this._colorbarObj2;this._posUpperLeftX;this._posUpperLeftY;this._posSlideStart;this._posSlideEnd;this._slideWidth;this._attachedEvents;this.eventOnChange;this.slideStartCB;this.slideMoveCB;this.slideEndCB;this._constructor=function(theFieldnamePrefix){this._id=Bs_Objects.length;Bs_Objects[this._id]=this;this._objectId="Bs_Slider_"+this._id;this.objectName=this._objectId;if(typeof (theFieldnamePrefix)=="string"){this.fieldName=theFieldnamePrefix+"_value";this.fieldName2=theFieldnamePrefix+"2_value";this.objectName=theFieldnamePrefix}};this._checkup=function(){if(typeof (this.minVal)=="undefined"){this.minVal=0}if(typeof (this.maxVal)=="undefined"){this.maxVal=10}if(typeof (this.valueDefault)=="undefined"){this.valueDefault=this.minVal}this._valueInternal=this.valueDefault;if(this.useSecondKnob){if(typeof (this.minVal2)=="undefined"){this.minVal2=0}if(typeof (this.maxVal2)=="undefined"){this.maxVal2=10}if(typeof (this.valueDefault2)=="undefined"){this.valueDefault2=this.maxVal2}this._valueInternal2=this.valueDefault2}if(typeof (this.imgBasePath)=="string"){this.imgDir=this.imgBasePath}};this.loadSkin=function(skinName){switch(skinName){case"winxp":case"winxp-scrollbar-horizontal":this.useInputField=0;this.height=16;this.imgDir="/_bsJavascript/components/slider/img/winxp/";this.setSliderIcon("horizontal_scrollbar_knob.gif",17,16);this.setArrowIconLeft("horizontal_scrollbar_arrowLeft.gif",17,16);this.setArrowIconRight("horizontal_scrollbar_arrowRight.gif",17,16);break;case"winxp-scrollbar-vertical":this.direction=1;this.useInputField=0;this.width=16;this.imgDir="/_bsJavascript/components/slider/img/winxp/";this.setSliderIcon("vertical_scrollbar_knob.gif",16,17);this.setArrowIconLeft("vertical_scrollbar_arrowUp.gif",16,17);this.setArrowIconRight("vertical_scrollbar_arrowDown.gif",16,17);break;case"osx":case"osx-horizontal":this.useInputField=0;this.height=21;this.imgDir="/_bsJavascript/components/slider/img/osx/";this.setSliderIcon("horizontal_knob.gif",17,16);this.setBackgroundImage("horizontal_background.gif","repeat");this.setBackgroundImageLeft("horizontal_backgroundLeft.gif",6,21);this.setBackgroundImageRight("horizontal_backgroundRight.gif",6,21);break;case"osx-scrollbar-horizontal":this.useInputField=0;this.height=15;this.imgDir="/_bsJavascript/components/slider/img/osx/";this.setSliderIcon("horizontal_scrollbar_knobSmall.gif",23,15);this.setBackgroundImage("horizontal_scrollbar_background.gif","repeat");this.setArrowIconLeft("horizontal_scrollbar_arrowLeft.gif",17,15);this.setArrowIconRight("horizontal_scrollbar_arrowRight.gif",17,15);break;case"osx-scrollbar-vertical":this.direction=1;this.useInputField=0;this.width=15;this.imgDir="/_bsJavascript/components/slider/img/osx/";this.setSliderIcon("vertical_scrollbar_knobSmall.gif",15,23);this.setBackgroundImage("vertical_scrollbar_background.gif","repeat");this.setArrowIconLeft("vertical_scrollbar_arrowUp.gif",15,17);this.setArrowIconRight("vertical_scrollbar_arrowDown.gif",15,17);break;case"os9":case"os9-horizontal":this.useInputField=0;this.height=16;this.imgDir="/_bsJavascript/components/slider/img/os9/";this.setSliderIcon("horizontal_scrollbar_knob.gif",17,16);this.setBackgroundImage("horizontal_scrollbar_background.gif","repeat");this.setArrowIconLeft("horizontal_scrollbar_arrowLeft.gif",16,16);this.setArrowIconRight("horizontal_scrollbar_arrowRight.gif",16,16);break;case"os9-vertical":this.direction=1;this.useInputField=0;this.width=16;this.imgDir="/_bsJavascript/components/slider/img/os9/";this.setSliderIcon("vertical_scrollbar_knob.gif",16,17);this.setBackgroundImage("vertical_scrollbar_background.gif","repeat");this.setArrowIconLeft("vertical_scrollbar_arrowUp.gif",16,16);this.setArrowIconRight("vertical_scrollbar_arrowDown.gif",16,16);break;case"opera7":case"opera7-horizontal":this.useInputField=0;this.height=16;this.imgDir="/_bsJavascript/components/slider/img/opera7/";this.setSliderIcon("horizontal_knob.gif",19,16);this.setBackgroundImage("horizontal_background.gif","repeat");this.setArrowIconLeft("horizontal_arrowLeft.gif",16,16);this.setArrowIconRight("horizontal_arrowRight.gif",16,16);break;case"opera7-vertical":this.direction=1;this.useInputField=0;this.width=16;this.imgDir="/_bsJavascript/components/slider/img/opera7/";this.setSliderIcon("vertical_knob.gif",16,19);this.setBackgroundImage("vertical_background.gif","repeat");this.setArrowIconLeft("vertical_arrowUp.gif",16,16);this.setArrowIconRight("vertical_arrowDown.gif",16,16);break;case"bob":case"bob-horizontal":this.height=18;this.imgDir="/_bsJavascript/components/slider/img/bob/";this.setBackgroundImage("background.gif","no-repeat");this.setSliderIcon("slider.gif",13,18);this.colorbar=new Object();this.colorbar.color="blue";this.colorbar.height=5;this.colorbar.widthDifference=0;this.colorbar.offsetLeft=5;this.colorbar.offsetTop=9;break;case"burp":case"burp-horizontal":this.useInputField=0;this.height=11;this.imgDir="/_bsJavascript/components/slider/img/burp/";this.setSliderIcon("horizontal_knob.gif",5,11);this.setBackgroundImage("horizontal_background.gif","repeat");this.setArrowIconLeft("horizontal_arrowLeft.gif",10,11);this.setArrowIconRight("horizontal_arrowRight.gif",10,11);break;case"burp-vertical":this.direction=1;this.useInputField=0;this.width=11;this.imgDir="/_bsJavascript/components/slider/img/burp/";this.setSliderIcon("vertical_knob.gif",11,5);this.setBackgroundImage("vertical_background.gif","repeat");this.setArrowIconLeft("vertical_arrowUp.gif",11,10);this.setArrowIconRight("vertical_arrowDown.gif",11,10);break;case"ximian-industrial":case"ximian-industrial-horizontal":this.useInputField=0;this.height=15;this.imgDir="/_bsJavascript/components/slider/img/ximian_industrial/";this.setSliderIcon("horizontal_knob.gif",31,15);this.setBackgroundImage("horizontal_background.gif","repeat");this.setArrowIconLeft("horizontal_arrowLeft.gif",15,15);this.setArrowIconRight("horizontal_arrowRight.gif",15,15);break;case"ximian-industrial-vertical":this.direction=1;this.useInputField=0;this.width=15;this.imgDir="/_bsJavascript/components/slider/img/ximian_industrial/";this.setSliderIcon("vertical_knob.gif",15,31);this.setBackgroundImage("vertical_background.gif","repeat");this.setArrowIconLeft("vertical_arrowUp.gif",15,15);this.setArrowIconRight("vertical_arrowDown.gif",15,15);break;case"smoothstreak":case"smoothstreak-horizontal":this.useInputField=0;this.height=15;this.imgDir="/_bsJavascript/components/slider/img/smoothstreak/";this.setSliderIcon("horizontal_knob.gif",31,15);this.setBackgroundImage("horizontal_background.gif","repeat");this.setBackgroundImageLeft("horizontal_backgroundLeft.gif",2,15);this.setBackgroundImageRight("horizontal_backgroundRight.gif",2,15);this.colorbar=new Object();this.colorbar.color="#736D6B";this.colorbar.height=11;this.colorbar.widthDifference=0;this.colorbar.offsetLeft=0;this.colorbar.offsetTop=2;break;case"smoothstreak-vertical":this.direction=1;this.useInputField=0;this.width=15;this.imgDir="/_bsJavascript/components/slider/img/smoothstreak/";this.setSliderIcon("vertical_knob.gif",15,31);this.setBackgroundImage("vertical_background.gif","repeat");this.setBackgroundImageLeft("vertical_backgroundTop.gif",15,2);this.setBackgroundImageRight("vertical_backgroundBottom.gif",15,2);break;case"aluminumalloyvolcanic":case"aluminumalloyvolcanic-horizontal":this.useInputField=0;this.height=15;this.imgDir="/_bsJavascript/components/slider/img/aluminumalloyvolcanic/";this.setSliderIcon("horizontal_knob.gif",15,19);this.setBackgroundImage("horizontal_background.gif","repeat");this.setBackgroundImageLeft("horizontal_backgroundLeft.gif",2,19);this.setBackgroundImageRight("horizontal_backgroundRight.gif",2,19);break;case"yattacier3":case"yattacier3-horizontal":this.useInputField=0;this.height=16;this.imgDir="/_bsJavascript/components/slider/img/yattacier3/";this.setSliderIcon("horizontal_knob.gif",30,16);this.setBackgroundImage("horizontal_background.gif","repeat");this.setBackgroundImageLeft("horizontal_backgroundLeft.gif",1,16);this.setBackgroundImageRight("horizontal_backgroundRight.gif",1,16);break;case"h2ogtk2":case"h2ogtk2-horizontal":this.useInputField=0;this.height=17;this.imgDir="/_bsJavascript/components/slider/img/h2ogtk2/";this.setSliderIcon("horizontal_knob.gif",30,17);this.setBackgroundImage("horizontal_background.gif","repeat");this.setBackgroundImageLeft("horizontal_backgroundLeft.gif",7,17);this.setBackgroundImageRight("horizontal_backgroundRight.gif",7,17);break;case"h2ogtk2-scrollbar-horizontal":this.useInputField=0;this.height=17;this.imgDir="/_bsJavascript/components/slider/img/h2ogtk2/";this.setSliderIcon("horizontal_knob.gif",30,17);this.setBackgroundImage("horizontal_background.gif","repeat");this.setArrowIconLeft("horizontal_arrowLeft.gif",15,17);this.setArrowIconRight("horizontal_arrowRight.gif",15,17);break;default:return false}return true};this.render=function(tagId){this._checkup();this._containerId="co"+tagId;this._handleId="po"+tagId;this._arrowLeftContainerId="alc"+tagId;this._arrowLeftIconId="ali"+tagId;this._arrowRightContainerId="arc"+tagId;this._arrowRightIconId="ari"+tagId;this._valueContainerId="vc"+tagId;this._valueFieldId="vf"+tagId;if(typeof (this.fieldName)=="undefined"){this.fieldName=tagId+"_value"}if(typeof (this.fieldName2)=="undefined"){this.fieldName2=tagId+"2_value"}this._valueTextId="vt"+tagId;this._slideBarId="bar"+tagId;this._colorbarId="cb"+tagId;var divWidth=this.width;var divHeight=this.height;var out=new Array();var outI=0;var localOffset=0;out[outI++]='<div id="'+this._containerId+'"';if(this.styleContainerClass){out[outI++]=' class="'+this.styleContainerClass+'"'}out[outI++]=' style="position:relative;';if(this._display==0){out[outI++]=" display:none;"}else{if(this._display==1){out[outI++]=" visibility:hidden;"}}out[outI++]=' onmousewheel="Bs_Objects['+this._id+'].onMouseWheel(); return false;"';out[outI++]='">';out[outI++]="<div";out[outI++]=' onmousewheel="Bs_Objects['+this._id+'].onMouseWheel(); return false;"';out[outI++]=' style="position:absolute; left:'+this.moveX+"; top:"+this.moveY+';">';if(this.useSecondKnob){out[outI++]=this._renderInputFieldAndText(localOffset,1);if(this["useInputField"]!=0){localOffset+=35}}out[outI++]='<div style="position:absolute; display:none; z-index:'+(this.baseZindex+10)+';" id="'+this._handleId+'">';out[outI++]='<img name="poImg'+tagId+'" src="'+this.imgDir+this._sliderImgSrc+'" border=0 width='+this._sliderImgWidth+" height="+this._sliderImgHeight+">";out[outI++]="</div>";if(this.useSecondKnob){out[outI++]='<div style="position:absolute; display:none; z-index:'+(this.baseZindex+9)+';" id="'+this._handleId+'2">';out[outI++]='<img name="poImg'+tagId+'2" src="'+this.imgDir+this._sliderImgSrc2+'" border=0 width='+this._sliderImgWidth2+" height="+this._sliderImgHeight2+">";out[outI++]="</div>"}if((this.arrowAmount>0)&&this._arrowIconLeftSrc){out[outI++]='<div id="'+this._arrowLeftContainerId+'" style="position:absolute; left:'+localOffset+'; top:0;">';out[outI++]='<a href="javascript:void(false);"';if(this.arrowMouseOver){out[outI++]=' onMouseOver="Bs_Objects['+this._id+'].onChangeByArrow(false, true); return false;"';out[outI++]=' onMouseOut="Bs_Objects['+this._id+'].stopFireArrow(); return false;"'}else{out[outI++]=' onMouseDown="Bs_Objects['+this._id+'].onChangeByArrow(false, true); return false;"';out[outI++]=' onMouseUp="Bs_Objects['+this._id+'].stopFireArrow(); return false;"';out[outI++]=' onMouseOut="Bs_Objects['+this._id+'].stopFireArrow(); return false;"'}out[outI++]=">";out[outI++]='<img id="'+this._arrowLeftIconId+'" src="'+this.imgDir+this._arrowIconLeftSrc+'" border="0" width="'+this._arrowIconLeftWidth+'" height="'+this._arrowIconLeftHeight+'"';if(typeof (this.arrowIconLeftCssStyle)!="undefined"){out[outI++]=' style="'+this.arrowIconLeftCssStyle+'"'}out[outI++]=">";out[outI++]="</a></div>";localOffset+=this._arrowIconLeftWidth}if(typeof (this._bgImgLeftSrc)!="undefined"){var tmpLeft=(this.direction==0)?localOffset:0;var tmpTop=(this.direction==0)?0:localOffset;out[outI++]='<div style="position:absolute; left:'+tmpLeft+"; top:"+tmpTop+';">';out[outI++]='<img src="'+this.imgDir+this._bgImgLeftSrc+'" width="'+this._bgImgLeftWidth+'" height="'+this._bgImgLeftHeight+'" border="0">';out[outI++]="</div>";localOffset+=(this.direction==0)?this._bgImgLeftWidth:this._bgImgLeftHeight}if(this.colorbar){out[outI++]='<div id="'+this._colorbarId+'" onClick="Bs_Objects['+this._id+'].onChangeByClick(event);"';if(this.colorbar.cssClass){out[outI++]=' class="'+this.colorbar.cssClass+'"'}out[outI++]=' style="position:absolute; z-index:'+(this.baseZindex+5)+"; width:0;";if("undefined"!=typeof (this.colorbar.color)){out[outI++]=" background-color:"+this.colorbar.color+";"}else{if("undefined"==typeof (this.colorbar.cssClass)){out[outI++]=" background-color:orange;"}}if("undefined"!=typeof (this.colorbar.offsetLeft)){out[outI++]=" left:"+(localOffset+this.colorbar.offsetLeft)+";"}if("undefined"!=typeof (this.colorbar.offsetTop)){out[outI++]=" top:"+this.colorbar.offsetTop+";"}if("undefined"!=typeof (this.colorbar.height)){out[outI++]=" height:"+this.colorbar.height+";"}out[outI++]='">';out[outI++]='<img src="/Images/shim.gif" width="1" height="5"></div>'}if(this.colorbar2){out[outI++]='<div id="'+this._colorbarId+'2" onClick="Bs_Objects['+this._id+'].onChangeByClick(event);"';if(this.colorbar2.cssClass){out[outI++]=' class="'+this.colorbar2.cssClass+'"'}out[outI++]=' style="position:absolute; z-index:'+(this.baseZindex+5)+"; width:0;";if("undefined"!=typeof (this.colorbar2.color)){out[outI++]=" background-color:"+this.colorbar2.color+";"}else{if("undefined"==typeof (this.colorbar2.cssClass)){out[outI++]=" background-color:orange;"}}if("undefined"!=typeof (this.colorbar2.offsetLeft)){out[outI++]=" left:"+(localOffset+this.colorbar2.offsetLeft)+";"}if("undefined"!=typeof (this.colorbar2.offsetTop)){out[outI++]=" top:"+this.colorbar2.offsetTop+";"}if("undefined"!=typeof (this.colorbar2.height)){out[outI++]=" height:"+this.colorbar2.height+";"}out[outI++]='">';out[outI++]='<img src="/Images/shim.gif" width="1" height="5"></div>'}out[outI++]='<div id="'+this._slideBarId+'" onClick="Bs_Objects['+this._id+'].onChangeByClick(event);"';var tmpLeft=(this.direction==0)?localOffset:0;var tmpTop=(this.direction==0)?0:localOffset;out[outI++]=' style="position:absolute; left:'+tmpLeft+"; top:"+tmpTop+"; width:"+divWidth+"; height: "+divHeight+"; clip:rect(0 "+divWidth+"  "+divHeight+" 0);";if(this.bgColor){out[outI++]="background-color:"+this.bgColor+"; layer-background-color:"+this.bgColor+";"}if(this._bgImgSrc){out[outI++]=" background-image: url("+this.imgDir+this._bgImgSrc+"); background-repeat:"+this._bgImgRepeat+";"}if(this._bgImgCssStyle){out[outI++]=this._bgImgCssStyle}out[outI++]='"></div>';localOffset+=(this.direction==0)?this.width:this.height;if(typeof (this._bgImgRightSrc)!="undefined"){var tmpLeft=(this.direction==0)?localOffset:0;var tmpTop=(this.direction==0)?0:localOffset;out[outI++]='<div style="position:absolute; left:'+tmpLeft+"; top:"+tmpTop+';">';out[outI++]='<img src="'+this.imgDir+this._bgImgRightSrc+'" width="'+this._bgImgRightWidth+'" height="'+this._bgImgRightHeight+'" border="0">';out[outI++]="</div>";localOffset+=(this.direction==0)?this._bgImgRightWidth:this._bgImgRightHeight}if((this.arrowAmount>0)&&this._arrowIconRightSrc){var tmpLeft=(this.direction==0)?localOffset:0;var tmpTop=(this.direction==0)?0:localOffset;out[outI++]='<div id="'+this._arrowRightContainerId+'" style="position:absolute; left:'+tmpLeft+"; top:"+tmpTop+';">';out[outI++]='<a href="javascript:void(false);"';if(this.arrowMouseOver){out[outI++]=' onMouseOver="Bs_Objects['+this._id+'].onChangeByArrow(true, true); return false;"';out[outI++]=' onMouseOut="Bs_Objects['+this._id+'].stopFireArrow(); return false;"'}else{out[outI++]=' onMouseDown="Bs_Objects['+this._id+'].onChangeByArrow(true, true); return false;"';out[outI++]=' onMouseUp="Bs_Objects['+this._id+'].stopFireArrow(); return false;"';out[outI++]=' onMouseOut="Bs_Objects['+this._id+'].stopFireArrow(); return false;"'}out[outI++]=">";out[outI++]='<img id="'+this._arrowRightIconId+'" src="'+this.imgDir+this._arrowIconRightSrc+'" border="0" width="'+this._arrowIconRightWidth+'" height="'+this._arrowIconRightHeight+'"';if(typeof (this.arrowIconRightCssStyle)!="undefined"){out[outI++]=' style="'+this.arrowIconRightCssStyle+'"'}out[outI++]=">";out[outI++]="</a></div>";localOffset+=this._arrowIconRightWidth}if(this.useSecondKnob){out[outI++]=this._renderInputFieldAndText(localOffset,2)}else{out[outI++]=this._renderInputFieldAndText(localOffset,1)}out[outI++]="</div>";out[outI++]="</div>";document.getElementById(tagId).innerHTML=out.join("");this._containerObj=document.getElementById(this._containerId);this._arrowLeftContainerObj=document.getElementById(this._arrowLeftContainerId);this._arrowLeftIconObj=document.getElementById(this._arrowLeftIconId);this._arrowRightContainerObj=document.getElementById(this._arrowRightContainerId);this._arrowRightIconObj=document.getElementById(this._arrowRightIconId);this._slideBarObj=document.getElementById(this._slideBarId);this._handleObj=document.getElementById(this._handleId);this._valueContainerObj=document.getElementById(this._valueContainerId);this._valueFieldObj=document.getElementById(this._valueFieldId);this._valueTextObj=document.getElementById(this._valueTextId);this._colorbarObj=document.getElementById(this._colorbarId);this._posSlideStart=(this.direction==0)?getDivLeft(this._slideBarObj):getDivTop(this._slideBarObj);this._slideWidth=(this.direction==0)?this.width-this._sliderImgWidth:this.height-this._sliderImgHeight;this._posSlideEnd=this._posSlideStart+this._slideWidth;this._currentRelSliderPosX=this._posSlideStart;if(this.valueDefault>this.minVal){var hundertPercent=this.maxVal-this.minVal;var myPercent=(this.valueDefault-this.minVal)*100/hundertPercent;this._currentRelSliderPosX+=(myPercent*this._slideWidth/100)}if(this.direction==0){moveDivTo(this._handleObj,this._currentRelSliderPosX,0)}else{moveDivTo(this._handleObj,0,this._currentRelSliderPosX)}this._handleObj.style.display="block";temp=ech_attachMouseDrag(this._handleObj,this.slideStart,null,this.slideMove,null,this.slideEnd,null,null,null);temp=temp.linkCtrl(getDivImage("","poImg"+tagId));this.ctrl=temp;this.ctrl.sliderObj=this;this.ctrl.knobId=1;var x=getDivLeft(this._handleObj);var y=getDivTop(this._handleObj);y=0;if(this.direction==0){this.ctrl.minX=this._posSlideStart;this.ctrl.maxX=this._posSlideEnd;this.ctrl.minY=y;this.ctrl.maxY=y}else{this.ctrl.minX=x;this.ctrl.maxX=x;this.ctrl.minY=this._posSlideStart;this.ctrl.maxY=this._posSlideEnd}if(this.useSecondKnob){this._handleObj2=document.getElementById(this._handleId+"2");this._valueContainerObj2=document.getElementById(this._valueContainerId+"2");this._valueFieldObj2=document.getElementById(this._valueFieldId+"2");this._valueTextObj2=document.getElementById(this._valueTextId+"2");this._colorbarObj2=document.getElementById(this._colorbarId+"2");this._slideWidth2=(this.direction==0)?this.width-this._sliderImgWidth2:this.height-this._sliderImgHeight2;this._posSlideEnd2=this._posSlideStart+this._slideWidth2;this._currentRelSliderPosX2=this._posSlideStart;if(this.valueDefault2>this.minVal2){var hundertPercent=this.maxVal2-this.minVal2;var myPercent=(this.valueDefault2-this.minVal2)*100/hundertPercent;this._currentRelSliderPosX2+=(myPercent*this._slideWidth2/100)}if(this.direction==0){moveDivTo(this._handleObj2,this._currentRelSliderPosX2,0)}else{moveDivTo(this._handleObj2,0,this._currentRelSliderPosX2)}this._handleObj2.style.display="block";temp2=ech_attachMouseDrag(this._handleObj2,this.slideStart,null,this.slideMove,null,this.slideEnd,null,null,null);temp2=temp2.linkCtrl(getDivImage("","poImg"+tagId+"2"));this.ctrl2=temp2;this.ctrl2.sliderObj=this;this.ctrl2.knobId=2;var x=getDivLeft(this._handleObj2);var y=getDivTop(this._handleObj2);y=0;if(this.direction==0){this.ctrl2.minX=this._posSlideStart;this.ctrl2.maxX=this._posSlideEnd2;this.ctrl2.minY=y;this.ctrl2.maxY=y}else{this.ctrl2.minX=x;this.ctrl2.maxX=x;this.ctrl2.minY=this._posSlideStart;this.ctrl2.maxY=this._posSlideEnd2}}this._updateColorbar(this._currentRelSliderPosX,1);this._updateColorbar(this._currentRelSliderPosX2,2)};this._renderInputFieldAndText=function(localOffset,knobId){var k=((typeof (knobId)=="undefined")||(knobId==1))?"":"2";var out=new Array();var styleValueFieldClass=(this["styleValueFieldClass"+k])?' class="'+this["styleValueFieldClass"+k]+'"':"";var styleValueTextClass=(this["styleValueTextClass"+k])?' class="'+this["styleValueTextClass"+k]+'"':"";var cssAlign=(this.useSecondKnob&&(knobId==1))?"align:right;":"";out[out.length]='<div id="'+this._valueContainerId+k+'" style="position:absolute; left:'+localOffset+'; top:0px;">';if(this["useInputField"+k]==1){out[out.length]="<span"+styleValueTextClass+' id="'+this._valueTextId+k+'">'+this["valueDefault"+k]+"</span>";out[out.length]='<input type="hidden" name="'+this["fieldName"+k]+'" id="'+this._valueFieldId+k+'" value="'+this["valueDefault"+k]+'">'}else{if(this["useInputField"+k]==2){out[out.length]='<input type="text"'+styleValueFieldClass+' onMouseOver="bsFormFieldSetFocusAndSelect(this, false);" name="'+this["fieldName"+k]+'" id="'+this._valueFieldId+k+'" value="'+this["valueDefault"+k]+'" size="2"';if(styleValueFieldClass==""){out[out.length]=' style="vertical-align:text-top; width:30; height:'+this.height+';"'}out[out.length]=' onKeyUp="Bs_Objects['+this._id+"].onChangeByInput(this.value, false, "+knobId+');" onBlur="Bs_Objects['+this._id+"].onChangeByInput(this.value, true, "+knobId+');">'}else{if(this["useInputField"+k]==3){out[out.length]='<input type="text"'+styleValueFieldClass+' onMouseOver="bsFormFieldSetFocusAndSelect(this, false);" name="'+this["fieldName"+k]+'" id="'+this._valueFieldId+k+'" value="'+this["valueDefault"+k]+'" size="2"';if(styleValueFieldClass==""){out[out.length]=' style="display:none; vertical-align:text-top; width:30; height:'+this.height+';"'}else{out[out.length]=' style="display:none;"'}out[out.length]=' onKeyUp="Bs_Objects['+this._id+"].onChangeByInput(this.value, false, "+knobId+');" onBlur="var _bss = Bs_Objects['+this._id+"]; _bss.onChangeByInput(this.value, true, "+knobId+"); _bss.textboxEdit(false, "+knobId+')">';out[out.length]="<span"+styleValueTextClass+' style="'+cssAlign+'" id="'+this._valueTextId+k+'" ';if(this.inputTextFieldEvent=="click"){out[out.length]='onClick="Bs_Objects['+this._id+"].textboxEdit(true, "+knobId+');"'}else{out[out.length]='onMouseOver="Bs_Objects['+this._id+"].textboxEdit(true, "+knobId+');"'}out[out.length]=">"+this["valueDefault"+k]+"</span>"}else{out[out.length]='<input type="hidden" name="'+this["fieldName"+k]+'" id="'+this._valueFieldId+k+'" value="'+this["valueDefault"+k]+'">'}}}out[out.length]="</div>";return out.join("")};this.drawInto=function(tagId){this.render(tagId);if(this._disabled){this.setDisabled(true)}};this.draw=function(tagId){this.render(tagId);if(this._disabled){this.setDisabled(true)}};this.attachEvent=function(trigger,yourEvent){if(typeof (this._attachedEvents)=="undefined"){this._attachedEvents=new Array()}if(typeof (this._attachedEvents[trigger])=="undefined"){this._attachedEvents[trigger]=new Array(yourEvent)}else{this._attachedEvents[trigger][this._attachedEvents[trigger].length]=yourEvent}};this.hasEventAttached=function(trigger){return(this._attachedEvents&&this._attachedEvents[trigger])};this.fireEvent=function(trigger){if(this._attachedEvents&&this._attachedEvents[trigger]){var e=this._attachedEvents[trigger];if((typeof (e)=="string")||(typeof (e)=="function")){e=new Array(e)}for(var i=0;i<e.length;i++){if(typeof (e[i])=="function"){e[i](this)}else{if(typeof (e[i])=="string"){eval(e[i])}}}}};this.attachOnChange=function(functionName){this.eventOnChange=functionName};this.attachOnSlideStart=function(functionName){this.slideStartCB=functionName};this.attachOnSlideMove=function(functionName){this.slideMoveCB=functionName};this.attachOnSlideEnd=function(functionName){this.slideEndCB=functionName};this.attachOnArrow=function(functionName){this.eventOnArrow=functionName};this.attachOnInputChange=function(functionName){this.eventOnInputChange=functionName};this.attachOnInputBlur=function(functionName){this.eventOnInputBlur=functionName};this.setSliderIcon=function(imgName,width,height){this._sliderImgSrc=imgName;this._sliderImgWidth=width;this._sliderImgHeight=height};this.setSliderIcon2=function(imgName,width,height){this._sliderImgSrc2=imgName;this._sliderImgWidth2=width;this._sliderImgHeight2=height};this.setArrowIconLeft=function(imgName,width,height){this._arrowIconLeftSrc=imgName;this._arrowIconLeftWidth=width;this._arrowIconLeftHeight=height};this.setArrowIconRight=function(imgName,width,height){this._arrowIconRightSrc=imgName;this._arrowIconRightWidth=width;this._arrowIconRightHeight=height};this.setBackgroundImage=function(src,repeat,cssStyle){this._bgImgSrc=src;this._bgImgRepeat=repeat;this._bgImgCssStyle=cssStyle};this.setBackgroundImageLeft=function(imgName,width,height){this._bgImgLeftSrc=imgName;this._bgImgLeftWidth=width;this._bgImgLeftHeight=height};this.setBackgroundImageRight=function(imgName,width,height){this._bgImgRightSrc=imgName;this._bgImgRightWidth=width;this._bgImgRightHeight=height};this.setDisplay=function(display){this._display=display;if(this._containerObj){switch(display){case 0:this._containerObj.style.display="none";break;case 1:this._containerObj.style.visibility="hidden";break;case 2:this._containerObj.style.visibility="visible";this._containerObj.style.display="block";break;default:}}};this.setDisabled=function(b){if(typeof (b)=="undefined"){b=!this._disabled}if(b){var filter="progid:DXImageTransform.Microsoft.BasicImage(grayScale=1); progid:DXImageTransform.Microsoft.BasicImage(opacity=.5)";var cursor="default"}else{var filter=null;var cursor="hand"}var t=new Array(this._containerId,this._arrowLeftContainerId,this._arrowRightContainerId,this._valueFieldId,this._valueTextId,this._slideBarId,this._colorbarId,this._handleId,this._valueFieldId+"2",this._valueTextId+"2",this._colorbarId+"2",this._handleId+"2");for(var i=0;i<t.length;i++){var elm=document.getElementById(t[i]);if(elm!=null){elm.style.filter=filter}}var elm=document.getElementById(this._arrowLeftIconId);if(elm!=null){elm.style.cursor=cursor}var elm=document.getElementById(this._arrowRightIconId);if(elm!=null){elm.style.cursor=cursor}var elm=document.getElementById(this._valueFieldId);if(elm!=null){elm.disabled=b}this._disabled=b};this.getValue=function(knobId){if((typeof (knobId)=="undefined")||(knobId==1)){return this._valueInternal}else{return this._valueInternal2}};this.getValueInPercent=function(knobId){if((typeof (knobId)=="undefined")||(knobId==1)){var range=Math.abs(this.maxVal-this.minVal);var percent=Math.abs(this._valueInternal-this.minVal)/range*100;return percent}else{var range=Math.abs(this.maxVal2-this.minVal2);var percent=Math.abs(this._valueInternal2-this.minVal2)/range*100;return percent}};this.getSliderPos=function(knobId){if(typeof (knobId)=="undefined"){knobId=1}if(knobId==1){var absLeng=(this.direction==0)?getDivLeft(this.ctrl.div)-this.ctrl.minX:getDivTop(this.ctrl.div)-this.ctrl.minY;var absRang=this.maxVal-this.minVal;return(absLeng*absRang/this._slideWidth)+this.minVal}else{var absLeng=(this.direction==0)?getDivLeft(this.ctrl2.div)-this.ctrl2.minX:getDivTop(this.ctrl2.div)-this.ctrl2.minY;var absRang=this.maxVal2-this.minVal2;return(absLeng*absRang/this._slideWidth)+this.minVal2}};this.onChangeBySlide=function(ctrl){if(this._disabled){return }var newPos=this._getNewLocationFromCursor(ctrl);var valByPos=this._getValueByPosition(newPos);var val=this._roundToGrid(valByPos,ctrl.knobId);var valInternal=(ctrl.knobId==1)?this._valueInternal:this._valueInternal2;if(val!=valInternal){newPos=this._getPositionByValue(val,ctrl.knobId);if(ctrl.knobId==1){this._valueInternal=val}else{this._valueInternal2=val}this.updateHandle(newPos,ctrl.knobId);this.updateValueField(val,ctrl.knobId);this.updateValueText(val,ctrl.knobId);this._updateColorbar(newPos,ctrl.knobId);if("undefined"!=typeof (this.eventOnChange)){if(this.useSecondKnob){this.eventOnChange(this,val,newPos,ctrl.knobId)}else{this.eventOnChange(this,val,newPos)}}this.fireEvent("onChange")}};this.onChangeByClick=function(event){if(this._disabled){return }var newPos=0;if("undefined"!=typeof (event.offsetX)){newPos=(this.direction==0)?event.offsetX+this._posSlideStart:event.offsetY+this._posSlideStart}else{if("undefined"!=typeof (event.layerX)){newPos=(this.direction==0)?event.layerX+this._posSlideStart:event.layerY+this._posSlideStart}else{return }}var val=this._getValueByPosition(newPos);if(this.useSecondKnob){if(val>this._valueInternal2){var knobId=2}else{if(val<this._valueInternal){var knobId=1}else{return }}}else{var knobId=1}val=this._roundToGrid(val,knobId);if(val!=this._valueInternal){newPos=this._getPositionByValue(val,knobId);if(knobId==1){this._valueInternal=val}else{this._valueInternal2=val}this.updateHandle(newPos,knobId);this.updateValueField(val,knobId);this.updateValueText(val,knobId);this._updateColorbar(newPos,knobId);if("undefined"!=typeof (this.eventOnChange)){if(this.useSecondKnob){this.eventOnChange(this,val,newPos,knobId)}else{this.eventOnChange(this,val,newPos)}}this.fireEvent("onChange")}};this.onChangeByInput=function(val,isBlur,knobId){var k=((typeof (knobId)=="undefined")||(knobId==1))?"":"2";if(this._disabled){return }if(val==""){val=this["minVal"+k]}val=this._roundToGrid(val,knobId);var newPos=this._getPositionByValue(val,knobId);if(val!=this["_valueInternal"+k]){this["_valueInternal"+k]=val;this.updateHandle(newPos,knobId);this._updateColorbar(newPos,knobId);if("undefined"!=typeof (this.eventOnChange)){if(this.useSecondKnob){this.eventOnChange(this,val,newPos,knobId)}else{this.eventOnChange(this,val,newPos)}}this.fireEvent("onChange");if(isBlur){this.updateValueField(val,knobId);this.updateValueText(val,knobId)}}else{if(isBlur){this.updateValueField(val,knobId);this.updateValueText(val,knobId)}}};this.onChangeByArrow=function(leftOrRight,keepFiring,loopCall){if(!loopCall){this._stopFireArrowFlag=false}if(this._stopFireArrowFlag){return }if(this._disabled){return }var val=parseFloat(this._valueInternal);if(leftOrRight){val+=this.arrowAmount}else{val-=this.arrowAmount}val=this._roundToGrid(val);if(val!=this._valueInternal){this._valueInternal=val;var newPos=this._getPositionByValue(val);this.updateHandle(newPos);this.updateValueField(val);this.updateValueText(val);this._updateColorbar(newPos);if("undefined"!=typeof (this.eventOnChange)){if(this.useSecondKnob){this.eventOnChange(this,val,newPos,1)}else{this.eventOnChange(this,val,newPos)}}this.fireEvent("onChange")}if(keepFiring){if(!this._stopFireArrowFlag&&(this.arrowKeepFiringTimeout>0)){setTimeout("Bs_Objects["+this._id+"].onChangeByArrow("+leftOrRight+", "+keepFiring+", true);",this.arrowKeepFiringTimeout)}}};this.onMouseWheel=function(){if(this._disabled){return }var val=parseFloat(this._valueInternal);if(event.wheelDelta>0){val-=this.wheelAmount}else{val+=this.wheelAmount}val=this._roundToGrid(val);if(val!=this._valueInternal){this._valueInternal=val;var newPos=this._getPositionByValue(val);this.updateHandle(newPos);this.updateValueField(val);this.updateValueText(val);this._updateColorbar(newPos);if("undefined"!=typeof (this.eventOnChange)){if(this.useSecondKnob){this.eventOnChange(this,val,newPos,1)}else{this.eventOnChange(this,val,newPos)}}this.fireEvent("onChange")}};this.stopFireArrow=function(){this._stopFireArrowFlag=true};this.setValue=function(val,knobId){if(typeof (knobId)=="undefined"){knobId=1}val=this._roundToGrid(val,knobId);var newPos=this._getPositionByValue(val,knobId);var valInternal=(knobId==1)?this._valueInternal:this._valueInternal2;if(val!=valInternal){if(knobId==1){this._valueInternal=val}else{this._valueInternal2=val}this.updateHandle(newPos,knobId);this._updateColorbar(newPos,knobId);if("undefined"!=typeof (this.eventOnChange)){if(this.useSecondKnob){this.eventOnChange(this,val,newPos,knobId)}else{this.eventOnChange(this,val,newPos)}}this.fireEvent("onChange");this.updateValueField(val,knobId);this.updateValueText(val,knobId)}};this.onChangeByApi=function(val,knobId){this.setValue(val,knobId)};this._updateColorbar=function(newPos,knobId){var k=((typeof (knobId)=="undefined")||(knobId==1)||((typeof (this.colorbar)!="undefined")&&((typeof (this.colorbar.type)!="undefined")||(this.colorbar.type=="between"))))?"":"2";if(this["_colorbarObj"+k]){if((typeof (this.colorbar.type)!="undefined")&&(this.colorbar.type=="between")){var left=this._getPositionByValue(this._valueInternal,1);var right=this._getPositionByValue(this._valueInternal2,2);moveDivTo(this["_colorbarObj"+k],left+this.colorbar.offsetLeft,this.colorbar.offsetTop);resizeDivTo(this["_colorbarObj"+k],right-left,this["colorbar"+k]["height"])}else{var newWidth=newPos+this["colorbar"+k]["widthDifference"];if(newWidth<0){newWidth=0}if(k=="2"){var invertedWidth=this.width-newWidth;if(invertedWidth<0){invertedWidth=0}this["_colorbarObj"+k].style.width=invertedWidth;if(typeof (this.colorbar2.offsetLeft)!="undefined"){newWidth+=this.colorbar2.offsetLeft}moveDivTo(this["_colorbarObj"+k],newWidth,this["colorbar"+k]["offsetTop"])}else{moveDivTo(this["_colorbarObj"+k],this["colorbar"+k]["offsetLeft"],this["colorbar"+k]["offsetTop"]);resizeDivTo(this["_colorbarObj"+k],newWidth,7)}}if(typeof (this["colorbar"+k]["color2"])!="undefined"){var percent=this.getValueInPercent(knobId);var newColor=mixColor(this["colorbar"+k]["color"],this["colorbar"+k]["color2"],percent);document.getElementById(this._colorbarId+k).style.backgroundColor=newColor}}};this._getValueByPosition=function(pos){if(this.direction==0){pos-=this.ctrl.minX;var hundertPercent=this.ctrl.maxX-this.ctrl.minX}else{pos-=this.ctrl.minY;var hundertPercent=this.ctrl.maxY-this.ctrl.minY}var myPercent=pos/hundertPercent;var val=this.minVal+((this.maxVal-this.minVal)*myPercent);return val};this._getPositionByValue=function(val,knobId){var k=((typeof (knobId)=="undefined")||(knobId==1))?"":"2";val=val-this["minVal"+k];var hundertPercent=this["maxVal"+k]-this["minVal"+k];var myPercent=val/hundertPercent;if(this.direction==0){var pos=this["ctrl"+k].minX+((this["ctrl"+k].maxX-this["ctrl"+k].minX)*myPercent);if(pos<this["ctrl"+k].minX){pos=this["ctrl"+k].minX}else{if(pos>this["ctrl"+k].maxX){pos=this["ctrl"+k].maxX}}}else{var pos=this["ctrl"+k].minY+((this["ctrl"+k].maxY-this["ctrl"+k].minY)*myPercent);if(pos<this["ctrl"+k].minY){pos=this["ctrl"+k].minY}else{if(pos>this["ctrl"+k].maxY){pos=this["ctrl"+k].maxY}}}return pos};this._roundToGrid=function(val,knobId){val=parseFloat(val);if(isNaN(val)){return this.minVal}val=Math.round(val/this.valueInterval)*this.valueInterval;val=Math.round(val*10000)/10000;if(val<this.minVal){val=this.minVal}if(val>this.maxVal){val=this.maxVal}if(this.useSecondKnob&&this.preventValueCrossing){if((typeof (knobId)=="undefined")||(knobId==1)){if(val>=this._valueInternal2){val=this._valueInternal2-this.valueInterval;if(val<this.minVal){val=this.minVal}}}else{if(val<=this._valueInternal){val=this._valueInternal+this.valueInterval2;if(val>this.maxVal2){val=this.maxVal2}}}}return val};this._getNewLocationFromCursor=function(ctrl){if(ctrl.knobId==1){var ox=this._posEventSlideStartX;var oy=this._posEventSlideStartY;var posObjSlideStartX=this._posObjSlideStartX;var posObjSlideStartY=this._posObjSlideStartY}else{var ox=this._posEventSlideStartX2;var oy=this._posEventSlideStartY2;var posObjSlideStartX=this._posObjSlideStartX2;var posObjSlideStartY=this._posObjSlideStartY2}switch(this.direction){case 0:var t=ctrl.pageX-ox;var x=parseInt(posObjSlideStartX)+t;if(x>ctrl.maxX){x=ctrl.maxX}if(x<ctrl.minX){x=ctrl.minX}return x;case 1:var t=ctrl.pageY-oy;var y=parseInt(posObjSlideStartY)+t;if(y>ctrl.maxY){y=ctrl.maxY}if(y<ctrl.minY){y=ctrl.minY}return y}};this.updatePointer=function(newPos){this.updateHandle(newPos)};this.updateHandle=function(newPos,knobId){if((typeof (knobId)=="undefined")||(knobId==1)){if(this.direction==0){this._currentRelSliderPosX=newPos;moveDivTo(this.ctrl.div,newPos,0)}else{this._currentRelSliderPosX=newPos;moveDivTo(this.ctrl.div,0,newPos)}}else{if(this.direction==0){this._currentRelSliderPosX2=newPos;moveDivTo(this.ctrl2.div,newPos,0)}else{this._currentRelSliderPosX2=newPos;moveDivTo(this.ctrl2.div,0,newPos)}}return };this.updateValueField=function(val,knobId){var k=((typeof (knobId)=="undefined")||(knobId==1))?"":"2";if(this["_valueFieldObj"+k]){this["_valueFieldObj"+k].value=val}};this.updateValueText=function(val,knobId){var k=((typeof (knobId)=="undefined")||(knobId==1))?"":"2";if(this["_valueTextObj"+k]){this["_valueTextObj"+k].innerHTML=val}};this.arrowOnClick=function(){};this.onChange=function(val){if(this._disabled){return }this.setValue(val)};this.updateInputBox=function(val){if(this._disabled){return }this.setValue(val)};this.textboxEdit=function(editMode,knobId){var k=((typeof (knobId)=="undefined")||(knobId==1))?"":"2";if(this._disabled){return }if(editMode){if("undefined"!=typeof (this["_valueFieldObj"+k])){this["_valueTextObj"+k].style.display="none";this["_valueFieldObj"+k].style.display="block";bsFormFieldSetFocusAndSelect(this["_valueFieldObj"+k],false)}}else{if("undefined"!=typeof (this["_valueTextObj"+k])){this["_valueFieldObj"+k].style.display="none";this["_valueTextObj"+k].style.display="block"}}};this.slideMove=function(ctrl,client){ctrl.sliderObj.onChangeBySlide(ctrl)};this.slideStart=function(ctrl,client){if(ctrl.knobId==1){ctrl.sliderObj._handleObj.style.zIndex+=2;ctrl.sliderObj._posEventSlideStartX=ctrl.startX;ctrl.sliderObj._posEventSlideStartY=ctrl.startY;ctrl.sliderObj._posObjSlideStartX=ctrl.sliderObj._handleObj.style.left;ctrl.sliderObj._posObjSlideStartY=ctrl.sliderObj._handleObj.style.top}else{ctrl.sliderObj._handleObj2.style.zIndex+=2;ctrl.sliderObj._posEventSlideStartX2=ctrl.startX;ctrl.sliderObj._posEventSlideStartY2=ctrl.startY;ctrl.sliderObj._posObjSlideStartX2=ctrl.sliderObj._handleObj2.style.left;ctrl.sliderObj._posObjSlideStartY2=ctrl.sliderObj._handleObj2.style.top}var pos=ctrl.sliderObj.getSliderPos(ctrl.knobId);ctrl.sliderObj.setValue(pos,ctrl.knobId);if("undefined"!=typeof (ctrl.sliderObj.slideStartCB)){ctrl.sliderObj.slideStartCB(ctrl.sliderObj,ctrl.sliderObj.getValue(),pos)}};this.slideEnd=function(ctrl,client){if(this._disabled){return }if(ctrl.knobId==1){ctrl.sliderObj._handleObj.style.zIndex-=2}else{ctrl.sliderObj._handleObj2.style.zIndex-=2}var pos=ctrl.sliderObj.getSliderPos();if("undefined"!=typeof (ctrl.sliderObj.slideEndCB)){ctrl.sliderObj.slideEndCB(ctrl.sliderObj,ctrl.sliderObj.getValue(),pos)}return };this._constructor(theFieldnamePrefix)}function bsRentSliderChange(B,C,A,D){document.getElementById("RentVal"+D).innerHTML=(C==2100?"any":"&pound;"+C)}function bsBuySliderChange(B,C,A,D){document.getElementById("PriceVal"+D).innerHTML=(D==2?"to ":"")+(C==0?"Up":(C>=1000?(C==1010?"&pound;5M":"&pound;1M"):"&pound;"+C+"K"))}function bsBedSliderChange(B,C,A){document.getElementById("BedVal").innerHTML=(C==0?"Any":C+" or more")}function initSliders(){if(document.getElementById("sliderRent")){slideRent=new Bs_Slider();slideRent.width=223;slideRent.height=24;slideRent.imgDir="/images/";slideRent.setBackgroundImage("sliderentbg.gif","repeat-x");slideRent.attachOnChange(bsRentSliderChange);slideRent.fieldName="slideRent_min";slideRent.minVal=0;slideRent.maxVal=2100;slideRent.valueInterval=10;slideRent.valueDefault=searchMin;slideRent.setSliderIcon("slider.gif",13,18);slideRent.useInputField=0;slideRent.colorbar=new Object({type:"between",color:"blue",height:7,cssClass:"sliderbg",widthDifference:0,offsetLeft:6,offsetTop:7});slideRent.useSecondKnob=true;slideRent.wheelAmount=0;slideRent.preventValueCrossing=true;slideRent.fieldName2="slideRent_max";slideRent.minVal2=0;slideRent.maxVal2=2100;slideRent.valueInterval2=10;slideRent.valueDefault2=searchMax;slideRent.setSliderIcon2("slider.gif",13,18);slideRent.useInputField2=0;slideRent.drawInto("sliderRent");bsRentSliderChange(slideRent,searchMin,0,1);bsRentSliderChange(slideRent,searchMax,0,2)}else{slideBuy=new Bs_Slider();slideBuy.width=223;slideBuy.height=24;slideBuy.imgDir="/images/";slideBuy.setBackgroundImage("slidebuybg.gif","repeat-x");slideBuy.attachOnChange(bsBuySliderChange);slideBuy.fieldName="slideBuy_min";slideBuy.minVal=0;slideBuy.maxVal=1010;slideBuy.valueInterval=10;slideBuy.valueDefault=searchMin;slideBuy.setSliderIcon("slider.gif",13,18);slideBuy.useInputField=0;slideBuy.colorbar=new Object({type:"between",color:"blue",height:7,cssClass:"sliderbg",widthDifference:0,offsetLeft:6,offsetTop:7});slideBuy.useSecondKnob=true;slideBuy.wheelAmount=0;slideBuy.preventValueCrossing=true;slideBuy.fieldName2="slideBuy_max";slideBuy.minVal2=0;slideBuy.maxVal2=1010;slideBuy.valueInterval2=10;slideBuy.valueDefault2=searchMax;slideBuy.setSliderIcon2("slider.gif",13,18);slideBuy.useInputField2=0;slideBuy.drawInto("sliderBuy");bsBuySliderChange(slideBuy,searchMin,0,1);bsBuySliderChange(slideBuy,searchMax,0,2)}slideBeds=new Bs_Slider();slideBeds.width=223;slideBeds.height=24;slideBeds.imgDir="/images/";slideBeds.setBackgroundImage("slideroppbg.gif","repeat-x");slideBeds.attachOnChange(bsBedSliderChange);slideBeds.wheelAmount=0;slideBeds.fieldName="slider_Bed";slideBeds.minVal=0;slideBeds.maxVal=5;slideBeds.valueInterval=1;slideBeds.valueDefault=searchBeds;slideBeds.setSliderIcon("slider.gif",13,18);slideBeds.useInputField=0;slideBeds.colorbar=new Object({color:"gray",height:7,cssClass:"slideroppbg",widthDifference:7,offsetLeft:0,offsetTop:7});slideBeds.wheelAmount=0;slideBeds.drawInto("sliderBeds");bsBedSliderChange(slideBeds,searchBeds,0)}initSliders();
