$(document).ready(function(){ 
    // Reisehinweise-Ticker
                          
		// Toggle Elemente
		$(".toggleContainer").find("h2").each(function (i) {
			if ($(this).parent().find(".toggleContent").is(":visible")) {
				$(this).addClass("active");
			}
		});																									
		
    $(".toggleContainer").find("h2").click(function () {																	
      if ($(this).parent().find(".toggleContent").is(":hidden")) {
        $(this).parent().find(".toggleContent").slideDown("slow");
        $(this).parent().addClass("active");
				$(this).addClass("active");
      } else {
        $(this).parent().find(".toggleContent").slideUp("slow");
        $(this).parent().removeClass("active");
				$(this).removeClass("active");
      }
      return false;
    });

	// Suchfeld Hotelsuche
	$('li#suche').find('input').focus(function(){
	  $(this).val('');
	});
	
	$('li#suche').find('input').blur(function(){
	  var val = $(this).val();
	  if(val === '')
		  $(this).val('Hotelsuche');
	});
	
	//Footernavigation
	$(".bottomNav").find("li:last").addClass("last");

	$('img[@src$=.png], #MainContent .overview a.redArrow, a.redArrow, a.pagingArrow img, #LeftCol .dynamicGreyContainer .top, #LeftCol .dynamicGreyContainer .bottom, #NewsletterLayer img, #NewsletterLayer .content, #HotelLayer, #Results table.regions tbody tr td.price img, ul.fourColumnLinkList li,  #Results table.hotelResults tbody tr td.last img, #Footer .middle #Service ul li a, #NewsletterLayer .png, .button, #NavBody li li, .sitemapContainer .halfCol h3 a, div.naviTeaserTop,  div.mzFormTop, div.mzFormContent, div.mzFormBottom').ifixpng();
}); 




