var DOMAIN_FLVS="http://www.privatstrip.tv/flvs/";

  $(document).ready(function(){

    $("div.cam_box").hover(
      function () {
        $(this).addClass("cam_box_active"); 
      }, 
      function () {
        $(this).removeClass("cam_box_active");
      }
    );
    
    $("div.ama_box").hover(
      function () {
        $(this).addClass("ama_box_active"); 
      }, 
      function () {
        $(this).removeClass("ama_box_active");
      }
    );    
    
    $("a.link_name").hover(
      function () {
        $(this).addClass("link_name_active"); 
      }, 
      function () {
        $(this).removeClass("link_name_active");
      }
    );    
    
    
      $("div#top_video_play a, div#top_video_play img").click(
      function(event) {
      event.preventDefault();
         playTrailer("trailer/16_1.flv", 'top_video_play', '290', '228');
      }
    );      
    
      $("div#liveshows a").click(
      function(event) {
      event.preventDefault();
      var WelcheShow=str_replace("#", "", $(this).attr("href"));
      
      
               $.ajax({
               //  type: "GET",
                 url: "ajax/top/"+WelcheShow+".html",
             //    data: "",
             //    dataType: "html",
                 success: function(Content){
                    $("div#liveshow_infos").html(Content);
                 }
               });         
      
          $("div#liveshow_infos").hide();
          $("div#liveshow_infos").fadeIn("slow");
          $("div#top_infos_box").hide();
      }
    );  
    
    
    $(".textfelder").focus(
      function () {
        $(this).addClass("textfelder_focus"); 
      }
    );    
    $(".textfelder").blur(
      function () {
        $(this).removeClass("textfelder_focus");
      }
    );       
    
    $("div.payment_box").click(
      function () {
        $(this).find("input").attr("checked", "checked"); 
        $("div.payment_box").removeClass("payment_box_aktiv");
        $(this).addClass("payment_box_aktiv"); 
      }
    );   
    
    $("div.payment_box").hover(
      function () {
        $(this).addClass("payment_box_hover"); 
      }, 
      function () {
        $(this).removeClass("payment_box_hover");
      }
    );     
    
    
    $("input.payment_button").hover(
      function () {
        $(this).attr("src", str_replace(".gif", "-hover.gif", $(this).attr("src"))); 
      }, 
      function () {
        $(this).attr("src", str_replace("-hover.gif", ".gif", $(this).attr("src"))); 
      }
    );   
    
         
    

});

    function liveshow_schliessen()
    {
     $(document).ready(function(){    
          $("div#liveshow_infos").hide();
          $("div#top_infos_box").fadeIn("slow");
     });          
    }
    
    
  function anmelden_zum_anschauen()
  {
     $(document).ready(function(){
       $("div#anmelden_zum_anschauen").hide();
       $("div#anmelden_zum_anschauen").fadeIn("slow");
     });
  }    
  
  function hide_animation()
  {
     $(document).ready(function(){
       $("div#flash_animation_overlay_swf").fadeOut("slow");
       $("div#flash_animation_overlay").fadeOut("slow");
       $("div#flash_animation_overlay_msg").fadeIn("slow");
       
       window.setTimeout("overlay_msg_schliessen()", 3000);
     });  
  }      
  
  $(document).ready(function(){
    $("div#flash_animation_overlay_msg").click(
      function () {
        $("div#flash_animation_overlay_msg").fadeOut("slow");
      }
    );  
  });  
  
  function overlay_msg_schliessen()
  {
     $(document).ready(function(){
       $("div#flash_animation_overlay_msg").fadeOut("slow");
     });  
  }     

function str_replace(search, replace, subject) {
    return subject.split(search).join(replace);
}       
