// Wait for the content ...
window.addEvent('domready', function(){
 
    /**
     * Set default options, overrideable from later calls.
     */
    SqueezeBox.initialize({
        size: {x: 350, y: 400}
    });
 
    /**
     * Assign SqueezeBox to all links with rel="boxed" attribute, the class then reads the "href".
     */
    SqueezeBox.assign($$('a[rel=boxed_image]'), {handler: 'image'});
 
    /**
     * 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
});
