var bubble={block:0,opener:0,hidden:1,animation:0,init:function(){bubble.block=document.createElement("DIV");bubble.block.id="present-inner";bubble.block.style.position="absolute";bubble.block.style.top="0";bubble.block.style.width="100%";bubble.block.style.left="-1000%";bubble.block.innerHTML="";document.body.appendChild(bubble.block);var A=$("#page-body a.bubble");A.click(function(B){if(B.preventDefault){B.preventDefault()}bubble.toggle(this);return false})},toggle:function(A){if(bubble.hidden){bubble.show(A)}else{bubble.hide()}return false},show:function(A){if(!bubble.block||my.lock||!A||!A.href){return }my.lock=1;bubble.opener=A.getElementsByTagName("IMG")[0];if(bubble.block.innerHTML==""){$(bubble.block).load(A.href+" #presentation",{},bubble.loaded ? bubble.loaded : 0)}else{$("#presentcontent").load(A.href+" #presentcontent > div:first",{},bubble.loaded)}},hide:function(){if(!bubble.block||my.lock){return }if(!bubble.animation){bubble.animation=my.resizer("/i/present.png")}bubble.animation.onstop=bubble.finishhide;bubble.animation.hide(bubble.opener,$("#presentation")[0])},loaded:function(C){if(!bubble.hidden){bubble.block.style.left="0"}else{var B=$("#presentation");var A=$("#present-fon");B.css({visibility:"hidden"});bubble.block.style.left="0"}$("#presentation a.present-left").click(function(D){if(D.preventDefault){D.preventDefault()}bubble.show(this);return false});$("#presentation a.present-right").click(function(D){if(D.preventDefault){D.preventDefault()}bubble.show(this);return false});$("#presentation a.presenta-close").click(function(D){if(D.preventDefault){D.preventDefault()}bubble.hide();return false});if(bubble.hidden){if(!bubble.animation){bubble.animation=my.resizer("/i/present.png")}bubble.animation.onstop=bubble.finishshow;bubble.animation.show(bubble.opener,B[0],{towidth:A[0].clientWidth,toheight:A[0].clientHeight})}else{my.lock=0}bubble.hidden=0},finishshow:function(){my.lock=0},finishhide:function(){bubble.hidden=1;bubble.block.style.left="-1000%";my.lock=0}};my.onready.push(bubble.init);function bubbleimg(A){roundedCorner(A,14)};