

function ScrollOpen(thepage)
{
	window.open(thepage, "floatwindow", "width=600, height=400, left=100, menubar=yes, resizable=yes");
}

function initScrollingPart(they2,thex2) {
the_y2=they2; 
the_x2=thex2;
setVariables2(the_y2,the_x2);
checkLocation2();
}


function setVariables2(they2,thex2)
{
  if (navigator.appName == "Netscape")
  {
	v2 = ".top=";
	h2 = ".left=";
	dS2 = "document.getElementById('";
	sD2 = "').style";
	y2 = "window.pageYOffset";
	x2 = "window.pageXOffset";
	iW2 = "window.innerWidth";
	iH2 = "window.innerHeight";
  }
  else
  {
	h2 = ".pixelLeft=";
	v2 = ".pixelTop=";
	dS2 = "";
	sD2 = ".style";
	y2 = "document.body.scrollTop+"+they2;
	x2 = "document.body.scrollLeft+"+thex2;
	iW2 = "document.body.clientWidth";
	iH2 = "document.body.clientHeight";
  }
  checkLocationA2();
}

movex2 = 0;
movey2 = 0;
xdiff2 = 0;
ydiff2 = 0;
ystart2 = 0;
xstart2 = 0;


function checkLocation2()
{
  yy2= eval(y2);
  xx2 = eval(x2);
  ydiff2 = ystart2 - yy2;
  xdiff2 = xstart2 - xx2;
  if ((ydiff2 < (-1)) || (ydiff2 > (3))) movey2 = Math.round(ydiff2 / 5), ystart2 -= movey2;
  if ((xdiff2 < (0)) || (xdiff2 > (0))) movex2 = Math.round(xdiff2 / 5), xstart2 -= movex2;
  moveMultipleObjects2();
  setTimeout("checkLocation2()", 1);
}

function checkLocationA2()
{
  ystart2 = eval(y2);
  xstart2 = eval(x2);
}

function moveObject2(objectname2)
{
  eval(dS2 + objectname2 + sD2 + v2 + (ystart2 + innerY2));
  eval(dS2 + objectname2 + sD2 + h2 + (xstart2 + innerX2));
}

function moveMultipleObjects2()
{
  innerX2 = 20;//(eval(iW2)-468)/2-160;  
  if (document.body.clientHeight - parseInt(document.getElementById("ScrollingPart").style.height) -100 < 315)
  {
  	innerY2 = 315;
  }
  else
  {
     innerY2 = document.body.clientHeight - parseInt(document.getElementById("ScrollingPart").style.height) -100;
  }
//(eval(iH)-216)/2-60;
  moveObject2("ScrollingPart");
//document.body.clientHeight - parseInt(ScrollingPart.style.height);//
//  innerX = (eval(iW)-50)/2+300;
// innerY = 250;//(eval(iH)-50)/2
//  moveObject("QuestionMark");
}
