/* 
Terence M. Bandoian
P.O. Box 4074
Austin, Texas 78765
http://www.tmbsw.com
terence@tmbsw.com
(512)481-8628

Copyright 2004-2012 Terence M. Bandoian.  All rights reserved.
*/

function setFocus( id ) { var e = document.getElementById( id ); if ( e ) { e.focus(); } } var stA = new Array(); var stI = 0; var stF = false; var stIid = null; var stT0 = 0; var stP = 750; var stPP = 400; var stPO = 25; function ss() { ts(); stA[ 0 ] = document.getElementById( 'st0' ); stA[ 1 ] = document.getElementById( 'st1' ); stA[ 2 ] = document.getElementById( 'st2' ); stA[ 3 ] = document.getElementById( 'st3' ); stA[ 4 ] = document.getElementById( 'st4' ); stA[ 5 ] = document.getElementById( 'st5' ); stA[ 6 ] = document.getElementById( 'st6' ); for ( stI = 0; stI < stA.length; stI++ ) { if ( stA[ stI ] == null ) { break; } stA[ stI ].op = -1; } if ( stI == stA.length ) { stI = 0; stF = stA[ stI ].filters; stIid = setInterval( 'es()', 15 ); } } function ts() { if ( stIid ) { clearInterval( stIid ); stIid = null; } } function es() { var e; if ( stI >= stA.length ) { ts(); return; } if ( stA[ stI ].op == -1 ) { stT0 = new Date().getTime(); stA[ stI ].op = 0; so( stA[ stI ], 0 ); if ( stI == stA.length - 1 ) { stA[ stI ].pixelTop = parseInt( stA[ stI ].style.top ); stA[ stI ].pixelOffset = stPO; stA[ stI ].style.top = ( stA[ stI ].pixelTop - stPO ) + 'px'; } stA[ stI ].style.display = 'block'; return; } e = new Date().getTime() - stT0; if ( e < stP ) { stA[ stI ].op = Math.floor(( e * 100 ) / stP ); so( stA[ stI ], stA[ stI ].op ); if ( stI == stA.length - 1 ) { if ( e < stPP ) { stA[ stI ].pixelOffset = Math.floor( (( stPP - e ) * stPO ) / stPP ); stA[ stI ].style.top = ( stA[ stI ].pixelTop - stA[ stI ].pixelOffset ) + 'px'; } else if ( stA[ stI ].pixelOffset != 0 ) { stA[ stI ].pixelOffset = 0; stA[ stI ].style.top = stA[ stI ].pixelTop + 'px'; } } return; } stA[ stI ].op = 100; so( stA[ stI ], 100 ); if (( stI == stA.length - 1 ) && ( stA[ stI ].pixelOffset != 0 )) { stA[ stI ].pixelOffset = 0; stA[ stI ].style.top = stA[ stI ].pixelTop + 'px'; } ++stI; return; } function so( e, o ) { var eo; if ( stF ) { eo = ( o <= 0 ? 0 : o >= 100 ? 100 : o ); e.style.filter = 'alpha(opacity=' + eo + ')'; } else { eo = ( o <= 0 ? 0 : o >= 100 ? 1 : o / 100 ); e.style.MozOpacity = '' + eo; e.style.opacity = '' + eo; } }

/* Copyright 2004-2012 Terence M. Bandoian.  All rights reserved. */
