function SectionList(A){this.list=[];this.otype=A||"html";this.eol=(this.otype=="html"?"<br>":"\n");this.Add=function(B){if(this.otype!="html"){B=B.replace(/\<br\>/g,"\n");B=B.replace(/\<[^>]+\>/g,"");B=B.replace(/\&nbsp;/g," ")}this.list[this.list.length]=B+this.eol};this.AddSubhead=function(B){if(this.list.length&&this.otype=="html"){this.list[this.list.length]="</div>"}if(this.otype=="html"){this.list[this.list.length]="<div class=SectionSubhead>&nbsp;&nbsp;"+B+"</div><div class=SectionGroup>"}else{this.list[this.list.length]="\n==== "+B+" ====\n"}};this.GetSection=function(){if(this.otype=="html"){this.list[this.list.length]="</div>"}return this.list.join("")}}var MoboURL="http://www.gateway.com/support/techdocs/references/motherboard/";var BIOSCodes=[["GB85010A","GB85010A/index.shtml"],["PT84510A","PT84510A/index.shtml"],["MV85010A","MV85010A/index.shtml"],["WL81020A","wl81020a/index.shtml"],["EA81510A","EA81510A/EA81510.shtml"],["EA81520A","EA81520A/index.shtml"],["HV84510A","hv84510a/index.shtml"],["404CL0X0","404cl0x0/404cl0X0.shtml"],["4A4LL0X0","4a4ll0x0/4a4ll0X0.shtml"],["4D4KL0X0","4d4kl0x0/4d4kl0X0.shtml"],["4F4JZ0XB","4f4jz0xb/4f4jz0xb.shtml"],["4J4NB0X1","4j4nb0x1/4j4nb0x1.shtml"],["4K4UE0X1","4k4ue0x1/4k4ue0x1.shtml"],["4M4PB0X1","4m4pb0x1/4m4pb0x1.shtml"],["4M4SG0X0","4m4sg0x0/4m4sg0x0.shtml"],["4R4CB0XA","4r4cb0xa/4r4cb0xa.shtml"],["4W4SB0X0","4w4sb0x0/4w4sb0x0.shtml"],["4L3TT0X0","4l3tt0x0/4L3TT0X0.shtml"],["0AAVW","0aavw/index.shtml"],["0AASN","0aasn/0aasn.shtml"],["0AAQM","0aaqm/0aaqm.shtml"],["0AAWV","0aawv/index.shtml"],["0AAVI","0aavi/index.shtml"],["0AAKW","0aakw/0AAkw.shtml"],["0AAES","0aaes/0AAES.shtml"],["0AAGT","0aagt/0AAGT.shtml"],["00AANG","0aang/00aang.shtml"],["DI0T","di0t/di0t.shtml"],["DT0T","dt0t/dt0t.shtml"],["AX1T","AX1T/ax1t.shtml"],["BR0T","BR0T/br0t.shtml"],["BS0T","BS0T/bs0t.shtml"],["CG0T","CG0T/cg0t.shtml"],["CN0T","cn0t/CN0T.shtml"],["CS1T","cs1t/CS1T.shtml"],["CY1T","cy1t/CY1T.shtml"],["DQ0T","dq0t/DQ0T.shtml"]];function SystemOverview(B){var C=new SectionList(B);C.Add("Model: <b>"+Config.make+" "+Config.model+"</b>");C.Add("Serial Number: <b>"+(String(Config.serial)||"(unknown)")+"</b>");C.Add("System name: <b>"+(Config.comp_name||"(no name)")+"</b>");var D=Config.BIOS;for(var A=0;A<BIOSCodes.length;A++){if(D.indexOf(BIOSCodes[A][0])>=0){if(B!="html"){break}}}return C.GetSection()}function SummaryProcessor(A){var B=new SectionList(A);var D=Config.nCPUs;B.Add((D>1?("("+D+")"):"")+Config.CPUDesc+", "+Config.ClockFrequency+" MHz");var C=Config.ExternalClock;if(C){B.Add(C+"MHz external bus")}return B.GetSection()}function SummaryBIOS(A){var B=new SectionList(A);B.Add(Config.BIOS||"(unknown)");return B.GetSection()}function SummaryMemory(D){var E=new SectionList(D);E.Add(Config.RAMInstalled+"MB physical ");var A=Tests.FreeResources;if(OSFormalName(Config.OSVersion)=="Windows XP"||OSFormalName(Config.OSVersion)=="Windows 2000"||OSFormalName(Config.OSVersion)=="Windows NT"){}else{E.Add(A+"% free resources")}var C=Config.MemorySlots;if(C){var B=(String(Config.MemoryType).match(/^([\d\+]+)/)||["",""])[1];if(B){B=" ("+B+")"}E.Add(C+" memory slots, "+Config.FreeMemorySlots+" free"+B)}return E.GetSection()}function SummaryVideo(B){var C=new SectionList(B);C.Add("Graphics Adapter: "+Config.VideoDesc);C.Add("Screen Area/Colors: "+Config.VidHoriz+"x"+Config.VidVert+" pixels, "+VidBppToColors(Config.VidBpp)+" colors");LoadMonitors();for(var A=0;A<Monitors.length;A++){C.Add("Monitor: "+Monitors[A].Monitor)}return C.GetSection()}function SummaryDisk(C){var E=new SectionList(C);for(var A=0;A<Drives.length;A++){var D=Drives[A];if(D.DriveType=="Hard disk"||(D.DrivePath=="C:\\"&&D.DriveType=="Removable")){E.Add(D.DrivePath+" ("+D.PartType+") "+D.Size+"MB total, "+D.Free+"MB free");if(D.LastScan||D.LastOpt){E.Add("  (Scanned "+(D.LastScan||"?")+", Defragged "+(D.LastOpt||"?")+")")}}else{if(D.DriveType=="CD-ROM"){E.Add(D.DrivePath+" CD-ROM/CD-RW or DVD Drive")}else{E.Add(D.DrivePath+" "+D.DriveType)}}}for(var B=0;B<Disks.length;B++){var F=Disks[B]}return E.GetSection()}function SummaryNetwork(B){var D=new SectionList(B);LoadDevices();for(var F in Devices){if(F.search(/modem/i)<0&&F!="net"){continue}var A=Devices[F]||[];for(var E=0;E<A.length;E++){var C=A[E];if(String(C.Product).search(/miniport/i)>=0){continue}D.Add("("+F+") "+C.Vendor+" "+C.Product)}}return D.GetSection()}function SummaryWindows(B){var C=new SectionList(B);C.Add(OSFormalName(Config.OSVersion)+" ("+Config.OSVersion+")");C.Add("Original setup date: "+(Config.WindowsInstallDate||"(unknown)"));C.Add("DirectX Version: "+(Config.DirectXVer||"(unknown)"));if(Tests.Flags&64){C.Add("SWAP FILE DISABLED")}else{if(Tests.PagingDrive||Tests.MinPagingFileSize||Tests.MaxPagingFileSize){var D="";D+="Swap file on "+(Tests.PagingDrive||"C:");D+=Tests.MinPagingFileSize?(" Min "+Tests.MinPagingFileSize+"KB"):"";D+=Tests.MaxPagingFileSize?(" Max "+Tests.MaxPagingFileSize+"KB"):"";C.Add(D)}else{C.Add("Swap file managed by Windows")}}if(Tests.MinFileCache||Tests.MaxFileCache){var A="File cache: ";A+=Tests.MinFileCache?(" Min "+Tests.MinFileCache+"KB"):"";A+=Tests.MaxFileCache?(" Max "+Tests.MaxFileCache+"KB"):"";C.Add(A)}else{C.Add("File cache managed by Windows")}if(Tests.MaxPhysPage){C.Add("Windows memory limited to "+Tests.MaxPhysPage+"MB")}return C.GetSection()}function SummaryBrowser(B){var C=new SectionList(B);C.Add(Config.Browser);var A=Tests.IEFlags;C.Add("Proxy: "+((A&1)?(Tests.IEProxyServer||Tests.IEAutoConfigURL||"UNKNOWN"):"No proxy set"));C.Add("HTTP level: direct 1."+((A&2)?"1":"0")+", proxy 1."+((A&4)?"1":"0"));C.Add("Scripting version: "+Tests.WSHVer);return C.GetSection()}function HardwareList(D){Status.Update("Checking hardware...");LoadDevices();var M=new SectionList(D);if(D=="text"){var F={cdrom:"CD and DVD Drives",computer:"System",diskdrive:"Hard Drives",display:"Video",fdc:"Floppy Drive Controller",floppydisk:"Floppy Drive",hdc:"Hard Drive Controllers",keyboard:"Input Devices",monitor:"Video",mouse:"Input Devices",processor:"!",usb:"Universal Serial Bus (USB)",pcmcia:"PCMCIA",printer:"Printer",modem:"Modem",tapedetection:"!",volume:"!"}}else{var F={battery:"Battery",cdrom:"CD and DVD Drives",computer:"System",diskdrive:"Hard Drives",display:"Video",fdc:"Floppy Drive Controller",floppydisk:"Floppy Drive",hdc:"Hard Drive Controllers",keyboard:"Input Devices",monitor:"Video",mouse:"Input Devices",processor:"!",usb:"Universal Serial Bus (USB)",pcmcia:"PCMCIA",printer:"Printer",modem:"Modem",tapedetection:"!",volume:"!"}}var J={Media:[/(Legacy|Codecs)/i,/Microsoft.*(Kernel|Compatibility)/i,/Media control devices/i],System:[/Microcode Update Device/i,/Terminal Server/i,/Plug and Play Software Device Enumerator/i,/(Direct memory access|Numeric data processor)/i,/(Printer port logical|Logical disk manager)/i,/(Volume Manager|System board|System CMOS)/i,/(System speaker|PCI bus|System timer|Programmable interrupt)/i,/(ISAPNP|ACPI Power|ACPI Fixed Feature|Motherboard resources)/i]};var B=[];var H={};for(var C in Devices){if(C.substr(0,3)=="net"){continue}var I=F[C]||(C.charAt(0).toUpperCase()+C.substr(1));if(I=="!"){continue}if(!H[I]){B[B.length]=I;H[I]=[]}var A=H[I];var E=Devices[C];for(var Q=0;Q<E.length;Q++){A[A.length]=E[Q]}}B.sort();for(var K=0;K<B.length;K++){var S=B[K];M.AddSubhead(S);H[S].sort(function(U,T){if(!U.Vendor){return T.Vendor?1:0}if(!T.Vendor){return -1}return U.Vendor>T.Vendor?1:(U.Vendor<T.Vendor?-1:0)});var P=J[S]||[];for(var L=0;L<H[S].length;L++){var Q=H[S][L];var R=(Q.Problem!=0)&&(Q.Product.search(/PCI Steering/)<0);var O=Q.Product;if(Q.Product.indexOf(Q.Vendor)!=0){O=Q.Vendor+" "+O}if(Q.DriverDate){O+=" ("+Q.DriverDate+")"}for(var N=0;N<P.length;N++){if(P[N].test(O)){O="";break}}if(O){M.Add(O)}}}for(var L=0;L<Monitors.length;L++){var G=Monitors[L];if(!G.Monitor||!G.MonMaxHSize){continue}M.AddSubhead("Display: "+G.Monitor);M.Add("Size: "+Math.round(Math.sqrt(G.MonMaxVSize*G.MonMaxVSize+G.MonMaxHSize*G.MonMaxHSize)/2.54+1.2)+"-inch diagonal ("+G.MonMaxHSize+"mm x "+G.MonMaxVSize+"mm viewable)");M.Add("Max. Resolution: "+G.MonMaxHRes+" x "+G.MonMaxVRes+" pixels");M.Add("Serial Number: "+G.MonSerialNr);M.Add("Manufactured: "+Math.floor(1+(G.ManufactureWeek*7)/31)+"/"+G.ManufactureYear)}return M.GetSection()}function clikker(B,A,C){if(B.style.display==""){B.style.display="none";A.src="http://cdnsupport.gateway.com/support/profiler/images/rarrow.gif";C.value=0}else{B.style.display="";A.src="http://cdnsupport.gateway.com/support/profiler/images/darrow.gif";C.value=1}}function SoftwareList(D){RunCpuLoad();Status.Update("Checking software...");LoadApps(Status);Apps.sort(function(I,H){if(!I.Product){return H.Product?-1:0}if(!H.Product){return 1}return I.Product>H.Product?1:(I.Product<H.Product?-1:0)});var E=new SectionList(D);var G=Tests.CpuLoad;if(D=="html"){E.AddSubhead("<img class='NV1' id='DisplayIcon' name='DisplayIcon' onclick='clikker(Display,DisplayIcon,DisplayForm)' src='http://cdnsupport.gateway.com/support/profiler/images/rarrow.gif'>&nbsp;&nbsp;<a href='#' class='link2new' onclick='clikker(Display,DisplayIcon,DisplayForm);'>Running Applications</a>");E.Add("<Div id='Display' name='Display' value=''>");E.Add("<SCRIPT>Display.style.display='none';</SCRIPT>")}for(var C=0;C<Apps.length;C++){var A=Apps[C];if(!parseInt(A.Running)){continue}var B=A.Version.replace(/\(XPClient.010817-1148\)/i,"");var F=A.Product.substr(0,50);if(!F&&!B){F=A.FileName}E.Add("<b> "+F+"</b> "+B+"<br />&nbsp; &nbsp;"+A.FileName+"<br />")}E.Add("<INPUT id=DisplayForm name=DisplayForm type=hidden value=0>");E.Add("</Div>");E.Add("<img class='NV1' id='DisplayIcon22' name='DisplayIcon22' onload='clikker(Display,DisplayIcon,DisplayForm)' src='http://cdnsupport.gateway.com/support/images/trans_pixel.gif'>");if(D=="html"){E.AddSubhead("<img class='NV2' id='DisplayIcon2' name='DisplayIcon2' onclick='clikker(Display2,DisplayIcon2,DisplayForm2)' src='http://cdnsupport.gateway.com/support/profiler/images/rarrow.gif'>&nbsp;&nbsp;<a href='#' class='link2new' onclick='clikker(Display2,DisplayIcon2,DisplayForm2);'>Installed Applications</a>");E.Add("<Div id='Display2' name='Display2' value='' >");E.Add("<SCRIPT>Display2.style.display='none';</SCRIPT>")}for(var C=0;C<Apps.length;C++){var A=Apps[C];if(parseInt(A.Running)){continue}var B=A.Version.replace(/\(XPClient.010817-1148\)/i,"");var F=A.Product.substr(0,50);if(!F&&!B){F=A.FileName}E.Add("<b> "+F+"</b> "+B+"<br />&nbsp; &nbsp;"+A.FileName+"<br />")}E.Add("<INPUT id=DisplayForm2 name=DisplayForm2 type=hidden value=0>");E.Add("</Div>");E.Add("<img class='NV1' id='DisplayIcon23' name='DisplayIcon23' onload='clikker(Display2,DisplayIcon2,DisplayForm2)' src='http://cdnsupport.gateway.com/support/images/trans_pixel.gif'>");return E.GetSection()}function NetworkList(M){Status.Update("Checking network components...");LoadNetwork();var J=new SectionList(M);J.AddSubhead("Network Settings");J.Add("Local IP: "+Tests.IPAddress);var B=[];for(var L in Devices){if(L.substr(0,3)=="net"||L.match(/modem/)){var I=Devices[L];for(var C=0;C<I.length;C++){B[B.length]=I[C]}}}if(M=="text"){J.AddSubhead("Network Components")}else{J.AddSubhead("Network Components")}var A={};var F=false;B.sort(function(O,N){var P=" net nettrans netclient netservice ";return P.indexOf(N.Class)-P.indexOf(O.Class)});for(var E=0;E<B.length;E++){var H=B[E];var D=H.Product+H.Vendor+H.DriverDate;if(A[D]){continue}A[D]=1;var K=(H.Problem!=0);F=F||K;var G=H.Product;if(H.Product.indexOf(H.Vendor)!=0){G=H.Vendor+" "+G}if(H.DriverDate){G+=" ("+H.DriverDate+")"}J.Add(G)}return J.GetSection()}function Hilite(B,A){return A?("<span class=hilite>&nbsp;"+B+"&nbsp;</span>"):B};
