/********************************************************************/

/*                                                                  */

/*                     Copyright 2000 TTC LLC		            */

/*                       ALL RIGHTS RESERVED                        */

/*                           PROPRIETARY                            */

/*                   This is an unpublished work.                   */

/*             This notice does not imply publication.              */

/*                                                                  */

/*   Date   Author    TR     Description                            */

/*                                                                  */

/* 07/19/00   jvh            Initial Code                           */

/*                                                                  */

/********************************************************************/





var b_speed=8;   //defines banner speed

var banner_id=10; 

var b_pause=0;   //to pause the banner

var b_pos=0;

var msg = "";

var sD, dS, h, v;

var ql = 173;

var isNav = (navigator.appName.indexOf("Netscape") != -1);

var Ypos = 0;

var x, y, a, b;

document.onmousemove = mouseHdl;





monthNames = new MakeArray(12)

monthNames[1] = "Janurary"

monthNames[2] = "February"

monthNames[3] = "March"

monthNames[4] = "April"

monthNames[5] = "May"

monthNames[6] = "June"

monthNames[7] = "July"

monthNames[8] = "August"

monthNames[9] = "Sept."

monthNames[10] = "Oct."

monthNames[11] = "Nov."

monthNames[12] = "Dec."



daysNames = new MakeArray(7)

daysNames[1] = "Sunday"

daysNames[2] = "Monday"

daysNames[3] = "Tuesday"

daysNames[4] = "Wednesday"

daysNames[5] = "Thursday"

daysNames[6] = "Friday"

daysNames[7] = "Saturday"



//the following is for the random sayings

var wisdom = new Array();

wisdom[0] = new Array("The only way to have a friend is to be one.","Emerson (1803-1882)");

wisdom[1] = new Array("Every one is the architect of his own fortune.","Mathurin Regnier (1573-1613)");

wisdom[2] = new Array("The diamond cannot be polished without friction,<br>nor the man perfected without trials.","Chinese Proverb");

wisdom[3] = new Array("Who said.. If you do not think every day is a good one,<br>just try missing one","Zig Ziglar");

wisdom[4] = new Array("Ambition without knowledge is like a boat on dry land.","Confusius say...  " );

wisdom[5] = new Array("If you hate a person,<br> you hate something in him that is part of yourself.<br>What isn't part of ourselves doesn't disturb us. ","Hermann Hesse (1877-1962)");

wisdom[6] = new Array("Is it possible that I am so busy doing that I no longer have time to enjoy being?...","Wilson");

wisdom[7] = new Array("I don't think of all the misery but all the beauty that remains...","Anne Frank");

wisdom[8] = new Array("Only friends will tell you the truths you need to hear to make your life bearable...","Du Plessix Gray");

wisdom[9] = new Array("Friendship is unnecessary,<br> like philosophy,<br> like art...it has no survival value; rather,<br> it is one of those things that give value to survival...","C.S. Lewis");

wisdom[10] = new Array("The ultimate lesson all of us have to learn is unconditional love,<br> which includes not only others but ourselves as well...","Elisabeth Kubler-Ross");

wisdom[11] = new Array("The foolish man seeks happiness in the distance<br>The wise grows it under his feet...","James Oppenheim (1882-1932)");

wisdom[30] = new Array("Kindness is the golden chain by which society<br>is bound together...","Goethe (1749-1832)");

wisdom[13] = new Array("Nothing in the affairs of men is worthy of great anxiety.","Plato");

wisdom[14] = new Array("Where there is joy there is creation. Where there is no joy there is no creation:<br>know the nature of joy...","Upanishads (c. B.C. 800)");

wisdom[15] = new Array("The reason why all men honor love is because it looks up,<br>and not down; aspires and not despairs...","Emerson (1803-1882)");

wisdom[16] = new Array("Nurture your minds with great thoughts,<br>to believe in the heroic makes heroes...","Disraeli (1804-1881)");

