// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
// $(document).ready(function(){
  // Hier code einsetzen, der direkt nach laden der Seite ausgeführt werden soll
  //alert("hello World")
// })

$(function() {
  $(".faq_content").hide();
  $(".faq_content_inner").hide();
  $("a.faq").click(function(){
    $(".faq_content_inner").hide();
    $('.faq_content').hide();
    $(this).next().show();
  })
});
$(function() {
  $(".faq_content_inner").hide();
  $("a.faq_inner").click(function(){
    $('.faq_content_inner').hide();
    $(this).next().show();
  })
});
$(function() {
  $("DIV#top_search > form").hide();
  $("#search_tabs a").addClass("inactive").removeClass("active")
  $("#link_pauschalreisen_form").addClass("active").removeClass("inactive")
  $("form#pauschalreisen_form").show();
  $("a#link_pauschalreisen_form").click(function(){
    $("DIV#top_search > form").hide();
    $("form#pauschalreisen_form").show();
    $("#search_tabs a").addClass("inactive").removeClass("active")
    $(this).blur().addClass("active").removeClass("inactive")
  })
  $("a#link_lastminute_form").click(function(){
    $("DIV#top_search > form").hide();
    $("form#lastminute_form").show();
    $("#search_tabs a").addClass("inactive").removeClass("active")
    $(this).blur().addClass("active").removeClass("inactive")
  })
  $("a#link_hotel_form").click(function(){
    $("DIV#top_search > form").hide();
    $("form#hotel_form").show();
    $("#search_tabs a").addClass("inactive").removeClass("active")
    $(this).blur().addClass("active").removeClass("inactive")
  })
});
$(document).ready(function(){
  // Bilderwechsel bei Ross / Frisch / Bartholme
  $(function() {
    $("#company_img_small_1, #company_img_small_2").click(function(){
      var now = new Date().getTime();
      var tmp_self = $(this).attr("src");
      var tmp_big = $("#company_img_big").attr("src");
      var new_big = tmp_self.replace(/_tn.jpg(.*)$/, ".jpg?"+ now);
      var new_self = tmp_big.replace(/.jpg(.*)$/, "_tn.jpg?"+ now);
      var tmp_self = $(this).attr("src", new_self);
      var tmp_big = $("#company_img_big").attr("src",new_big);
    }); // click()
  }); // function()
}); // reday()
