/**
 * @author patcla
 */
window.user = {
	jsSupportLevel:(function(){
		if (!document.getElementById){return 0};
		if (window.location.search.indexOf("js=off")!=-1){return 0};
		var support = 1;
		var ua = navigator.userAgent.toLowerCase()
		var app =  navigator.platform.toLowerCase()
		var isFF = (ua.match("firefox"))?true:false;
		var isDeskTop = ( app.match("win32") || app.match("win64") || app.match("macintel") )?true:false;
		if (window.XMLHttpRequest){
			support = 2;
		}
		if (support==2 && ( isDeskTop || isFF )){
			support = 3;
		}
		return support;
	})(),
	isPointerOnly:(function(){
		if (!document.getElementById){return false};
		var ua = navigator.userAgent.toLowerCase();
		var app =  navigator.platform.toLowerCase();
		var isPointerOnly = false;
		var isDeskTop = ( app.match("win32") || app.match("win64") || app.match("macintel") )?true:false;
		var isIphone = (ua.match('iphone')||ua.match('ipod'))?true:false;
		isPointerOnly = (ua.match('wii') || isIphone)?true:false;
		return isPointerOnly;		
	})()
}