var currentSection;

function initPopupText()
{
   var popupDivs = document.getElementById("popUpContent").getElementsByTagName("div");
   for(var a = 0, len = popupDivs.length; a < len; a++)
   {
      popupDivs[a].style.display = "none";
   }
   
   var flowerPetals = document.getElementById("flowerMenu").getElementsByTagName("a");
   for(var a = 0, len = flowerPetals.length; a < len; a++)
   {
      flowerPetals[a].onmouseover = function()
      {
         showContent(this.id);
      }
   }
   
   document.getElementById("flowerCenter").innerHTML = "Begin Anywhere";
   
   currentSection = "intro";
   document.getElementById(currentSection).style.display = "block";
}

function showContent(thisID)
{
   thisID = thisID.replace(/petal/,"section");
   if(currentSection != thisID)
   {
      document.getElementById(currentSection).style.display = "none";
      document.getElementById(thisID).style.display = "block";
      currentSection = thisID;
   }
}
