// remap jQuery to $
(function($){})(window.jQuery);


/* trigger when page is ready */
$(document).ready(function (){

	var input = document.getElementsByTagName('input');
  for (var a=input.length-1; a >= 0; a--) {
    if (input[a].type != 'text') { continue; } // skips non-text inputs
    input[a].mask = input[a].value;
    input[a].onfocus = function() {
      if (this.value == this.mask) { this.value = ''; }
    };
    input[a].onblur = function() {
      if (this.value == '') { this.value = this.mask; }
    };
  }
  
  $('.top-btn').click(function(){
		$('html, body').animate({scrollTop:0}, 'slow');	
		return false;
	});
	
});


/* optional triggers

$(window).load(function() {
	
});

$(window).resize(function() {
	
});

*/
