$(document).ready(function() {

  var text = 'Enter your address here';

  /*$("input#nl_input").attr({value: text});
  $("input#nl_input").css({color: 'grey'});
  $("input#nl_input").focus(function() {
    if($(this).attr('value') == text) {
      $(this).attr({value: ''});
      $(this).css({color: 'black'});
    }
  });
  $("input#nl_input").blur(function() {
    if($(this).attr('value') == '' || $(this).attr('value') == undefined) {
      $(this).attr({value: text});
      $(this).css({color: 'grey'});
    }
  });*/

  $('ul.gallery li img').each(function() {
    var w = $(this).width();
    var h = $(this).height();

    if(w<h) { return; }

    var topmargin = (130-h)/2;
    $(this).css({marginTop: topmargin + 'px'});
  });

  $('input#nl_mod_name').focus();

});