var Site = {
		
		init: function() {
			if($$('div#cbtn_wrapper a')) {
				Site.initOpenCloseBtn();
			}
		},
		initOpenCloseBtn: function() {
			var el = $$('div#cbtn_wrapper a');
			var thisSlider = new Fx.Slide('overlay');
			var open = true;
			// alert("in");
			el.addEvent('click', function(event){
				thisSlider.toggle();
				
				if(open) {
					open = false;
					this.addClass('open');
				} else {
					open = true;
					this.removeClass('open');
				}
			 });
			
			
		}
		
}

//START THE INIT FUNCTION AFTER LOADING OF THE PAGE
window.addEvent('load', Site.init);