//  Mad Libs
//  Last updated:  2008-03-27 by James Alarie <jalarie@umich.edu>
//    http://spruce.flint.umich.edu/~jalarie/

        MadLib_Lines=new Array();                   // work area
        MadLib1=new Array(
          "A Love Story",
          "[@class=body1]",
          "Once upon a time there was a [adjective,beautiful] [noun,princess].  ",
          "The [=beautiful] [#1] fell in love with a [adjective,handsome] ",
          "[noun,prince].  ",
          "The [=beautiful] [=princess] married the [=handsome] ",
          "[=prince] and they lived [(happily,poorly,richly)] for [time span].",
          "[*<div class='center'>The End<\/div>]"
        );
        MadLib2=new Array(
          "New Rules",
          "[@class=body1]",
          "[@width=750,height=500]",
          "Once upon a time, ",
          "[(in a land far away,at Disney World,out in the wilderness),where], ",
          " there lived a ",
          "[adjective,fadj], young lady named [girl's name,fname] ",
          "and a [adjective,madj] lad named [boy's name,mname].  ",
          "[=fname] and [=mname] were playing ",
          "[a game,gname] one day when a ",
          "[adjective,aadj] [animal type,atype] named [animal name,aname] ",
          "attacked them and stole the [color,color1] game pieces.  ",
          "The [=madj] [=mname] immediately went after [=aadj] [=aname] ",
          "attempting to retrieve the [=color1] game pieces while ",
          "[=fname] the [=fadj] rewrote the game rules to allow them to ",
          "play [=gname] with only [color,color2] game pieces.  ",
          "",
          "Unfortunately, [=aadj] [=aname] ate [=mname] the [=madj] for ",
          "dinner, so [=fname] could only play [=gname] with [=aname] from ",
          "that day forward.  [=aname] had spent all of his time being ",
          "[=aadj] instead of studying reading and was unable to read the ",
          "new game rules that [=fadj] [=fname] had written, so [=fname] ",
          "always won [=where]."
        );
        MadLib3=new Array(
          "Three Houses",
          "[@class=body1]",
          "[@width=750,height=500]",
          "Once upon a time there were three little ",
          "[good animal,GoodAnimal]s who wanted to build houses and a ",
          "big bad [bad animal,BadAnimal] who wanted the land to construct ",
          "a shopping mall.  The first little [=GoodAnimal] built his ",
          "house of [building material,BMat1] and the second built his of ",
          "[another material,BMat2] and the third built his house out of ",
          "[material #3,BMat3].  The big bad [=BadAnimal] didn't have a ",
          "house, so he became grouchy whenever it rained.  ",
          "",
          "The big bad [=BadAnimal] came to the first little [=GoodAnimal]'s ",
          "house of [=BMat1] and said, \"Little [=GoodAnimal], little ",
          "[=GoodAnimal], let me come in 'cause I'm out in the rain and I'm ",
          "soaked to my skin.\"  But the first little [=GoodAnimal] said, ",
          "\"Get lost; I don't shop at Wal-Mart!\"  Then the big bad ",
          "[=BadAnimal] huffed and puffed and blew down the house of ",
          "[=BMat1].  ",
          "",
          "The big bad [=BadAnimal] then went to the [=BMat2] house made by ",
          "the second little [=GoodAnimal] and cried, \"Little [=GoodAnimal], ",
          "little [=GoodAnimal], let me come in 'cause I'm out in the rain ",
          "and I'm soaked to my skin.\"  But this little [=GoodAnimal] said, ",
          "\"Are you nuts?!  I don't shop at Wal-Mart!\"  Then the big bad ",
          "[=BadAnimal] huffed and puffed and blew down the house of ",
          "[=BMat2].  ",
          "",
          "Finally, the big bad [=BadAnimal] came to the last little ",
          "[=GoodAnimal]'s house of [=BMat3].  He called out, \"Little ",
          "[=GoodAnimal], little [=GoodAnimal], let me come in 'cause I'm ",
          "out in the rain and I'm soaked to my skin.\"  But the third ",
          "little [=GoodAnimal] said, \"Beat it!  I don't shop at ",
          "Wal-Mart.\"  The big bad [=BadAnimal] was all out of breath from ",
          "blowing down the first two houses, so he took out some ",
          "[explosive,TNT] and blasted the [=BMat3] house to bits.  The ",
          "three little [=GoodAnimal]s came down as blobs of ",
          "[a salad,Blob] all over the place.  ",
          "",
          "The big bad [=BadAnimal] said, \"I never shop at Wal-Mart either, ",
          "I'm building a shopping mall and would NEVER rent them a spot.  ",
          "Then the three little [=GoodAnimal]s and the big bad ",
          "[=BadAnimal] all lived happily together in the back of the ",
          "mall pet store.  "
        );
        MadLibs=3;
