$(document).ready(function(){
  
  styleTheLast();
  prepareInputFields();
  
});

function styleTheLast() {
  $('ul li:last-child').addClass('last-child');
}

function prepareInputFields() {
  $('input[type=text]').each(function(){
    
    var startText = $(this).val();
    
    $(this).bind('focus', function(){
      
      startText = $(this).val();
      
      $(this).val('');
    });
    
    $(this).bind('blur', function(){
      if($(this).val() == '') {
        $(this).val( startText );
      }
    });
    
  });
}

function popUp (place) {
	if (place != "" && place != null) {
		window.open(place);
	}
}