
  $(document).ready(function(){
    var offset = $('li.menu_0selected').parent().offset();
    var tp = offset.top;
    var lft = offset.left;
    var finalHeight = 0;
    var voiceHeight = 26;
    //alert(tp+' '+lft);
    var css = {
      display: 'block',
      backgroundColor: '#decab2',
      height: '0px',
      width: '100px',
      zIndex: 10,
      position: 'absolute',
      margin: '0px',
      padding: '0px'
    };
    $('#infoCategorie')
      .css(css)
        .children()
          .eq(0)
            .remove()
              .end()
                .end()
                  .children()
                    .eq(0)
                      .remove()
                        .end()
                          .end()
                            .children()
                              .each(function(key,value){
                                $(value)
                                  .css({height: voiceHeight+'px',margin: '0px',padding: '0px',borderBottom:'1px solid #cca874',width: '100px'})
                                    .children()
                                      .eq(0)
                                        .css({margin: '0px',padding: '0px'})
                                          .children()
                                            .eq(0)
                                              .css({
                                                height: voiceHeight+'px',
                                                color:'#981302',
                                                fontSize:'9px',
                                                fontFamily:'Arial',
                                                margin: '0px',
                                                padding: '0px 0px 0px 0px',
                                                width:'100px'
                                              });
                                finalHeight+= voiceHeight+1;
                              }).end()
                                  .css({top:(tp-finalHeight),left:lft})
                                .animate({
                                    height: finalHeight+'px',
                                    width: '100px'
                                  },500);
                                  
    if($('#infoCategorie').children().size() == 0){
      $('#infoCategorie').remove();
    }
    

                                  
                              $('#elencoInfo_visited').css({backgroundColor:'#981302'});
                              $('#elencoInfo_visited').children().eq(0).children().eq(0).css({color:'#ffffff'});
                                  //alert("top "+offset.top+"   left "+offset.left);
            
    try{
      $('#thumb a.images').lightBox();
    }catch(e){
      void(0);
    }    
    try{
      $('#wrapper a.images').lightBox();
    }catch(e){
      void(0);
    }   
    try{
      $('#big a.images').lightBox();
    }catch(e){
      void(0);
    }
    
    /*try{
      $('#infoBoxContainer').appendTo($('body'));
      $('#infoBox').appendTo($('body'));
      var infoBoxContaineroffset = $('#infoBoxContainer').offset();
      $('#infoBox').css({top:infoBoxContaineroffset.top,left:infoBoxContaineroffset.left});
    }catch(e){
      void(0);
    }*/
    
    /*$(window).bind('resize',function(){
      try{
        var headerOffset = $('#header').offset();
        $('#header')
      }catch(e){
        void(0);
      }
    });*/
  });