﻿if (/WebKit/i.test(navigator.userAgent)) { // sniff
	var _timer = setInterval(function() {
		if (/loaded|complete/.test(document.readyState)) {
			clearInterval(_timer);
			delete _timer;
			Valor.init(); // call the onload handler
		}
	}, 10);
}
else if (document.addEventListener) {
	document.addEventListener("DOMContentLoaded", Valor.init, false);
}
else if (navigator.appName != 'Microsoft Internet Explorer' || !teste)
	window.onload = Valor.init;
