

	finalVal=50;

	timeOutTime=1;

	firstTime=1;



	//	Here are the variables you have to set:

	//First the text:*/

	var textStr="Berry Ellen Clothier & Berry Brook Farms"

	var text=""

	var charNum=1;

	var fontsize=28   //set the fontsize you want:

	var color="#000066"		 //The color of the text

	var align="left"		 //the alignment of the text, you can choose center, right or left.

	var Wspeed=50			 //Set the speed you want it to write in (in milliseconds between each letter)

	var font='Arial Black,Arial,Helvetica'	 //Set font





	/********************************************************************************

	Copyright (C) 1999 Thomas Brattli

	This script is made by and copyrighted to Thomas Brattli at www.bratta.com

	Visit for more great scripts. This may be used freely as long as this msg is intact!

	I will also appriciate any links you could give me.

	********************************************************************************/



//Default browsercheck, added to all scripts!

function checkBrowser() {

        this.ver=navigator.appVersion

        this.dom=document.getElementById?1:0

        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;

        this.ie4=(document.all && !this.dom)?1:0;

        this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;

        this.ns4=(document.layers && !this.dom)?1:0;

        //added

        this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1

        this.ie5mac=this.ie5 && navigator.userAgent.indexOf("Mac")>-1

        this.ie55=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0;

		this.ie =(this.ie4 || this.ie5 || this.ie4mac || this.ie5mac || this.ie55);

		this.ns =(this.ns4 || this.ns5);



        this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ie5mac)

        return this

}

bw=new checkBrowser()



if (bw.ns) { document.write("<embed src='docs/birds2.wav' autostart=true hidden=true loop=5></embed>") }



//With nested layers for netscape, this function hides the layer if it's visible and visa versa

function showHide(div,nest){

        obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;

        if(obj.visibility=='visible' || obj.visibility=='show') obj.visibility='hidden'

        else obj.visibility='visible'

}

//Shows the div

function show(div,nest){

        obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;

		obj.visibility='visible'

}

//Hides the div

function hide(div,nest){

        obj=bw.dom?

			document.getElementById(div).style:

			bw.ie4?

			     document.all[div].style:

				 bw.ns4?

				    nest?

					  document[nest].document[div]:

					  document[div]:

			0;



		obj.visibility='hidden'

}





//Fade-in script by Bernhard Friedrich



/*************************************************************

 * fade script ver0.1 by Kouichirou@Eto.com 1996/02/20

 * Copyright (c) 1996 Kouichirou Eto. All Rights Reserved.

 * You can freely copy, use, modify this script,

 * if the credit is given in the source.

 */



document.bgcolor="#FFFFFF"

col_value="#FFFFFF";

color_start=col_value.substring(1,8);

col_value="#FFFFFF";

color_end=col_value.substring(1,8);





var hexchars="0123456789ABCDEF";

function fromHex (str) {

var high=str.charAt(0); //Note: Netscape 2.0 bug workaround

var low=str.charAt(1);

return(16*hexchars.indexOf(high))+hexchars.indexOf(low);

}



function Color(str){

	this.r=fromHex(str.substring(0,2));

	this.g=fromHex(str.substring(2,4));

	this.b=fromHex(str.substring(4,6));

	return this;

}



function makearray(n) {

    this.length = n;

    for(var i = 1; i <= n; i++)

        this[i] = 0;

    return this;

}



hexa = new makearray(16);

for(var i = 0; i < 10; i++)

    hexa[i] = i;

hexa[10]="a"; hexa[11]="b"; hexa[12]="c";

hexa[13]="d"; hexa[14]="e"; hexa[15]="f";



function hex(i) {

    if (i < 0)

        return "00";

    else if (i > 255)

        return "ff";

    else

        return "" + hexa[Math.floor(i/16)] + hexa[i%16];

}



function setbgColor(r, g, b) {

    var hr = hex(r); var hg = hex(g); var hb = hex(b);

	//alert("document.bgcolor = " + hr+hg+hb );

    document.bgColor = "#"+hr+hg+hb;

}



function fade(i, sr, sg, sb, er, eg, eb, step) {

    if (i > step) {

	    setTimeout("show('pic')", 1500);

		setTimeout("show('divText')", 2000);

		//setTimeout("show('divLogoText')", 6000);

		setTimeout("showLogoText()", 500);		  // first time for showLogo

		setTimeout("writeIt()", 2000);

		setTimeout("makesnake()", 3000);

		firstTime=0;

		return;

	}

	else {

	i += 1;

    setbgColor(

        Math.floor(sr * ((step-i)/step) + er * (i/step)),

        Math.floor(sg * ((step-i)/step) + eg * (i/step)),

        Math.floor(sb * ((step-i)/step) + eb * (i/step))

	);

	setTimeout("fade("+i+","+sr+","+sg+","+sb+","+er+","+eg+","+eb+","+step+ ")", timeOutTime);

	}

}



function fadein() {

	text=""

	charNum=1;

	hide("divText");

	hide("pic");

	hide("divLogoText");

	setbgColor(0,0,0);

	j=0;

	setTimeout("fade(j, Color(color_start).r,Color(color_start).g,Color(color_start).b, Color(color_end).r, Color(color_end).g, Color(color_end).b,	finalVal);", 3000);

}



/***** end fade script *****/



/********************************************************************************

Copyright (C) 1999 Thomas Brattli

This script is made by and copyrighted to Thomas Brattli at www.bratta.com

Visit for more great scripts.

This may be used freely as long as this msg is intact!

********************************************************************************/



/*Browsercheck and settings vars

****************************************************************************/

var ie, n;

if (document.all) {

	n=0; ie=1

	writeText='document.all.divText.innerHTML=\'<p align=\"\'+align+\'\" style=\"font-family:\'+font+\'; font-size:\'+fontsize+\'px; color:\'+color+\'">\'+text+\'</p>\''

	closeIt=""

}

if (document.layers) {

	n=1;ie=0

	writeText="document.divText.document.write('<p align=\"'+align+'\" style=\"font-family:'+font+'; font-size:'+fontsize+'px; color:'+color+'\">'+text+'</p>')"

	closeIt="document.divText.document.close()"

}



/*The functions for writing text.

****************************************************************************/

function writeIt() {

	if(text.length < textStr.length){

		text=textStr.slice(0, charNum)

		eval(writeText)

		eval(closeIt)

		charNum++;

		setTimeout("writeIt()",Wspeed)

	}

}



//***************************************************************************



// Check if text string has finished writing, then show the text logo

function showLogoText()

{

    if (text.length < textStr.length) {

 		setTimeout("showLogoText()", 500);

	}

	else {

	    show('divLogoText')

	}

}





