var logoSlider = new Class({
	initialize:function(main_id)
	{
		this.main = $(main_id).getElement('ul');
		this.objs = this.main.getElements('li');
		this.addEvents();
	},
	addEvents:function()
	{
	/*	this.objs.each(function(li,index){
			li.setStyles({
				'opacity':'0.3'
			})
			li.addEvents({
				'mouseenter':function()
				{
					this.setStyle('opacity',1);
				},
				'mouseleave':function()
				{
					this.setStyle('opacity',0.3);
				}
			})
		})*/
		this.main.setStyles({
			'position':'absolute',
			'left':'0px',
			'top':'0px'
		})
		
		this.main.fx = new Fx.Tween(this.main);
		
		var $this = this;
		this.main.setStyle('top','0px');
		this.steps = ((this.main.getSize().y)/50).toInt();
		this.counter = 0;
		this.timer = (function(){
			if(($this.counter+1)<$this.steps){
				$this.counter++;
				return $this.main.fx.start('opacity',0).chain(function(){
					$this.main.setStyle('top',$this.main.getStyle('top').toInt()-58);
					$this.main.fx.start('opacity',1)})
			}
			else
			{
				return $this.main.fx.start('opacity',0).chain(function(){
					$this.main.setStyle('left','0px');
					$this.main.setStyle('top','0px');
					$this.counter = 0;
					$this.main.fx.start('opacity',1)})
			}
			
		}).periodical(8000);
	}
});

function openTour(){
	window.open('http://www.essentialskillz.com/download/ergowize_demo.swf','ErgoWize Tour',"width=796,height=635");
}

