var W=window,D=document,L=W.location,N=navigator;
W.onload=function() {
	/*var i=new Image();
	i.src='/ping.php?url='+encodeURIComponent(L.href);
	D.getElementsByTagName("body")[0].appendChild(i);*/
	//alert(N.appCodeName+'\n'+N.appName+'\n'+N.appVersion+'\n'+N.platform+'\n'+N.cookieEnabled);
	if(N.userAgent.indexOf("MSIE 7.0")>-1) {
		D.title+=' - Browser version not supported.';
		if(N.userAgent.indexOf("MSIE 6.")>-1) {
			D.write('<center><h1>NO!</h1></center>');
		} else {
			console.log(1);
		}

		/*var doItNow=W.confirm('Upgrade ? :-)');
		if(doItNow) {
			W.setTimeout(function() {
				L.href='http://windows.microsoft.com/en-US/internet-explorer/downloads/ie-9/worldwide-languages';
			},2000);
		} else {
			
		}*/
		
		return false;	
	}
	
	/*var _header=D.getElementsByTagName('header')[0],B=D.getElementsByTagName('body')[0],r=g=b=128,fadeOut;
	
	if(_header) {
		_header.onclick=function() {
			if(typeof fadeOut != undefined) {
				W.clearInterval(fadeOut);
				fadeOut;
				_header.getElementsByTagName('a')[0].style.cssText=_header.style.cssText='color:rgb(128,128,128);border-color:rgb(128,128,128)';
			} 
			return false;
		}
	}
	
	fadeOut=W.setInterval(function() {
		if(r!=0) {
			_header.getElementsByTagName('a')[0].style.cssText=_header.style.cssText='color:rgb('+r+','+g+','+b+');border-color:rgb('+r+','+g+','+b+')';
			r--;g--;b--;
		} else {
			_header.getElementsByTagName('a')[0].style.cssText=_header.style.cssText='border:0;';
			W.clearInterval(fadeOut);
			fadeOut;
			_header.innerHTML='';
			B.removeChild(_header);
		}
	},150);*/
}
