//<script language='JavaScript'>
var ns4 = document.layers
var ie4 = document.all
var ns6 = document.getElementById&&!document.all
var objBottomNav;
var intBottomNavTop;
var intBottomNavLeft;
var intStartTop;
var intStartLeft;
var timTimer = null;

function setBottomNav () {
   if (timTimer != null) {
      clearInterval(timTimer);
      timTimer = null;
      }
   //end if 
      
   if (ie4 || ns4 || ns6) {
      if(ns4){
         objBottomNav = document.layers.bottomnav;
         intStartTop  = intBottomNavTop = window.innerHeight - 20;
         }
      if(ie4){
         objBottomNav = document.all.bottomnav.style;
         intStartTop  = intBottomNavTop = document.body.clientHeight - 20;
         }
      if(ns6){
         objBottomNav = document.getElementById("bottomnav").style;
         intStartTop  = intBottomNavTop = window.innerHeight - 20;
         }
      objBottomNav.top  = intBottomNavTop;
      objBottomNav.left = intBottomNavLeft = intStartLeft = 0;
      
      timTimer = setInterval("el_move()",10)
      }
   //endif      
   }
//end function   

function el_move(){
   if(ie4){
      ydiff = intStartTop  - document.body.scrollTop; 
      xdiff = intStartLeft - document.body.scrollLeft; 
      }
   else {
      ydiff = intStartTop  - pageYOffset; 
      xdiff = intStartLeft - pageXOffset; 
      }

   if(ydiff != 0){
      objBottomNav.top = (intStartTop - ydiff) + intBottomNavTop;
      }
      
   if(xdiff != 0){
      objBottomNav.left = (intStartLeft - xdiff) + intBottomNavLeft;
      }
   }

if ((ie4 || ns4 || ns6)) {
   fnOtherOnLoad   = (window.onload)   ? window.onload   : new Function();
   fnOtherOnResize = (window.onresize) ? window.onresize : new Function();

   window.onload   = function () {fnOtherOnLoad(); setBottomNav();}
   window.onresize = function () {fnOtherOnResize(); setBottomNav();};
   }
//end if      
//</script>
