/*
 * Init js file
 * Adds a 'js' class on body element to provide
 * extra CSS hook for javascript interaction
 * Ex: in order to hide with CSS a hide-and-show block to prevent flickering
 * 
 */

// appending css to hide elements
// css url
//var url = 'http://aigle-fr.vip03.mixcommerce.lbn.fr/css/hide.css';
var url = '/css/hide.css';

var css = document.createElement('link');
css.setAttribute('type', 'text/css');
css.setAttribute('rel', 'stylesheet');
css.setAttribute('href', url);
document.getElementsByTagName('head')[0].appendChild(css);

window.onload = function() {
	document.getElementsByTagName('body')[0].className = 'js';
}
