function T$(n){return document.getElementById(n)}var TINY={};TINY.box=function(){var n,i,t,r,u,f,e,o,s=0;return{show:function(h,c,l,a,v,y){s||(n=document.createElement("div"),n.id="tinybox",i=document.createElement("div"),i.id="tinymask",t=document.createElement("div"),t.id="tinycontent",document.body.appendChild(i),document.body.appendChild(n),n.appendChild(t),i.onclick=TINY.box.hide,window.onresize=TINY.box.resize,s=1);v||c?(t.style.display="none",n.style.width=n.style.height="100px"):(n.style.width=l?l+"px":"auto",n.style.height=a?a+"px":"auto",n.style.backgroundImage="none",t.innerHTML=h);this.mask();r=h;u=c;f=l;e=a;o=v;this.alpha(i,1,80,3);y&&setTimeout(function(){TINY.box.hide()},1e3*y)},fill:function(t,i,r,u,f){if(i){n.style.backgroundImage="";var e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");e.onreadystatechange=function(){e.readyState==4&&e.status==200&&TINY.box.psh(e.responseText,r,u,f)};e.open("GET",t,1);e.send(null)}else this.psh(t,r,u,f)},psh:function(i,r,u,f){if(f){if(r&&u)t.innerHTML=i;else{var e=n.style.width,o=n.style.height;t.innerHTML=i;n.style.width=r?r+"px":"";n.style.height=u?u+"px":"";t.style.display="";r=parseInt(t.offsetWidth);u=parseInt(t.offsetHeight);t.style.display="none";n.style.width=e;n.style.height=o}this.size(n,r,u,4)}else n.style.backgroundImage="none"},hide:function(){TINY.box.alpha(n,-1,0,5)},resize:function(){TINY.box.pos();TINY.box.mask()},mask:function(){i.style.height=TINY.page.theight()+"px";i.style.width="";i.style.width=TINY.page.twidth()+"px"},pos:function(){var t=TINY.page.height()/2-n.offsetHeight/2;t=t<10?10:t;n.style.top=t+TINY.page.top()+"px";n.style.left=TINY.page.width()/2-n.offsetWidth/2+"px"},alpha:function(n,t,i,r){clearInterval(n.ai);t==1&&(n.style.opacity=0,n.style.filter="alpha(opacity=0)",n.style.display="block",this.pos());n.ai=setInterval(function(){TINY.box.twalpha(n,i,t,r)},20)},twalpha:function(s,h,c,l){var a=Math.round(s.style.opacity*100),v;a==h?(clearInterval(s.ai),c==-1?(s.style.display="none",s==n?TINY.box.alpha(i,-1,0,3):t.innerHTML=n.style.backgroundImage=""):s==i?this.alpha(n,1,100,5):TINY.box.fill(r,u,f,e,o)):(v=a+Math.ceil(Math.abs(h-a)/l)*c,s.style.opacity=v/100,s.style.filter="alpha(opacity="+v+")")},size:function(n,t,i,r){n=typeof n=="object"?n:T$(n);clearInterval(n.si);var u=n.offsetWidth,f=n.offsetHeight,e=u-parseInt(n.style.width),o=f-parseInt(n.style.height),s=u-e>t?-1:1,h=f-o>i?-1:1;n.si=setInterval(function(){TINY.box.twsize(n,t,e,s,i,o,h,r)},20)},twsize:function(i,r,u,f,e,o,s,h){var c=i.offsetWidth-u,l=i.offsetHeight-o;c==r&&l==e?(clearInterval(i.si),n.style.backgroundImage="none",t.style.display="block"):(c!=r&&(i.style.width=c+Math.ceil(Math.abs(r-c)/h)*f+"px"),l!=e&&(i.style.height=l+Math.ceil(Math.abs(e-l)/h)*s+"px"),this.pos())}}}();TINY.page=function(){return{top:function(){return document.body.scrollTop||document.documentElement.scrollTop},width:function(){return self.innerWidth||document.documentElement.clientWidth},height:function(){return self.innerHeight||document.documentElement.clientHeight},theight:function(){var n=document,t=n.body,i=n.documentElement;return Math.max(Math.max(t.scrollHeight,i.scrollHeight),Math.max(t.clientHeight,i.clientHeight))},twidth:function(){var n=document,t=n.body,i=n.documentElement;return Math.max(Math.max(t.scrollWidth,i.scrollWidth),Math.max(t.clientWidth,i.clientWidth))}}}()