<!--  hide this script tag's contents from old browsers
var button_color = "background-color: rgb(255,245,217)"
var mylocation = ""
var hint1 = ""
var hint2 = ""
var solution = ""
var problem = ""
var chapter = ""
var chapter_index = ""
var index = ""
var thelength = ""
var ending = ""
var beginning = ""
var chapter_button_name = ""
var problem_number = ""
var type=""
var i = 0
mylocation = window.location.href
thelength = mylocation.length
i = mylocation.lastIndexOf("/")
mylocation = mylocation.substring(i+1,thelength)
i = mylocation.lastIndexOf(".")
thelength = mylocation.length
ending = mylocation.substring(i,thelength)
beginning = mylocation.substring(0,i)
if (beginning.substring(i-2,i)=="h1")
  {beginning=mylocation.substring(0,i-2);
   type=" Hint 1";}
   else
      if (beginning.substring(i-2,i)=="h2")
        {beginning=mylocation.substring(0,i-2);
         type=" Hint 2";}
         else
            if (beginning.substring(i-1,i)=="s")
              {beginning=mylocation.substring(0,i-1);
               type=" Solution";}
i = beginning.lastIndexOf("p")
problem_number = beginning.substring(i+1,beginning.length)
problem = beginning + ending
solution = beginning + "s" + ending
hint1 = beginning + "h1" + ending
hint2 = beginning + "h2" + ending
chapter = problem.substring(1,3)
chapter_index = "../../ch" + chapter + ending
index = "../../../../home.htm"
chapter = (problem.substring(1,2)=="0")?problem.substring(2,3):chapter
// done hiding from old browsers -->
