﻿/*
if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
 var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (ffversion>=5)
  //document.write("You're using FF 5.x or above")
 else if (ffversion>=4)
  //document.write("You're using FF 4.x or above")
 else if (ffversion>=3)
  //document.write("You're using FF 3.x or above")
 else if (ffversion>=2)
  //document.write("You're using FF 2.x")
 else if (ffversion>=1)
  //document.write("You're using FF 1.x")
}
else
 //document.write("n/a")
*/
if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
 var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (ffversion>=3)
	document.write("<!-- You're using FF 3.x or above -->") 
 else
 {
 		document.write("<!-- You're using FF below 3.x  -->") 
 }
}
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
{ //test for MSIE x.x;
 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (ieversion>6)
  	document.write("<!-- You're using IE7.x or above -->") 
  else{
  		var language = navigator.userLanguage; 
  		if (language.indexOf('pt') > -1){  
  			window.location='/Util/ie6/default.htm'
  		}
  		else{window.location='/Util/ie6/default_EN.htm'}
  }
}
 /*if (ieversion>=9)
  document.write("You're using IE9 or above")
 else if (ieversion>=8)
  document.write("You're using IE8 or above")
 else if (ieversion>=7)
  document.write("You're using IE7.x")
 else if (ieversion>=6)
  document.write("You're using IE6.x")
 else if (ieversion>=5)
  document.write("You're using IE5.x")
}
else
 document.write("n/a")
*/
