function slideShowObject(varName){
//-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
  this.name = varName;
  this.cur = 0;
  this.total = 0;
  this._next = 0;
  this.delay = 5000;
  this.locked = false;
  this.tick = false;
//-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
  this._ = function(){try{
//---
  }catch(e){ return this.Error('_', e.message);}};
//-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
  this.init = function(objName){try{
	var obj = document.getElementById(objName);
	obj.style.overflow = 'hidden';
	var type = 0;
	var slide;
	for(x in obj.childNodes){
	  type = (typeof(obj.childNodes[x].id) == 'undefined') ? 'undefined' : obj.childNodes[x].id;
	  type = type.toLowerCase();
	  type = type.substring(0, 5);
	  if(type == 'slide'){
		this.total++;
		slide = document.getElementById('slide_'+this.total);
		slide.style.position = 'absolute';
		slide.style.left = '0px';
		slide.style.top = '0px';
		slide.style.width = obj.style.width;
		slide.style.height = obj.style.height;
		slide.style.display = 'none';
	  }
	}
	if(this.total > 0){
	  this.cur = 1;
	  document.getElementById('slide_1').style.display = 'block';
	  this._next = 1;
	  this.tick = window.setInterval(this.name+'.next();', this.delay);
	}
	return true;
  }catch(e){ return this.Error('init', e.message);}};
//-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
  this.doAction = function(){try{
	if(this.total < 1 || this.locked){
	  return false;
	}
	this.locked = true;
	window.clearInterval(this.tick);
	window.setTimeout(this.name+".locked = false;"+this.name+".tick = window.setInterval(\""+this.name+".next();\", "+this.delay+");document.getElementById('slide_"+this.cur+"').style.display = 'none';", 4000);
	var from = new OpacityTween(document.getElementById('slide_'+this.cur), Tween.regularEaseOut, 100, 0, 1.5);
	from.start();
	document.getElementById('slide_'+this._next).style.display = 'block';
	var to =  new OpacityTween(document.getElementById('slide_'+this._next), Tween.regularEaseIn, 0, 100, 3);
	to.start();
	this.cur = this._next;
	return true;
  }catch(e){ return this.Error('doAction', e.message);}};
//-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
  this.next = function(){try{
	this._next = (this.cur == this.total) ? 1 : (this.cur * 1 + 1);
	return this.doAction();
  }catch(e){ return this.Error('next', e.message);}};
//-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
  this.previous = function(){try{
	this._next = (this.cur == 1) ? this.total : (this.cur - 1);
	return this.doAction();
  }catch(e){ return this.Error('previous', e.message);}};
//-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
  this.Error = function(m, e){
	//alert('Error in '+this.name+'.'+m+'\n'+e);
	return false;
  };
};