var $winVersion = '7'; 
// alert ('navigator.userAgent ' + navigator.userAgent);
if (/Windows NT (\d+\.\d+);/.test(navigator.userAgent)) //test for MSIE x.x;
{ 
	$winVersion = new Number(RegExp.$1); // capture x.x portion and store as a number
}
