// Wait for the content ...
window.addEvent('domready', function() {
 
//    SqueezeBox.initialize({
//        size: {x: 400, y: 400}
//    });
 
//    SqueezeBox.assign($$('a[rel=squeezebox]'));

	SqueezeBox.assign($$('a[rel=squeezebox]'), {
		size: {x: 800, y: 500},
		ajaxOptions: {
			method: 'get' // we use GET for requesting plain HTML (you can skip it, it is the default value)
		}
	});

	SqueezeBox.assign($$('a.squeezebox_iframe.'), {
		size: {x: 800, y: 500},
		parse: 'rel'
	});
	SqueezeBox.assign($$('a.squeezebox_basket_iframe.'), {
		size: {x: 800, y: 500},
		parse: 'rel',
		closeable: 0,
		onClose: function() {
			load_basket();
		}
		
	});

 
    /**
     * 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
});
