function init(){
	mySlider=new Bs_Slider();
	mySlider.attachOnChange(bsSliderChange);
	mySlider.width=107;
	mySlider.height=16;
	mySlider.minVal=0.5;
	mySlider.maxVal=1.5;
	mySlider.valueDefault=1;
	mySlider.valueInterval=0.1;
	mySlider.imgDir="";
	mySlider.setBackgroundImage("../images/slider_bg.gif","no-repeat");
	mySlider.setSliderIcon("../images/slider2.gif",15,15);
	mySlider.useInputField=0;
	mySlider.draw("div_slider");
}

function bsSliderChange(_1,_2,_3){
	height=parseInt(document.getElementById("input_game_height").value)*_2;
	width=parseInt(document.getElementById("input_game_width").value)*_2;
	document.getElementById("iframe_game").height=height;
	document.getElementById("iframe_game").width=width;
}

_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(_7){if(_dom==4||_dom==2||_dom==1){return _7.id;}if(_dom==3){return _7.name;}return "";}
function createLayer(_8,_9,_a,_b,_c){var s="";if(arguments.length>5){for(var i=5;i<arguments.length;i++){s+=arguments[i];}}if(_dom==4){var _f="_js_layer_"+_createLayerNo;_createLayerNo++;var _10=_c?_c:document.body;var div=document.createElement("DIV");div.id=_f;div.setAttribute("style","position:absolute;left:"+_8+";top:"+_9+(_a>0?(";width:"+_a):"")+(_b>0?(";height:"+_b):"")+";visibility:hidden");var _12=document.createRange();_12.selectNodeContents(div);_12.collapse(true);var cf=_12.createContextualFragment(s);div.appendChild(cf);_10.appendChild(div);return div;}if(_dom==2||_dom==1){var adj=(_mac&&!_ie512)?" ":"";var _15="_js_layer_"+_createLayerNo;_createLayerNo++;var ha=(_b>0)?(";height:"+_b):"";var _17=_c?_c:document.body;_17.insertAdjacentHTML("BeforeEnd","<div id=\""+_15+"\" style=\"position:absolute;left:"+_8+";top:"+_9+(_a>0?(";width:"+_a):";width:1")+(_b>0?(";height:"+_b):"")+";visibility:hidden;\">"+s+"</div>"+adj);return document.all(_15);}if(_dom==3){var div=_c?(new Layer(_a,_c)):(new Layer(_a));if(_b>0){div.resizeTo(_a,_b);}div.moveTo(_8,_9);if(s!=""){div.document.open("text/html","replace");div.document.write(s);div.document.close();}return div;}return null;}function createExLayer(url,_1a,top,_1c,_1d,_1e){if(_dom==4){var _1f="_js_layer_"+_createLayerNo;_createLayerNo++;var _20=_1e?_1e:document.body;var div=document.createElement("IFRAME");div.id=_1f;div.name=_1f;div.setAttribute("style","position:absolute;left:"+_1a+";top:"+top+";width:"+_1c+(_1d>0?(";height:"+_1d):"")+";visibility:hidden");div.setAttribute("src",url);div.setAttribute("frameborder",0);div.setAttribute("scrolling","no");_20.appendChild(div);return div;}if(_dom==2||_dom==1){var adj=(_mac&&_ie512)?" ":"";var bd,_1f="_js_layer_"+_createLayerNo;_createLayerNo++;var ha=(_1d>0)?(";height:"+_1d):"";if(arguments.length>5&&_1e){bd=_1e;}else{bd=document.body;}bd.insertAdjacentHTML("BeforeEnd","<div id=\""+_1f+"\" style=\"position:absolute;left:"+_1a+";top:"+top+";width:"+_1c+ha+";visibility:hidden;\">"+"<iframe src=\""+url+"\" name=\""+_1f+"_if\" "+"width="+_1c+" height="+_1d+" marginwidth=0 marginheight=0 "+"scrolling=\"no\" frameborder=\"no\">"+"</iframe>"+"</div>"+adj);return document.all(_1f);}if(_dom==3){var div=_1e?(new Layer(_1c,_1e)):(new Layer(_1c));if(_1d>0){div.resizeTo(_1c,_1d);}div.moveTo(_1a,top);div.load(url,_1c);return div;}return null;}function getDivImage(div,_27){if(_dom==4){return document.images[_27];}if(_dom==2||_dom==1){return document.images(_27);}if(_dom==3){return div.document.images[_27];}return null;}function getDivForm(div,_29){if(_dom==4){return document.forms[_29];}if(_dom==2||_dom==1){return document.forms(_29);}if(_dom==3){return div.document.forms[_29];}return null;}function initDivPos(div){if(_dom==4){div.style.left=div.offsetLeft+"px";div.style.top=div.offsetTop+"px";}else{if(_dom==2||_dom==1){div.style.pixelLeft=div.offsetLeft;div.style.pixelTop=div.offsetTop;}}return div;}function getDivLeft(div){if(_dom==4||_dom==2){return div.offsetLeft;}if(_dom==1){return div.style.pixelLeft;}if(_dom==3){return div.left;}return 0;}function getDivTop(div){if(_dom==4||_dom==2){return div.offsetTop;}if(_dom==1){return div.style.pixelTop;}if(_dom==3){return div.top;}return 0;}function moveDivTo(div,_2e,top){if(_dom==4){div.style.left=_2e+"px";div.style.top=top+"px";return;}if(_dom==2||_dom==1){div.style.pixelLeft=_2e;div.style.pixelTop=top;return;}if(_dom==3){div.moveTo(_2e,top);return;}}function moveDivBy(div,_31,top){if(_dom==4){div.style.left=div.offsetLeft+_31;div.style.top=div.offsetTop+top;return;}if(_dom==2){div.style.pixelLeft=div.offsetLeft+_31;div.style.pixelTop=div.offsetTop+top;return;}if(_dom==1){div.style.pixelLeft+=_31;div.style.pixelTop+=top;return;}if(_dom==3){div.moveBy(_31,top);return;}}function scrollExlHItTo(_33,x){if(_dom==4){frames[_33.id].scrollTo(x,frames[_33.id].scrollY);return;}if(_dom==2||_dom==1){frames(_33.id+"_if").scrollTo(x,frames(_33.id+"_if").document.body.scrollTop);return;}if(_dom==3){var dx=x-_33.clip.left,ch=_33.clip.width;_33.left-=dx;_33.clip.left=x;_33.clip.width=ch;return;}return;}function scrollExlVItTo(_36,y){if(_dom==4){frames[_36.id].scrollTo(frames[_36.id].scrollX,y);return;}if(_dom==2||_dom==1){frames(_36.id+"_if").scrollTo(frames(_36.id+"_if").document.body.scrollLeft,y);return;}if(_dom==3){var dy=y-_36.clip.top,ch=_36.clip.height;_36.top-=dy;_36.clip.top=y;_36.clip.height=ch;return;}return;}function initDivSize(div){if(_dom==4){div.style.width=div.offsetWidth+"px";div.style.height=div.offsetHeight+"px";}else{if(_dom==2||_dom==1){div.style.pixelWidth=div.offsetWidth;div.style.pixelHeight=div.offsetHeight;}}return div;}function getDivWidth(div){if(_dom==4||_dom==2){return div.offsetWidth;}if(_dom==1){return div.style.pixelWidth;}if(_dom==3){return div.clip.width;}return 0;}function getDivHeight(div){if(_dom==4||_dom==2){return div.offsetHeight;}if(_dom==1){return div.style.pixelHeight;}if(_dom==3){return div.clip.height;}return 0;}function resizeDivTo(div,_3d,_3e){if(_dom==4){div.style.width=_3d+"px";div.style.height=_3e+"px";return;}if(_dom==2||_dom==1){div.style.pixelWidth=_3d;div.style.pixelHeight=_3e;return;}if(_dom==3){div.resizeTo(_3d,_3e);return;}}function resizeDivBy(div,_40,_41){if(_dom==4){div.style.width=(div.offsetWidth+_40)+"px";div.style.height=(div.offsetHeight+_41)+"px";return;}if(_dom==2){div.style.pixelWidth=div.offsetWidth+_40;div.style.pixelHeight=div.offsetHeight+_41;return;}if(_dom==1){div.style.pixelWidth+=_40;div.style.pixelHeight+=_41;return;}if(_dom==3){div.resizeBy(_40,_41);return;}}function getExlWidth(_42){if(_dom==4){return _42.contentDocument.body.offsetWidth;}if(_dom==2||_dom==1){return _mac?frames(_42.id+"_if").document.body.offsetWidth:frames(_42.id+"_if").document.body.scrollWidth;}if(_dom==3){return _42.document.width;}return 0;}function getExlHeight(_43){if(_dom==4){return _43.contentDocument.body.offsetHeight;}if(_dom==2||_dom==1){return _mac?frames(_43.id+"_if").document.body.offsetHeight:frames(_43.id+"_if").document.body.scrollHeight;}if(_dom==3){return _43.document.height;}return 0;}function setDivVisibility(div,_45){if(_dom==4||_dom==2||_dom==1){div.style.visibility=(_45)?"inherit":"hidden";return;}if(_dom==3){div.visibility=(_45)?"inherit":"hide";return;}}function setDivVisibilities(_46,_47){if(_dom==4||_dom==2||_dom==1){for(var i=0;i<_46.length;i++){_46[i].style.visibility=(_47)?"inherit":"hidden";}}if(_dom==3){for(var i=0;i<_46.length;i++){_46[i].visibility=(_47)?"inherit":"hide";}}return _46;}function setDivClip(div,top,_4c,_4d,_4e){if(_dom==4||_dom==2||_dom==1){div.style.clip="rect("+top+"px "+_4c+"px "+_4d+"px "+_4e+"px)";return;}if(_dom==3){div.clip.top=top;div.clip.right=_4c;div.clip.bottom=_4d;div.clip.left=_4e;return;}}function writeDivHTML(div,op,cl){var s="";for(var i=3;i<arguments.length;i++){s+=arguments[i];}if(_dom==4){if(op){while(div.hasChildNodes()){div.removeChild(div.lastChild);}}var _54=document.createRange();_54.selectNodeContents(div);_54.collapse(true);var cf=_54.createContextualFragment(s);div.appendChild(cf);return;}if(_dom==2||_dom==1){if(op){div.innerHTML="";}if(_mac&&!_ie512){div.innerHTML+=s;}else{div.insertAdjacentHTML("BeforeEnd",s);}return;}if(_dom==3){if(op){div.document.open("text/html","replace");}div.document.write(s);if(cl){div.document.close();}return;}}function setDivBackgroundColor(div,_57){if(_57==null){_57="transparent";}if(_dom==3){div.bgColor=_57;}else{div.style.backgroundColor=_57;}}function setDivBackgroundImage(div,url){if(_dom==3){div.background.src=url?url:null;}else{div.style.backgroundImage=url?("url("+url+")"):"none";}}function setDivZIndex(div,_5b){if(_dom==4||_dom==2||_dom==1){div.style.zIndex=_5b;return;}if(_dom==3){div.zIndex=_5b;return;}}function setDivStyleAttribute(div,nm,_5e){if(_dom!=0&&_dom!=3){eval("div.style."+nm+"=value");}return div;}function changeExlURL(_5f,url){if(_dom==4){_5f.setAttribute("src",url);return;}if(_dom==2||_dom==1){frames(_5f.id+"_if").location.replace(url);return;}if(_dom==3){_5f.load(url,_5f.clip.width);return;}return;}function getLeftFromEvent(e){if(_dom==4){return e.clientX+window.scrollX;}if(_dom==2||_dom==1){return document.body.scrollLeft+window.event.clientX;}if(_dom==3){return e.pageX;}return 0;}function getTopFromEvent(e){if(_dom==4){return e.clientY+window.scrollY;}if(_dom==2||_dom==1){return document.body.scrollTop+window.event.clientY;}if(_dom==3){return e.pageY;}return 0;}_grabObj=null;function EventCtrl(div){this.div=div;this.type="";this.mask=0;this.pageX=0;this.pageY=0;}EventCtrl.prototype.linkCtrl=function(obj){if(obj&&!obj.eventCtrl){obj.eventCtrl=this;}return this;};EventCtrl.prototype.setThreshold=function(_65){this.threshold=_65;return this;};function getCtrlFromElementIE(el,_67){for(;el;el=el.parentElement){if((_67==null||el.tagName==_67)&&el.eventCtrl){return el.eventCtrl;}}return null;}function getCtrlFromEventIE(e,_69){var _6a=_grabObj;var _6b=window.event;var _6c,toCtrl;if(_6a==null){var _6d=0,type=_6b.type;switch(type){case "mouseover":_6c=getCtrlFromElementIE(_6b.fromElement,_69);toCtrl=getCtrlFromElementIE(_6b.toElement,_69);if(_6c!=toCtrl){_6a=toCtrl;}if(!_6a||(_6a.mask&1)==0){_6a=null;}break;case "mouseout":_6c=getCtrlFromElementIE(_6b.fromElement,_69);toCtrl=getCtrlFromElementIE(_6b.toElement,_69);if(_6c!=toCtrl){_6a=_6c;}if(!_6a||(_6a.mask&1)==0){_6a=null;}break;case "mousedown":case "mousemove":case "mouseup":_6a=getCtrlFromElementIE(_6b.srcElement,_69);if(_6a&&(_6a.mask&2)!=0){break;}default:_6a=null;break;}}if(_6a){_6a.pageX=document.body.scrollLeft+_6b.clientX;_6a.pageY=document.body.scrollTop+_6b.clientY;_6a.type=_6b.type;}return _6a;}function getCtrlFromEventNN4(e,_6f){var _70=_grabObj;if(_70==null){_70=e.target.eventCtrl;}if(_70){var _71=0;switch(e.type){case "mouseover":case "mouseout":_71|=1;break;case "mousedown":case "mousemove":case "mouseup":_71|=2;break;}if((_70.mask&_71)!=0){_70.pageX=e.pageX;_70.pageY=e.pageY;_70.type=e.type;}else{_70=null;}}return _70;}function getCtrlFromEventMz(e,_73){var _74=_grabObj;if(_74==null){for(var t=e.target;t!=null;t=t.parentNode){if((_73==null||(t.nodeType==Node.ELEMENT_NODE&&t.tagName==_73))&&("undefined"!=typeof (t.eventCtrl))){_74=t.eventCtrl;break;}}}if(_74){_74.pageX=e.clientX+window.scrollX;_74.pageY=e.clientY+window.scrollY;_74.type=e.type;}return _74;}function getCtrlFromEventNop(e,_77){return null;}getCtrlFromEvent=(_dom==1||_dom==2)?getCtrlFromEventIE:(_dom==3?getCtrlFromEventNN4:(_dom==4?getCtrlFromEventMz:getCtrlFromEventNop));function ech_mouseover(e){var _79=getCtrlFromEvent(e,null);if(_79&&_79.mouseover&&!_79.mouseoverState){_79.mouseoverState=true;if(_79.mouseover){_79.mouseover(_79,_79.mouseoverClient);}}}function ech_mouseout(e){var _7b=getCtrlFromEvent(e,null);if(_7b&&_7b.mouseover&&_7b.mouseoverState){_7b.mouseoverState=false;if(_7b.mouseout){_7b.mouseout(_7b,_7b.mouseoutClient);}}}function ech_mousedown(e){var _7d=getCtrlFromEvent(e,null);if(_7d&&!_7d.dragging){_grabObj=_7d;_7d.dragging=true;_7d.dragged=false;_7d.startX=_7d.curX=_7d.pageX;_7d.startY=_7d.curY=_7d.pageY;if(_7d.mousedown){_7d.mousedown(_7d,_7d.mousedownClient);}return false;}return true;}function ech_mousemove(e){var _7f=getCtrlFromEvent(e,null);if(_7f&&_7f.dragging){if(_7f.curX!=_7f.pageX||_7f.curY!=_7f.pageY){if(Math.abs(_7f.pageX-_7f.startX)>_7f.threshold||Math.abs(_7f.pageY-_7f.startY)>_7f.threshold){_7f.dragged=true;}if(_7f.mousemove){_7f.mousemove(_7f,_7f.mousemoveClient);}_7f.curX=_7f.pageX;_7f.curY=_7f.pageY;}return false;}return true;}function ech_mouseup(e){var _81=getCtrlFromEvent(e,null);if(_81&&_81.dragging){_grabObj=null;_81.dragging=false;if(_81.mouseup){_81.mouseup(_81,_81.mouseupClient);}if(!_81.dragged&&_81.mouseclick){_81.mouseclick(_81,_81.mouseclickClient);}_81.curX=_81.pageX;_81.curY=_81.pageY;return false;}return true;}function ech_attachMouseOverOut(div,_83,_84,_85,_86){if(!div.eventCtrl){div.eventCtrl=new EventCtrl(div);}var _87=div.eventCtrl;_87.mouseoverState=false;_87.mouseover=_83;_87.mouseoverClient=_84;_87.mouseout=_85;_87.mouseoutClient=_86;div.onmouseover=ech_mouseover;div.onmouseout=ech_mouseout;_87.mask|=1;return _87;}function ech_detachMouseOverOut(div){var _89=div.eventCtrl;if(_89){_89.div.onmouseover=null;_89.div.onmouseout=null;_89.mask=~1;}}function ech_attachMouseDrag(div,_8b,_8c,_8d,_8e,upf,upc,_91,_92){var doc;if(_dom==1||_dom==2){doc=div;doc.onmousedown=ech_mousedown;document.onmousemove=ech_mousemove;document.onmouseup=ech_mouseup;}else{if(_dom==3){doc=div.document;doc.onmousedown=ech_mousedown;doc.onmousemove=ech_mousemove;doc.onmouseup=ech_mouseup;doc.captureEvents(Event.MOUSEDOWN|Event.MOUSEMOVE|Event.MOUSEUP);}else{if(_dom==4){doc=div;div.onmousedown=ech_mousedown;document.body.onmousemove=ech_mousemove;document.body.onmouseup=ech_mouseup;}else{return null;}}}if(!doc.eventCtrl){doc.eventCtrl=new EventCtrl(div);}var _94=doc.eventCtrl;_94.dragging=false;_94.dragged=false;_94.startX=0;_94.startY=0;_94.curX=0;_94.curY=0;_94.mousedown=_8b;_94.mousedownClient=_8c;_94.mousemove=_8d;_94.mousemoveClient=_8e;_94.mouseup=upf;_94.mouseupClient=upc;_94.mouseclick=_91;_94.mouseclickClient=_92;_94.threshold=5;_94.mask|=2;return _94;}function ech_detachMouseDrag(div){var _96=null;if(_dom==1||_dom==2){_96=div.eventCtrl;if(_96){_96.div.onmousedown=null;}}else{if(_dom==3){_96=div.document.eventCtrl;if(_96){var doc=_96.div.document;doc.releaseEvents(Event.MOUSEDOWN|Event.MOUSEMOVE|Event.MOUSEUP);doc.onmousedown=null;doc.onmousemove=null;doc.onmouseup=null;}}else{if(_dom==4){_96=div.eventCtrl;if(_96){_96.div.onmousedown=null;}}}}if(_96){_96.mask&=~2;}}if(!Bs_Objects){var Bs_Objects=[];}function Bs_Slider(_98){this._objectId;this.fieldName;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.colorbar;this.baseZindex=1000;this.moveX=0;this.moveY=0;this.imgBasePath;this.imgDir="/_bsJavascript/components/slider/img/";this._bgImgSrc;this._bgImgRepeat;this._sliderImgSrc;this._sliderImgWidth;this._sliderImgHeight;this.styleContainerClass;this.styleValueFieldClass="smalltxt spanSliderField";this.styleValueTextClass="smalltxt spanSliderText";this.bgColor;this._arrowIconLeftSrc;this._arrowIconLeftWidth=0;this._arrowIconLeftHeight=0;this._IconLeftCssStyle=0;this._arrowIconRightSrc;this._arrowIconRightWidth=0;this._arrowIconRightHeight=0;this._IconRightCssStyle=0;this.valueInterval=1;this.useInputField=2;this.inputTextFieldEvent="over";this.ctrl;this._valueInternal;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._valueTextId;this._valueTextObj;this._slideBarId;this._slideBarObj;this._colorbarId;this._colorbarObj;this._posUpperLeftX;this._posUpperLeftY;this._posSlideStart;this._posSlideEnd;this._slideWidth;this._attachedEvents;this.eventOnChange;this.slideStartCB;this.slideMoveCB;this.slideEndCB;this._constructor=function(_99){this._id=Bs_Objects.length;Bs_Objects[this._id]=this;this._objectId="Bs_Slider_"+this._id;this.objectName=this._objectId;if(typeof (_99)=="string"){this.fieldName=_99+"_value";this.objectName=_99;}};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(typeof (this.imgBasePath)=="string"){this.imgDir=this.imgBasePath;}};this.render=function(_9a){this._checkup();this._containerId="co"+_9a;this._handleId="po"+_9a;this._arrowLeftContainerId="alc"+_9a;this._arrowLeftIconId="ali"+_9a;this._arrowRightContainerId="arc"+_9a;this._arrowRightIconId="ari"+_9a;this._valueContainerId="vc"+_9a;this._valueFieldId="vf"+_9a;if(typeof (this.fieldName)=="undefined"){this.fieldName=_9a+"_value";}this._valueTextId="vt"+_9a;this._slideBarId="bar"+_9a;this._colorbarId="cb"+_9a;var _9b=this.width;var _9c=this.height;var _9d=this.width+this._arrowIconLeftWidth+this._arrowIconRightWidth+this._sliderImgWidth+15;var out=new Array();var _9f=0;var _a0=0;out[_9f++]="<div id=\""+this._containerId+"\"";if(this.styleContainerClass){out[_9f++]=" class=\""+this.styleContainerClass+"\"";}out[_9f++]=" style=\"position:relative;";if(this._display==0){out[_9f++]=" display:none;";}else{if(this._display==1){out[_9f++]=" visibility:hidden;";}}out[_9f++]="\">";out[_9f++]="<div style=\"position:absolute; left:"+this.moveX+"; top:"+this.moveY+";\">";out[_9f++]="<div style=\"position:absolute; display:none; z-index:5000;\" id=\""+this._handleId+"\">";out[_9f++]="<img name=\"bsslidericonname\" src=\""+this.imgDir+this._sliderImgSrc+"\" border=0 width="+this._sliderImgWidth+" height="+this._sliderImgHeight+">";out[_9f++]="</div>";if((this.arrowAmount>0)&&this._arrowIconLeftSrc){out[_9f++]="<div id=\""+this._arrowLeftContainerId+"\" style=\"position:absolute; left:"+_a0+"; top:0;\">";out[_9f++]="<a href=\"javascript:void(false);\" onClick=\"Bs_Objects["+this._id+"].onChangeByArrow(false); return false;\">";out[_9f++]="<img id=\""+this._arrowLeftIconId+"\" src=\""+this.imgDir+this._arrowIconLeftSrc+"\" border=\"0\" width=\""+this._arrowIconLeftWidth+"\" height=\""+this._arrowIconLeftHeight+"\"";if(typeof (this.arrowIconLeftCssStyle)!="undefined"){out[_9f++]=" style=\""+this.arrowIconLeftCssStyle+"\"";}out[_9f++]=">";out[_9f++]="</a></div>";_a0+=this._arrowIconLeftWidth;}if(this.colorbar){out[_9f++]="<div id=\""+this._colorbarId+"\" onClick=\"Bs_Objects["+this._id+"].onChangeByClick(event);\"";if(this.colorbar["cssClass"]){out[_9f++]=" class=\""+this.colorbar["cssClass"]+"\"";}out[_9f++]=" style=\"position:absolute; z-index:4000; width:0;";if("undefined"!=typeof (this.colorbar["color"])){out[_9f++]=" background-color:"+this.colorbar["color"]+";";}else{if("undefined"==typeof (this.colorbar["cssClass"])){out[_9f++]=" background-color:orange;";}}if("undefined"!=typeof (this.colorbar["offsetLeft"])){out[_9f++]=" left:"+(_a0+this.colorbar["offsetLeft"])+";";}if("undefined"!=typeof (this.colorbar["offsetTop"])){out[_9f++]=" top:"+this.colorbar["offsetTop"]+";";}if("undefined"!=typeof (this.colorbar["height"])){out[_9f++]=" height:"+this.colorbar["height"]+";";}out[_9f++]="\">";out[_9f++]="<img src=\"/_bsImages/spacer.gif\" width=\"1\" height=\"5\"></div>";}out[_9f++]="<div id=\""+this._slideBarId+"\" onClick=\"Bs_Objects["+this._id+"].onChangeByClick(event);\" style=\"position:absolute; left:"+_a0+"; top:0; width:"+this.width+"; height: "+_9c+"; clip:rect(0 "+_9b+"  "+_9c+" 0);";if(this.bgColor){out[_9f++]="background-color:"+this.bgColor+"; layer-background-color:"+this.bgColor+";";}if(this._bgImgSrc){out[_9f++]=" background: url("+this.imgDir+this._bgImgSrc+") "+this._bgImgRepeat+";";}out[_9f++]="\"></div>";_a0+=this.width;if((this.arrowAmount>0)&&this._arrowIconRightSrc){out[_9f++]="<div id=\""+this._arrowRightContainerId+"\" style=\"position:absolute; left:"+_a0+"; top:0;\">";out[_9f++]="<a href=\"javascript:void(false);\" onClick=\"Bs_Objects["+this._id+"].onChangeByArrow(true); return false;\">";out[_9f++]="<img id=\""+this._arrowRightIconId+"\" src=\""+this.imgDir+this._arrowIconRightSrc+"\" border=\"0\" width=\""+this._arrowIconRightWidth+"\" height=\""+this._arrowIconRightHeight+"\"";if(typeof (this.arrowIconRightCssStyle)!="undefined"){out[_9f++]=" style=\""+this.arrowIconRightCssStyle+"\"";}out[_9f++]=">";out[_9f++]="</a></div>";_a0+=this._arrowIconRightWidth;}var _a1=(this.styleValueFieldClass)?" class=\""+this.styleValueFieldClass+"\"":"";var _a2=(this.styleValueTextClass)?" class=\""+this.styleValueTextClass+"\"":"";out[_9f++]="<div id=\""+this._valueContainerId+"\" style=\"position:absolute; left:"+_a0+"; top:0px;\">";if(this.useInputField==1){out[_9f++]="<span"+_a2+" id=\""+this._valueTextId+"\">"+this.valueDefault+"</span>";out[_9f++]="<input type=\"hidden\" name=\""+this.fieldName+"\" id=\""+this._valueFieldId+"\" value=\""+this.valueDefault+"\">";}else{if(this.useInputField==2){out[_9f++]="<input type=\"text\""+_a1+" onMouseOver=\"bsFormFieldSetFocusAndSelect(this, false);\" name=\""+this.fieldName+"\" id=\""+this._valueFieldId+"\" value=\""+this.valueDefault+"\" size=\"2\"";if(_a1==""){out[_9f++]=" style=\"vertical-align:text-top; width:30; height:"+this.height+";\"";}out[_9f++]=" onKeyUp=\"Bs_Objects["+this._id+"].onChangeByInput(this.value, false);\" onBlur=\"Bs_Objects["+this._id+"].onChangeByInput(this.value, true);\">";}else{if(this.useInputField==3){out[_9f++]="<input type=\"text\""+_a1+" onMouseOver=\"bsFormFieldSetFocusAndSelect(this, false);\" name=\""+this.fieldName+"\" id=\""+this._valueFieldId+"\" value=\""+this.valueDefault+"\" size=\"2\"";if(_a1==""){out[_9f++]=" style=\"display:none; vertical-align:text-top; width:30; height:"+this.height+";\"";}else{out[_9f++]=" style=\"display:none;\"";}out[_9f++]=" onKeyUp=\"Bs_Objects["+this._id+"].onChangeByInput(this.value, false);\" onBlur=\"var _bss = Bs_Objects["+this._id+"]; _bss.onChangeByInput(this.value, true); _bss.textboxEdit(false)\">";out[_9f++]="<span"+_a2+" style=\"\" id=\""+this._valueTextId+"\" ";if(this.inputTextFieldEvent=="click"){out[_9f++]="onClick=\"Bs_Objects["+this._id+"].textboxEdit(true);\"";}else{out[_9f++]="onMouseOver=\"Bs_Objects["+this._id+"].textboxEdit(true);\"";}out[_9f++]=">"+this.valueDefault+"</span>";}else{out[_9f++]="<input type=\"hidden\" name=\""+this.fieldName+"\" id=\""+this._valueFieldId+"\" value=\""+this.valueDefault+"\">";}}}out[_9f++]="</div>";out[_9f++]="</div>";out[_9f++]="</div>";document.getElementById(_9a).innerHTML=out.join("");this._containerObj=document.getElementById(this._containerId);this._handleObj=document.getElementById(this._handleId);this._valueContainerObj=document.getElementById(this._valueContainerId);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._valueFieldObj=document.getElementById(this._valueFieldId);this._valueTextObj=document.getElementById(this._valueTextId);this._slideBarObj=document.getElementById(this._slideBarId);this._colorbarObj=document.getElementById(this._colorbarId);this._posSlideStart=getDivLeft(this._slideBarObj);this._slideWidth=this.width-this._sliderImgWidth;this._posSlideEnd=this._posSlideStart+this._slideWidth;this._currentRelSliderPosX=this._posSlideStart;if(this.valueDefault>this.minVal){var _a3=this.maxVal-this.minVal;var _a4=(this.valueDefault-this.minVal)*100/_a3;this._currentRelSliderPosX+=(_a4*this._slideWidth/100);this._updateColorbar(this._currentRelSliderPosX);}this._handleObj.style.left=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("","bsslidericonname"));this.ctrl=temp;this.ctrl.sliderObj=this;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{alert("not implemented");}};this.drawInto=function(_a7){this.render(_a7);if(this._disabled){this.setDisabled(true);}};this.draw=function(_a8){this.render(_a8);if(this._disabled){this.setDisabled(true);}};this.attachEvent=function(_a9,_aa){if(typeof (this._attachedEvents)=="undefined"){this._attachedEvents=new Array();}if(typeof (this._attachedEvents[_a9])=="undefined"){this._attachedEvents[_a9]=new Array(_aa);}else{this._attachedEvents[_a9][this._attachedEvents[_a9].length]=_aa;}};this.hasEventAttached=function(_ab){return (this._attachedEvents&&this._attachedEvents[_ab]);};this.fireEvent=function(_ac){if(this._attachedEvents&&this._attachedEvents[_ac]){var e=this._attachedEvents[_ac];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(_af){this.eventOnChange=_af;};this.attachOnSlideStart=function(_b0){this.slideStartCB=_b0;};this.attachOnSlideMove=function(_b1){this.slideMoveCB=_b1;};this.attachOnSlideEnd=function(_b2){this.slideEndCB=_b2;};this.attachOnArrow=function(_b3){this.eventOnArrow=_b3;};this.attachOnInputChange=function(_b4){this.eventOnInputChange=_b4;};this.attachOnInputBlur=function(_b5){this.eventOnInputBlur=_b5;};this.setSliderIcon=function(_b6,_b7,_b8){this._sliderImgSrc=_b6;this._sliderImgWidth=_b7;this._sliderImgHeight=_b8;};this.setArrowIconLeft=function(_b9,_ba,_bb){this._arrowIconLeftSrc=_b9;this._arrowIconLeftWidth=_ba;this._arrowIconLeftHeight=_bb;};this.setArrowIconRight=function(_bc,_bd,_be){this._arrowIconRightSrc=_bc;this._arrowIconRightWidth=_bd;this._arrowIconRightHeight=_be;};this.setBackgroundImage=function(src,_c0){this._bgImgSrc=src;this._bgImgRepeat=_c0;};this.setDisplay=function(_c1){this._display=_c1;if(this._containerObj){switch(_c1){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 _c3="progid:DXImageTransform.Microsoft.BasicImage(grayScale=1); progid:DXImageTransform.Microsoft.BasicImage(opacity=.5)";var _c4="default";}else{var _c5=null;var _c6="hand";}var t=new Array(this._containerId,this._arrowLeftContainerId,this._arrowRightContainerId,this._valueFieldId,this._valueTextId,this._slideBarId,this._colorbarId,this._handleId);for(var i=0;i<t.length;i++){var elm=document.getElementById(t[i]);if(elm!=null){elm.style.filter=_c5;}}var elm=document.getElementById(this._arrowLeftIconId);if(elm!=null){elm.style.cursor=_c6;}var elm=document.getElementById(this._arrowRightIconId);if(elm!=null){elm.style.cursor=_c6;}var elm=document.getElementById(this._valueFieldId);if(elm!=null){elm.disabled=b;}this._disabled=b;};this.getValue=function(){return this._valueInternal;};this.getSliderPos=function(){var _cd=(this.direction==0)?getDivLeft(this.ctrl.div)-this.ctrl.minX:getDivTop(this.ctrl.div)-this.ctrl.minY;var _ce=this.maxVal-this.minVal;return (_cd*_ce/this._slideWidth)+this.minVal;};this.onChangeBySlide=function(){if(this._disabled){return;}var _cf=this._getNewLocationFromCursor();var val=this._getValueByPosition(_cf);val=this._roundToGrid(val);if(val!=this._valueInternal){this._valueInternal=val;this.updateHandle(_cf);this.updateValueField(val);this.updateValueText(val);this._updateColorbar(_cf);if("undefined"!=typeof (this.eventOnChange)){this.eventOnChange(this,val,_cf);}this.fireEvent("onChange");}};this.onChangeByClick=function(_d1){if(this._disabled){return;}var _d2=0;if("undefined"!=typeof (_d1.offsetX)){_d2=_d1.offsetX+this._posSlideStart;}else{if("undefined"!=typeof (_d1.layerX)){_d2=_d1.layerX+this._posSlideStart;}else{return;}}var val=this._getValueByPosition(_d2);val=this._roundToGrid(val);if(val!=this._valueInternal){this._valueInternal=val;this.updateHandle(_d2);this.updateValueField(val);this.updateValueText(val);this._updateColorbar(_d2);if("undefined"!=typeof (this.eventOnChange)){this.eventOnChange(this,val,_d2);}this.fireEvent("onChange");}};this.onChangeByInput=function(val,_d5){if(this._disabled){return;}if(val==""){val=this.minVal;}val=this._roundToGrid(val);var _d6=this._getPositionByValue(val);if(val!=this._valueInternal){this._valueInternal=val;this.updateHandle(_d6);this._updateColorbar(_d6);if("undefined"!=typeof (this.eventOnChange)){this.eventOnChange(this,val,_d6);}this.fireEvent("onChange");if(_d5){this.updateValueField(val);this.updateValueText(val);}}else{if(_d5){this.updateValueField(val);this.updateValueText(val);}}};this.onChangeByArrow=function(_d7){if(this._disabled){return;}var val=parseFloat(this._valueInternal);if(_d7){val+=this.arrowAmount;}else{val-=this.arrowAmount;}val=this._roundToGrid(val);if(val!=this._valueInternal){this._valueInternal=val;var _d9=this._getPositionByValue(val);this.updateHandle(_d9);this.updateValueField(val);this.updateValueText(val);this._updateColorbar(_d9);if("undefined"!=typeof (this.eventOnChange)){this.eventOnChange(this,val,_d9);}this.fireEvent("onChange");}};this.setValue=function(val){val=this._roundToGrid(val);var _db=this._getPositionByValue(val);if(val!=this._valueInternal){this._valueInternal=val;this.updateHandle(_db);this._updateColorbar(_db);if("undefined"!=typeof (this.eventOnChange)){this.eventOnChange(this,val,_db);}this.fireEvent("onChange");this.updateValueField(val);this.updateValueText(val);}};this.onChangeByApi=function(val){this.setValue(val);};this._updateColorbar=function(_dd){if(this._colorbarObj){var _de=_dd+this.colorbar["widthDifference"];if(_de<0){_de=0;}this._colorbarObj.style.width=_de;}};this._getValueByPosition=function(pos){pos-=this.ctrl.minX;var _e0=this.ctrl.maxX-this.ctrl.minX;var _e1=pos/_e0;var val=this.minVal+((this.maxVal-this.minVal)*_e1);return val;};this._getPositionByValue=function(val){val=val-this.minVal;var _e4=this.maxVal-this.minVal;var _e5=val/_e4;var pos=this.ctrl.minX+((this.ctrl.maxX-this.ctrl.minX)*_e5);return pos;};this._roundToGrid=function(val){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;}return val;};this._getNewLocationFromCursor=function(){var ox=this._posEventSlideStartX;var oy=this._posEventSlideStartY;switch(this.direction){case 0:var t=this.ctrl.pageX-ox;var x=parseInt(this._posObjSlideStartX)+t;if(x>this.ctrl.maxX){x=this.ctrl.maxX;}if(x<this.ctrl.minX){x=this.ctrl.minX;}return x;if(this.ctrl.pageX>this.ctrl.maxX){x=this.ctrl.maxX;}else{if(this.ctrl.pageX<this.ctrl.minX){x=this.ctrl.minX;}else{x=this.ctrl.pageX;if(x<this.ctrl.minX){x=this.ctrl.minX;}if(x>this.ctrl.maxX){x=this.ctrl.maxX;}}}return x;break;case 1:if(this.ctrl.pageY>this.ctrl.maxY){y=this.ctrl.maxY;}else{if(this.ctrl.pageY<this.ctrl.minY){y=this.ctrl.minY;}else{y+=this.ctrl.pageY-this.ctrl.curY;if(y<this.ctrl.minY){y=this.ctrl.minY;}if(y>this.ctrl.maxY){y=this.ctrl.maxY;}}}return y;break;}};this.updatePointer=function(_ec){this.updateHandle(_ec);};this.updateHandle=function(_ed){this._currentRelSliderPosX=_ed;this.ctrl.div.style.left=_ed;return;switch(this.direction){case 0:moveDivTo(this.ctrl.div,_ed,getDivTop(this.ctrl.div));break;case 1:moveDivTo(this.ctrl.div,getDivTop(this.ctrl.div),_ed);break;}};this.updateValueField=function(val){if(this._valueFieldObj){this._valueFieldObj.value=val;}};this.updateValueText=function(val){if(this._valueTextObj){this._valueTextObj.innerHTML=val;}};this.arrowOnClick=function(){};this.onChange=function(val){this.setValue(val);};this.updateInputBox=function(val){this.setValue(val);};this.textboxEdit=function(_f2){if(this._disabled){return;}if(_f2){if("undefined"!=typeof (this._valueFieldObj)){this._valueTextObj.style.display="none";this._valueFieldObj.style.display="block";bsFormFieldSetFocusAndSelect(this._valueFieldObj,false);}}else{if("undefined"!=typeof (this._valueTextObj)){this._valueFieldObj.style.display="none";this._valueTextObj.style.display="block";}}};this.slideMove=function(_f3,_f4){_f3.sliderObj.onChangeBySlide(_f3);};this.slideStart=function(_f5,_f6){_f5.sliderObj._posEventSlideStartX=_f5.startX;_f5.sliderObj._posEventSlideStartY=_f5.startY;_f5.sliderObj._posObjSlideStartX=_f5.sliderObj._handleObj.style.left;_f5.sliderObj._posObjSlideStartY=_f5.sliderObj._handleObj.style.top;var pos=_f5.sliderObj.getSliderPos();_f5.sliderObj.setValue(pos);if("undefined"!=typeof (_f5.sliderObj.slideStartCB)){_f5.sliderObj.slideStartCB(_f5.sliderObj,_f5.sliderObj.getValue(),pos);}};this.slideEnd=function(_f8,_f9){var pos=_f8.sliderObj.getSliderPos();if("undefined"!=typeof (_f8.sliderObj.slideEndCB)){_f8.sliderObj.slideEndCB(_f8.sliderObj,_f8.sliderObj.getValue(),pos);}return;};this._constructor(_98);}