/**
 * @author alex
 */
var LT = {};
LT.baseUrl = "http://" + location.host + "/";
// based on Rafael Lima's (http://rafael.adm.br) CSS Browser Selector   v0.2.5
LT.detector = {
	browser: "firefox",
	init: function() {
		var ua = navigator.userAgent.toLowerCase(),
			is = function(t){ 
				return ua.indexOf(t) != -1; 
			};
		this.browser = (!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie'):
				is('firefox/')? 	'firefox':
				is('opera')?		'opera':
				is('konqueror')?	'konqueror':
				is('applewebkit/')?	'safari':
				is('mozilla/')?		'mozilla':'';
				
		this.os = (is('x11')||is('linux'))?	'linux':
				is('mac')?					'mac':
				is('win')?					'win':'';
	}
}

LT.downloader = {	
	proceed: function() {
		LT.detector.init();
		var url = LT.baseUrl + "downloading/" + LT.detector.os + "/" + LT.detector.browser;
		//this.count();
		setInterval(function() {
			window.location.href = url;
		}, 6000);
	}
}



