// JavaScript Documentdocument.onmousemove = getMouseXY;document.onmouseup = mouseUp;var leftOrig = -5;var rightOrig = 230;var leftNewPos = -5;var rightNewPos = 230;var cursorOrig = 0;var leftFrom = -5;var rightFrom = 230;var leftDown = 0;var rightDown = 0;var startPri = 150;var minPri = 150;var maxPri = 350;function leftMouseDown(e) {	leftDown = 1;	var posx = 0;		if (!e)  e = window.event;		if (e.pageX) 	{			posx = e.pageX;		}		else if (e.clientX ) 	{			posx = e.clientX + document.body.scrollLeft				+ document.documentElement.scrollLeft;		}		// posx and posy contain the mouse position relative to the document		// Do something with this information		cursorOrig = posx;}	function rightMouseDown(e) {	rightDown = 1;	var posx = 0;		if (!e)  e = window.event;		if (e.pageX) 	{			posx = e.pageX;		}		else if (e.clientX ) 	{			posx = e.clientX + document.body.scrollLeft				+ document.documentElement.scrollLeft;		}		// posx and posy contain the mouse position relative to the document		// Do something with this information		cursorOrig = posx;}function mouseUp(ev){	leftDown = 0;	rightDown = 0;}function getMouseXY(e) {	if (leftDown == 1)	{		var posx = 0;		if (!e)  e = window.event;		if (e.pageX) 	{			posx = e.pageX;		}		else if (e.clientX) 	{			posx = e.clientX + document.body.scrollLeft				+ document.documentElement.scrollLeft;		}		// posx and posy contain the mouse position relative to the document		// Do something with this information		var movement = posx - cursorOrig;		leftFrom = leftNewPos + movement;		minPri = startPri + leftFrom - 14;		if ((leftFrom > -5)&&(leftFrom+18<rightNewPos))		{			document.getElementById('leftArrow').style.left = leftFrom+'px';			if (minPri < 350)			{				document.getElementById('minPrice').innerHTML = "$"+minPri+",000";			}		}			} else {			if ((leftFrom > -5)&&(leftFrom+18<rightNewPos))		{			leftNewPos = leftFrom;		}	}			if (rightDown == 1)	{		var posx = 0;		if (!e)  e = window.event;		if (e.pageX) 	{			posx = e.pageX;		}		else if (e.clientX) 	{			posx = e.clientX + document.body.scrollLeft				+ document.documentElement.scrollLeft;		}		// posx and posy contain the mouse position relative to the document		// Do something with this information		var movement = posx - cursorOrig;		rightFrom = rightNewPos + movement;		maxPri = startPri + rightFrom - 49;		if ((rightFrom < 230) && (rightFrom>leftNewPos+18))		{			document.getElementById('rightArrow').style.left = rightFrom+'px';			if (maxPri > 150)			{				document.getElementById('maxPrice').innerHTML = "$"+maxPri+",000";			}		}			} else {			if ((rightFrom < 230) && (rightFrom>leftNewPos+18))		{			rightNewPos = rightFrom;		}	}	}