var Site = {

	start: function(){
		if ($('infoContainer')){
			Site.slideInfo();
		}
	},
	
	hideSlideInfo : function(){
		var timer = 0;
        el = $('infoContainer');
            el.setStyle('margin-top', '0px');
            timer += 200;
            slidefxs = new Fx.Style(el, 'margin-top', {
                duration: 1000,
                transition: Fx.Transitions.backOut,
                wait: false
            });
            slidefxs.start.delay(timer, slidefxs, -450);
        
		/*var sideblocks = $$('#infoContainer');

		var slidefxs = [];
		var colorfxs = [];

		sideblocks.each(function(el, i){
			el.setStyle('margin-top', '0px');
			timer += 200;
			slidefxs[i] = new Fx.Style(el, 'margin-top', {
				duration: 1000,
				transition: Fx.Transitions.backOut,
				wait: false
			});
			slidefxs[i].start.delay(timer, slidefxs[i], -450);

		}, this);*/
	},
	
	slideInfo: function(){
		var timer = 0;
		/*var sideblocks = $$('#infoContainer');

		var slidefxs = [];
		var colorfxs = [];*/

        el = $('infoContainer');
            el.setStyle('margin-top', '-450px');
            el.setStyle('display', 'block');
            timer += 200;
            slidefxs = new Fx.Style(el, 'margin-top', {
                duration: 750,
                transition: Fx.Transitions.backOut,
                wait: false
            });
            slidefxs.start.delay(timer, slidefxs, 0);
		
		/*sideblocks.each(function(el, i){
			el.setStyle('margin-top', '-450px');
			timer += 200;
			slidefxs[i] = new Fx.Style(el, 'margin-top', {
				duration: 750,
				transition: Fx.Transitions.backOut,
				wait: false
			});
			slidefxs[i].start.delay(timer, slidefxs[i], 0);

		}, this);*/
	}
};

window.addEvent('load', Site.start);
