var currentDiv = '';
function initDiv(startDiv)
{
	showLayer(startDiv);
	currentDiv = startDiv;	
}
function viewDiv(toShow)
{
	if(currentDiv != toShow) 
	{
	hideLayer(currentDiv);
	showLayer(toShow);
	currentDiv = toShow;
	}
}
function showLayer(whichLayer)
{
  var elem, vis;
  if(document.getElementById) // this is the way the standards work
    elem = document.getElementById(whichLayer);
  else if(document.all) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if(document.layers) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  vis.display = 'block';
}
function hideLayer(whichLayer)
{
  var elem, vis;
  if(document.getElementById) // this is the way the standards work
    elem = document.getElementById(whichLayer);
  else if(document.all) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if(document.layers) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  vis.display = 'none';
}
var arImages = new Array();
function loadImages() {
 var temp = loadImages.arguments; 
 for(x=0; x < temp.length; x++) {
  arImages[x]=new Image();
  arImages[x].src=loadImages.arguments[x];
 }
}