//Begin Poguri Talk Script

var random_text = new Array();

var number = 0;

random_text[number++] = "Did you know that there is a <strong>secret doorway</strong> in every dream that leads to Nou?"
random_text[number++] = "The Land of Nou is made entirely of a mystical substance called <strong>almatter</strong>."
random_text[number++] = "The <strong>City of Daywatch</strong> is the center of all activity - trade, craftsmanship, learning, and entertainment."
random_text[number++] = "The <strong>City of Nightwatch</strong>, also known as the City of White Nights, is one giant amusement park."
random_text[number++] = "<strong>Nouminals</strong> come in all shapes and sizes and fulfill a variety of functions throughout the land."
random_text[number++] = "The <strong>builders</strong> build, the <strong>traders</strong> trade, the <strong>keepers</strong> maintain the grounds, and the <strong>heralds</strong> serve as traveling storytellers and messengers."
random_text[number++] = "Every <strong>dreamer</strong> is matched up with a <strong>companion</strong> - a nouminal who serves as their guide to the Land of Nou."
random_text[number++] = "It is always daytime in <strong>Daywatch</strong> and always nighttime in <strong>Nightwatch</strong>."
random_text[number++] = "When dreamers cross into Nou they <strong>forget</strong> their lives in the waking world.<br /><br />And when they return, their memories of Nou are <strong>stored away</strong> until their next visit."
random_text[number++] = "The <strong>Sugar Plains</strong> are a wide expanse of rolling blue grass dotted with an assortment of colorful (and edible) flowers, giving it the appearance of a candy coating."
random_text[number++] = "The <strong>Dreamflight</strong> is a flock of flying sheep that soar through the skies of Nou, sometimes stopping to graze in the Mallow Marshes.<br /><br />With the right offering they might be convinced to give someone a ride..."
random_text[number++] = "The <strong>Solar Carnival</strong> is a massive celebration that takes place throughout the city of Daywatch, featuring all sorts of events, performers, and foods from around the world."
random_text[number++] = "<strong>Dreamsprings</strong> are portals that allow <strong>instant transportation</strong> from one location to another."
random_text[number++] = "<strong>Dreamflow</strong> is the energy of change that courses throughout the Land of Nou and <strong>enables almatter to transform</strong>.<br /><br />It can make things grow or shrink, turn wet from dry and hot from cold."
random_text[number++] = "The <strong>Builders Block</strong> is a district in Daywatch where many large-scale construction projects take place, and where I have my workshop."
random_text[number++] = "The <strong>Confectioners Corner</strong> is a district in Daywatch where they create all sorts of tasty treats like <strong>peanut-butter-pickle-pops</strong>.  Even the buildings are edible!"
random_text[number++] = "The <strong>Performance Plaza</strong> is the arts district of Daywatch, home to museums, theaters, comedy halls, concert arenas, and more..."
random_text[number++] = "The <strong>Wisdom Ward</strong> is the center of learning in Daywatch and home to the <strong>Great Library of Nou</strong>."
random_text[number++] = "The <strong>Hobby Harbor</strong> of Daywatch is an open fairgrounds where dreamers and nouminals engage in all sorts of activities, including <strong>Polyball</strong>, the official sport of the Land of Nou."
random_text[number++] = "The <strong>Traders Terrace</strong> is where dreamers can find an assortment of random goods.<br /><br />But since there is <strong>no currency</strong> in the Land of Nou, items are either traded or given away."
random_text[number++] = "The <strong>Sand Ocean</strong> is a desert that located on the opposite side of the world from Daywatch and Nightwatch.<br /><br />The sands emit a soft glow and are so fine that they are like liquid to the touch."
random_text[number++] = "The <strong>Mallow Marsh</strong> is a vast wetland with several lakes - large and small, shallow and deep.  It is best known for the <strong>cotton-white almatter clusters</strong> that spring up along the shores."
random_text[number++] = "<strong>Ambrosia Hills</strong> is a checkered colony of farms that specializes in crafting fruits, vegetables, and grains from raw almatter and shipping them throughout the land."
random_text[number++] = "The <strong>Mountains of Mim</strong> are a huge gathering of crystalline structures - from small clusters to massive spires - that together look like a range of mountains.<br /><br />The highest peak, known as <strong>the Monolith</strong>, has been carved out by unknown hands to form the <strong>Oracles Sanctuary</strong>."
random_text[number++] = "The <strong>Oracles</strong> are the holders of all the knowledge of Nou.  From the <strong>Mountains of Mim</strong>, they provide valuable information to those travelers resourceful enough to reach their sanctuary."
random_text[number++] = "<strong>Moe the Flying Whale</strong> is an enormous nouminal that swims throughout the skies of Nou."
random_text[number++] = "<strong>Nouminals</strong> are creatures of <strong>cloth and stitch</strong>, but every bit as alive as the animals from the waking world."
random_text[number++] = "There are at least <strong>a hundred nouminals</strong> for every Dreamer in the Land of Nou, but <strong>only one companion.</strong>"
random_text[number++] = "I can <strong>move each of my ears independently!</strong>  But I guess that's not very interesting, huh?"
random_text[number++] = "Although <strong>Nou</strong> is accessible through dreams, it is a <em>real</em> place, parallel to the <strong>Waking World</strong>."
random_text[number++] = "<strong>King Oswald</strong> rules over the City of Daywatch, while his sister <strong>Queen Sophie</strong> leads the City of Nightwatch."
random_text[number++] = "Special nouminals called <strong>guardians</strong> are posted all throughout the Land of Nou to make sure that everything is running <strong>safely and smoothly</strong>."

var random_number = Math.floor(Math.random() * number);

//document.write(random_text[random_number]);

var currentImage;

currentImage = 0;

imageArr = new Array();
imageArr[0] = '';
imageArr[1] = 'My name is <strong>Poguri</strong> and I&#39;ll be your guide.';
imageArr[2] = 'Here you can learn all about the dreamworld and its <strong>colorful cast of <a href="http://www.poguri.com/characters/">characters</strong></a>...';imageArr[3] = 'View some of the <strong>fantastic <a href="http://www.poguri.com/illustrations/">illustrations</strong></a> that have been created so far...';
imageArr[4] = 'Read a few <a href="http://www.poguri.com/chapters/"><strong>sample chapters</strong></a>...';
imageArr[5] = 'Or check the <a href="http://www.poguri.com/blog/"><strong>author&#39;s blog</strong></a> for updates on the novel&#39;s progress and other important developments.';
imageArr[6] = 'Try clicking the little <strong>black or white gears</strong> to change the <strong>website theme</strong>.';
imageArr[7] = 'I&#39;ll also be glad to share with you some <strong>random tidbits</strong> of information about the <strong>Land of Nou</strong>, so just keep clicking me if you want to learn more.';

//Repeat the above for all of your images.

var speechTimer;

function swapBubble()
{
 currentImage++;
  if(currentImage >= imageArr.length) 
  {
   var random_number = Math.floor(Math.random()*(random_text.length-1));
    document.getElementById("caption").innerHTML= random_text[random_number];
  
  
   currentImage = imageArr.length - 1;
  }else
  {
   document.getElementById("caption").innerHTML= imageArr[currentImage];
  }
 }
function hideBubble()
{
var random_number = Math.floor(Math.random()*(random_text.length-1));
document.getElementById("voiceBubble").style.visibility  = 'hidden';
}

function dismissBubble()
{
 speechTimer= setTimeout('hideBubble()',1000);
}

function showBubble()
{
clearTimeout(speechTimer);
document.getElementById("voiceBubble").style.visibility  = 'visible';

}
//End Script