var msie;
var winW;
var winH;
if (navigator.userAgent.indexOf("MSIE") != -1){
var msie=navigator.userLanguage;
var winW = document.body.offsetWidth;
var winH = document.body.offsetHeight;
}  
else{
var msie=navigator.language;
var winW = window.innerWidth;
var winH = window.innerHeight;
}

document.write("<p><p>JavaScript Information:</p>");

document.write("<p>User Agent Header: <strong>");
document.write(navigator.userAgent + "</strong></p>");

document.write("<p>Browser: <strong>");
document.write(navigator.appName + "</strong></p>");

document.write("<p>Browser Version: <strong>");
document.write(navigator.appVersion + "</strong></p>");

document.write("<p>Code Name: <strong>");
document.write(navigator.appCodeName + "</strong></p>");

document.write("<p>Platform: <strong>");
document.write(navigator.platform + "</strong></p>");

document.write("<p>User Language: <strong>");
document.write(msie + "</strong></p>");

document.write("<p>Cookies enabled: <strong>");
document.write(navigator.cookieEnabled + "</strong></p>");

document.write("<p>Screen resolution: <strong>");
document.write(screen.width + " x " + screen.height + "</strong></p>");

document.write("<p>Available view area: <strong>");
document.write(screen.availWidth + " x " + screen.availHeight + "</strong></p>");

document.write("<p>Window Size: <strong>");
document.write(winW + " x " + winH + "</strong></p>");

document.write("<p>Color depth:: <strong>");
document.write(screen.colorDepth + "</strong></p>");

document.write("<p>User System Date: <strong>");
document.write(Date() + "</strong></p>");

function print_r(theObj){
	  if(theObj.constructor == Array ||
	     theObj.constructor == Object){
	    document.write("<ul>");
	    for(var p in theObj){
	      if(theObj[p].constructor == Array||
	         theObj[p].constructor == Object){
	document.write("<li>["+p+"] => "+typeof(theObj)+"</li>");
	        document.write("<ul>");
	        print_r(theObj[p]);
	        document.write("</ul>");
	      } else {
	document.write("<li>["+p+"] => "+theObj[p]+"</li>");
	      }
	    }
	    document.write("</ul>");
	  }
	}

//bbb=navigator.mimeTypes;
ccc=navigator.plugins;
print_r(ccc);
