var supernote=new SuperNote('supernote',{});function animFade(ref,counter){};supernote.animations[supernote.animations.length]=animFade;addEvent(document,'click',function(evt){var elm=evt.target||evt.srcElement,closeBtn,note;while(elm){if((/note-close/).test(elm.className))closeBtn=elm;if((/snb-pinned/).test(elm.className)){note=elm;break}elm=elm.parentNode}if(closeBtn&&note){var noteData=note.id.match(/([a-z_\-0-9]+)-note-([a-z_\-0-9]+)/i);for(var i=0;i<SuperNote.instances.length;i++)if(SuperNote.instances[i].myName==noteData[1]){setTimeout('SuperNote.instances['+i+'].setVis("'+noteData[2]+'", false, true)',100);cancelEvent(evt)}}});addEvent(supernote,'show',function(noteID){});addEvent(supernote,'hide',function(noteID){});


