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

