var ulm_ie=window.showHelp;
var ulm_opera=window.opera;
var ulm_mac=navigator.userAgent.indexOf("Mac")+1;
var ulm_strict=((ulm_ie || ulm_opera)&&(document.compatMode=="CSS1Compat"));
if(ulm_mac && ulm_ie && document.doccx29){
	tval=document.doccx29.name.toLowerCase();
		if((tval.indexOf("dtd")>-1)&&((tval.indexOf("http")>-1)||(tval.indexOf("xhtml")>-1)))
			ulm_strict=1;
}

cx1=null;
cx2=null;
cx3=null;
cx0=document.getElementsByTagName("DIV");
for(mi=0;mi<cx0.length;mi++){
	if(cx4=cx0[mi].id){
		if(cx4.indexOf("uckdscrol")>-1){
			cx4=0;
			cx5=new window["uckdscrol_data"+cx4];
			if(ulm_mac && ulm_ie)
				cx5.allow_hover_scroll=1;
				cx6(cx5,cx4);
				cx0[mi].style.display="block";
				cx7(cx0[mi],cx5,cx4);
}}}
function cx7(container,cx5,id){
	container.firstChild.id="cx10"+id;
	container.firstChild.className=cx5.content_class_name;
		if(container.firstChild.offsetHeight>cx5.container_height){
			container.firstChild.style.position="absolute";
			container.firstChild.style.overflow="hidden";
			cx12=0;
			if((!(ulm_ie || ulm_opera))||(ulm_strict))
				cx12=cx5.content_padding*1;
				container.firstChild.style.width=(cx5.container_width-cx5.scroll_bar_width-cx12)+"px";
				cx11=container.firstChild.offsetHeight;
				cx13=cx5.container_height-(cx5.scroll_bar_width*2);
				cx14=22;
				if(cx14<cx5.scroll_bar_width)
					cx14=cx5.scroll_bar_width;
					container.setAttribute("cx15",cx13-cx14);
					container.setAttribute("cx16",cx5.container_height-cx11);
					container.setAttribute("cx17",cx5.container_height);
					cx19="<table border=0 cellspacing=0 cellpadding=0><tr><td id='pholder"+id+"' valign='top' width=100%>";
					cx19+=container.innerHTML+"</td><td valign='top'><div onselectstart='return false'>";
					cx19+="<div class='cx18' id='cx21"+id+"' onmouseover=\"cx25(event,this,1,"+cx5.allow_hover_scroll+",'up',"+id+","+cx5.hover_scroll_delay+")\" onselectstart='return false' onmousedown=\"cx24(1,'up',"+id+")\" onmouseup=\"cx24(false,'up',"+id+")\" onclick=\"cx38(event,'up',"+id+")\" ondblclick=\"cx38(event,'up',"+id+")\" style='width:"+cx5.scroll_bar_width+"px;height:"+cx5.scroll_bar_width+"px;'>";
					cx19+="<div onmouseout='cx25(event,this,false)' style='position:absolute;top:0px;visibility:hidden;z-index:1;width:"+cx5.scroll_bar_width+"px;height:"+cx5.scroll_bar_width+"px;'>";
					cx19+="<img src='"+cx5.up_button_roll+"' width="+cx5.scroll_bar_width+" height="+cx5.scroll_bar_width+">";
					cx19+="</div>";
					cx19+="<img src='"+cx5.up_button+"' width="+cx5.scroll_bar_width+" height="+cx5.scroll_bar_width+">";
					cx19+="</div>";
					cx19+="<div class='cx18' id='sbslider"+id+"' onmouseover='cx23("+id+")' onselectstart='return false' style='position:relative;width:"+cx5.scroll_bar_width+"px;height:"+cx13+"px;'>";
					cx19+="<div class='cx18'  onmousedown=\"cx24(1,'page',"+id+",false,event)\" onmouseup=\"cx24(false,'page',"+id+",false,event)\" onclick=\"cx38(event,'page',"+id+")\" ondblclick=\"if(ulm_ie)cx38(event,'page',"+id+")\" style='width:"+cx5.scroll_bar_width+"px;height:"+cx13+"px;position:absolute;'></div>";
					tevent="";
					if(ulm_ie)
						tevent="onmousemove=\"if(cx1)cx38(event,'bubble',"+id+");\"";
						cx19+="<div class='cx18' id='sbsliderb"+id+"' mdown=0 onselectstart='return false' onmousedown=\"cx33(event,1,this,"+id+")\" onmouseup=\"cx33(event,false,this,"+id+")\" "+tevent+" style='position:relative;z-index:1;top:0px;width:"+cx5.scroll_bar_width+"px;height:"+cx14+"px;'>";
						if(!(ulm_ie && ulm_mac)){
							cx19+="<table border=0 cellspacing=0 cellpadding=0>";
							tk= cx5.bubble_top_cap.split(",");
							bk= cx5.bubble_bottom_cap.split(",");
							ck= cx5.bubble_center.split(",");
							cx19+="<tr><td height="+tk[1]+" background='"+tk[0]+"'></td></tr>";
							cx19+="<tr><td background='"+cx5.bubble_tile_bg_style+"'><div style='position:relative;height:"+(ibh=(cx14-(parseInt(tk[1])+parseInt(bk[1]))))+"px;width:"+cx5.scroll_bar_width+"px;'>";
							if(ulm_ie || ulm_opera)
								cx19+="<div onselectstart='return false' style='-moz-user-select:none;position:relative;top:"+parseInt((ibh-parseInt(ck[1]))/2)+"px'><img src='"+ck[0]+"' height="+ck[1]+" width="+cx5.scroll_bar_width+"></div>";
								cx19+="</div></td></tr>";
								cx19+="<tr><td height="+tk[1]+" background='"+bk[0]+"'></td></tr>";
								cx19+="</table>";
							}
						cx19+="</div></div>";
						cx19+="<div class='cx18' id='cx20"+id+"' onmouseover=\"cx25(event,this,1,"+cx5.allow_hover_scroll+",'down',"+id+","+cx5.hover_scroll_delay+")\" onselectstart='return false' onmousedown=\"cx24(1,'down',"+id+")\" onmouseup=\"cx24(false,'down',"+id+")\" onclick=\"cx38(event,'down',"+id+")\" ondblclick=\"cx38(event,'down',"+id+")\" style='width:"+cx5.scroll_bar_width+"px;height:"+cx5.scroll_bar_width+"px;'>";
						cx19+="<div onmouseout='cx25(event,this,false)' style='position:absolute;top:"+(cx13+cx5.scroll_bar_width)+"px;visibility:hidden;z-index:1;width:"+cx5.scroll_bar_width+"px;height:"+cx5.scroll_bar_width+"px;'>";
						cx19+="<img src='"+cx5.down_button_roll+"' width="+cx5.scroll_bar_width+" height="+cx5.scroll_bar_width+">";
						cx19+="</div>";
						cx19+="<img src='"+cx5.down_button+"' width="+cx5.scroll_bar_width+" height="+cx5.scroll_bar_width+">";
						cx19+="</div>";
						cx19+="</div></td></tr></table>";
						container.innerHTML=cx19;
						
						//cx22=document.getElementById("pholder"+id);
						//cx22.firstChild.style.position="absolute";
						//cx22.firstChild.style.width=(cx5.container_width-cx5.scroll_bar_width-cx12)+"px";
						//container.onmouseout=function(){cx23(id);cx24(false);};
if(!ulm_ie){
	document.addEventListener("mousemove",cx32,false);
	document.addEventListener("mouseup",cx31 ,false);
}
} else {
	container.firstChild.id="cx10"+id;
}
//alert(cx19);
}

