/*function doresize () 
	{location.reload();return false;}
if(document.layers)window.captureEvents(Event.RESIZE); window.onresize=doresize;
*/
function divscrolling()
{
	this.x = 0;
	this.y = 0;
	this.scrolldiv = fscrolldiv;
}

function fscrolldiv(scrollid, scrollx, scrolly, rangex, rangey) 
{
holdx=this.x; holdy=this.y;
this.x+=scrollx; this.y+=scrolly;

if (this.x < -rangex || this.x > 0) {this.x=holdx;}
if (this.y < -rangey || this.y > 0) {this.y=holdy;}

document.getElementById(scrollid).style.left=String(this.x)+"px";
document.getElementById(scrollid).style.top=String(this.y)+"px";
}

