var logo;
var oldScroll = -10;
var oldHeight = 0;
var oldWidth = 0;
var browser = navigator.appVersion;
var macnoscroll = 0;

function init() {
  logo = new getObj('logo');
  movemenu();
}

function movemenu() {

  if (window.innerHeight) {  //Netscape Version
	  winHeight = window.innerHeight;
		winWidth  = document.width; 
    posScroll = window.pageYOffset;
  }
  else if (document.body) {  //IE Version
	  winHeight = document.body.clientHeight;
		winWidth  = document.body.clientWidth;
    posScroll = document.body.scrollTop;
  }
	
	if(winHeight < 420){
	  winHeight = 420;
	}	
	
    logo.style.top  = posScroll + winHeight - 40;
 
	oldHeight = winHeight;
	oldWidth  = winWidth;
    oldScroll = posScroll;

  temp = setTimeout('movemenu()',1000);
  }

function getObj(name) {
  if (document.getElementById) {
        this.obj = document.getElementById(name);
        this.style = document.getElementById(name).style;
  }
  else if (document.all) {
        this.obj = document.all[name];
        this.style = document.all[name].style;
  }
  else if (document.layers) {
        this.obj = document.layers[name];
        this.style = document.layers[name];
  }
}

//function to change the images on the left
var lastDiv = 0;

function switchDiv(newDiv) {
	
	divName = "image_"+lastDiv;
	
	hideDiv = new getObj(divName);
	hideDiv.style.visibility = "hidden";
	
	divName = "image_"+newDiv;
	
	showDiv = new getObj(divName);
	showDiv.style.visibility = "visible";
	
	lastDiv = newDiv;	
}