function whatPage(){
if(document.all && LOC != ""){
  if(document.all[LOC].children[0].className == "TIERTWO"){
    document.all[LOC].children[0].className = "TIERTWO_ON"
    } else if(document.all[LOC].children[0].className == "TIERTWO_SUB") {
    document.all[LOC].children[0].className = "TIERTWO_SUB_ON"
    }
  }else{ }}

function cOn(td){
if(document.getElementById||(document.all && !(document.getElementById))){
  if(td.className == "TIERTWO"){
  }else{
    td.className = "TIERTWO_OVER"
  }}}

function cOut(td){
if(document.getElementById||(document.all && !(document.getElementById))){
  if(td.className == "TIERTWO"){
  }else{
    td.className = "TIERTWO_OFF"
  }}}
  
  
Pic = new Array();   
j = 0;
p = 0; 
preLoad = new Array();
  
 
  function disp_leftnav_img(unit)
  {
  // initialize variables
    root = '/customerService/images/leftnav/' + unit + '/';
    random_photonum = 0;
    // based on the unit, set path of the pictures

    switch (unit)
    {
        case 'ppatch':
        {
            
            Pic[0] = root + 'qa_kids_day.jpg';
            Pic[1] = root + 'overhead.jpg';
            Pic[2] = root + 'shed.jpg';
            Pic[3] = root + 'hp_veg.jpg';
            Pic[4] = root + 'hp_group.jpg';
            Pic[5] = root + 'hollypkyouth.jpg';
            Pic[6] = root + 'highpoint.jpg';  
            Pic[7] = root + 'whole_water.jpg';
            Pic[8] = root + 'queen_anne.jpg';
            break;  
        }   
        
        case 'ftlawtonhistoric':
        {
   
            Pic[0] = root + '1_nav.jpg';
            Pic[1] = root + '2_nav.jpg';
            Pic[2] = root + '3_nav.jpg';
            Pic[3] = root + '4_nav.jpg';
            Pic[4] = root + '5_nav.jpg';
            Pic[5] = root + '6_nav.jpg';
            Pic[6] = root + '7_nav.jpg';  
            Pic[7] = root + '8_nav.jpg';
            break;  
        } 
    }    
      p = Pic.length;  
      for (i = 0; i < p; i++)
      {
      preLoad[i] = new Image();
      preLoad[i].src = Pic[i];
      }
      // random number
      random_photonum = Math.round(Math.random()*p);     
    if(random_photonum == p)
    {
        random_photonum = 0;
     // assign random image to img element in nav lhs
     }
    document.images.leftnav_image.src = Pic[random_photonum];
  }


function rotate()
{
    if( j < p-1)
        {
              j = j + 1;
        }else
        {
              j = 0;
        }
                document.images.leftnav_image.src = preLoad[j].src;
                setTimeout('rotate()', 3000);
}     



 




