// Code spécifique au moonmotel

/*
	Solution to the "onload problem" provided by Dean Edwards :
		http://dean.edwards.name/weblog/2006/06/again/
	... This code, below, has been suscessfully updated by Byron :
		http://dean.edwards.name/weblog/2006/06/again/#comment335794
	
	Dean Edward
	http://dean.edwards.name/
	
	Byron
	http://randomous.com/tools/floatbox/
*/
function init() {
  if (arguments.callee.done) return;
  arguments.callee.done = true;
  // do your thing
	stripImageFloating();
}
if (document.addEventListener) {
  document.addEventListener('DOMContentLoaded', init, false);
}
(function() {
  /*@cc_on
  if (document.body) {
    try {
      document.createElement('div').doScroll('left');
      return init();
    } catch(e) {}
  }
  /*@if (false) @*/
  if (/loaded|complete/.test(document.readyState)) return init();
  /*@end @*/
  if (!init.done) setTimeout(arguments.callee, 50);
})();
_prevOnload = window.onload;
window.onload = function() {
  if (typeof _prevOnload === 'function') _prevOnload();
  init();
};


/*
	moon's code, below :
*/

function ouverture(){
}


function stripImageFloating(){
	/*
		artefact de la migration entre DC1 & DC2 :
		le nouveau thème ne supporte plus le placement d'image en float
	*/
		//window.alert( 'F : stripImageFloating' );
	var innerPage = document.getElementById("page"); 
	var postImg = innerPage.getElementsByTagName("img"); 
	for (var i = 0; i < postImg.length; i++){ 
	    postImg[i].style.cssFloat = "none"; /* gecko */
	    postImg[i].style.styleFloat = "none"; /* IE */
	    postImg[i].style.margin = "0px";
	    postImg[i].style.marginBottom = "10px";
	}
}