	//specify speed of scroll (greater=faster)
	var intSpeed=2;	
	var iens6=document.all||document.getElementById
	var objNewsBox = "";
	var objScrollbarIndicator = "";
	var objScrollbar = "";
	var objNewsBoxTopSpacer = "";
	var objContainer = "";
	
	var contentheight = "350";
	var intTempHeight;
	var intStartValue;
	var intCurrentY = 0;
	var intNewY = 0;
	var intDistanceY = 0;
	var objSrcElement = null;

	function initialize () {
		if (iens6){		
			try {
				objNewsBox=document.getElementById? document.getElementById("objNewsbox") : document.all["objNewsbox"]
				objScrollbarIndicator=document.getElementById? document.getElementById("objScrollbarIndicator") : document.all["objScrollbarIndicator"]
				objScrollbar = document.getElementById? document.getElementById("objScrollbar") : document.all["objScrollbar"]
				objScrollbarImgUp = document.getElementById? document.getElementById("objImgScrollUp") : document.all["objImgScrollUp"]
				objScrollbarImgDown = document.getElementById? document.getElementById("objImgScrollDown") : document.all["objImgScrollDown"]
				objContainer = document.getElementById? document.getElementById("container") : document.all["container"]
				objNewBoxHeight=objNewsBox.offsetHeight;
				objContainerHeight = objContainer.offsetHeight;
				intTempHeight = intStartValue = parseInt(objScrollbarIndicator.style.top);

				if (parseInt(objNewsBox.offsetHeight)>parseInt(objContainer.offsetHeight)) {
					objScrollbarIndicator.style.visibility = 'visible';
					objScrollbar.style.visibility = 'visible';
					objScrollbarImgUp.style.visibility = 'visible';
					objScrollbarImgDown.style.visibility = 'visible';
				}
					
			} catch (obj_scrollLayerError) {
				// Do nothing
			}

			document.onmousedown = dragStart;
			document.onmousemove = dragMove;
			document.onmouseup = dragEnd;
		}
	}
	
	function dragStart() {
		objSrcElement = event.srcElement;

		while (objSrcElement.id.indexOf("obj") == -1) {
		    objSrcElement = objSrcElement.parentElement;
		    if (objSrcElement == null) { 
				return;
			}
		}

		if (objSrcElement!=objScrollbarIndicator) {
			objSrcElement = null;
			return;
		}
		
		objSrcElement.style.pixelTop = objSrcElement.offsetTop;

		intCurrentY = (event.clientY + document.body.scrollLeft);
		return;
	}
	
	function dragEnd() {
		objSrcElement = null;
	}
	
	function dragMove() {
		if (objSrcElement == null) { 
			return 
		}

		if ((objScrollbarIndicator.style.pixelTop + objScrollbarIndicator.height + (event.clientY + document.body.scrollTop - intCurrentY)) < parseInt(objScrollbar.height+intStartValue)) {
			if ((objScrollbarIndicator.style.pixelTop + (event.clientY + document.body.scrollTop - intCurrentY))>=intStartValue) {
				intNewY = (event.clientY + document.body.scrollTop);
				intDistanceY = (intNewY - intCurrentY);
				intCurrentY = intNewY;
				objSrcElement.style.pixelTop += intDistanceY;
				intTempHeight = objSrcElement.style.pixelTop;
				if (intDistanceY>0) {
					// The scrollbar is moving down
					if (iens6&&parseInt(objNewsBox.style.top)>(objNewBoxHeight*(-1)+100)) {
						objNewsBox.style.top=parseInt(objNewsBox.style.top) + ((parseInt(objNewBoxHeight)/objContainerHeight)*(-1)*intDistanceY);
					}
				} else if (intDistanceY<0) {
					// The scrollbar is moving up
					if (iens6 && parseInt(objNewsBox.style.top)<0) {
						objNewsBox.style.top=parseInt(objNewsBox.style.top) + ((parseInt(objNewBoxHeight)/objContainerHeight)*(-1)*intDistanceY);
					}
				}
			}
		}
		event.returnValue = false;
	}
	
	function movedown(){
		if (frames.intMoveUpVar) clearTimeout(intMoveUpVar)	
		if (iens6&&parseInt(objNewsBox.style.top)>(objNewBoxHeight*(-1))) {
			objNewsBox.style.top=parseInt(objNewsBox.style.top)-intSpeed;
			if (parseInt(objScrollbarIndicator.style.top)<parseInt(objScrollbar.offsetHeight + intStartValue - objScrollbarIndicator.offsetHeight)) {
				intTempHeight = intTempHeight + (((parseInt(objScrollbar.offsetHeight)-parseInt(objScrollbarIndicator.offsetHeight))/parseInt(objNewBoxHeight))*intSpeed);
				objScrollbarIndicator.style.top = intTempHeight;
			}
			
			intMoveDownVar=setTimeout("movedown()",10)
		}
	}
	
	function moveup() {
		if (frames.intMoveDownVar) clearTimeout(intMoveDownVar)
		if (iens6&&parseInt(objNewsBox.style.top)<0)
			objNewsBox.style.top=parseInt(objNewsBox.style.top)+intSpeed
			if (parseInt(objScrollbarIndicator.style.top)>=intStartValue) {
				intTempHeight = intTempHeight - (((parseInt(objScrollbar.offsetHeight)-parseInt(objScrollbarIndicator.offsetHeight))/parseInt(objNewBoxHeight))*intSpeed);
				objScrollbarIndicator.style.top = intTempHeight;
			}

			intMoveUpVar=setTimeout("moveup()",10)
	}
	
	function stopscroll() {
		if (window.intMoveUpVar) clearTimeout(intMoveUpVar)
		if (window.intMoveDownVar) clearTimeout(intMoveDownVar)
	}
	
	function movetop() {
		stopscroll()
		if (iens6) {
			objNewsBox.style.top=0
		}
	}	
