var isHome = true; 
 
 function setSurveyBoxHeight(newheight) {
   var dom=document.getElementById

   mySurveyBox =(dom)?document.getElementById("surveyBox") : document.all.surveyBox;
   mySurveyBox.style.height = newheight + "px";
 }
 
  function conditionMP3(location, audioCookie, baseURL) {


   var myMP3 = getPageAudioMovieObject();
   if (audioCookie == "" || audioCookie == null) {
     audioCookie = "1";
   }

   if (navigator.appName.indexOf("Microsoft Internet")!=-1) {
     myMP3.SetVariable("audio", audioCookie);
     myMP3.SetVariable("pgURL", location);
     myMP3.SetVariable("baseURL", baseURL);
     myMP3.SetVariable("base", "./");
     
     myMP3.Rewind();

     myMP3.Play();
   }

 }
 
 function getExpandFrame(iframeName) {
  // set up variables
 
  var iframeWin = window.frames[iframeName];
  var iframeEl  = document.getElementById? document.getElementById(iframeName): document.all? document.all[iframeName]: null;

  // test to see if iframe exists
  if ( iframeEl && iframeWin ) {
    var expandFrame = iframeWin.expandFrame;
    if (expandFrame) {
      return expandFrame;
    } else {
      return '_blank';
    }
  } else {
    return '_blank';
  }
} 

function viewPollResults(iframeName) {
  var iframeWin = window.frames[iframeName];
  var iframeEl  = document.getElementById? document.getElementById(iframeName): document.all? document.all[iframeName]: null;

  // test to see if iframe exists
  if ( iframeEl && iframeWin ) {
    iframeWin.theForm.cmd.value = "results";
    iframeWin.theForm.submit();
  }
}

  function openContent() {
    var urlToOpen = contentIFrame.src;
    return urlToOpen;
  }
  
function getPageAudioMovieObject() {
   if (navigator.appName.indexOf("Microsoft Internet")!=-1) {
     return window.miniPlayer;
   } else {
     return window.document.miniPlayer; 
   }     
}
    
