
$(function()
{function formatUserAgentValue(value)
{if(value)
{return value;}
return"";}
function updateInformation()
{$.each($("#user-agent-information tbody tr"),function()
{$(this).children().eq(1).text(eval($(this).children().eq(0).text()));});$("#user-agent-xml").html('&lt;useragent description="User Agent" useragent="'+formatUserAgentValue(navigator.userAgent)+'" appcodename="'+formatUserAgentValue(navigator.appCodeName)+'" appname="'+formatUserAgentValue(navigator.appName)+'" appversion="'+formatUserAgentValue(navigator.appVersion)+'" platform="'+formatUserAgentValue(navigator.platform)+'" vendor="'+formatUserAgentValue(navigator.vendor)+'" vendorsub="'+formatUserAgentValue(navigator.vendorSub)+'"/&gt;');}
$("div.warning-module").hide();$(".hide").show();$("#refresh-information").click(function()
{$("#user-agent-information").hide();updateInformation();$("#user-agent-information").slideDown();});updateInformation();});