// Automotive Gallery
var automotive11 = "<img src='images/automotive1-1.jpg' height='533' width='800' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive12 = "<img src='images/automotive1-2.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive13 = "<img src='images/automotive1-3.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive14 = "<img src='images/automotive1-4.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive15 = "<img src='images/automotive1-5.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive16 = "<img src='images/automotive1-6.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive21 = "<img src='images/automotive2-1.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive22 = "<img src='images/automotive2-2.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive23 = "<img src='images/automotive2-3.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive24 = "<img src='images/automotive2-4.jpg' height='800' width='533'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive25 = "<img src='images/automotive2-5.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive26 = "<img src='images/automotive2-6.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive31 = "<img src='images/automotive3-1.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive32 = "<img src='images/automotive3-2.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive33 = "<img src='images/automotive3-3.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive34 = "<img src='images/automotive3-4.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive35 = "<img src='images/automotive3-5.jpg' height='531' width='799'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive36 = "<img src='images/automotive3-6.jpg' height='533' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive41 = "<img src='images/automotive4-1.jpg' height='567' width='800'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive42 = "<img src='images/automotive4-2.jpg' height='567' width='799'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive43 = "<img src='images/automotive4-3.jpg' height='800' width='571'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive44 = "<img src='images/automotive4-4.jpg' height='514' width='799'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive45 = "<img src='images/automotive4-5.jpg' height='800' width='600'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var automotive46 = "<img src='images/automotive4-6.jpg' height='800' width='589'  /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"

//Weddings Gallery
var weddings11 = "<img src='images/weddings1-1.jpg' height='701' width='467' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings12 = "<img src='images/weddings1-2.jpg' height='720' width='480' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings13 = "<img src='images/weddings1-3.jpg' height='604' width='403' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings14 = "<img src='images/weddings1-4.jpg' height='701' width='467' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings15 = "<img src='images/weddings1-5.jpg' height='720' width='480' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings16 = "<img src='images/weddings1-6.jpg' height='399' width='600' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings21 = "<img src='images/weddings2-1.jpg' height='720' width='480' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings22 = "<img src='images/weddings2-2.jpg' height='604' width='403' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings23 = "<img src='images/weddings2-3.jpg' height='467' width='584' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings24 = "<img src='images/weddings2-4.jpg' height='701' width='467' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings25 = "<img src='images/weddings2-5.jpg' height='528' width='422' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings26 = "<img src='images/weddings2-6.jpg' height='701' width='467' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings31 = "<img src='images/weddings3-1.jpg' height='399' width='600' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings32 = "<img src='images/weddings3-2.jpg' height='604' width='402' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings33 = "<img src='images/weddings3-3.jpg' height='604' width='380' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings34 = "<img src='images/weddings3-4.jpg' height='604' width='483' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings35 = "<img src='images/weddings3-5.jpg' height='600' width='480' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings36 = "<img src='images/weddings3-6.jpg' height='399' width='600' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings41 = "<img src='images/weddings4-1.jpg' height='604' width='403' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings42 = "<img src='images/weddings4-2.jpg' height='584' width='467' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings43 = "<img src='images/weddings4-3.jpg' height='399' width='600' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings44 = "<img src='images/weddings4-4.jpg' height='720' width='480' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings45 = "<img src='images/weddings4-5.jpg' height='399' width='600' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var weddings46 = "<img src='images/weddings4-6.jpg' height='600' width='480' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"

