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

	// Just to try something
	//alert('This works');
	/**
	 * That CSS selector will find all <a> elements with the
	 * attribute rel="boxed"
	 *
	 * The second argument sets additional options.
	 */
	SqueezeBox.assign($$('a[rel=boxed]'), {
		size: {x: 600, y: 300},
		ajaxOptions: {
			method: 'get' // we use GET for requesting plain HTML (you can skip it, it is the default value)
		}
		
	});
	
	
	SqueezeBox.assign($$('a[rel=boxed2]'), {
		size: {x: 800, y: 480},
		ajaxOptions: {
			method: 'get' // we use GET for requesting plain HTML (you can skip it, it is the default value)
		}
		
	});
	
	
	SqueezeBox.assign($$('a[rel=boxed3]'), {
		size: {x: 300, y: 200},
		ajaxOptions: {
			method: 'get' // we use GET for requesting plain HTML (you can skip it, it is the default value)
		}
		
	});

	
	SqueezeBox.assign($$('a[rel=boxed4]'), {
		size: {x: 600, y: 350},
		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: size.x,
			height: size.y
		});
	};
	 
	window.addEvent('domready', function() {
	 
		/**
		 * That CSS selector will find all <a> elements with the
		 * class boxed.
		 *
		 * The second argument sets additional options
		 */
		SqueezeBox.assign($$('a.boxedvideo'), {
			parse: 'rel'
		});
	 
	});
 
});




