window.addEvent('domready', function() {
 
	/**
	 * That CSS selector will find all <a> elements with the
	 * attribute rel="boxed"
	 *
	 * The second argument sets additional options.
	 */
	 	SqueezeBox.assign($$('a.swfboxed'), {
		parse: 'rel'
	});
	SqueezeBox.assign($$('a[rel=boxed]'), {
		size: {x: 900, y: 600},
		ajaxOptions: {
			method: 'get' // we use GET for requesting plain HTML (you can skip it, it is the default value)
		}
	});
 SqueezeBox.parsers.swf = function(preset) {
	return (preset || this.url.test(/\.swf/)) ? this.url : false;
};
 
SqueezeBox.handlers.swf = function(url) {
	var size = this.options.size;
	return new Swiff(url, {
		id: 'sbox-swf',
		width: 400,
		height: 305
	});
};
});