var currentLayer = 1

function showIt(ln,lv) {
  for ( i=1; i<=4; i++ ) {
	if ( i != lv ) hideLayer(ln+i)
  }
  eval("showLayer('"+ln+lv+"')")
  eval("document.homepic.src='images/homepic"+lv+".jpg'")
}

function restore() {
  for ( i=1; i<=4; i++ ) {
  	if ( i != currentLayer ) hideLayer('c'+i)
    else showLayer('c'+i)
  }
}

function showLayer(layerName) {
 	eval(layerRef+layerName+styleSwitch+'.visibility="visible"');
}

function hideLayer(layerName) {
	eval(layerRef+layerName+styleSwitch+'.visibility="hidden"');
}   

ns=0;
layerRef="document.all['"
styleSwitch="'].style"
if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)<5) {
	ns=1;
	layerRef="document.layers['"
  	styleSwitch="']"
} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)>=5) {
	ns=1;
	layerRef="document.getElementById('"
    styleSwitch="').style"
}
