﻿function showLayer( whichLayer )
{
  var elem;
  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];
  elem.style.display = "block";
}

function hideLayer( whichLayer )
{
  var elem;
  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];
  elem.style.display = "none";
}	

function changeTab( targetTab )
{
	var i=0;
	for (i=1; i<=subtabs;i++)
	{
		if (i==targetTab)
		{
			showLayer(prefix+"_text_"+i);
			changeImages("DetailTab"+i,"images/"+prefix+"_DetailTab"+i+"_sel.png");
			window["tab"+i+"status"]="_sel";
		} else {
			hideLayer(prefix+"_text_"+i);
			changeImages("DetailTab"+i,"images/"+prefix+"_DetailTab"+i+".png");
			window["tab"+i+"status"]="";
		}
	}
}

		
