
	on_window_load(function () {
		debug("Loading time: " + ((new Date()).getTime() - START_TIME) + "ms");
	});

	var ClassSw = function (el) {
		this.el = el;
		this.variants = ["variant-1", "variant-2"];
		this.av = 0;
		this.interval = 1200;

		setInterval(createMethodReference(this, function () {
			if (this.enabled) {
				this.doswitch();
			}
		}), this.interval);
	};

	ClassSw.prototype.enabled = false;

	ClassSw.prototype.doswitch = function () {
		this.el.className = this.el.className.replace(this.prev, "");
		this.el.className += " " + this.variants[this.av];
		this.prev = this.variants[this.av];

		this.av ++;
		if (this.av >= this.variants.length)
			this.av = 0;
	};