/*
Base JS pour Moto85
Copyright(c) 2009, Skalpel.

Author : Michael
michael@skalpel.fr

Note : 
	-
ToDo :
	- 
*/

var SKjs = { 
	version: '1.0',
	
	spacer: 'images/interface/spacer.gif',
	encoding: 'utf-8',
	
	activeCls: 'active',
	disabledCls: 'disabled'
};


/**
 * Returns request id (timestamp)
 *
 * @return  {Integer}   Request id
 */
SKjs.requestId = function() {
    return Math.floor((new Date()).getTime() / 1000);
}

window.addEvent('load', function() {
    WebApp.AddEventListener("endslide", initJS);
});

function initJS(evt) {
    if ($('editBike')) new SKjs.EditBike();
	if ($('rechercheAnnonce')) new SKjs.BikeNavigation();
}


