
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
gecko= (document.getElementById)? true:false
ie4=!(ns4 || gecko) || ie4

function show(id) {
	if (ns4) document.layers[id].visibility = "show"
	else if (ie4) document.all[id].style.visibility = "visible"
	else if (gecko) document.getElementById(id).style.visibility = "visible"
}

function hide(id) {
	if (ns4) document.layers[id].visibility = "hide"
	else if (ie4) document.all[id].style.visibility = "hidden"
	else if (gecko) document.getElementById(id).style.visibility = "hidden"
}

function hatter(id,szin) {
	if (ns4) document.layers[id].backgroundColor = szin
	else if (ie4) document.all[id].style.backgroundColor = szin
	else if (gecko) document.getElementById(id).style.backgroundColor = szin
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

