/* tt_address - jquery */
function regGemeindenAccordion() {
	$('.tx-ttaddress-pi1 .vcard .title').click(function() {
		$(this).next().toggle('slow');
		return false;
	}).next().hide();
}

function regElternImNetzAccordion() {
	$('.tx-ttaddress-pi1 .vcard .title').click(function() {
		$(this).next().toggle('slow');
		return false;
	}).next().hide();
}

/* tt_news - lightbox */
$(document).ready(function(){

  $('.news-latest-headline a').each(function(){
	$(this).attr('href', this.href + '?type=44&width=700&height=500');
	$(this).addClass("thickbox");
  });
  
  $('.news-latest-morelink a').each(function(){
	$(this).attr('href', this.href + '?type=44&width=700&height=500');
	$(this).addClass("thickbox");
  });  
});


/* JS UHR */
function uhr() {
	var hour , min , sec;
	var aktuell = new Date();

	hour= aktuell.getHours ();

	min= aktuell.getMinutes ();
	min = String(min);
	if (min.length ==1)
	{
		min = "0"+min;
	}

	sec= aktuell.getSeconds ();
	sec = String(sec);
	if (sec.length ==1)
	{
	sec = "0"+sec;
	}
	document.getElementById("uhrzeit").innerHTML =hour +":"+ min+":"+sec;
	window.setTimeout ('uhr ()',1000);
}

window.onload = uhr;





