var gomFrame = new Object(); //Preloaded images gomFrame.tlbg = new Image(); gomFrame.tcbg = new Image(); gomFrame.trbg = new Image(); gomFrame.lbg = new Image(); gomFrame.rbg = new Image(); gomFrame.blbg = new Image(); gomFrame.bcbg = new Image(); gomFrame.brbg = new Image(); gomFrame.closeButton = new Image(); gomFrame.fmLogo = new Image(); gomFrame.triidmLogo = new Image(); gomFrame.gomContainerBg = new Image(); gomFrame.adapterName = adapterName; gomFrame.openIframeToRight = openIframeToRight; gomFrame.randomInt = parseInt(Math.random() * 100000); gomFrame.gomIframeHeight = 310; gomFrame.gomIframeWidth = 306; gomFrame.location = document.location; if( String(document.location).indexOf('startgom=1') == -1 ) { if( String(document.location).indexOf('?') == -1 ) { gomFrame.location += "?startgom=1"; } else { gomFrame.location += "&startgom=1"; } } gomFrame.baseUrl = "http://service.futuremark.com"; gomFrame.stylesheet = gomFrame.baseUrl + "/services/nvidiagom/styles/style.css"; gomFrame.ie6stylesheet = gomFrame.baseUrl + "/services/nvidiagom/styles/style_ie6.css"; gomFrame.styles = "\n"; gomFrame.styles += ""; document.write(gomFrame.styles); if(typeof(gomHeight) != "undefined" ) { gomFrame.gomIframeHeight = gomHeight; } if(typeof(gomWidth) != "undefined" ) { gomFrame.gomIframeWidth = gomWidth; } if( gomFrame.gomIframeHeight < 200 ) { gomFrame.gomIframeHeight = 200; } if( gomFrame.gomIframeWidth < 300 ) { gomFrame.gomIframeWidth = 300; } var isIE = false; var isFF = false; var browserCheck = navigator.userAgent.toLowerCase(); if ( (browserCheck.indexOf("msie 6") > -1 || browserCheck.indexOf("msie 7") > -1) && browserCheck.indexOf("windows") > -1 ) { isIE= true; } if ( ( browserCheck.indexOf("firefox") > -1 || browserCheck.indexOf("seamonkey") > -1 || browserCheck.indexOf("opera") > -1 || browserCheck.indexOf("safari") > -1 ) && browserCheck.indexOf("windows") > -1 ) { isFF= true; } gomFrame.init = function() { if( isIE || isFF ) { gomFrame.preloadImages(); gomFrame.getGomContainer(gomFrame.adapterName); if( location.href.indexOf("startgom=1") != -1 ) { setTimeout("gomFrame.startAnalyze()", 500 ); } } } gomFrame.preloadImages = function() { if( document.images ) { gomFrame.tlbg.src = gomFrame.baseUrl + "/services/nvidiagom/images/shadow/topleftbg.png"; gomFrame.tcbg.src = gomFrame.baseUrl + "/services/nvidiagom/images/shadow/topcenterbg.png"; gomFrame.trbg.src = gomFrame.baseUrl + "/services/nvidiagom/images/shadow/toprightbg.png"; gomFrame.lbg.src = gomFrame.baseUrl + "/services/nvidiagom/images/shadow/leftbg.png"; gomFrame.rbg.src = gomFrame.baseUrl + "/services/nvidiagom/images/shadow/rightbg.png"; gomFrame.blbg.src = gomFrame.baseUrl + "/services/nvidiagom/images/shadow/bottomleftbg.png"; gomFrame.bcbg.src = gomFrame.baseUrl + "/services/nvidiagom/images/shadow/bottomcenterbg.png"; gomFrame.brbg.src = gomFrame.baseUrl + "/services/nvidiagom/images/shadow/bottomrightbg.png"; gomFrame.closeButton.src = gomFrame.baseUrl + "/services/nvidiagom/images/button_close_small.gif"; gomFrame.fmLogo.src = gomFrame.baseUrl + "/services/nvidiagom/images/fm_logo.gif"; gomFrame.triidmLogo.src = gomFrame.baseUrl + "/services/nvidiagom/images/3dm_logo.gif"; gomFrame.gomContainerBg.src = gomFrame.baseUrl + "/services/nvidiagom/images/welcome.gif"; } } gomFrame.getGomContainer = function(adapterName) { var gomContainer = ""; gomContainer += "