window.onload = function() {
  $("foto1").onclick = function() { obrefoto( '1', '300', '451' ); return false; }
  $("foto2").onclick = function() { obrefoto( '2', '450', '299' ); return false; }
  $("foto3").onclick = function() { obrefoto( '3', '450', '299' ); return false; }
  $("foto4").onclick = function() { obrefoto( '4', '450', '299' ); return false; }
  $("foto5").onclick = function() { obrefoto( '5', '450', '270' ); return false; }
  $("foto1").href = "#";
  $("foto2").href = "#";
  $("foto3").href = "#";
  $("foto4").href = "#";
  $("foto5").href = "#";
}

function $(e) {
  return document.getElementById(e);
}

function obrefoto(n, w, h) {
  window.open('/seu/foto_pop.asp?n=' + n,"", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=" + w + ", height=" + h);
}
