old_contents: /*!
   * Copyright 2011 France Télécom
   * This software is distributed under the terms of either the MIT
   * License or the GNU General Public License (GPL) Version 2 or later.
   * See licence.txt file for more details.
   */
   
  /* cssrule.js
   * Version : 1
   * 
   * Authors: Julien Wajsberg <julien.wajsberg@orange.com>
   * 
   * This module can insert CSS rules in a cross-browser way.
   * It was inspired by http://code.google.com/p/doctype/wiki/ArticleInstallStyles
   *
  */
  
  
  var cssrule = (function($, document, undefined) {
  	var stylesheet;
  	
  	var possibleprops = "cssText,innerText,innerHTML".split(",");
  	var propToSet;
  	
  	function init() {
  		if (document.createStyleSheet) {
  			// in IE
  			stylesheet = document.createStyleSheet();
  		} else {
  			stylesheet = $("<style type='text/css' id='cssrule'></style>").get(0);
  			$("head").append(stylesheet);
  		}
  
  		var i, cur;
  		for (i = 0; i < possibleprops.length; i++) {
  			cur = possibleprops[i];
  			if (stylesheet[cur] !== undefined) {
  				propToSet = cur;
  				break;
  			}
  		}
  	}
  	
  	function add(style) {
  		stylesheet[propToSet] += style;
  		return cssrule;
  	}
  	
  	return {
  		/**
  		 * you must call "init" function on dom ready
  		 * TODO: should we run it automatically when "add" is used the first time ?
  		 */ 
  		init: init,
  		add: add
  	};
  })(jQuery, document);
  
new_contents: /*!
   * Copyright 2011 France Télécom
   * This software is distributed under the terms of either the MIT
   * License or the GNU General Public License (GPL) Version 2 or later.
   * See licence.txt file for more details.
   */
   
  /* cssrule.js
   * Version : 1
   * 
   * Authors: Julien Wajsberg <julien.wajsberg@orange.com>
   * 
   * This module can insert CSS rules in a cross-browser way.
   * It was inspired by http://code.google.com/p/doctype/wiki/ArticleInstallStyles
   *
  */
  
  
  var cssrule = (function(document, undefined) {
  	
  	var propToSet, stylesheet;
  
  	function createStylesheet() {
  		if (document.createStyleSheet) {
  			// in IE
  			stylesheet = document.createStyleSheet();
  		} else {
  			stylesheet = document.createElement("style");
  			stylesheet.id = "cssrule";
  			
  			// TODO: should we test if there is a head ?
  			document.getElementsByTagName("head")[0].appendChild(stylesheet);
  		}
  	}
  	
  	function findPropToSet() {
  		var possibleprops = "cssText,innerText,innerHTML".split(",");
  		
  		for (i = 0; i < possibleprops.length; i++) {
  			cur = possibleprops[i];
  			if (stylesheet[cur] !== undefined) {
  				propToSet = cur;
  				break;
  			}
  		}
  	}
  	
  	function init() {
  		var i, cur;
  		
  		createStylesheet();
  		findPropToSet();
  	}
  	
  	function add(style) {
  		stylesheet[propToSet] += style;
  		return cssrule;
  	}
  	
  	return {
  		/**
  		 * you must call "init" function on dom ready
  		 * TODO: should we run it automatically when "add" is used the first time ?
  		 */ 
  		init: init,
  		add: add
  	};
  })(document);
  
subject: remove the jQuery dependency