var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);

var
 ready = 0;

var curr_class,
    curr_menu_class;
	
function getRef(id)
{
 if (isDOM) return document.getElementById(id);
 if (isIE4) return document.all[id];
 if (isNS4) return document.layers[id];
}

function getSty(id)
{
 return (isNS4 ? getRef(id) : getRef(id).style);
} 

function set_div(d_name)

{

if (ready==0)
  return;
var the_class;
the_class = getSty(d_name);
the_class.visibility = 'visible';
if ((curr_class) && (the_class!=curr_class))
  curr_class.visibility = 'hidden';
if (curr_menu_class)
  curr_menu_class.visibility = 'hidden';
  
curr_class = the_class;
}

function hide_div(d_name)
{
var the_class;
the_class = getSty(d_name);
the_class.visibility = 'hidden';
}

function patch_on_load()

{

if (!(document.all))
  {
  ready=1;
  set_div('firstdiv');
  return;
  }
var the_class;
the_class = getSty('maindiv');
the_class.position = 'absolute';
ready=1;
set_div('firstdiv');

}