//Landscape Gallery
var landscape11 = "<img src='images/landscape1-1.jpg' height='800' width='533' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape12 = "<img src='images/landscape1-2.jpg' height='562' width='800' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape13 = "<img src='images/landscape1-3.jpg' height='800' width='533' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape14 = "<img src='images/landscape1-4.jpg' height='800' width='533' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape15 = "<img src='images/landscape1-5.jpg' height='800' width='533' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape16 = "<img src='images/landscape1-6.jpg' height='800' width='533' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape21 = "<img src='images/landscape2-1.jpg' height='800' width='533' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape22 = "<img src='images/landscape2-2.jpg' height='600' width='750' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape23 = "<img src='images/landscape2-3.jpg' height='800' width='533' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape24 = "<img src='images/landscape2-4.jpg' height='800' width='533' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape25 = "<img src='images/landscape2-5.jpg' height='533' width='800' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape26 = "<img src='images/landscape2-6.jpg' height='800' width='533' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape31 = "<img src='images/landscape3-1.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape32 = "<img src='images/landscape3-2.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape33 = "<img src='images/landscape3-3.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape34 = "<img src='images/landscape3-4.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape35 = "<img src='images/landscape3-5.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape36 = "<img src='images/landscape3-6.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape41 = "<img src='images/landscape4-1.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape42 = "<img src='images/landscape4-2.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape43 = "<img src='images/landscape4-3.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape44 = "<img src='images/landscape4-4.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape45 = "<img src='images/landscape4-5.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"
var landscape46 = "<img src='images/landscape4-6.jpg' height='' width='' /><style>a:link, a:active, a:visited {color:#666;} a:hover {color:#333;}</style><br /><p><center><a href='#' onclick='TINY.box.hide();'>Close</a></center></p>"

//Babies Gallery
var babies11 = "<img src='images/babies1-1.jpg'  />"
var babies12 = "<img src='images/babies1-2.jpg'  />"
var babies13 = "<img src='images/babies1-3.jpg'  />"
var babies14 = "<img src='images/babies1-4.jpg'  />"
var babies15 = "<img src='images/babies1-5.jpg'  />"
var babies16 = "<img src='images/babies1-6.jpg'  />"
var babies21 = "<img src='images/babies2-1.jpg'  />"
var babies22 = "<img src='images/babies2-2.jpg'  />"
var babies23 = "<img src='images/babies2-3.jpg'  />"
var babies24 = "<img src='images/babies2-4.jpg'  />"
var babies25 = "<img src='images/babies2-5.jpg'  />"
var babies26 = "<img src='images/babies2-6.jpg'  />"
var babies31 = "<img src='images/babies3-1.jpg'  />"
var babies32 = "<img src='images/babies3-2.jpg'  />"
var babies33 = "<img src='images/babies3-3.jpg'  />"
var babies34 = "<img src='images/babies3-4.jpg'  />"
var babies35 = "<img src='images/babies3-5.jpg'  />"
var babies36 = "<img src='images/babies3-6.jpg'  />"
var babies41 = "<img src='images/babies4-1.jpg'  />"
var babies42 = "<img src='images/babies4-2.jpg'  />"
var babies43 = "<img src='images/babies4-3.jpg'  />"
var babies44 = "<img src='images/babies4-4.jpg'  />"
var babies45 = "<img src='images/babies4-5.jpg'  />"
var babies46 = "<img src='images/babies4-6.jpg'  />"

//Portraits Gallery
var portraits11 = "<img src='images/portraits1-1.jpg'  />"
var portraits12 = "<img src='images/portraits1-2.jpg'  />"
var portraits13 = "<img src='images/portraits1-3.jpg'  />"
var portraits14 = "<img src='images/portraits1-4.jpg'  />"
var portraits15 = "<img src='images/portraits1-5.jpg'  />"
var portraits16 = "<img src='images/portraits1-6.jpg'  />"
var portraits21 = "<img src='images/portraits2-1.jpg'  />"
var portraits22 = "<img src='images/portraits2-2.jpg'  />"
var portraits23 = "<img src='images/portraits2-3.jpg'  />"
var portraits24 = "<img src='images/portraits2-4.jpg'  />"
var portraits25 = "<img src='images/portraits2-5.jpg'  />"
var portraits26 = "<img src='images/portraits2-6.jpg'  />"
var portraits31 = "<img src='images/portraits3-1.jpg'  />"
var portraits32 = "<img src='images/portraits3-2.jpg'  />"
var portraits33 = "<img src='images/portraits3-3.jpg'  />"
var portraits34 = "<img src='images/portraits3-4.jpg'  />"
var portraits35 = "<img src='images/portraits3-5.jpg'  />"
var portraits36 = "<img src='images/portraits3-6.jpg'  />"
var portraits41 = "<img src='images/portraits4-1.jpg'  />"
var portraits42 = "<img src='images/portraits4-2.jpg'  />"
var portraits43 = "<img src='images/portraits4-3.jpg'  />"
var portraits44 = "<img src='images/portraits4-4.jpg'  />"
var portraits45 = "<img src='images/portraits4-5.jpg'  />"
var portraits46 = "<img src='images/portraits4-6.jpg'  />"

