
//-- text scrolling functions --//
var scrollStep = 0;

function scrollDown(id) {
	scrollStep = 2;
	startScrolling(id);
}

function scrollUp(id) {
	scrollStep = -2;
	startScrolling(id);
}

function startScrolling(id) {
	document.getElementById(id).scrollTop += scrollStep;
	if (Math.abs(scrollStep) < 8) scrollStep *= 1.1;
	if (scrollStep != 0)
		setTimeout("startScrolling('"+id+"');", 25);
}

function stopScrolling() {
	scrollStep = 0;
}

//-- end of text scrolling functions --//

//-- email scrambling functions --//

function strrev(inp) { 
  var outp = ""

  for (i = 0; i <= inp.length; i++) { 
    outp = inp.charAt (i) + outp 
  } 

  return outp;
} 

function make_maillink(add1, add3, add2)
{
	var nothing = "";
	var eadd = add1 + strrev(add2) + add3;
	var result = "";
	result = result + "mai";
	result = result + nothing + "lto";
	result = result + ":"+eadd+"";
	return result;
}

//-- end of email scrambling functions --//

function preload() {
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preload.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function page_onLoad() {
	if (typeof(body_onLoad) == "function") body_onLoad();
}

function page_onUnload() {
	if (typeof(body_onUnload) == "function") body_onUnload();
}

