$(document).ready(function(){

    $(".kolbaska .text").each(function() {
        $(this).css({height: $(this).parent().height()});
    });

    $(".kolbaska div").hover(function() {
        $(this).find('span').stop().css({display: 'block', opacity: 0}).animate({opacity: 1});
    }, function() {

    });

    $(".kolbaska .text").hover(function() {
    }, function(){
        $(this).find('span').stop().animate({opacity: "0"}, 100);
    });

    $(".kolbaska div").click(function() {
        window.location = $('a', this).attr('href');
        return false;
    });


//left slider//

//$("#heart_L_bot").draggable({containment: "#pasp"});

//$("#heart_L_top").draggable({containment: "#pasp"});


$("#heart_L_bot").draggable();

$("#heart_L_top").draggable();








    $( "#head_L").mousedown( function( event )
     {
     $("#heart_L_top").trigger("mousedown.draggable", [event]);
     $("#heart_L_bot").trigger("mousedown.draggable", [event]);
     }
     ) ;

    $( "#heart_L_top").mousedown( function( event )
     {
     $("#heart_L_top").trigger("mousedown.draggable", [event]);
     $("#heart_L_bot").trigger("mousedown.draggable", [event]);
     }
     ) ;


    $(".text_L").hover(
      function () {
       $(this).find(".open_L").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $(".open_L").hover(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );

    $(".open_L").click(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );


/*
    $("#text_L_1").hover(
      function () {
       $("#open_L_1").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_L_1").hover(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );

    $("#open_L_1").click(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );


///

    $("#text_L_2").hover(
      function () {
       $("#open_L_2").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_L_2").hover(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );

    $("#open_L_2").click(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );


///

    $("#text_L_3").hover(
      function () {
       $("#open_L_3").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_L_3").hover(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );

    $("#open_L_3").click(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );


///

    $("#text_L_4").hover(
      function () {
       $("#open_L_4").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_L_4").hover(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );

    $("#open_L_4").click(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );


///

    $("#text_L_5").hover(
      function () {
       $("#open_L_5").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_L_5").hover(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );

    $("#open_L_5").click(
      function () {
        $("#heart_L_top").draggable("destroy");
        $("#heart_L_bot").draggable("destroy");

      },
      function () {
        $("#heart_L_top").draggable();
        $("#heart_L_bot").draggable();
      }
    );

*/





//center slider//


$("#heart_S_bot").draggable();

$("#heart_S_top").draggable();





    $( "#head_S").mousedown( function( event )
     {
     $("#heart_S_top").trigger("mousedown.draggable", [event]);
     $("#heart_S_bot").trigger("mousedown.draggable", [event]);
     }
     ) ;

    $( "#heart_S_top").mousedown( function( event )
     {
     $("#heart_S_top").trigger("mousedown.draggable", [event]);
     $("#heart_S_bot").trigger("mousedown.draggable", [event]);
     }
     ) ;



     $(".text_S").hover(
      function () {
       $(this).find(".open_S").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $(".open_S").hover(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );

    $(".open_S").click(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );


/*
    $("#text_S_1").hover(
      function () {
       $("#open_S_1").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_S_1").hover(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );

    $("#open_S_1").click(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );


///

    $("#text_S_2").hover(
      function () {
       $("#open_S_2").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_S_2").hover(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );

    $("#open_S_2").click(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );


///

    $("#text_S_3").hover(
      function () {
       $("#open_S_3").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_S_3").hover(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );

    $("#open_S_4").click(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );


///

    $("#text_S_4").hover(
      function () {
       $("#open_S_4").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_S_4").hover(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );

    $("#open_S_4").click(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );


///

    $("#text_S_5").hover(
      function () {
       $("#open_S_5").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_S_5").hover(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );

    $("#open_S_5").click(
      function () {
        $("#heart_S_top").draggable("destroy");
        $("#heart_S_bot").draggable("destroy");

      },
      function () {
        $("#heart_S_top").draggable();
        $("#heart_S_bot").draggable();
      }
    );

*/





//right slider//


$("#heart_R_bot").draggable();

$("#heart_R_top").draggable();





    $( "#head_R").mousedown( function( event )
     {
     $("#heart_R_top").trigger("mousedown.draggable", [event]);
     $("#heart_R_bot").trigger("mousedown.draggable", [event]);
     }
     ) ;

    $( "#heart_R_top").mousedown( function( event )
     {
     $("#heart_R_top").trigger("mousedown.draggable", [event]);
     $("#heart_R_bot").trigger("mousedown.draggable", [event]);
     }
     ) ;


    $(".text_R").hover(
      function () {
       $(this).find(".open_R").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $(".open_R").hover(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );

    $(".open_R").click(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );

/*
    $("#text_R_1").hover(
      function () {
       $("#open_R_1").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_R_1").hover(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );

    $("#open_R_1").click(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );


///

    $("#text_R_2").hover(
      function () {
       $("#open_R_2").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_R_2").hover(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );

    $("#open_R_2").click(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );


///

    $("#text_R_3").hover(
      function () {
       $("#open_R_3").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_R_3").hover(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );

    $("#open_R_4").click(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );


///

    $("#text_R_4").hover(
      function () {
       $("#open_R_4").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_R_4").hover(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );

    $("#open_R_4").click(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );


///

    $("#text_R_5").hover(
      function () {
       $("#open_R_5").show(1);
      },
      function () {
        $(this).find("div").hide(1);
      }
    );


    $("#open_R_5").hover(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );

    $("#open_R_5").click(
      function () {
        $("#heart_R_top").draggable("destroy");
        $("#heart_R_bot").draggable("destroy");

      },
      function () {
        $("#heart_R_top").draggable();
        $("#heart_R_bot").draggable();
      }
    );

*/



  });