	down = 0;

	function cover(x, imgs){
	elem = document.getElementById(x);
	elem.src = imgs;
	}



  	function scrollDown() {

	y = document.getElementById("contentdiv");

	x =(y.clientHeight);

		if (y.offsetHeight && (y.offsetHeight > x)){
		x = y.offsetHeight;
		}

		if (y.scrollHeight && (y.scrollHeight> x)){

		x = y.scrollHeight;
		}

		if (y.scrollTop && (y.scrollTop> x)){
		x = y.scrollTop;
		}

	y.scrollTop += 50;

	z = document.getElementById("curheight");
//	bgpos = parseInt(((y.scrollTop / (x-186)) * 230), 10);
	bgpos = parseInt(((y.scrollTop / (x-264)) * 230), 10);

		if(isNaN(bgpos)){
		} else {
		z.style.backgroundPosition = "16px " + bgpos+"px";
		}

	}

  	function scrollUp() {

	y = document.getElementById("contentdiv");

	x =(y.clientHeight);

		if (y.offsetHeight && (y.offsetHeight > x)){
		x = y.offsetHeight;
		}

		if (y.scrollHeight && (y.scrollHeight> x)){

		x = y.scrollHeight;
		}

		if (y.scrollTop && (y.scrollTop> x)){
		x = y.scrollTop;
		}

	y.scrollTop -= 50;


	z = document.getElementById("curheight");
	bgpos = parseInt(((y.scrollTop / (x-264)) * 230), 10);


		if(isNaN(bgpos)){
		} else {
		z.style.backgroundPosition = "16px " + bgpos+"px";
		}


	}


////////////////////////////////////////////////////////////////////////////////
// OKAY, LETS SORT THIS OUT YUP YUP!
////////////////////////////////////////////////////////////////////////////////

function updateHeight(){
		if (document.layers) { // Netscape
			document.captureEvents(Event.MOUSEMOVE);
			document.onmousemove = captureMousePosition;
		} else if (document.all) { // Internet Explorer
			document.onmousemove = captureMousePosition;
		} else if (document.getElementById) { // Netcsape 6
			document.onmousemove = captureMousePosition;
		}


}



function captureMousePosition(e) {
	if (down == 1){

		if (document.layers) {
		xMousePos = e.pageX;
		yMousePos = e.pageY;
		} else if (document.all) {
		xMousePos = window.event.x+document.body.scrollLeft;
		yMousePos = window.event.y+document.body.scrollTop;
		} else if (document.getElementById) {
		// Netscape 6 behaves the same as Netscape 4 in this regard
		xMousePos = e.pageX;
		yMousePos = e.pageY;
		}

	y = document.getElementById("contentdiv");
	x =(y.clientHeight);

		if (y.offsetHeight && (y.offsetHeight > x)){
		x = y.offsetHeight;
		}

		if (y.scrollHeight && (y.scrollHeight> x)){

		x = y.scrollHeight;
		}

		if (y.scrollTop && (y.scrollTop> x)){
		x = y.scrollTop;
		}

		z = document.getElementById("curheight");
		if (yMousePos>186 && yMousePos<411){		
		z.style.backgroundPosition = "16px " + (yMousePos-186)+"px";
		y = document.getElementById("contentdiv");
		y.scrollTop = (parseInt((((yMousePos-186)/230)*(x-281)), 10));
		}

	}	

}


function getReady(){

	if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	x =(window.innerWidth)-80;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
	x =(document.documentElement.clientWidth)-80;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
	x =(document.body.clientWidth)-80;
	}


	if (x>200){
	s= document.getElementById("contentdiv");
	s.style.width= x+"px";
	s.style.minWidth= x+"px";
	s.style.maxWidth= x+"px";
	s.style.display="block";
	}

}



function mdown(){
down = 1;
}

function mup(){
down = 0;
}