wisdom[17] = new Array("The three things most difficult are: to keep a secret,<br>to forget an injury,<br> and to make good use of leisure.","Chilo (fl. B.C. 560)");

wisdom[18] = new Array("Solitude is the best nurse of wisdom","Sterne (1713-1768)");

wisdom[12] = new Array("Yesterday is History,<br> Tomorrow is a Mystery,<br> and Today is a gift:<br>that's why we call it - The Present","Unkown");

wisdom[20] = new Array("I have learnt silence from the talkative,<br> toleration from the intolerant,<br> and kindness<br>from the unkind; yet strange,<br> I am ungrateful to these teachers.","Khalil Gibran (1883-1931)");

wisdom[21] = new Array("Success is overcoming failure","Unknown");

wisdom[22] = new Array("Inquiry is fatal to certainty...","Will Durant (1885-1981)");

wisdom[23] = new Array("The heart is wiser than the intellect...","Josiah Holland (1819-1881)");

wisdom[24] = new Array("GREATNESS is the ability to love your enemies despite all reasons not to...");

wisdom[19] = new Array("To wish to be well is a part of becoming well.<br>","Seneca (B.C. 3-65 A.D.)");

wisdom[26] = new Array("In all affairs it's a healthy thing now and then to hang a question mark <br>on the things you have long taken for granted.","Bertrand Russell (1872-1970)");

wisdom[27] = new Array("Behold the turtle. He makes progress only when he sticks his neck out.","James B. Conant (1893-1978)");

wisdom[28] = new Array("Thousands of candles can be lighted from a single candle,<br> and the life of the candle<br>will not be shortened. Happiness never decreases by being shared.","Buddha (B.C. 568-488)");

wisdom[29] = new Array("Whatever you can do or dream you can,<br> begin it.<br>Boldness has genius,<br> power and magic in it...","Goethe");

wisdom[31] = new Array("EXCITEMENT is always your infallible guide.<br>What excites you is indicative of the path you are,<br>otherwise it wouldn't excite you.","Bashar");

wisdom[25] = new Array("I have never let schooling interfere with my education.","Mark Twain");

/********************************************************************/



function stop() {

     if(!b_pause) {

        clearTimeout(banner_id);

        b_pause=1;

     } else {

        banner_main();

        b_pause=0; 

     } 

}



/********************************************************************/



function banner_main() {

     msg=" * Success Stories: Sarah,Jill,Melanie,Sandi,Ayo,Tracy,Arlene,Melon,Kelly,Amanda,KellyP,AprilT,Cbeas,Stephanie,Aussiemummy,KaraV,Heather,Charlene,JenfromPA,JenniferM,Tracy,SK,Chris,Barbara,Costerine,Margaret,Laura,Lindsey,DonnaMac,Alecia,BonnyS,Betsy,Sandy,Cate" + " " 



     var k=(40/msg.length)+1;

     for(var j=0;j<=k;j++) msg+="     "+msg;

        window.status=msg.substring(b_pos,b_pos+120);

        if(b_pos++==msg.length){   

          b_pos=0;

        }

     banner_id=setTimeout("banner_main()",1000/b_speed);

     setupQuotes(); 

}



/********************************************************************/



function printDate ( prefix, postfix ) {

	msg = customDateString(new Date())

	document.write( prefix + " " + msg + " " + postfix )

}



/********************************************************************/



function MakeArray(n) {

	this.length = n

	return this

}



/********************************************************************/





function customDateString (oneDate) {

	var theDay = daysNames[oneDate.getDay() +1]

	var theDate = oneDate.getDate()

	var theMonth = monthNames[oneDate.getMonth() +1]

	var dayth = "th"

	var theYear = oneDate.getYear()



	if( theYear < 200 ) { theYear = theYear + 1900; } 

	if ((theDate == 1) || (theDate == 21) || (theDate == 31)) { dayth = "st"; }

	if ((theDate == 2) || (theDate == 22)) { dayth = "nd"; }

	if ((theDate == 3) || (theDate == 23)) { dayth = "rd"; }

	return theDay + ", " + theMonth + " " + theDate + dayth + ", " + theYear

}



