/* photo-album.js
 * Author : ByoungLae Kim <pos7hink@okpos.com>
 * Description : Image slider script for ms ie.
 * copyright at ByoungLae Kim <pos7hink@okpos.com>.
 * last modified at Tue Sep  5 17:40:48 2000
 */
<!--
function photo(as, effect) {
    this.images = new Array();
    this.images = as;
    this.count = 0;
    this.ecounter = 0;
    this.timer;
    this.running = false;
    this.effect = effect;
}

_photos_ = new Array();

function _doFilter_(layer, i) {
    if(!document.all) return;
    var _img = document.all[layer];
    var _p_ = _photos_[i];
    _img.filters.item(0).Apply();
    _img.filters.item(0).Transition = _p_.effect == true ? _p_.ecounter++ : 12;
    _img.src = _p_.images[_p_.count++];
    _img.filters.item(0).play();
    if(_p_.count == (_p_.images.length)) _p_.count = 0;
    if(_p_.ecounter == 20) _p_.ecounter = 0;
    if(_p_.ecounter == 10) _p_.ecounter++;
    if(_p_.ecounter == 11) _p_.ecounter++;
    if(_p_.ecounter == 14) _p_.ecounter++;
}

function _toggle_(layer, i) {
    if(!document.all) return;
    var _p_ = _photos_[i];
    if(_p_.running == false) {
	_p_.timer = setInterval('_doFilter_("' + layer + '", ' + i + ')', 2500);
	_p_.running = true;
    }
    else {
	clearInterval(_p_.timer);
	_p_.running = false;
    }
}
//-->
