/*
	Class: site
		Performs different action to the product.
		
	Usage:
		For instant, use to manage product variation
		
	Parameters:
		productClass - Product target (the product container)
		targetPrice - Product price target 
		targetVariation - Product variations target (all)
		separator - The char who separe thousand 
		formatPrice - Choose if the price must be formated // 0 : no format price (ex:1200) / 1 : format (ex:1'200.00)
		
	Exemple:
	
	About:
		product.js v.1.0 for mootools v1.1 05 / 2007
		
		by Floor SA (http://www.floor.ch) MIT-style license
		
		modified by Denis Schneiter 18.09.2007
		modified by sb 10.05.2010
*/
var site = {
	options: {
		server: 'laclinic',
		defaultLang: 'fr'
	},
	
	start: function() {
		/* init Slide show */
		if (typeof(IFInterface) == 'undefined') {
			 var data = {
			  '23.jpg': { caption: 'A Ceibu tree.' }, 
			  '33.jpg': { caption: 'Volcano Asención in Ometepe, Nicaragua.' }, 
			  '76.jpg': { caption: 'The view from Volcano Maderas.' }, 
			  '23.jpg': { caption: 'Beer and ice cream.' }
			};
			var myShow = new Slideshow('show', data, { 
				duration: 1500, 
				delay: 4000, 
				hu: '/data/category/image/', 
				height: 339, 
				width: 980 
			});
		}
		/* init menu */
	
		this.mainmenu = new FlyingButton({
			target : '.mainmenu',
			klass: 'button'
		});
		
		this.menu = new FlyingButton({
			target : '.menu',
			klass: 'button',
			color: ['#D6D1CA','#454545']
		});
		
		
		
		
		if ($('mymenu')) {
			$('mymenu').setStyle('left',(980 - $('mymenu').getSize().x)/2);
		}
	}
};


window.addEvent('domready', function()	{
	site.start();
});
