function popupPic(pic, x, y) {
  window.open(pic + '.htm',pic,'left=20,top=200,width=' + x + ',height=' + y + ',resizable=no,scrollbars=no,status=no,menubar=no,location=no,toolbar=0');
}

function setOpacity(id, value) {
	if (document.all) {
		document.all.tags("img")[id].style.opacity = value/10;
		document.all.tags("img")[id].style.filter = 'alpha(opacity=' + value*10 + ')';
	}	else {
		document.getElementById(id).style.opacity = value/10;
		document.getElementById(id).style.filter = 'alpha(opacity=' + value*10 + ')';
	}
}

function showLayer(layer) {
  var x = document.body.offsetWidth;
  if (x < 1150) x = 1150;
  
  if (document.layers) {
    document.layers[layer].visibility = "show";
  } else if (document.all) {
    document.all.tags("div")[layer].style.visibility = "visible";
    document.all.tags("div")[layer].style.left = x/2 + 400;
  } else if (document.getElementById) {
    document.getElementById(layer).style.visibility = "visible";
  }
}