/********************************************************************/



function DBdayString () {

	var oneDate = new Date();

	var theDay = oneDate.getDay();

	var begstr = " <FONT COLOR=\"FUCHSIA\"><BLINK>  ";

	var endstr = " </BLINK></font>";

	var retstr = "...DB Topic of the Day...<br><br> ";

	

	if (theDay == 1 ){ retstr = retstr + begstr; }

	retstr = retstr + "* Monday is Catch-up Day *<br> ";

	if (theDay == 1 ){ retstr = retstr + endstr }

	if (theDay == 2 ){ retstr = retstr + begstr; }

	retstr = retstr + "* Tuesday is Thankful Day *<br> ";

	if (theDay == 2 ){ retstr = retstr + endstr }

	if (theDay == 3 ){ retstr = retstr + begstr; }

	retstr = retstr + "* Wednesday is Dusting Day *<br> ";

	if (theDay == 3 ){ retstr = retstr + endstr }

	if (theDay == 4 ){ retstr = retstr + begstr; }

	retstr = retstr + "* Thursday is Funnies Day *<br> ";

	if (theDay == 4 ){ retstr = retstr + endstr }

	if (theDay == 5 ){ retstr = retstr + begstr; }

	retstr = retstr + "* Friday is Survey Day *<br> ";

	if (theDay == 5 ){ retstr = retstr + endstr }

	if (theDay == 6 ){ retstr = retstr + begstr; }

	retstr = retstr + "* Saturday is Testing Day *<br><br> ";

	if (theDay == 6 ){ retstr = retstr + endstr }

	document.write( retstr );

}



/********************************************************************/



function setupQuotes() {

	var x = navigator.appVersion;

	y = x.substring(0,4);

	if (y >= 4) setVariables();

}



/********************************************************************/



function setVariables() {

	if (navigator.appName == "Netscape") {	

		h=".left="; v=".top="; dS="document."; sD="";

	} else {

		h=".pixelLeft="; v=".pixelTop="; dS=""; sD=".style";

	}

}



/********************************************************************/



function popLayer(a) {

	desc = "<table cellpadding=3 border=1 bgcolor=F7F7F7><td>" + a + "</td></table>";

	if(isNav) {

		document.q1.document.write(desc);

		document.q1.document.close();

		document.q1.left = x+25;

		document.q1.top = y+40;

	} else {

		y = Ypos - 15;

		q1.innerHTML = desc;

		eval(dS+"q1"+sD+h+(x+25));

		eval(dS+"q1"+sD+v+(y+40));

	}

}



/********************************************************************/



function hideLayer(a) {

	if(isNav) {

		eval(document.q1.top = a);

	} else q1.innerHTML = "";

}



/********************************************************************/



function myShowPopup() {

	var text;

	qx = Math.floor(Math.random() * ql );

	if (qx < 0) { qx = 0; };

	if (qx > 30) { qx = 30; };

	x = wisdom[qx][0], y = wisdom[qx][1];



	if (!isNav) {

		text = "<div id=\"q1\" style=\"position:absolute; " 

		+ "visibility:show; left:25px; top:-50px; z-index:2\">layer "

		+ "hidden off the screen</div><a nohref "

		+ "onMouseover=\"popLayer('" + y + "')\" "

		+ "onMouseout=\"hideLayer(-50)\">"

		+ x + "</a>";

	}else {

		text = x + "<br>" + y;

	}

	document.write(text);

}



/********************************************************************/



function mouseHdl(e) {

	x = (isNav) ? e.pageX : event.clientX;

	y = (isNav) ? e.pageY : event.clientY;

	if (!isNav) { Ypos = window.event.y + document.body.scrollTop; }

}



/********************************************************************/



if (isNav) {

	document.captureEvents(Event.MOUSEMOVE);

}



/********************************************************************/





