window.addEvent('domready', function() {
 
	/**
	 * You can run this code as first code to set default options
	 * SqueezeBox.initialize({ ... });
	 */
 
 
	SqueezeBox.assign($$('a[rel=boxedGallery]'));
 
});

window.addEvent('domready', function() {  
           //create our Accordion instance  
           var myAccordion = new Accordion($('accordion'), 'h3.toggler', 'div.element', {  
             opacity: false,  
             onActive: function(toggler, element){  
               toggler.setStyle('color', '#000');  
             },  
             onBackground: function(toggler, element){  
               toggler.setStyle('color', '#990000');  
             }  
           });  
         });  


window.addEvent('load', function() {
	new DatePicker('.demo_value', {
		pickerClass: 'datepicker_dashboard',
		debug: false
	});
});

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=boxedLocation]'), {
		size: {x: 240, y: 400},
		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.boxed'), {
		parse: 'rel'
	});

});
