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