// JavaScript Document

<!-- Original:  Randy Bennett (rbennett@thezone.net) -->
<!-- Web Site:  http//home.thezone.net/~rbennett/utility/javahead.htm -->
<!-- Begin
function AlwaysMaximizeWindow() {
// (C) 2002 CodeLifter.com
// Free for all users, but leave in this  header
// Maximize Window
window.moveTo(0,-1);
window.resizeTo(screen.width+5,screen.height);
}


function WiperInitialize() 
<!-- Original:  Aram Yegenian (yegeniana@hotmail.com) -->
<!-- Web Site:  http://aramyegenian.cjb.net -->

<!-- Begin

//  End -->
{
	timeID = 5;
	stcnt = 11;
	msg = "Welcome to R.S. Bernaldo & Associates Website! ";
	wmsg = new Array(33);
	wmsg[0] = msg;
	blnk = "                                                               ";
	for (i = 1; i < 32; i++) 
	{
	b = blnk.substring(0, i);
	wmsg[i] = "";
	for (j = 0; j < msg.length; j++) wmsg[i] = wmsg[i] + msg.charAt(j) + b;
	}
}

function wiper() {
	if (stcnt > -1) str = wmsg[stcnt]; 
	else str = wmsg[0];
	if (stcnt-- < -40) stcnt = 31;
	status = str;
	clearTimeout(timeID);
	timeID = setTimeout("wiper()", 150);
}


function scrollit(seed) {
	var m1  = "Welcome to R.S. Bernaldo & Associates Website! ";
	var m2  = "";
	var m3  = "";
	var m4  = "";
	var msg=m1+m2+m3+m4;
	var out = " ";
	var c   = 1;
	if (seed > 100) {
	seed--;
	cmd="scrollit("+seed+")";
	timerTwo=window.setTimeout(cmd,100);
	}
	else if (seed <= 100 && seed > 0) {
	for (c=0 ; c < seed ; c++) {
	out+=" ";
	}
	out+=msg;
	seed--;
	window.status=out;
	cmd="scrollit("+seed+")";
	timerTwo=window.setTimeout(cmd,100);
	}
	else if (seed <= 0) {
	if (-seed < msg.length) {
	out+=msg.substring(-seed,msg.length);
	seed--;
	window.status=out;
	cmd="scrollit("+seed+")";
	timerTwo=window.setTimeout(cmd,100);
	}
	else {
	window.status=" ";
	timerTwo=window.setTimeout("scrollit(100)",75);
		  }
	   }
}


function setVariables() {
	imgwidth=216;  // logo width, in pixels
	imgheight=72;  // logo height, in pixels
	if (navigator.appName == "Netscape") {
	horz=".right";
	vert=".top";
	docStyle="document.";
	styleDoc="";
	innerW="window.innerWidth";
	innerH="window.innerHeight";
	offsetX="window.pageXOffset";
	offsetY="window.pageYOffset";
	}
	else {
	horz=".pixelRight";
	vert=".pixelTop";
	docStyle="";
	styleDoc=".style";
	innerW="document.body.clientWidth";
	innerH="document.body.clientHeight";
	offsetX="document.body.scrollLeft";
	offsetY="document.body.scrollTop";
	   }
}
function checkLocation() {
	objectXY="branding";
	var availableX=eval(innerW);
	var availableY=eval(innerH);
	var currentX=eval(offsetX);
	var currentY=eval(offsetY);
	x=availableX-(imgwidth+30)+currentX;
	y=(imgheight)+currentY-38;
	evalMove();
	setTimeout("checkLocation()",10);
}
function evalMove() {
	eval(docStyle + objectXY + styleDoc + horz + "=" + x);
	eval(docStyle + objectXY + styleDoc + vert + "=" + y);
}
// End -->

function imgover(imgname){
	imgname.src = "arrow.gif"
}
function imgout(imgname){
	imgname.src = "blank.gif"
}



