/*
Concession JS pour Moto85
Copyright(c) 2009, Skalpel.

Author : Hervé Weltzer

Note :
	-
ToDo :
	-
*/
SKjs.BikeNavigation = new Class ({
	Implements: [Events, Options],
	options: {
		marque:			'searchBrand',
		cylindree:		'searchDisplacement',
		modele:			'searchModel',

        suffixDefault:  'defaut',

		form:			'rechercheAnnonce',
		submit:			'inputBike'
	},

	/*
	Property :
		Initialisation de la Class
	*/
	initialize: function(options) {
		this.setOptions(options);

		this.dom = {};

		this.initDom();
		this.initEvents();

		// Selects marque/cylindree/modele
		this.selects = new SKjs.Selects(this.options.marque, this.options.cylindree, this.options.modele);
	},

	initDom: function() {
		this.dom.marque			= $(this.options.marque);
		this.dom.cylindree		= $(this.options.cylindree);
		this.dom.modele			= $(this.options.modele);

		this.dom.form			= $(this.options.form);
		this.dom.submit			= $(this.options.submit);
	},

	initEvents: function() {
		//this.dom.submit.addEvent('click', this.sendForm.bindWithEvent(this));
	}
});
