// Set browser-determined global variables
var NN      = (document.layers ? true : false);
var hideName = (NN ? 'hide' : 'hidden');
var showName = (NN ? 'show' : 'visible');
var zIdx    = -1;
function genLayer(sName, sLeft, sTop, sWdh, sHgt, sVis, copy) {
  if (NN) {
    document.writeln("<LAYER onmouseover=\"javascript: stopTimeout();\" onmouseout=\"javascript: hideSlide('lPhugia');\" NAME=\"" + sName + "\" LEFT=" + sLeft + ' TOP=' + sTop + 
    ' WIDTH=' + sWdh + ' HEIGHT=' + sHgt + ' VISIBILITY="' + hideName + '"' + 
    ' z-Index=' + zIdx + '>' + copy + '</LAYER>');
    }
  else {
    document.writeln("<DIV onmouseover=\"javascript: stopTimeout();\" onmouseout=\"javascript: hideSlide('lPhugia');\" ID=\"" + sName + "\" STYLE=\"position:absolute; overflow:none; left:" + 
      sLeft + "px; top:" + sTop + "px; width:" + sWdh + 'px; height:' + sHgt + 'px;' + 
      ' visibility:' + hideName + '; z-Index=' + (++zIdx) + '">' + 
      copy + '</DIV>'
      );
    }
  }

// Define a function to hide layers
function hideSlide(name) {
  refSlide(name).visibility = hideName;
  }

// Define a function to reveal layers
function showSlide(name) {
  refSlide(name).visibility = showName;
  }

// Define a central function to reference layers
function refSlide(name) {
  if (NN) { return document.layers[name]; }
  else { return eval('document.all.' + name + '.style'); }
  }

var ss = 0;
var tmr;
function stopTimeout()
{
	ss = 0;
	showSlide('lPhugia');
	clearTimeout(tmr);
}
function startTimeout(){
	ss += 1;
	if(ss >= 4){
		ss = 0;
		hideSlide('lPhugia');
		clearTimeout(tmr);
	}
	tmr = setTimeout('startTimeout()', 1000);
}