var TINY={};

function T$(i){return document.getElementById(i)}

TINY.box=function(){
	var p,m,b,fn,ic,iu,iw,ih,ia,f=0;
	return{
		show:function(c,u,w,h,a,t){
			if(!f){
				p=document.createElement('div'); p.id='tinybox';
				m=document.createElement('div'); m.id='tinymask';
				b=document.createElement('div'); b.id='tinycontent';
				document.body.appendChild(m); document.body.appendChild(p); p.appendChild(b);
				m.onclick=TINY.box.hide; window.onresize=TINY.box.resize; f=1
			}
			if(!a&&!u){
				p.style.width=w?w+'px':'auto'; p.style.height=h?h+'px':'auto';
				p.style.backgroundImage='none'; b.innerHTML=c
			}else{
				b.style.display='none'; p.style.width=p.style.height='100px'
			}
			this.mask();
			ic=c; iu=u; iw=w; ih=h; ia=a; this.alpha(m,1,80,3);
			if(t){setTimeout(function(){TINY.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){TINY.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; b.innerHTML=c;
					p.style.width=w?w+'px':''; p.style.height=h?h+'px':'';
					b.style.display='';
					w=parseInt(b.offsetWidth); h=parseInt(b.offsetHeight);
					b.style.display='none'; p.style.width=x; p.style.height=y;
				}else{
					b.innerHTML=c
				}
				this.size(p,w,h,4)
			}else{
				p.style.backgroundImage='none'
			}
		},
		hide:function(){
			TINY.box.alpha(p,-1,0,3)
		},
		resize:function(){
			TINY.box.pos(); TINY.box.mask()
		},
		mask:function(){
			m.style.height=TINY.page.theight()+'px';
			m.style.width=''; m.style.width=TINY.page.twidth()+'px'
		},
		pos:function(){
			var t=(TINY.page.height()/2)-(p.offsetHeight/2); t=t<10?10:t;
			p.style.top=(t+TINY.page.top())+'px';
			p.style.left=(TINY.page.width()/2)-(p.offsetWidth/2)+'px'
		},
		alpha:function(e,d,a,s){
			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(){TINY.box.twalpha(e,a,d,s)},20)
		},
		twalpha:function(e,a,d,s){
			var o=Math.round(e.style.opacity*100);
			if(o==a){
				clearInterval(e.ai);
				if(d==-1){
					e.style.display='none';
					e==p?TINY.box.alpha(m,-1,0,2):b.innerHTML=p.style.backgroundImage=''
				}else{
					e==m?this.alpha(p,1,100,5):TINY.box.fill(ic,iu,iw,ih,ia)
				}
			}else{
				var n=o+Math.ceil(Math.abs(a-o)/s)*d;
				e.style.opacity=n/100; e.style.filter='alpha(opacity='+n+')'
			}
		},
		size:function(e,w,h,s){
			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?-1:1, hd=(oh-ho>h)?-1:1;
			e.si=setInterval(function(){TINY.box.twsize(e,w,wo,wd,h,ho,hd,s)},20)
		},
		twsize:function(e,w,wo,wd,h,ho,hd,s){
			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){e.style.width=ow+(Math.ceil(Math.abs(w-ow)/s)*wd)+'px'}
				if(oh!=h){e.style.height=oh+(Math.ceil(Math.abs(h-oh)/s)*hd)+'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 d=document, b=d.body, e=d.documentElement;
			return Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight))
		},
		twidth:function(){
			var d=document, b=d.body, e=d.documentElement;
			return Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))
		}
	}
}();