function SliderObject(id,_2,_3,_4,_5,_6,_7){
var _8=(_3<=0)?0:(_3>=_2)?_2-1:_3;
var _9=_2;
var _a=_4;
var _b=(_7)?_7:0;
var _c=(_6)?_6:0;
var _d=_5;
var _e=_5+"_"+id+"_slider_active_image_id";
var _f;
var _10=false;
var _11,startY,slide_min,slide_max,imgWd,imgHt;
this.image_top="images/slider_top.gif";
this.image_bottom="images/slider_bottom.gif";
this.image_inactive="images/slider_inactive.gif";
this.image_active="images/slider_active.gif";
this.image_width=16;
this.image_height=12;
this.init=function(){
_f=document.getElementById(_d);
slide_min=_b+this.image_height;
slide_max=_b+(_9*this.image_height);
imgWd=this.image_width;
imgHt=this.image_height;
var _12=document.createElement("img");
_12.src=this.image_top;
_12.style.cssText="position:absolute; left:"+_c+"px; top:"+_b+"px; width:"+imgWd+"; height:"+this.image_height+"; z-index:9999;";
_12.onclick=function(){
levelChanged((_8+1)*1,true);
return false;
};
_f.appendChild(_12);
for(var i=0;i<_9;i++){
var _14=document.createElement("input");
_14.type="image";
_14.src=this.image_inactive;
_14.value=((_9-1)-i)*1;
_14.style.cssText="position:absolute; left:"+_c+"px; top:"+(_b+((i+1)*this.image_height))+"px; width:"+imgWd+"px; height:"+this.image_height+"px; z-index:9999;";
_14.onmousedown=function(){
levelChanged(this.value*1,true);
return false;
};
_f.appendChild(_14);
}
var _15=document.createElement("img");
_15.src=this.image_bottom;
_15.style.cssText="position:absolute; left:"+_c+"px; top:"+(_b+((_9+1)*this.image_height))+"px; width:"+imgWd+"px; height:"+this.image_height+"px; ; z-index:9999;";
_15.onclick=function(){
levelChanged((_8-1)*1,true);
return false;
};
_f.appendChild(_15);
var _16=document.createElement("img");
_16.id=_e;
_16.src=this.image_active;
_16.style.cssText="position:absolute; left:"+_c+"px; top:"+(_b+((_9-_8)*this.image_height))+"px; width:"+imgWd+"px; height:"+this.image_height+"px; z-index:9999;";
_16.onmousedown=function(_17){
_10=true;
getXY(_17);
startY=mouseY;
document.body.style.cursor="pointer";
document.onmousemove=_16.onmousemove;
document.onmouseup=_16.onmouseup;
return false;
};
_16.onmouseup=function(_18){
if(_10){
_10=false;
levelChanging(_18,true);
document.body.style.cursor="default";
document.onmousemove=null;
document.onmouseup=null;
}
};
_16.onmousemove=function(_19){
if(_10){
levelChanging(_19,false);
return false;
}
};
_f.appendChild(_16);
_11=slide_min+((_9-_8)*imgHt)-imgHt;
};
this.setLevel=function(_1a){
levelChanged(_1a,false);
};
function levelChanged(_1b,_1c){
if(_1b<0||_1b>=_9){
return;
}
document.getElementById(_e).style.cssText="position:absolute; left:"+_c+"px; top:"+(_b+((_9-_1b)*imgHt))+"px; width:"+imgWd+"px; height:"+imgHt+"px; z-index:9999;";
if(_1b!=_8&&_1c){
_a(_1b);
}
_8=_1b;
_11=slide_min+((_9-_8)*imgHt)-imgHt;
}
function levelChanging(_1d,_1e){
getXY(_1d);
var top=_11+(mouseY-startY);
if(top<slide_min){
top=slide_min;
}else{
if(top>slide_max){
top=slide_max;
}
}
if(_1e){
levelChanged((_9-Math.ceil(((top-(imgHt/2))-slide_min)/imgHt))-1,true);
}else{
document.getElementById(_e).style.cssText="position:absolute; left:"+_c+"px; top:"+top+"px; width:"+imgWd+"px; height:"+imgHt+"px; z-index:9999;";
}
}
}


