window.addEvent( 'domready', function() {
	 /**
     * Set default options, overrideable from later calls.
     */
    SqueezeBox.initialize({
        size: {x: 350, y: 320}
    });
 
    /**
     * Assign SqueezeBox to all links with rel="boxed" attribute, the class then reads the "href".
     */
    SqueezeBox.assign($$('a[class=agrandissement]'));
 
    /**
     * Open some content manually
     */
    /*SqueezeBox.open('manual.html'); // handler defaults to "ajax" for urls
    SqueezeBox.open('http://digitarald.de', {handler: 'iframe'}); // we force the "iframe" handler here ...
    SqueezeBox.open($('welcome'), {handler: 'adopt'}); // and here we force "adopt" handler*/

	$$('a[class=survol]').each(function(item){
		item.addEvent('mouseover', function(){
			trailOn(item.get('href'), 100, 100);
		});
		item.addEvent('mouseout', function(){
			trailOff();
		});
	});
			
			});