/**
  * Design by andrej
  *	Html + CSS + JS with love by gondo
  * www.webdesigners.sk
  * 2009
  *
  */
  

/*
 *  check all input[type=text] elements,
 *  remember default value
 *  make onFocus, onBlur functions
 *  // make focus on first found input
 */
$(document).ready(function() {
    $("input[type=text]").focus(function() {
        if( this.defVal == null ) {
            this.defVal = $(this).val();
        }
        if( this.value == this.defVal ) {
            this.value = "";
        }
    });
    $("input[type=text]").blur(function() {
        if( this.value == "" ) {
            this.value = this.defVal;
        }
    });

    /* select first input box */
    if( $("input[type=text]")[0] ) {
        $("input[type=text]")[0].focus();
    }
});
