var curFeature = "";
var curPage = "default";
var curVehicle = "";

//start of script for liberty to move across the screen
var nn = false;
var ie = false;
var coll = "";
var sty = "";

if (document.layers){
  nn = true;
}else{
  ie = true;
  coll = ".all";
  sty = ".style";
}

function libertyMove(){
  if (nn){
    screenW = window.innerWidth;
    screenH = window.innerHeight;
  }else{
    screenW = parseInt(document.body.clientWidth);
    screenH = parseInt(document.body.clientHeight);
  }
  veh = eval("document" + coll + ".vehlayer" + sty);
    drive();
}

function drive(){
  if (parseInt(veh.left) < -55) {
    veh.left = 590;
    veh.top = -55;
    setTimeout("drive()", 10000);
    }else{
    veh.left = parseInt(veh.left) - 1;
    veh.top = parseInt(veh.top) + 1;
    setTimeout("drive()", 1);
  }
  
}
// init navigation
function initPage() {
    libertyMove();
}
