/*
window.addEvent('domready', function() {

	SqueezeBox.assign($$('a[rel=boxed-640x480]'), { size: {x: 640, y: 480}, ajaxOptions: { method: 'get' } });
	SqueezeBox.assign($$('a[rel=boxed-400x300]'), { size: {x: 400, y: 300}, ajaxOptions: { method: 'get' } });
	
	SqueezeBox.assign($$('a[rel=boxed-480x580]'), { size: {x: 480, y: 580}, ajaxOptions: { method: 'get' } });
	
	SqueezeBox.assign($$('a[rel=boxed-960x580]'), { size: {x: 960, y: 580}, ajaxOptions: { method: 'get' } });
	
	
	
	SqueezeBox.assign($('demo-link-adopt'), {
		size: {x: 300, y: 150},
		handler: 'adopt' // we set a handler to disable handler/parser detection
	});
	
});



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: size.x,
		height: size.y
	});
};
 
window.addEvent('domready', function() {
 
	SqueezeBox.assign($$('a.boxed'), {
		parse: 'rel'
	});
 
});

*/

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[rel=boxed_350x290]'), {
		size: {x: 360, y: 310},
		ajaxOptions: {
			method: 'get' // we use GET for requesting plain HTML
		}
	});
	
	SqueezeBox.assign($$('a[rel=boxed_840x500]'), {
		size: {x: 840, y: 500},
		ajaxOptions: {
			method: 'get' // we use GET for requesting plain HTML
		}
	});
 
});

