$(document).ready(function(){
    $("div.superdiv").fadeTo("0",1);
    $("div.imagediv").bind("mouseenter",function(){
        $("div.superdiv:visble").slideUp(1);
        $("div.subdiv").fadeOut(0);
        $("div.superdiv:not(:animated)",this).slideDown("fast", function(){$("div.subdiv:not(:animated)",this).fadeIn("slow");});
    });
    $("div.imagediv").bind("mouseleave",function(){
    $("div.superdiv:not(:animated)",this).slideUp(50);
        $("div.subdiv",this).fadeOut(10);
    });

    $(".thumbnaillink").bind("mouseenter",function(){
        var x = $(this).parent().parent();
        //$("div.superdiv:not(:visible)", x).slideDown("fast");
        $("div.subdiv:not(:visible)", x).fadeIn("fast");
    });

    $(".marburg_detail_image_nxt").click(function () {$(this).parent().fadeOut(150);});
    $(".marburg_detail_image_prv").click(function () {$(this).parent().fadeOut(150);});

      $(".floatingbox").mouseover(function () {
          //$(".floatingbox_addon:visible").hide(0);
          $(".floatingbox_addon:not(:animated)", this).fadeIn("fast");

      });
       $(".floatingbox").mouseout(function () {
          $(".floatingbox_addon", this).fadeOut("fast");
      });
    
    $(".clientlistentry").mouseover(function () {
        //$(".floatingbox_addon:visible").hide(0);
        $(".clientimage:not(:animated)", this).fadeIn("fast");

    });
     $(".clientlistentry").mouseout(function () {
        $(".clientimage", this).fadeOut("fast");
    });
    

});


function dcmadr(nnnn){
    var a = "";
    for(i=0,m=nnnn.length;i < m;i++){
        if(i%3==0){
            a += String.fromCharCode(nnnn.substr(i, 3));
        }
    }
    location.href=(a);
}
function persistNewPosition(mybox_name, h, topOffset, leftOffset, basepath){
    //alert(mybox_name);
    var l = $(mybox_name).css("left");
    l = l.replace(/[^0-9]+/g,'');
    l = (l*1)-leftOffset;
    var t = $(mybox_name).css("top");
    t = t.replace(/[^0-9]+/g,'');
    t = (t*1)-topOffset;
    $.get(basepath+"/custom/admin/persistdata.jsp?handle="+h+"&top="+t+"&left="+l );
}

