/* ********************************************************************************************************************
**
**	Name: 			bsPrep
**	
**	Version: 		0.1																			
** 	Author: 		Ben Sekulowicz
**
******************************************************************************************************************** */

var bsPrep = Class.create();

bsPrep.prototype = {	
   	initialize: function(className) {
		// Set the target and the class to add
		this.className = className;
		
		// Timer based
		this.tstTimer = window.setInterval(this.tstTimer.bind(this), 10);
	},
	
	/* *********************************************************************************************************************
	
	Timer based functions
	
	********************************************************************************************************************* */
	
	tstTimer: function() {
		if (document.body) {	
			// Kill timer
			window.clearInterval(this.tstTimer);	
			
			// Add class
			Element.addClassName(document.body, this.className);
		}
	}

	/* *********************************************************************************************************************
	
	FIN
	
	********************************************************************************************************************* */
}