function cx25(event,cx30,cx26,cx27,cx29,id,cx28){

	if(cx26){
		cx30.firstChild.style.visibility="visible";
	}else cx30.style.visibility="hidden"; if(cx27){
			if(cx29=="down")
				cx24(1,cx29,id,1,false,cx28);
				else cx24(false,cx29,id,1,false,cx28);
	}
}

function cx23(id){
	document.getElementById("cx21"+id).firstChild.style.visibility="hidden";
	document.getElementById("cx20"+id).firstChild.style.visibility="hidden";
}

function cx31(){
	cx1=null;
	cx2=null;
}

function cx32(event){
	if(cx1)
	cx38(event,'bubble',cx2);
}

function cx33(event,cx34,obj,cx35){
	if(cx34){
		cx2=cx35;
		cx1=event.clientY;
		if(ulm_ie && !ulm_mac)obj.setCapture(1);
	}else {
		cx2=null;
		cx1=null;
		if(ulm_ie && !ulm_mac)obj.releaseCapture(1);
	}
}

function cx24(cx34,cx29,id,cx36,event,cx28){
	
	if(cx36){
		te=null;
			if(cx29=="page"){
				te=new Object();
				te.layerY=event;
				te.offsetY=event;
				sobj=document.getElementById("sbsliderb"+id);
				if((event>=sobj.offsetTop)&&(event<=sobj.offsetTop+sobj.offsetHeight))return;
			}
		cx38(te,cx29,id);
		sdelay=15;
		if(cx28)sdelay=cx28;
		cx3=setTimeout("cx24(false,'"+cx29+"',"+id+",1,"+event+","+cx28+")",sdelay);
		return;
	}
	if(cx34){
		cx37=null;
		if(event){
			if(ulm_ie || ulm_opera)
				cx37=event.offsetY;
				else cx37=event.layerY;
		}
			cx3=setTimeout("cx24(false,'"+cx29+"',"+id+",1,"+cx37+",null)",1);
	}else{
		clearTimeout(cx3);
		cx3=null;
	}
}

