var load_method = (window.ie ? 'load' : 'domready');
window.addEvent(load_method, function(){
	/*var scroll2 = new Scroller('mousemove', {area: 170, velocity: 0.03});
	

	// Mousemove
	// $('mousemove').addEvent('mouseover', scroll2.start());
	// $('mousemove').addEvent('mouseout', scroll2.stop());
	$('mousemove').addEvent('mousedown', function() {
		scroll2.start();
	});
	$('mousemove').addEvent('mouseup', function() {
		scroll2.stop();
	});
	
	scroll2.start();
	
	
	
	var scroll1 = new Scroller('product-views-slider', {area: 140, velocity: 0.03});
	$('product-views-slider').addEvent('mousedown', function() {
		scroll1.start();
	});
	$('product-views-slider').addEvent('mouseup', function() {
		scroll1.stop();
	});
	scroll1.start();*/
	SqueezeBox.initialize();
 
    /**
     * Assign SqueezeBox to all links with rel="boxed" attribute, the class then reads the "href".
     */
    SqueezeBox.assign($$('form[rel=boxed]'), {
    	size: {x: 500, y: 180},
    	ajaxOptions: {
    	 method: 'post',
    	 data: $('form_order_product')
    	} 
    });
    SqueezeBox.assign($$('a[rel=boxed]'), {
    	size: {x: 500, y: 550}
    });
    
    

	//document.getElementById('id_ord_quantity').disabled = true;
});

function zoomifyChange ( imgPath, zoom ) {
	$('flash').set( 'html', '<img src =\"'+imgPath+'\" data-zoomsrc = \"'+zoom+'\" />' );
	MojoZoom.init();
}