largeimg=""; var TINY2={}; function T$(i){return document.getElementById(i)} TINY2.box=function(){ var p,m,b,fn,ic,iu,iw,ih,ia,width, height, f=0; return{ show:function(c,u,w,h,a,t,look,www,hhh){ var isIE=!!window.ActiveXObject; var isIE8=isIE&&!!document.documentMode; if(www) width=www; else width='562px'; if(hhh) height = hhh; else height='329px'; if (isIE){ if (isIE8){ width=parseInt(width.substring(0,6))+4+"px"; height=parseInt(height.substring(0,6))+4+"px"; } } if(document.getElementById("outframe")){ document.getElementById("outframe").src=look; document.getElementById("outframe").width=width; document.getElementById("outframe").height=height; } if(!f){ p=document.createElement('div'); p.id='tinybox2'; m=document.createElement('div'); m.id='tinymask2'; b=document.createElement('iframe'); b.id='outframe'; b.width=width; b.height=height; b.border=0; b.src=look; b.scrolling='no'; document.body.appendChild(m); document.body.appendChild(p); p.appendChild(b); m.onclick=TINY2.box.hide; window.onresize=TINY2.box.resize; f=1 } if(!a&&!u){ p.style.width =width; p.style.height=height; p.style.backgroundImage='none'; }else{ b.style.display='none'; p.style.width=width;p.style.height=height; } this.mask(); ic=c; iu=u; iw=w; ih=h; ia=a; this.alpha(m,1,80,3); if(t){setTimeout(function(){TINY2.box.hide()},1000*t)} }, fill:function(c,u,w,h,a){ if(u){ p.style.backgroundImage=''; var x=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP'); x.onreadystatechange=function(){ if(x.readyState==4&&x.status==200){TINY2.box.psh(x.responseText,w,h,a)} }; x.open('GET',c,1); x.send(null) }else{ this.psh(c,w,h,a) } }, psh:function(c,w,h,a){ if(a){ if(!w||!h){ var x=p.style.width, y=p.style.height; p.style.width=width;p.style.height=height; b.style.display=''; w=parseInt(b.offsetWidth); h=parseInt(b.offsetHeight); b.style.display='none'; p.style.width=width;p.style.height=height }else{ } this.size(p,w,h) }else{ p.style.backgroundImage='none' } }, hide:function(){ TINY2.box.alpha(p,-1,0,3) }, resize:function(){ TINY2.box.pos(); TINY2.box.mask() }, mask:function(){ m.style.height=TINY2.page.total(1)+'px'; m.style.width=''; m.style.width=TINY2.page.total(0)+'px' }, pos:function(){ var t=(TINY2.page.height()/2)-(p.offsetHeight/2); t=t<10?10:t; p.style.top=(t+TINY2.page.top())+'px'; p.style.left=(TINY2.page.width()/2)-(p.offsetWidth/2)+'px' }, alpha:function(e,d,a){ clearInterval(e.ai); if(d==1){ e.style.opacity=0; e.style.filter='alpha(opacity=0)'; e.style.display='block'; this.pos() } e.ai=setInterval(function(){TINY2.box.ta(e,a,d)},20) }, ta:function(e,a,d){ var o=Math.round(e.style.opacity*100); if(o==a){ clearInterval(e.ai); if(d==-1){ e.style.display='none'; e==p?TINY2.box.alpha(m,-1,0,2):b.innerHTML=p.style.backgroundImage='' }else{ e==m?this.alpha(p,1,100):TINY2.box.fill(ic,iu,iw,ih,ia) } }else{ var n=Math.ceil((o+((a-o)*.5))); n=n==1?0:n; e.style.opacity=n/100; e.style.filter='alpha(opacity='+n+')' } }, size:function(e,w,h){ e=typeof e=='object'?e:T$(e); clearInterval(e.si); var ow=e.offsetWidth, oh=e.offsetHeight, wo=ow-parseInt(e.style.width), ho=oh-parseInt(e.style.height); var wd=ow-wo>w?0:1, hd=(oh-ho>h)?0:1; e.si=setInterval(function(){TINY2.box.ts(e,w,wo,wd,h,ho,hd)},20) }, ts:function(e,w,wo,wd,h,ho,hd){ var ow=e.offsetWidth-wo, oh=e.offsetHeight-ho; if(ow==w&&oh==h){ clearInterval(e.si); p.style.backgroundImage='none'; b.style.display='block' }else{ if(ow!=w){var n=ow+((w-ow)*.5); e.style.width=wd?Math.ceil(n)+'px':Math.floor(n)+'px'} if(oh!=h){var n=oh+((h-oh)*.5); e.style.height=hd?Math.ceil(n)+'px':Math.floor(n)+'px'} this.pos() } } } }(); TINY2.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(d){ var b=document.body, e=document.documentElement; return d?Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight)): Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth)) } } }();