$(document).ready(function() {


  /**
   * die Startwerte von focusEmpty Feldern ermitteln
  */	

  focusEmpty_Fields = Array();

  $('input.focusEmpty').each(function() {
  	focusEmpty_Fields[$(this).attr('name')] = $(this).val();
  });


  /**
   * onFocus/onBlur Event für focusEmpty Felder
  */
  $('input.focusEmpty').focus(function() 
  {
  	if ($(this).val() == focusEmpty_Fields[$(this).attr('name')]) {
  		$(this).val('');
		$(this).addClass('focusEmptyChanged');
  	}
  }).blur(function()
  {
  	if (($(this).val() == '') || ($(this).val() == focusEmpty_Fields[$(this).attr('name')])){
  	  $(this).val(focusEmpty_Fields[$(this).attr('name')]);
	  $(this).removeClass('focusEmptyChanged');
  	}
  });

  $('input.textinput').focus(function() {
    $(this).addClass('textinputActive');
  }).blur(function() {
    $(this).removeClass('textinputActive');
  });


  Shadowbox.init();

  // Akkordion
  $('.accordion').accordion();

});