function cx38(event,cx29,id){
	cx5=new window["uckdscrol_data"+id];
	cx39=document.getElementById("cx10"+id);
	tbb=document.getElementById("sbsliderb"+id);
	cx42=document.getElementById("uckdscrol"+id);
	cx40=parseInt(cx42.getAttribute("cx15"));
	cx41=parseInt(cx42.getAttribute("cx16"));
	if(cx29=="down")move=-cx5.scroll_increment;
		else  if(cx29=="up")move=cx5.scroll_increment;
		else  if(cx29=="page"){
								if(ulm_ie || ulm_opera)
										yp=event.offsetY;
									else yp=event.layerY;
										container_height=parseInt(cx42.getAttribute("cx17"));
									if(yp<tbb.offsetTop)
										move=container_height;
									else move=-container_height;
							}else  if(cx29=="bubble"){
										move=event.clientY-cx1;
										bubble_pos=tbb.offsetTop+move;
										if(bubble_pos/cx40>1)
											bubble_pos=cx40;
										if(bubble_pos<0)
											bubble_pos=0;
											tbb.style.top=bubble_pos+"px";
											cx39.style.top=((bubble_pos/cx40)*cx41)+"px";
											cx1=event.clientY;
											return false;
							}
						cx43=cx39.offsetTop;
						if(ulm_ie && ulm_mac)
							cx43 -=cx5.content_padding;
						if((cx43+move)<cx41){
							cmove=cx41;
							bmove=cx40;
						}else  if(cx43+move>0){
									cmove=0;
									bmove=0;
						}else {
							cmove=cx43+move;
							bmove=parseInt((cmove/cx41)*cx40);
						}
					cx39.style.top=cmove+"px";
					tbb.style.top=bmove+"px";
}

function cx6(cx5,id){
	cx44="#uckdscrol"+id;
	sd="<style cx29='text/css'>";
	sd+=cx44+" {overflow:hidden;position:relative;width:"+cx5.container_width+"px;height:"+cx5.container_height+"px;background-color:"+cx5.container_bg_color+";}";
		cx45="";
		if(cx5.use_hand_cursor)
			cx45+="cursor:hand;cursor:arrow;";
			sd+=".cx18 {font-size:1px;cursor:arrow;cursor:arrow;"+cx45+"}";
			sd+="#cx10"+id+" {padding:"+cx5.content_padding+"px;"+cx5.content_styles+"}";
			sd+="#sbslider"+id+" {"+cx5.slider_tile_bg_style+"}";
			document.write(sd+"</style>");
}

function uckdscrol_data0()
{
	this.up_button = "../../images/up.gif";                                          //image path and name only
	this.up_button_roll = "../../images/up_roll.gif";                                //image path and name only
	this.down_button = "../../images/down.gif";                                      //image path and name only
	this.down_button_roll = "../../images/down_roll.gif";                            //image path and name only
	this.slider_tile_bg_style = "background-image:url(../../images/slider_bg.gif);";  //image defined as CSS style
	this.bubble_top_cap = "../../images/bubble_topcap.gif,2";                        //image path and name, height - (width is automatically set to scroll bar width)
	this.bubble_bottom_cap = "../../images/bubble_bottomcap.gif,2";                  //image path and name, height - ""
	this.bubble_center = "../../images/bubble_center.gif,7";                         //image path and name, height - ""
	this.bubble_tile_bg_style = "../../images/bubble_bg.gif";                        //image path and name only
	this.container_width = 360;
	this.container_height = 290;
	this.container_bg_color = "";
	this.content_padding = 7;
	this.content_styles = "font-family:Arial;font-weight:normal;font-size:12px;";
	this.content_class_name = "";
	this.scroll_bar_width = 15;                     //The width of the bar in pixels.
	this.scroll_increment = 1;                     //The distance to scroll when clicking the up or down buttons.
	this.allow_hover_scroll = false;                //Auto scroll while hovering over top and bottom buttons.
	this.hover_scroll_delay = 500;                   //Milliseconds (1/1000 second)
	this.use_hand_cursor = false;
}
