

function hideBox(boxName) {
	document.getElementById(boxName).style.display='none';
	
}
function showBox(boxName) {
	document.getElementById(boxName).style.display='block';
}
function switchBox( whichLayer ){  var elem, vis;  if( document.getElementById ) 
elem = document.getElementById( whichLayer );  else if( document.all )
elem = document.all[whichLayer];  else if( document.layers ) 
elem = document.layers[whichLayer];  vis = elem.style; 
if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';  vis.display = (vis.display==''||vis.display=='block')?'none':'block';}


function rewriteContentWithStyle (id, html, className) {
  var l = document[id];
  var cont = '';
  cont += '<span';
  cont += className ? ' class="' + className + '"' : '';
  cont += '>';
  cont += html;
  cont += '<vspan>';
  l.document.open();
  l.document.write(cont);
  l.document.close();
}
function init () {
  if (document.layers) {
    var l = document.anElement;
    l.onmouseover = function (evt) {
      rewriteContentWithStyle
(this.id, 'h2o', 'class2');
    }
    l.onmouseout = function (evt) {
      rewriteContentWithStyle
(this.id, 'h2o', 'class1');
    }
  }
}
init()