/**
 * used to Show the passed in Div element and hide the rest of the tout div elements
 * @param {whichDiv} which div element to show
*/
function showToutDiv(whichDiv)
{
   hideToutDivs();
   var theToutContent = getInnerHTML(whichDiv);
   setInnerHTML("midPage", theToutContent)
   //var AdNode = getNodeRef("midPage");
   /*if (theToutNode.style)
   {
      // set where we want it to show up
      theToutNode.style.left =  getLeft("midPage") + "px";
      theToutNode.style.top =   getTop("midPage") + "px";      
      theToutNode.style.display = "block";
      theToutNode.style.overflow = "auto";
      AdNode.style.visibility="hidden";
      // now show it
      theToutNode.style.visibility="visible";
   }*/
   
}

/**
 * used to hide all of the tout divs in the page
 * @param {whichDiv} which div element to show
*/
function hideToutDivs()
{
   var divList = document.getElementsByTagName('div');
   var i = divList.length; while( i-- ) 
   {
      //if( divList[i].id.indexOf('freePick') === 0 )
      if(divList[i].className == 'freePick')
      {
         divList[i].style.display = "none";
         divList[i].style.visibility="hidden";
      }
   }
}