




/*
     FILE ARCHIVED ON 21:14:14 Apr 3, 2005 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 12:25:35 Oct 7, 2011.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
dhtmlScroller=true;
centerRefresh=false;

function center(objStr) {
	var offsetW;
	ds_obj = new ds_css_obj(objStr);	
	var ns4 = (document.layers)? true:false
	var ie4 = (document.all)? true:false
	var winW = (ns4)? window.innerWidth-16 : document.body.offsetWidth-20	
	offsetW = parseInt(winW/2)-offsetX;
	if (offsetW<orgX) offsetW=orgX;
	ds_obj.css.left=offsetW;
	centerRefresh=true;
	}

// scroll is initialized by rolling over an arrow and called by clicking and holding the mouse button
// initialization call (mouseover) is "setBtn([content object name],[direction of scroll])"
// mouseout clears dynamic objects with "clearBtn()"

var init = 25; // set the milliseconds per interval
var spd=4; // set the px movement per int milliseconds
var ds_obj, ds_clip, objStr, objT, objH, clipH, objL, objW, clipW, clickOn, selected, dir, timer = setTimeout("",500);

function ds_css_obj(obj)
{ if(document.all)
    this.css=document.all[obj].style;
  else if(document.getElementById)
    this.css=document.getElementById(obj).style;
  return this;
}

function ds_getClipH()
{ if (document.all) 
    clipH = parseInt(document.all[objStr].parentElement.style.height);
  else if (document.getElementById) 
    clipH = parseInt(document.getElementById(objStr).parentNode.style.height);
}
function ds_getT()
{ objT = parseInt(ds_obj.css.top);
}

function ds_getH()
{ if (document.all) 
    objH=parseInt(document.all[objStr].scrollHeight);
  else if (document.getElementById)
    objH=parseInt(document.getElementById(objStr).offsetHeight);
}

function ds_getClipW()
{ if (document.all) 
    clipW = parseInt(document.all[objStr].parentElement.style.width);
  else if (document.getElementById) 
    clipW = parseInt(document.getElementById(objStr).parentNode.style.width);
}

function ds_getL()
{ objL = parseInt(ds_obj.css.left);
}

function ds_getW()
{ if (document.all) 
    { if (ds_obj.css.width&&"") 
	    objW=parseInt(ds_obj.css.width);
	  else
		objW=parseInt(document.all[objStr].scrollWidth);
	}
  else if (document.getElementById) 
    { if (ds_obj.css.width&&"") 
	    objW=parseInt(ds_obj.css.width);
	  else
		objW=parseInt(document.getElementById(objStr).offsetWidth);
	}
}

function ds_up()
{ ds_getT();
  if ((objT <= 0)&&(objT > -(objH-clipH)))
    ds_obj.css.top = parseInt(ds_obj.css.top)-spd;
  if (!clickOn)
    clearTimeout(timer);
  else
    timer = setTimeout(dir,init);
}

function ds_down()
{ ds_getT();
  if (objT < 0)
    ds_obj.css.top = parseInt(ds_obj.css.top)+spd;
  if (!clickOn)
    clearTimeout(timer);
  else
    timer = setTimeout(dir,init);
}

function ds_left()
{ ds_getL();
  if ((objL <= 0)&&(objL > -(objW-clipW)))
    ds_obj.css.left = parseInt(ds_obj.css.left)-spd;
  if (!clickOn)
    clearTimeout(timer);
  else
    timer = setTimeout(dir,init);
}

function ds_right()
{ ds_getL();
  if (objL < 0)
    ds_obj.css.left = parseInt(ds_obj.css.left)+spd;
  if (!clickOn)
    clearTimeout(timer);
  else
    timer = setTimeout(dir,init);
}

function ds_setBtn(a,b)
{ objStr = a;
  ds_obj = new ds_css_obj(objStr);
  dir = b+"()";
  ds_getT(); ds_getH(); ds_getClipH();
  ds_getL(); ds_getW(); ds_getClipW();
  selected=true;
}

function reloadPage(){if (centerRefresh)location.reload();}
function ds_clearBtn() { selected=false; }
function ds_mouseDown() { clickOn = true; if (selected) eval(dir); else return true; }
function ds_mouseUp() { clickOn = false; }

window.onresize = reloadPage;

