/*
 * jQuery JavaScript Userfunction v1.0.0
 * http://typo4you.de/
 *
 * Copyright (c) 2009 Bernd Singer
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2010-05-26 12:36:25
 */

$(document).ready(function(){ 
	$(document).pngFix();
	var lh = $("#left").height();
	var ch = $("#contenttext").height();
	var rh = $("#right").height();
	
	$("#left").height(Math.max(lh,ch,rh)+60);
	
//Zäherformular
	$("#tx-powermail-pi1_fieldset_2").css({'display':'none'});
	$("#tx-powermail-pi1_fieldset_1 :button").click(function() {
		$("#tx-powermail-pi1_fieldset_1").fadeOut('slow', function() {
	    		$("#tx-powermail-pi1_fieldset_2").fadeIn('slow');
		});
	});
	$("#tx-powermail-pi1_fieldset_2 :button").click(function() {
		$("#tx-powermail-pi1_fieldset_2").fadeOut('slow', function() {
	    		$("#tx-powermail-pi1_fieldset_1").fadeIn('slow');
		});
	});
	$("#tx-powermail-pi1_fieldset_2 .opt").parent().css({'display':'none'});
	$("#powermaildiv_uid15").css({'display':'block','cursor':'pointer'});	
	$("#powermaildiv_uid15").click(function() {
		$("#tx-powermail-pi1_fieldset_2 .opt").parent().fadeIn('slow');
		$("#powermaildiv_uid15").hide();
	});
	
//Datepicker
	$.datepicker.regional['de'] = {clearText: 'löschen', clearStatus: 'aktuelles Datum löschen',
	  closeText: 'schließen', closeStatus: 'ohne Änderungen schließen',
	  prevText: '&#x3c;zurück', prevStatus: 'letzten Monat zeigen',
	  nextText: 'Vor&#x3e;', nextStatus: 'nächsten Monat zeigen',
	  currentText: 'heute', currentStatus: '',
	  monthNames: ['Januar','Februar','März','April','Mai','Juni',
	  'Juli','August','September','Oktober','November','Dezember'],
	  monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
	  'Jul','Aug','Sep','Okt','Nov','Dez'],
	  monthStatus: 'anderen Monat anzeigen', yearStatus: 'anderes Jahr anzeigen',
	  weekHeader: 'Wo', weekStatus: 'Woche des Monats',
	  dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
	  dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
	  dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
	  dayStatus: 'Setze DD als ersten Wochentag', dateStatus: 'Wähle D, M d',
	  dateFormat: 'dd.mm.yy', firstDay: 1, 
	  initStatus: 'Wähle ein Datum', isRTL: false};
	$.datepicker.setDefaults($.datepicker.regional['de']);
	$(".datepicker").datepicker();
	
});

