window.addEvent('domready', function() {	
	var openHeader = 'home_header';
	
	$$('.benefit').fade('hide');
	
	$$('.leftColumn a').each( function(el) {
		el.addEvent('click', function( e ) {
			Event.stop(e);
			
// scroll to the header
var myFx = new Fx.Scroll(window).toElement('home_header');


			$( openHeader ).setStyle('zindex', 1);
			$(el.rel).setStyles( {'zindex':2, 'display':'block'} );
			
			$(el.rel).fade();
			$( openHeader ).fade();			
			
			openHeader = el.rel;
			
		});
	} );
	
	/**
     * Set default options, overrideable from later calls.
     */
    SqueezeBox.initialize({
        size: {x: 600, y: 400},
		handler: 'iframe'
    });
 
    /**
     * Assign SqueezeBox to all links with rel="boxed" attribute, the class then reads the "href".
     */
    SqueezeBox.assign($$('a.squeezeBox'));
 
    /**
     * Assign SqueezeBox to all links with rel="boxed" attribute, the class then reads the "href".
     */
    SqueezeBox.assign($$('a.squeezeBoxCF'), { size: {x:320, y:340} });

});
