/**
 * @version 1.0
 */
$(function(){if(!$("#topbar").hasClass("logged"))return;$("#user-identity").addClass("js").find(".box-contents").append('<div class="options"><span class="link close" title="Fermer">Fermer</span></div>').find(".close").live("click",function(event){event.preventDefault();$("#user-identity .toolbar-info").trigger("close")}).end().end().find(".toolbar-info").prependTo("#user-identity").css("cursor","pointer").next().hide().addClass("box-info").find("li:not(.debug)").show().end().find("li.debug").replaceWith(function(i, old){return $("<div/>").attr("class",$(this).attr("class")).html(old)}).end().find("div.debug").insertAfter(".box-contents .options").end().end().end().tooltip({relative:true,position:"bottom center",offset:[-5,-25],events:{def:"click, close",tooltip:"mouseover"},effect:"slide",direction:"down",slideFade:true,api:true,onShow:function(){var $this=$(this.getTrigger())},onHide:function(){var $this=$(this.getTrigger())}}).bind("close",function(event){event.preventDefault();if(this.isShown())this.hide()}); $(document).bind("keydown","ctrl+d",function(evt){evt.preventDefault();if($("#user-identity .box-info").is(":visible"))$("#user-identity .debug").slideToggle();return false})});
