      $(document).ready(function(){
        
        var rychlost = 200;
        $(".button_top .div_btn_normal").hover(
          function () {
            $(this).stop().animate({opacity: '0.0'}, rychlost);      
          }, 
          function () {
            $(this).stop().animate({opacity: '1.0'}, rychlost*3);
        });   
        $(".div_btn_normal_left").hover(
          function () {
            $(this).stop().animate({opacity: '0.0'}, rychlost);      
          }, 
          function () {
            $(this).stop().animate({opacity: '1.0'}, rychlost*3);
        });           
        
         
        $(".div_sec_image ").hover(
          function () {
            $(this).stop().animate({opacity: '0.0'}, rychlost);      
          }, 
          function () {
            $(this).stop().animate({opacity: '1.0'}, rychlost*3);
        });   

    $(".span_fold_text a").hover(
        function () {
      
          $(this).stop().animate({backgroundPosition: '-50px bottom'}, rychlost+50);      
        }, 
        function () {
          $(this).stop().animate({backgroundPosition: '263px bottom'}, rychlost+300, function() {
            $(this).css("background-position", "-263px bottom");
          });    
        }
      );
     
      
      $("#div_left_href a").click(function () { 
        var location = $(this).attr("href");   
        window.location.href = location;
      });   
      
      
      var co_vlozit = '<iframe id="div_posuvna_anima_iframe" name="posuvna_animace" ALLOWTRANSPARENCY="true" src="http://web.dosli.cz/forum/posuvne_animace/index.html" width="270px" height="173px" scrolling="yes" noresize="noresize" style="float:left;" frameborder="no"></iframe>';
      var na_jake_strance = "vyuziti";
      var nazev_obrazku = "/cze/images/DosliAppServer_webProdPageSect_12_LeftBoxContent_0_254_173.png"
      var stranka = window.location+"";
      var je_na_strance = stranka.indexOf(na_jake_strance);
      if (je_na_strance != -1){
        $(document).ready(function(){
          var pocet = $(".span_popis_produktu img").length; 
          for (i=0; i < pocet; i++) {            
            
            if ($(".span_popis_produktu img:eq("+i+")").attr("src") == nazev_obrazku){
              $(".span_popis_produktu img:eq("+i+")").parent().html(co_vlozit);
            }
          } 
        });     
      }
      
            
                       
    });
    
function scrollingPage(){
  //alert($("body").scrollTop());
  //alert(document.body.clientHeight);
  var jeste = 0;
  if (document.body.clientHeight < $("#div_right_product").height()){
    jeste = $("#div_right_product").height() - document.body.clientHeight;
  }
  //var jeste = 0;
  
  
  if ($("body").scrollTop() > (143+jeste)){
    var odsaz = $("body").scrollTop() - (143+jeste);
    $("#div_right_product").css("margin-top", odsaz+"px");
  }else{
    $("#div_right_product").css("margin-top", "0px");
  }
}


      
      
