
var Merlin;
var Peedy;
AgentControl.RaiseRequestErrors = false;   
function talk() {   
	AgentControl.Connected = true;	//  necessary for IE3
	AgentControl.Characters.Load("Merlin", "c:/windows/msagent/chars/merlin.acs");								
	Merlin = AgentControl.Characters.Character("Merlin");								
	Merlin.LanguageID = 0x0409;		//  needed under come conditions
	
	Merlin.Get("state", "Showing, Speaking,");
	Merlin.Get("animation", "Greet, GreetReturn, GestureLeft, DoMagic2, Pleased, Wave, Blink, LookUp, MoveRight");

	Merlin.MoveTo(25,25);
	Merlin.Show();
	Merlin.Speak("Hello! Thank you for coming to my page!");
	Merlin.Speak("I would like to tell you about it.");
	Merlin.Speak("You can right click me to dump me at any time.");
	Merlin.MoveTo(100,300);
	Merlin.Get("state", "Hiding");
	Merlin.Play("Greet");
	Merlin.Play("Explain");
	Merlin.Speak("The web page you are viewing is made using a  style sheet. The style sheet used here I have named standard.css. It is in the same directory as this page.");
        Merlin.Speak("If you look at the source code for the page you will see where it is linked in the head tag.");
	Merlin.Speak("The links here go to other pages that use css. You can study the source code to see simple examples of css.");
	Merlin.Speak("You can even see how to make me appear. I am not invoked by css! It's magic!");	
	Merlin.Play("LookUp");
	Merlin.Play("GestureUp");
	Merlin.Speak("Up above you will see a header box. The size, colors, shadow, and all details are defined by the class called .header in the css  file.");
        Merlin.Play("Explain");
	Merlin.Speak("The large text in the header is defined in the class called .Header H1."); 
	Merlin.Speak("The small text in the header is defined in the class called .tagline of standard.css.");  
	Merlin.Speak("Look carefully and you will see a drop shadow. It is defined it class call d shadow");
	Merlin.Speak("The drop shadow on the text is cute.");
	Merlin.Play("Explain");
	Merlin.Speak("It is of very little practical value!");
	Merlin.Play("GestureDown");
	Merlin.Speak("You can view the file, standard.css, with the button provided for you below.");
	Merlin.Speak("You are welcome to use it on your pages if you wish. It is well commented.");
	Merlin.Speak("If you study it you can change it to suit your own needs.");	
	Merlin.Play("GestureRight");
	Merlin.Speak("On the right, that is my right, and your left.");
	Merlin.Speak("You see my menu box. The entire right 135 pixels of this page is reserved for menu links in the class called left menu place."); 
    Merlin.Play("GestureUp");
	Merlin.Speak("At the top of my menu box I have place the actual Churub that was depicted on the 1995 postage stamp captioned love .");  
    Merlin.Speak("Since I have captured this Churub you will have to find another. I use the Churub for my software logo.");    
	Merlin.Play("LookUp");
    Merlin.Speak("I place examples of every math principle you have to know to succeed in electronics in the margin of a postage stamp."); 
    Merlin.Speak("The math used in engineering is very simple to learn.");
	Merlin.Play("Pleased");
	Merlin.Speak("Have you got that so far? ");
	Merlin.Play("Confused");
	Merlin.Think("Hummm. I wonder if these  cats know what I am talking about?");
	Merlin.Play("GestureRight");
	Merlin.Speak("A link to John Taylor's web page is in the menu box area here on the right. He has some very nice information and valuable links.");
    Merlin.Speak("You should look over John Taylor's information very carefully.");
	Merlin.Play("GestureLeft");
	Merlin.Speak("Here is the main content area."); 
    Merlin.Speak("It is defined in the class I call .content.");
	Merlin.Play("GestureRight");
	Merlin.Speak("The content area has a 135 pixel margin on the left. That's your left.");
	Merlin.Speak("That allows room for the menu box. ");
    Merlin.Play("GestureLeft");
    Merlin.Speak("The right margin, your right, is also 135 pixels to give a balanced look to the page."); 
	Merlin.Play("GestureDown");
	Merlin.Speak("As you enter more text in the content area the page length will expand to fit it.");
	Merlin.Speak("At the bottom of the page you will find a nice little box with links centered in it")
	Merlin.Speak("That box is defined in the class .botbox of standard.css ")
	Merlin.Speak("Do not! I repeat, Do not click on the link named Peedy in the bottom menu box");
	Merlin.Speak("You don't want to see Peedy.  Do you?");
	Merlin.Play("Explain");
	Merlin.Speak("Please examine the file that I have called standard.css.")
	Merlin.Speak("If you are going to write web pages you will need to know css.")
	Merlin.Speak("If you want me back click on my picture hanging here.");
	Merlin.Play("Confused");	
	Merlin.Play("Think");
	Merlin.Speak("If you stayed this long you will probably learn css.")
	Merlin.Play("Wave");
	Merlin.Speak("Perhaps you stayed because I am so beautiful!");
	Merlin.Play("Wave");
	Merlin.Speak("Goodbye, My children! ");
	Merlin.Play("DoMagic2");
	
	Merlin.Hide();	
    }
	//  AgentControl.Characters.unload("Merlin");   save until needed Merlin.Speak(" "); 
		
function peedytalk() {   
	AgentControl.Connected = true;	//  necessary for IE3
	AgentControl.Characters.Load("Peedy", "c:/windows/msagent/chars/Peedy.acs");								
	Peedy = AgentControl.Characters.Character("Peedy");								
	Peedy.LanguageID = 0x0409;		//  needed under come conditions
	Peedy.Get("state", "Showing, Speaking");
	Peedy.Get("animation", "Greet, GreetReturn, GestureLeft, Wave, Blink");
	Peedy.MoveTo(50,50);
	Peedy.Show();
	Peedy.MoveTo(250,200);
	Peedy.Get("state", "Hiding");
	Peedy.Play("Greet");
	Peedy.Play("Explain");
	Peedy.Speak("Hello! My name is Peedy.");
	Peedy.Speak("Boy! That Merlin talks too much!");
	Peedy.Play("LookRight");
	Peedy.Play("LookRightReturn");
	Peedy.Speak("I sometimes call him motor mouth!");
	Peedy.Speak("Did you notice what a strange voice he has?");
	Peedy.Speak("I am glad you have the Microsoft Agents loaded.");
	Peedy.Speak("We are real cute but we can also be useful.");
	Peedy.Speak("Visit Kingsbury school to see how I help disabled children to learn.");
	Peedy.Speak("Perhaps you will have a job for me. I am very cheap to hire.");
	Peedy.Speak("I work for crackers!");
	Peedy.Play("search");
	Peedy.Speak("I am needed elsewhere!");
	Peedy.Speak("Have a good day!");
	Peedy.Speak("I must go now. Good bye.");
	Peedy.Play("Wave");
	Peedy.Play("Blink");	
	Peedy.Hide();			
	}
