
(function() {
	var options = {
		storage : 1391876, // initial storage in Mb
		date : '2010-02-16', // initial date
		speed : 0.1337, // storage growth in Mb per second
		container : 'counter_container' // container to write the data
	}
	
	var difference = 1328369309 - Math.round(new Date(options.date.replace(/-/g,'/')).getTime()/1000); // the number of seconds since the initial date
	options.container = document.getElementById(options.container); // container DOM-object

	function increaseMb () {
		var currentMb = options.storage + difference*options.speed + '';
		options.container.innerHTML = currentMb.split('.')[0].replace(/(\d)(?=((\d{3})+)$)/g,'$1\'') + '.' + currentMb.split('.')[1].substr(0,2);
		difference++;
		setTimeout(function() { increaseMb();},1000);
	};

	increaseMb();
})();
