var gpureview={};function $(){var c=[];for(var b=0;b<arguments.length;b++){var a=arguments[b];if(typeof a=="string"){c.push(document.getElementById(a))}}return(c.length==1)?c[0]:c}String.prototype.truncate=function(c,b){var a=b?"...":"";if(this.length>c){return this.slice(0,c-3)+a}return new String(this)};Function.prototype.inherits=function(b){for(var a in b.prototype){this.prototype[a]=b.prototype[a]}};Function.prototype.bind=function(){var d=this;var a=[];for(var c=0;c<arguments.length;c++){a.push(arguments[c])}var b=a.shift();return function(){var e=[];for(var f=0;f<arguments.length;f++){e.push(arguments[f])}return d.apply(b,a.concat(e))}};Function.prototype.bindAsEventListener=function(){var d=this;var b=[];for(var c=0;c<arguments.length;c++){b.push(arguments[c])}var a=b.shift();return function(e){return d.apply(a,[e||window.event].concat(b))}};gpureview.CardUrlHelper={};gpureview.CardUrlHelper.getSingleCardUrl=function(a){return["/",a.getName().toLowerCase().replace(/[^a-z0-9A-Z]+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"-card-",a.getId(),".html"].join("")};gpureview.CardUrlHelper.getCompareCardUrl=function(b,a){return["/compare-cards.php?id1=",b.getId(),"&id2=",a.getId()].join("")};gpureview.ElementIdGenerator={PREFIX:"generated-id",count:0,getId:function(){return gpureview.ElementIdGenerator.PREFIX+gpureview.ElementIdGenerator.count++}};gpureview.EventDispatcher=function(){this.handlers={};document.onclick=this.handleClick.bindAsEventListener(this)};gpureview.EventDispatcher.getInstance=function(){if(!gpureview.EventDispatcher.instance){gpureview.EventDispatcher.instance=new gpureview.EventDispatcher()}return gpureview.EventDispatcher.instance};gpureview.EventDispatcher.prototype.addHandler=function(b,a){if(!this.handlers[b]){this.handlers[b]=[]}this.handlers[b].push(a)};gpureview.EventDispatcher.prototype.removeHandler=function(a){if(this.handlers[a]){delete this.handlers[a]}};gpureview.EventDispatcher.prototype.handleClick=function(d){var b=this.getTargetId(d);var a=this.handlers[b];if(a){for(var c=0;c<a.length;c++){a[c]()}}};gpureview.EventDispatcher.prototype.getTargetId=function(a){a=a||window.event;var b=a.target||a.srcElement;return b.id};gpureview.GoogleChart=function(a){this.self=gpureview.GoogleChart;this.encoding=this.self.ENCODING.TEXT;this.data=a||[];this.dataScales=[];this.maxValue=0;this.type=this.self.TYPE.LINE;this.sizeX=200;this.sizeY=125};gpureview.GoogleChart.BASE_URL="http://chart.apis.google.com/chart?";gpureview.GoogleChart.SIMPLE_ENCODING="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";gpureview.GoogleChart.EXTENDED_ENCODING=gpureview.GoogleChart.SIMPLE_ENCODING+"-.";gpureview.GoogleChart.ENCODING={TEXT:0,SCALED_TEXT:1,SIMPLE:2,EXTENDED:3};gpureview.GoogleChart.TYPE={LINE:"lc",LINE_SPARK:"ls",LINE_XY:"lxy"};gpureview.GoogleChart.prototype.buildUrl=function(){return this.self.BASE_URL+this.getParams_()};gpureview.GoogleChart.prototype.addData=function(a){this.data.push(a)};gpureview.GoogleChart.prototype.setMaxValue=function(a){this.maxValue=a};gpureview.GoogleChart.prototype.addDataScale=function(b,a){this.dataScales.push(b,a)};gpureview.GoogleChart.prototype.setSize=function(a,b){this.sizeX=a;this.sizeY=b};gpureview.GoogleChart.prototype.setEncoding=function(a){this.encoding=a};gpureview.GoogleChart.prototype.setType=function(a){this.type=a};gpureview.GoogleChart.prototype.setChartColors=function(a){this.chartColors=a};gpureview.GoogleChart.prototype.setFillAreas=function(a){this.fillAreas=a};gpureview.GoogleChart.prototype.setSolidFill=function(a){this.solidFill=a};gpureview.GoogleChart.prototype.getParams_=function(){if(this.data.length===0){throw"no data"}return[this.getSizeParam_(),this.getDataParam_(),this.getTypeParam_(),this.getChartColorsParam_(),this.getFillAreasParam_(),this.getSolidFillParam_()].join("&")};gpureview.GoogleChart.prototype.getSizeParam_=function(){return"chs="+this.sizeX+"x"+this.sizeY};gpureview.GoogleChart.prototype.getDataParam_=function(){if(this.encoding==this.self.ENCODING.TEXT){return"chd="+this.getTextEncodedData_()}else{if(this.encoding==this.self.ENCODING.SCALED_TEXT){return"chd="+this.getTextEncodedData_()+"chds="+this.getDataScaling_()}else{if(this.encoding==this.self.ENCODING.SIMPLE){return"chd="+this.getSimpleEncodedData_()}else{if(this.encoding==this.self.ENCODING.EXTENDED){return"chd="+this.getExtendedEncodedData_()}}}}throw"invalid encoding type specified"};gpureview.GoogleChart.prototype.getTextEncodedData_=function(){return"t:"+this.data.join("|")};gpureview.GoogleChart.prototype.getDataScaling_=function(){return this.dataScales.join()};gpureview.GoogleChart.prototype.getSimpleEncodedData_=function(){var a=[];for(var b=0;b<this.data.length;b++){a.push(this.getSimpleEncodedDataSet_(this.data[b]))}return"s:"+a.join()};gpureview.GoogleChart.prototype.getSimpleEncodedDataSet_=function(d){var e=Math.max(this.maxValue,this.getMaxValue_(d));var a=[];for(var b=0;b<d.length;b++){var c=d[b];if(!isNaN(c)&&c>=0){a.push(this.self.SIMPLE_ENCODING.charAt(Math.round((this.self.SIMPLE_ENCODING.length-1)*c/e)))}else{a.push("_")}}return a.join("")};gpureview.GoogleChart.prototype.getMaxValue_=function(b){var c=0;for(var a=0;a<b.length;a++){c=Math.max(b[a],c)}return c};gpureview.GoogleChart.prototype.getExtendedEncodedData_=function(){var a=[];for(var b=0;b<this.data.length;b++){a.push(this.getExtendedEncodedDataSet_(this.data[b]))}return"e:"+a.join()};gpureview.GoogleChart.prototype.getExtendedEncodedDataSet_=function(d){var c=[];for(var b=0;b<d.length;b++){var a=this.getExtendedEncodedDataValue_(d[b]);c.push(a)}return c.join("")};gpureview.GoogleChart.prototype.getExtendedEncodedDataValue_=function(c){if(c<0){return"__"}var b=this.self.EXTENDED_ENCODING.length;var a=Math.floor(c/b);var d=c%b;return this.self.EXTENDED_ENCODING.charAt(a)+this.self.EXTENDED_ENCODING.charAt(d)};gpureview.GoogleChart.prototype.getTypeParam_=function(){return"cht="+this.type};gpureview.GoogleChart.prototype.getChartColorsParam_=function(){return this.chartColors?"chco="+this.chartColors:""};gpureview.GoogleChart.prototype.getFillAreasParam_=function(){return this.fillAreas?"chm=B,"+this.fillAreas+",0,0,0":""};gpureview.GoogleChart.prototype.getSolidFillParam_=function(){return this.solidFill?"chf=bg,s,"+this.solidFill:""};gpureview.ImagePreloader=function(a,b){this.imgSrc=a;this.callback=b};gpureview.ImagePreloader.prototype.load=function(){var a=new Image();a.onload=this.callback;a.onerror=this.callback;a.onabort=this.callback;a.src=this.imgSrc};gpureview.ModalDialog=function(){this.maskOpacity=0.7;this.maskColor="#000";this.maskVisible=false};gpureview.ModalDialog.ELEMENT_IDS={MASK:"gpureview-modal-mask",CONTENT:"gpureview-modal-content"};gpureview.ModalDialog.prototype.display=function(a){if(!this.maskVisible){this.displayMask_()}this.displayContent_(a)};gpureview.ModalDialog.prototype.displayMask=function(){this.maskVisible=true;this.displayMask_()};gpureview.ModalDialog.prototype.close=function(){if($(gpureview.ModalDialog.ELEMENT_IDS.MASK)){document.body.removeChild($(gpureview.ModalDialog.ELEMENT_IDS.MASK))}if($(gpureview.ModalDialog.ELEMENT_IDS.CONTENT)){document.body.removeChild($(gpureview.ModalDialog.ELEMENT_IDS.CONTENT))}this.maskVisible=false};gpureview.ModalDialog.prototype.setMaskOpacity=function(a){this.maskOpacity=a};gpureview.ModalDialog.prototype.setBackgroundColor=function(a){this.backgroundColor=a};gpureview.ModalDialog.prototype.displayMask_=function(){var a=this.getPageSize_();var b=document.createElement("div");b.id=gpureview.ModalDialog.ELEMENT_IDS.MASK;b.style.position="absolute";b.style.left="0";b.style.top="0";b.style.width=a[0]+"px";b.style.height=a[1]+"px";b.style.backgroundColor=this.maskColor;b.style.opacity=""+this.maskOpacity;b.style.filter="alpha(opacity="+(this.maskOpacity*100)+")";b.style.zIndex=1000;b.style.cursor="wait";b.title="Click to close";b.onclick=this.close.bind(this);document.body.appendChild(b)};gpureview.ModalDialog.prototype.displayContent_=function(a){var b=document.createElement("div");b.id=gpureview.ModalDialog.ELEMENT_IDS.CONTENT;b.style.display="hidden";b.style.position="absolute";b.style.left="0";b.style.top="0";b.style.zIndex=1000;b.innerHTML=a;document.body.appendChild(b);$(gpureview.ModalDialog.ELEMENT_IDS.MASK).style.cursor="";this.positionContent_()};gpureview.ModalDialog.prototype.positionContent_=function(){var c=$(gpureview.ModalDialog.ELEMENT_IDS.CONTENT);var a=this.getPageSize_();var b=this.getPageScroll_();c.style.left=parseInt((a[0]/2-c.offsetWidth/2),10)+"px";c.style.top=parseInt((b[1]+a[3]/2-c.offsetHeight/2),10)+"px";c.style.display="visible"};gpureview.ModalDialog.prototype.getPageSize_=function(){var c,a;if(window.innerHeight&&window.scrollMaxY){c=window.innerWidth+window.scrollMaxX;a=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight}else{c=document.body.offsetWidth;a=document.body.offsetHeight}}var b,d;if(self.innerHeight){if(document.documentElement.clientWidth){b=document.documentElement.clientWidth}else{b=self.innerWidth}d=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else{if(document.body){b=document.body.clientWidth;d=document.body.clientHeight}}}if(a<d){pageHeight=d}else{pageHeight=a}if(c<b){pageWidth=c}else{pageWidth=b}arrayPageSize=new Array(pageWidth,pageHeight,b,d);return arrayPageSize};gpureview.ModalDialog.prototype.getPageScroll_=function(){var b,a;if(self.pageYOffset){a=self.pageYOffset;b=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}else{if(document.body){a=document.body.scrollTop;b=document.body.scrollLeft}}}arrayPageScroll=new Array(b,a);return arrayPageScroll};gpureview.SortedTable=function(a){this.containerId=a;this.sortBy=0;this.sortType=null;this.sortDirection=null;this.columns=[];this.data=null};gpureview.SortedTable.CSS_CLASS={HEADER:"gpureview-table-header",SORTABLE_HEADER:"gpureview-table-header-sortable",NOARROW:"gpureview-table-noarrow",UPARROW:"gpureview-icons-uparrow",DOWNARROW:"gpureview-icons-downarrow"};gpureview.SortedTable.UNSORTED_VALUE=1000000;gpureview.SortedTable.SORT_TYPE={STRING:0,NUMERIC:1};gpureview.SortedTable.SORT_DIRECTION={ASC:true,DESC:false};gpureview.SortedTable.prototype.addColumn=function(a,d,c,e,b){this.columns.push({name:a,title:d,sortType:c,defaultSortDirection:e,formatCallback:b,headerId:gpureview.ElementIdGenerator.getId(),headerClass:(c!==null)?gpureview.SortedTable.CSS_CLASS.SORTABLE_HEADER:gpureview.SortedTable.CSS_CLASS.HEADER})};gpureview.SortedTable.prototype.setData=function(a){this.data=a};gpureview.SortedTable.prototype.display=function(g){this.sort();var d=["<table><tbody>"];var l='<div class="gpureview-inline-block '+gpureview.SortedTable.CSS_CLASS.NOARROW+'"></div>';var e='<div class="gpureview-inline-block '+gpureview.SortedTable.CSS_CLASS.UPARROW+'"></div>';var f='<div class="gpureview-inline-block '+gpureview.SortedTable.CSS_CLASS.DOWNARROW+'"></div>';var c;d.push("<tr>");for(c=0;c<this.columns.length;c++){var k=l;if(c==this.sortBy){k=(this.sortDirection)?f:e}var a=this.columns[c];var h=(c==this.sortBy)?"Reverse sort direction":"Sort by this column";d.push('<td id="',a.headerId,'" class="',a.headerClass,'" title="'+h+'">',a.title,k,"</td>")}d.push("</tr>");for(c=0;c<this.data.length;c++){var m=this.data[c];d.push("<tr>");for(var b=0;b<m.length;b++){d.push("<td>",m[b][1],"</td>")}d.push("</tr>")}d.push("</tbody></table>");$(this.containerId).innerHTML=d.join("");for(c=0;c<this.columns.length;c++){$(this.columns[c].headerId).onclick=this.changeSort.bind(this,c)}};gpureview.SortedTable.prototype.setSort=function(a){var b=this.columns[a];this.sortType=b.sortType;this.sortDirection=(this.sortBy==a)?!this.sortDirection:b.defaultSortDirection;this.sortBy=a};gpureview.SortedTable.prototype.changeSort=function(a){this.setSort(a);this.display()};gpureview.SortedTable.prototype.sort=function(){if(this.sortDirection==gpureview.SortedTable.SORT_DIRECTION.ASC){if(this.sortType==gpureview.SortedTable.SORT_TYPE.STRING){this.data=this.data.sort(this.ascStringSortHelper.bind(this))}else{if(this.sortType==gpureview.SortedTable.SORT_TYPE.NUMERIC){this.data=this.data.sort(this.ascNumericSortHelper.bind(this))}}}else{if(this.sortType==gpureview.SortedTable.SORT_TYPE.STRING){this.data=this.data.sort(this.descStringSortHelper.bind(this))}else{if(this.sortType==gpureview.SortedTable.SORT_TYPE.NUMERIC){this.data=this.data.sort(this.descNumericSortHelper.bind(this))}}}};gpureview.SortedTable.prototype.ascStringSortHelper=function(f,e){var h=f[this.sortBy][0],g=e[this.sortBy][0];if(h>g){return 1}if(h<g){return -1}return 0};gpureview.SortedTable.prototype.ascNumericSortHelper=function(f,e){var h=f[this.sortBy][0],g=e[this.sortBy][0];return h-g};gpureview.SortedTable.prototype.descStringSortHelper=function(f,e){var h=f[this.sortBy][0],g=e[this.sortBy][0];if(h>g){return -1}if(h<g){return 1}return 0};gpureview.SortedTable.prototype.descNumericSortHelper=function(f,e){var h=f[this.sortBy][0],g=e[this.sortBy][0];if(h==gpureview.SortedTable.UNSORTED_VALUE){h=-1}if(g==gpureview.SortedTable.UNSORTED_VALUE){g=-1}return g-h};gpureview.Util={};gpureview.Util.findPos=function(a){var b=curtop=0;if(a.offsetParent){do{b+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent)}return[b,curtop]};gpureview.Util.padLeft=function(a,c,b){a=a+"";while(a.length<b){a=c+a}return a};gpureview.ReferenceCardDisplayUtil={};var util=gpureview.ReferenceCardDisplayUtil;util.GLANCE_SECTION_ID="gpureview-card-glance";util.DETAILS_SECTION_ID="gpureview-card-details";util.IMAGES_SECTION_ID="gpureview-card-images";util.OPTIONS_SECTION_ID="gpureview-card-options";util.POPULARITY_SECTION_ID="gpureview-card-popularity";util.ADS_SECTION_ID="gpureview-card-ads";util.RELATED_SECTION_ID="gpureview-card-related";util.COMPARED_SECTION_ID="gpureview-card-compared";util.RETAIL_SECTION_ID="gpureview-card-retail";util.REVIEWS_SECTION_ID="gpureview-card-reviews";util.COMMENTS_SECTION_ID="gpureview-card-comments";util.formatSpec=function(g,b,f){var e=g,d=0,c=["","K","M","G","T"];var a=f?1024:1000;while(e>=a){e=e/a;d++}return e+" "+c[d]+b};gpureview.RetailCardDisplayUtil={};var util=gpureview.RetailCardDisplayUtil;util.getImageUrl=function(a){return"http://www.gpureview.com/database/images/videocards/"+a.getManufacturer().getName()+"/"+a.getImage()};gpureview.SectionDisplay=function(a,d,c,b){this.containerId=a;this.titleContainerId=this.containerId+"-title";this.contentContainerId=this.containerId+"-content";this.title=d;this.helpLink=b;this.resizable=c;this.contentClass=this.resizable?gpureview.SectionDisplay.CSS_CLASS.RESTORED_CONTENT:gpureview.SectionDisplay.CSS_CLASS.CONTENT};gpureview.SectionDisplay.CSS_CLASS={CONTAINER:"gpureview-card-section-container",TITLE:"gpureview-card-section-title",CONTENT:"gpureview-card-section-content",MINIMIZED_CONTENT:"gpureview-card-section-content-minimized",RESTORED_CONTENT:"gpureview-card-section-content-restored",MAXIMIZED_CONTENT:"gpureview-card-section-content-maximized",MINIMIZE_ICON:"gpureview-icons-minimize",RESTORE_ICON:"gpureview-icons-restore",MAXIMIZE_ICON:"gpureview-icons-maximize"};gpureview.SectionDisplay.prototype.display=function(){this.displayStructure();this.displayTitle();this.displayContent()};gpureview.SectionDisplay.prototype.displayStructure=function(){var a=['<div class="',gpureview.SectionDisplay.CSS_CLASS.CONTAINER,'">','<div id="',this.titleContainerId,'" class="',gpureview.SectionDisplay.CSS_CLASS.TITLE,'"></div>','<div id="',this.contentContainerId,'" class="',this.contentClass,'"></div>',"</div>"].join("");$(this.containerId).innerHTML=a};gpureview.SectionDisplay.prototype.displayTitle=function(){var a="http://www.gpureview.com/images/question-mark.gif";var f=(this.helpLink)?'<a href="'+this.helpLink+'"><img src="'+a+'" /></a>':"";if(this.resizable){var d=gpureview.ElementIdGenerator.getId();var c=gpureview.ElementIdGenerator.getId();var e=gpureview.ElementIdGenerator.getId();var b=['<div style="float: left;">',this.title," ",f,"</div>",'<div class="',gpureview.SectionDisplay.CSS_CLASS.MAXIMIZE_ICON,'" id="',e,'"></div>','<div class="',gpureview.SectionDisplay.CSS_CLASS.RESTORE_ICON,'" id="',c,'"></div>','<div class="',gpureview.SectionDisplay.CSS_CLASS.MINIMIZE_ICON,'" id="',d,'"></div>','<div style="clear: both;"></div>'].join("");$(this.titleContainerId).innerHTML=b;$(d).onclick=this.minimize.bind(this);$(c).onclick=this.restore.bind(this);$(e).onclick=this.maximize.bind(this)}else{$(this.titleContainerId).innerHTML=this.title+" "+f}};gpureview.SectionDisplay.prototype.displayContent=function(){throw"This method should be overridden by a subclass"};gpureview.SectionDisplay.prototype.minimize=function(){$(this.contentContainerId).className=gpureview.SectionDisplay.CSS_CLASS.MINIMIZED_CONTENT};gpureview.SectionDisplay.prototype.restore=function(){$(this.contentContainerId).className=gpureview.SectionDisplay.CSS_CLASS.RESTORED_CONTENT};gpureview.SectionDisplay.prototype.maximize=function(){$(this.contentContainerId).className=gpureview.SectionDisplay.CSS_CLASS.MAXIMIZED_CONTENT};gpureview.TwoColumnSectionDisplay=function(a,c,b){gpureview.SectionDisplay.call(this,a,c,false,b);this.rows=[]};gpureview.TwoColumnSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.TwoColumnSectionDisplay.TABLE_CSS_CLASS="gpureview-card-twocolumn-table";gpureview.TwoColumnSectionDisplay.prototype.displayContent=function(){this.rows=[];this.populateRows();var e,a,f,d,c;e=document.createElement("table");e.className=gpureview.TwoColumnSectionDisplay.TABLE_CSS_CLASS;a=document.createElement("tbody");e.appendChild(a);for(var b=0;b<this.rows.length;b++){f=document.createElement("tr");d=document.createElement("td");d.innerHTML=this.rows[b][0];c=document.createElement("td");c.innerHTML=this.rows[b][1];f.appendChild(d);f.appendChild(c);a.appendChild(f)}$(this.contentContainerId).appendChild(e)};gpureview.TwoColumnSectionDisplay.prototype.addRow=function(a,b){this.rows.push([a,b])};gpureview.AffiliateLink=function(d,f,c,k,h,a,e,i,b,j,g){this.id=d;this.affiliateName=f;this.url=c;this.productDescription=k;this.price=h;this.priceRebate=a;this.priceFinal=e;this.sku=i;this.retailCardId=b;this.referenceCardId=j;this.status=g};gpureview.AffiliateLink.prototype.getId=function(){return this.id};gpureview.AffiliateLink.prototype.setId=function(a){this.id=a};gpureview.AffiliateLink.prototype.getAffiliateName=function(){return this.affiliateName};gpureview.AffiliateLink.prototype.setAffiliateName=function(a){this.affiliateName=a};gpureview.AffiliateLink.prototype.getUrl=function(){return this.url};gpureview.AffiliateLink.prototype.setUrl=function(a){this.url=a};gpureview.AffiliateLink.prototype.getProductDescription=function(){return this.productDescription};gpureview.AffiliateLink.prototype.setProductDescription=function(a){this.productDescription=a};gpureview.AffiliateLink.prototype.getPrice=function(){return this.price};gpureview.AffiliateLink.prototype.setPrice=function(a){this.price=a};gpureview.AffiliateLink.prototype.getPriceRebate=function(){return this.priceRebate};gpureview.AffiliateLink.prototype.setPriceRebate=function(a){this.priceRebate=a};gpureview.AffiliateLink.prototype.getPriceFinal=function(){return this.priceFinal};gpureview.AffiliateLink.prototype.setPriceFinal=function(a){this.priceFinal=a};gpureview.AffiliateLink.prototype.getSku=function(){return this.sku};gpureview.AffiliateLink.prototype.setSku=function(a){this.sku=a};gpureview.AffiliateLink.prototype.getRetailCardId=function(){return this.retailCardId};gpureview.AffiliateLink.prototype.setRetailCardId=function(a){this.retailCardId=a};gpureview.AffiliateLink.prototype.getReferenceCardId=function(){return this.referenceCardId};gpureview.AffiliateLink.prototype.setReferenceCardId=function(a){this.referenceCardId=a};gpureview.AffiliateLink.prototype.getStatus=function(){return this.status};gpureview.AffiliateLink.prototype.setStatus=function(a){this.status=a};gpureview.Chip=function(m,q,p,j,f,g,l,b,c,h,a,d,r,i,o,n,k,e){this.id=m;this.name=q;this.manufacturer=p;this.series=j;this.transistors=f;this.fab=g;this.process=l;this.interfaceName=b;this.memoryBus=c;this.memoryTypes=h;this.pixelShader=a;this.vertexShader=d;this.directx=r;this.opengl=i;this.pipelineLayout=o;this.pipelineFlops=n;this.texturePipelines=k;this.rasterPipelines=e};gpureview.Chip.prototype.getId=function(){return this.id};gpureview.Chip.prototype.getName=function(){return this.name};gpureview.Chip.prototype.getManufacturer=function(){return this.manufacturer};gpureview.Chip.prototype.getSeries=function(){return this.series};gpureview.Chip.prototype.getTransistors=function(){return this.transistors};gpureview.Chip.prototype.getFab=function(){return this.fab};gpureview.Chip.prototype.getProcess=function(){return this.process};gpureview.Chip.prototype.getInterface=function(){return this.interfaceName};gpureview.Chip.prototype.getMemoryBus=function(){return this.memoryBus};gpureview.Chip.prototype.getMemoryTypes=function(){return this.memoryTypes};gpureview.Chip.prototype.getPixelShader=function(){return this.pixelShader};gpureview.Chip.prototype.getVertexShader=function(){return this.vertexShader};gpureview.Chip.prototype.getDirectx=function(){return this.directx};gpureview.Chip.prototype.getOpengl=function(){return this.opengl};gpureview.Chip.prototype.getPipelineLayout=function(){return this.pipelineLayout};gpureview.Chip.prototype.getPipelineFlops=function(){return this.pipelineFlops};gpureview.Chip.prototype.getTexturePipelines=function(){return this.texturePipelines};gpureview.Chip.prototype.getRasterPipelines=function(){return this.rasterPipelines};gpureview.Comment=function(a,b,e,f,g,c,h,d,i){this.id=a;this.comment=b;this.timestamp=e;this.type=f;this.itemId=g;this.userId=c;this.userName=h;this.ip=d;this.approved=i};gpureview.Comment.prototype.getId=function(){return this.id};gpureview.Comment.prototype.setId=function(a){this.id=a};gpureview.Comment.prototype.getComment=function(){return this.comment};gpureview.Comment.prototype.setComment=function(a){this.comment=a};gpureview.Comment.prototype.getTimestamp=function(){return this.timestamp};gpureview.Comment.prototype.setTimestamp=function(a){this.timestamp=a};gpureview.Comment.prototype.getType=function(){return this.type};gpureview.Comment.prototype.setType=function(a){this.type=a};gpureview.Comment.prototype.getItemId=function(){return this.itemId};gpureview.Comment.prototype.setItemId=function(a){this.itemId=a};gpureview.Comment.prototype.getUserId=function(){return this.userId};gpureview.Comment.prototype.setUserId=function(a){this.userId=a};gpureview.Comment.prototype.getUserName=function(){return this.userName};gpureview.Comment.prototype.setUserName=function(a){this.userName=a};gpureview.Comment.prototype.getIp=function(){return this.ip};gpureview.Comment.prototype.setIp=function(a){this.ip=a};gpureview.Comment.prototype.getApproved=function(){return this.approved};gpureview.Comment.prototype.setApproved=function(a){this.approved=a};gpureview.LegacyChip=function(n,s,r,k,g,h,m,b,c,i,a,d,t,j,q,p,l,e,f,o){gpureview.Chip.call(this,n,s,r,k,g,h,m,b,c,i,a,d,t,j,q,p,l,e);this.vertexPipelines=f;this.pixelPipelines=o};gpureview.LegacyChip.inherits(gpureview.Chip);gpureview.LegacyChip.prototype.getVertexPipelines=function(){return this.vertexPipelines};gpureview.LegacyChip.prototype.getPixelPipelines=function(){return this.pixelPipelines};gpureview.Manufacturer=function(b,a){this.name=b;this.displayName=a};gpureview.Manufacturer.prototype.getName=function(){return this.name};gpureview.Manufacturer.prototype.getDisplayName=function(){return this.displayName};gpureview.MemoryBus=function(c,a,b){this.id=c;this.name=a;this.width=b};gpureview.MemoryBus.prototype.getId=function(){return this.id};gpureview.MemoryBus.prototype.getName=function(){return this.name};gpureview.MemoryBus.prototype.getWidth=function(){return this.width};gpureview.MemoryType=function(c,a,b){this.id=c;this.name=a;this.multiplier=b};gpureview.MemoryType.prototype.getId=function(){return this.id};gpureview.MemoryType.prototype.getName=function(){return this.name};gpureview.MemoryType.prototype.getMultiplier=function(){return this.multiplier};gpureview.ReferenceCard=function(p,v,u,m,g,r,k,j,c,e,q,o,i,f,s,t,l,a,d,n,h,b){this.id=p;this.name=v;this.manufacturer=u;this.series=m;this.msrp=g;this.releaseDate=r;this.power=k;this.enabled=j;this.interfaceName=c;this.multiGpu=e;this.chip=q;this.chipCount=o;this.chipBridge=i;this.coreClock=f;this.defaultCoreClock=f;this.shaderClock=s;this.defaultShaderClock=s;this.memoryClock=t;this.defaultMemoryClock=t;this.memorySize=l;this.memoryType=a;this.memoryBus=d;this.texturePipelines=n;this.rasterPipelines=h;this.popularity=b;this.images=[];this.retailCards=[];this.frequentlyComparedCards=[];this.reviews=[];this.affiliateLinks=[];this.comments=[];this.retailCardsMap={};this.affiliateLinksMap={}};gpureview.ReferenceCard.prototype.getId=function(){return this.id};gpureview.ReferenceCard.prototype.getName=function(){return this.name};gpureview.ReferenceCard.prototype.getTitle=function(){return this.manufacturer.getDisplayName()+" "+this.name};gpureview.ReferenceCard.prototype.getManufacturer=function(){return this.manufacturer};gpureview.ReferenceCard.prototype.getSeries=function(){return this.series};gpureview.ReferenceCard.prototype.getMsrp=function(){return this.msrp};gpureview.ReferenceCard.prototype.getReleaseDate=function(){return this.releaseDate};gpureview.ReferenceCard.prototype.getPower=function(){return this.power};gpureview.ReferenceCard.prototype.getEnabled=function(){return this.isEnabled};gpureview.ReferenceCard.prototype.getInterface=function(){return this.interfaceName};gpureview.ReferenceCard.prototype.getMultiGpu=function(){return this.multiGpu};gpureview.ReferenceCard.prototype.getChip=function(){return this.chip};gpureview.ReferenceCard.prototype.getChipCount=function(){return this.chipCount};gpureview.ReferenceCard.prototype.getChipBridge=function(){return this.chipBridge};gpureview.ReferenceCard.prototype.getCoreClock=function(){return this.coreClock*1000000};gpureview.ReferenceCard.prototype.getDefaultCoreClock=function(){return this.defaultCoreClock*1000000};gpureview.ReferenceCard.prototype.incrementCoreClock=function(a){this.coreClock+=a};gpureview.ReferenceCard.prototype.resetCoreClock=function(){this.coreClock=this.defaultCoreClock};gpureview.ReferenceCard.prototype.getShaderClock=function(){return this.shaderClock*1000000};gpureview.ReferenceCard.prototype.getDefaultShaderClock=function(){return this.defaultShaderClock*1000000};gpureview.ReferenceCard.prototype.incrementShaderClock=function(a){this.shaderClock+=a};gpureview.ReferenceCard.prototype.resetShaderClock=function(){this.shaderClock=this.defaultShaderClock};gpureview.ReferenceCard.prototype.getMemoryClock=function(){return this.memoryClock*1000000};gpureview.ReferenceCard.prototype.getDefaultMemoryClock=function(){return this.defaultMemoryClock*1000000};gpureview.ReferenceCard.prototype.incrementMemoryClock=function(a){this.memoryClock+=a};gpureview.ReferenceCard.prototype.resetMemoryClock=function(){this.memoryClock=this.defaultMemoryClock};gpureview.ReferenceCard.prototype.getEffectiveMemoryClock=function(){return this.getMemoryType().getMultiplier()*this.getMemoryClock()};gpureview.ReferenceCard.prototype.getMemorySize=function(){return this.memorySize};gpureview.ReferenceCard.prototype.getMemoryType=function(){return this.memoryType};gpureview.ReferenceCard.prototype.getMemoryBus=function(){return this.memoryBus};gpureview.ReferenceCard.prototype.getMemoryBandwidth=function(){return this.getMemoryClock()*this.getMemoryBus().getWidth()*this.getMemoryType().getMultiplier()/8};gpureview.ReferenceCard.prototype.getTexturePipelines=function(){return this.texturePipelines||this.getChip().getTexturePipelines()};gpureview.ReferenceCard.prototype.getTextureFillrate=function(){return this.getTexturePipelines()*this.getCoreClock()};gpureview.ReferenceCard.prototype.getRasterPipelines=function(){return this.rasterPipelines||this.getChip().getRasterPipelines()};gpureview.ReferenceCard.prototype.getPixelFillrate=function(){return this.getRasterPipelines()*this.getCoreClock()};gpureview.ReferenceCard.prototype.getPopularity=function(){return this.popularity};gpureview.ReferenceCard.prototype.setImages=function(a){this.images=a};gpureview.ReferenceCard.prototype.getImages=function(){return this.images};gpureview.ReferenceCard.prototype.setRetailCards=function(a){this.retailCards=a;this.retailCardsMap={};for(var b=0;b<this.retailCards.length;b++){this.retailCardsMap[this.retailCards[b].getId()]=this.retailCards[b]}};gpureview.ReferenceCard.prototype.getRetailCard=function(a){if(this.retailCardsMap[a]){return this.retailCardsMap[a]}return null};gpureview.ReferenceCard.prototype.getRetailCards=function(){return this.retailCards};gpureview.ReferenceCard.prototype.setFrequentlyComparedCards=function(a){this.frequentlyComparedCards=a};gpureview.ReferenceCard.prototype.getFrequentlyComparedCards=function(){return this.frequentlyComparedCards};gpureview.ReferenceCard.prototype.setReviews=function(a){this.reviews=a};gpureview.ReferenceCard.prototype.getReviews=function(){return this.reviews};gpureview.ReferenceCard.prototype.setAffiliateLinks=function(c){this.affiliateLinks=c;this.affiliateLinksMap={};for(var a=0;a<this.affiliateLinks.length;a++){var b=this.affiliateLinks[a].getRetailCardId();if(!this.affiliateLinksMap[b]){this.affiliateLinksMap[b]=[]}this.affiliateLinksMap[b].push(this.affiliateLinks[a])}};gpureview.ReferenceCard.prototype.getAffiliateLinksForRetailCard=function(a){if(this.affiliateLinksMap[a]){return this.affiliateLinksMap[a]}return[]};gpureview.ReferenceCard.prototype.getAffiliateLinks=function(){return this.affiliateLinks};gpureview.ReferenceCard.prototype.setComments=function(a){this.comments=a};gpureview.ReferenceCard.prototype.getComments=function(){return this.comments};gpureview.RetailCard=function(p,w,e,d,v,j,t,u,l,g,a,r,q,f,m,b,c,k,n,s,i,o,h){this.id=p;this.name=w;this.model=e;this.referenceCardId=d;this.manufacturer=v;this.coreClock=j;this.shaderClock=t;this.memoryClock=u;this.memorySize=l;this.memoryBus=g;this.memoryType=a;this.display1=r;this.display2=q;this.tvOut=f;this.vivo=m;this.hdOut=b;this.hdcp=c;this.powerPlugs=k;this.noise=n;this.dualSlot=s;this.multiGpu=i;this.image=o;this.url=h};gpureview.RetailCard.prototype.getId=function(){return this.id};gpureview.RetailCard.prototype.setId=function(a){this.id=a};gpureview.RetailCard.prototype.getName=function(){return this.name};gpureview.RetailCard.prototype.setName=function(a){this.name=a};gpureview.RetailCard.prototype.getTitle=function(){return this.manufacturer.getDisplayName()+" "+this.getName()};gpureview.RetailCard.prototype.getModel=function(){return this.model};gpureview.RetailCard.prototype.setModel=function(a){this.model=a};gpureview.RetailCard.prototype.getReferenceCardId=function(){return this.referenceCardId};gpureview.RetailCard.prototype.setReferenceCardId=function(a){this.referenceCardId=a};gpureview.RetailCard.prototype.getManufacturer=function(){return this.manufacturer};gpureview.RetailCard.prototype.setManufacturer=function(a){this.manufacturer=a};gpureview.RetailCard.prototype.getCoreClock=function(){return this.coreClock};gpureview.RetailCard.prototype.setCoreClock=function(a){this.coreClock=a};gpureview.RetailCard.prototype.getShaderClock=function(){return this.shaderClock};gpureview.RetailCard.prototype.setShaderClock=function(a){this.shaderClock=a};gpureview.RetailCard.prototype.getMemoryClock=function(){return this.memoryClock};gpureview.RetailCard.prototype.setMemoryClock=function(a){this.memoryClock=a};gpureview.RetailCard.prototype.getMemorySize=function(){return this.memorySize};gpureview.RetailCard.prototype.setMemorySize=function(a){this.memorySize=a};gpureview.RetailCard.prototype.getMemoryBus=function(){return this.memoryBus};gpureview.RetailCard.prototype.setMemoryBus=function(a){this.memoryBus=a};gpureview.RetailCard.prototype.getMemoryType=function(){return this.memoryType};gpureview.RetailCard.prototype.setMemoryType=function(a){this.memoryType=a};gpureview.RetailCard.prototype.getDisplay1=function(){return this.display1};gpureview.RetailCard.prototype.setDisplay1=function(a){this.display1=a};gpureview.RetailCard.prototype.getDisplay2=function(){return this.display2};gpureview.RetailCard.prototype.setDisplay2=function(a){this.display2=a};gpureview.RetailCard.prototype.getTvOut=function(){return this.tvOut};gpureview.RetailCard.prototype.setTvOut=function(a){this.tvOut=a};gpureview.RetailCard.prototype.getVivo=function(){return this.vivo};gpureview.RetailCard.prototype.setVivo=function(a){this.vivo=a};gpureview.RetailCard.prototype.getHdOut=function(){return this.hdOut};gpureview.RetailCard.prototype.setHdOut=function(a){this.hdOut=a};gpureview.RetailCard.prototype.getHdcp=function(){return this.hdcp};gpureview.RetailCard.prototype.setHdcp=function(a){this.hdcp=a};gpureview.RetailCard.prototype.getPowerPlugs=function(){return this.powerPlugs};gpureview.RetailCard.prototype.setPowerPlugs=function(a){this.powerPlugs=a};gpureview.RetailCard.prototype.getNoise=function(){return this.noise};gpureview.RetailCard.prototype.setNoise=function(a){this.noise=a};gpureview.RetailCard.prototype.getDualSlot=function(){return this.dualSlot};gpureview.RetailCard.prototype.setDualSlot=function(a){this.dualSlot=a};gpureview.RetailCard.prototype.getMultiGpu=function(){return this.multiGpu};gpureview.RetailCard.prototype.setMultiGpu=function(a){this.multiGpu=a};gpureview.RetailCard.prototype.getImage=function(){return this.image};gpureview.RetailCard.prototype.setImage=function(a){this.image=a};gpureview.RetailCard.prototype.getUrl=function(){return this.url};gpureview.RetailCard.prototype.setUrl=function(a){this.url=a};gpureview.Review=function(f,e,c,a,d,b){this.id=f;this.cardId=e;this.retailCardId=c;this.url=a;this.timestamp=d;this.type=b};gpureview.Review.TYPE={RETAIL:0,REFERENCE:1,ROUNDUP:2,PREVIEW:3};gpureview.Review.prototype.getId=function(){return this.id};gpureview.Review.prototype.getCardId=function(){return this.cardId};gpureview.Review.prototype.getRetailCardId=function(){return this.retailCardId};gpureview.Review.prototype.getUrl=function(){return this.url};gpureview.Review.prototype.getTimestamp=function(){return this.timestamp};gpureview.Review.prototype.getType=function(){return this.type};gpureview.UnifiedChip=function(n,r,q,k,g,h,m,c,d,i,a,e,s,j,p,o,l,f,b){gpureview.Chip.call(this,n,r,q,k,g,h,m,c,d,i,a,e,s,j,p,o,l,f);this.unifiedPipelines=b};gpureview.UnifiedChip.inherits(gpureview.Chip);gpureview.UnifiedChip.prototype.getUnifiedPipelines=function(){return this.unifiedPipelines};gpureview.UnifiedReferenceCard=function(q,w,v,n,h,s,l,k,d,f,r,p,j,g,t,u,m,a,e,o,i,b,c){gpureview.ReferenceCard.call(this,q,w,v,n,h,s,l,k,d,f,r,p,j,g,t,u,m,a,e,o,i,c);this.unifiedPipelines=b};gpureview.UnifiedReferenceCard.inherits(gpureview.ReferenceCard);gpureview.UnifiedReferenceCard.prototype.getUnifiedPipelines=function(){return this.unifiedPipelines||this.getChip().getUnifiedPipelines()};gpureview.UnifiedReferenceCard.prototype.getFlops=function(){return this.getUnifiedPipelines()*this.getChip().getPipelineFlops()*this.getShaderClock()};gpureview.DateFormatter=function(a){if(!(a instanceof Date)){throw"date must be a Date object"}this.date=a;this.leapYear=(a.getYear()%4==0);this.leapMonth=(this.leapYear&&a.getMonth()==1)};gpureview.DateFormatter.MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];gpureview.DateFormatter.DAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];gpureview.DateFormatter.ORDINALS=["st","nd","rd","th"];gpureview.DateFormatter.DAYS_PER_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31];gpureview.DateFormatter.prototype.formatDate=function(c){var b,c=c.split(""),a=[];for(b=0;b<c.length;b++){if(this[c[b]]){a.push(this[c[b]].call(this))}else{a.push(c[b])}}return a.join("")};gpureview.DateFormatter.prototype.d=function(){return gpureview.Util.padLeft(this.date.getDate(),"0",2)};gpureview.DateFormatter.prototype.D=function(){return gpureview.DateFormatter.DAYS[this.date.getDay()].substring(0,3)};gpureview.DateFormatter.prototype.j=function(){return this.date.getDate()+1};gpureview.DateFormatter.prototype.l=function(){return gpureview.DateFormatter.DAYS[this.date.getDay()]};gpureview.DateFormatter.prototype.N=function(){return this.date.getDay()+1};gpureview.DateFormatter.prototype.S=function(){return ordinal[Math.min(this.date.getDay(),3)]};gpureview.DateFormatter.prototype.w=function(){return this.date.getDay()};gpureview.DateFormatter.prototype.z=function(){var a=this.date-(new Date(this.date.getFullYear(),0,1));return Math.ceil(a/86400000)};gpureview.DateFormatter.prototype.W=function(){var a=this.date-(new Date(this.date.getFullYear(),0,1));return Math.ceil(a/86400000/7)};gpureview.DateFormatter.prototype.F=function(){return gpureview.DateFormatter.MONTHS[this.date.getMonth()]};gpureview.DateFormatter.prototype.m=function(){return gpureview.Util.padLeft(date.getMonth()+1,"0",2)};gpureview.DateFormatter.prototype.M=function(){return gpureview.DateFormatter.MONTHS[this.date.getMonth()].substring(0,3)};gpureview.DateFormatter.prototype.n=function(){return this.date.getMonth()+1};gpureview.DateFormatter.prototype.t=function(){return gpureview.DateFormatter.DAYS_PER_MONTH[this.date.getMonth()]+(this.leapMonth)?1:0};gpureview.DateFormatter.prototype.L=function(){return(this.leapYear)?1:0};gpureview.DateFormatter.prototype.o=function(){return""};gpureview.DateFormatter.prototype.Y=function(){return this.date.getFullYear()};gpureview.DateFormatter.prototype.y=function(){return(this.date.getFullYear()+"").substring(2,2)};gpureview.DateFormatter.prototype.a=function(){return(this.date.getHours()<11)?"am":"pm"};gpureview.DateFormatter.prototype.A=function(){return(this.date.getHours()<11)?"AM":"PM"};gpureview.DateFormatter.prototype.B=function(){return""};gpureview.DateFormatter.prototype.g=function(){return(this.date.getHours()%12)+1};gpureview.DateFormatter.prototype.G=function(){return this.date.getHours()+1};gpureview.DateFormatter.prototype.h=function(){return gpureview.Util.padLeft((this.date.getHours()%12),"0",2)};gpureview.DateFormatter.prototype.H=function(){return gpureview.Util.padLeft(this.date.getHours(),"0",2)};gpureview.DateFormatter.prototype.i=function(){return gpureview.Util.padLeft(this.date.getMinutes(),"0",2)};gpureview.DateFormatter.prototype.s=function(){return gpureview.Util.padLeft(this.date.getSeconds(),"0",2)};gpureview.DateFormatter.prototype.u=function(){return this.date.getMilliseconds()+this.date.getSeconds()*1000};gpureview.AdsSectionDisplay=function(b,a,c){gpureview.SectionDisplay.call(this,a,gpureview.AdsSectionDisplay.TITLE,false,c);this.card=b};gpureview.AdsSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.AdsSectionDisplay.TITLE="Pricing Information";gpureview.AdsSectionDisplay.prototype.displayContent=function(){var f=this.card.getAffiliateLinks();if(f.length==0){$(this.contentContainerId).innerHTML="No prices found";return}var d=f[0];for(var b=1;b<f.length;b++){if(f[b].getPrice()<d.getPrice()){d=f[b]}}var c=this.card.getRetailCard(d.getRetailCardId());var e=gpureview.RetailCardDisplayUtil.getImageUrl(c);var a=['<div style="text-align: center;">','<p class="gpureview-card-ads-title">','<a href="',d.getUrl(),'" target="_blank">',c.getTitle(),"</a>","</p>","<p>",'<a href="',d.getUrl(),'" class="noborder" target="_blank">','<img src="',e,'" style="width: 50%;" />',"</a>","</p>",'<p class="gpureview-card-ads-buynow">','<a href="',d.getUrl(),'" target="_blank">',"Buy Now: ",'<span class="gpureview-card-ads-price">$',d.getPrice(),"</span>","</a>","</p>","<p>",'<a href="',d.getUrl(),'" class="noborder" target="_blank">','<img src="images/newegg-logo.png" />',"</a>","</p>","<p>More prices next to the retail cards below!</p>","</div>"];$(this.contentContainerId).innerHTML=a.join("")};gpureview.CommentsSectionDisplay=function(b,a,c){gpureview.SectionDisplay.call(this,a,gpureview.CommentsSectionDisplay.TITLE,true,c);this.card=b;this.contentClass=gpureview.SectionDisplay.CSS_CLASS.CONTENT};gpureview.CommentsSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.CommentsSectionDisplay.TITLE="Comments";gpureview.CommentsSectionDisplay.prototype.displayContent=function(){var c=this.card.getComments();var b=[];for(var a=0;a<c.length;a++){b.push('<div class="gpureview-card-comments-container">','<table><tbody><tr><td class="gpureview-card-comments-username">','<div class="gpureview-card-comments-timestamp">',this.formatTimestamp(c[a].getTimestamp()),"</div>",c[a].getUserName(),'</td><td class="gpureview-card-comments-comment">',c[a].getComment().replace(/%0A/g,"<br />"),"</td></tr></tbody></table>","</div>")}$(this.contentContainerId).innerHTML=b.join("")};gpureview.CommentsSectionDisplay.prototype.formatTimestamp=function(b){var a=new gpureview.DateFormatter(new Date(b*1000));return a.formatDate("D, M j, Y, g:i A")};gpureview.ComparedSectionDisplay=function(b,a,c){gpureview.SectionDisplay.call(this,a,gpureview.ComparedSectionDisplay.TITLE,false,c);this.card=b};gpureview.ComparedSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.ComparedSectionDisplay.TITLE="Frequently Compared Cards ";gpureview.ComparedSectionDisplay.prototype.displayContent=function(){var c=this.card.getFrequentlyComparedCards();var b=[];for(var a=0;a<c.length;a++){b.push(this.getComparedCardHtml(c[a]))}$(this.contentContainerId).innerHTML=b.join("")};gpureview.ComparedSectionDisplay.prototype.getComparedCardHtml=function(a){return["<div>",'[<a href="',gpureview.CardUrlHelper.getCompareCardUrl(this.card,a),'">vs</a>] ','<a href="',gpureview.CardUrlHelper.getSingleCardUrl(a),'">',a.getTitle(),"</a>","</div>"].join("")};gpureview.DetailsSectionDisplay=function(b,a,c,d){gpureview.TwoColumnSectionDisplay.call(this,a,gpureview.DetailsSectionDisplay.TITLE,c);this.card=b;this.compareCard=d};gpureview.DetailsSectionDisplay.inherits(gpureview.TwoColumnSectionDisplay);gpureview.DetailsSectionDisplay.TITLE="Details";gpureview.DetailsSectionDisplay.prototype.populateRows=function(){var a=gpureview.ReferenceCardDisplayUtil.formatSpec;this.addRow("Max Power Draw",this.card.getPower()+" W");this.addRow("Framebuffer",a(this.card.getMemorySize()*1024*1024,"B",true));this.addRow("Memory Type",this.card.getMemoryType().getName());this.addRow("Memory Bus",this.card.getMemoryBus().getName());this.addRow("DirectX Support",this.card.getChip().getDirectx());this.addRow("OpenGL Support",this.card.getChip().getOpengl());this.addRow("PS/VS Version",this.card.getChip().getPixelShader()+" / "+this.card.getChip().getVertexShader());this.addRow("Process",this.card.getChip().getProcess()+" nm");if(this.card instanceof gpureview.UnifiedReferenceCard){this.addRow("Shader Processors",this.formatDisabledPipelines(this.card.getUnifiedPipelines));this.addRow("Processor Layout",this.card.getChip().getPipelineLayout())}else{this.addRow("PS Processors",this.formatDisabledPipelines(this.card.getPixelPipelines));this.addRow("VS Processors",this.formatDisabledPipelines(this.card.getVertexPipelines))}this.addRow("Texture Units",this.formatDisabledPipelines(this.card.getTexturePipelines));this.addRow("Raster Operators",this.formatDisabledPipelines(this.card.getRasterPipelines))};gpureview.DetailsSectionDisplay.prototype.formatDisabledPipelines=function(a){if(a.call(this.card)==a.call(this.card.getChip())){return a.call(this.card)}else{return a.call(this.card)+" ("+a.call(this.card.getChip())+")"}};gpureview.GlanceSectionDisplay=function(b,a,c,d){gpureview.TwoColumnSectionDisplay.call(this,a,gpureview.GlanceSectionDisplay.TITLE,c);this.card=b;this.compareCard=d};gpureview.GlanceSectionDisplay.inherits(gpureview.TwoColumnSectionDisplay);gpureview.GlanceSectionDisplay.TITLE="At A Glance";gpureview.GlanceSectionDisplay.prototype.populateRows=function(){var a=gpureview.ReferenceCardDisplayUtil.formatSpec;this.addRow("Manufacturer",this.card.getManufacturer().getDisplayName());this.addRow("Series",this.card.getSeries());this.addRow("GPU",this.card.getChip().getName());this.addRow("Release Date",this.card.getReleaseDate());this.addRow("Interface",this.card.getInterface());this.addRow("Core Clock",a(this.card.getCoreClock(),"Hz"));if(card instanceof gpureview.UnifiedReferenceCard){this.addRow("Shader Clock",a(this.card.getShaderClock(),"Hz"))}this.addMemoryClockRow();this.addRow("Memory Bandwidth",a(this.card.getMemoryBandwidth(),"B/sec"));if(card instanceof gpureview.UnifiedReferenceCard){this.addRow("FLOPS",a(this.card.getFlops(),"FLOPS"))}else{this.addRow("Pixel Shader Ops",a(this.card.getPixelShaderOps(),"OPS"));this.addRow("Vertex Shader Ops",a(this.card.getVertexShaderOps(),"OPS"))}this.addRow("Pixel Fillrate",a(this.card.getPixelFillrate(),"Pixels/sec"));this.addRow("Texture Fillrate",a(this.card.getTextureFillrate(),"Texels/sec"))};gpureview.GlanceSectionDisplay.prototype.addMemoryClockRow=function(){var c=gpureview.ReferenceCardDisplayUtil.formatSpec;var b=c(this.card.getMemoryClock(),"Hz");var a=c(this.card.getEffectiveMemoryClock(),"Hz");var d=this.card.getMemoryType().getMultiplier();var e=a;if(d>1){e+=" ("+b+" x"+d+")"}this.addRow("Memory Clock",e)};gpureview.ImagesSectionDisplay=function(b,a,c){gpureview.SectionDisplay.call(this,a,gpureview.ImagesSectionDisplay.TITLE,false,c);this.card=b};gpureview.ImagesSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.ImagesSectionDisplay.TITLE="Reference Images";gpureview.ImagesSectionDisplay.CSS_CLASS={CONTENT:"gpureview-card-section-images-content",IMAGE:"gpureview-card-section-images-image"};gpureview.ImagesSectionDisplay.prototype.displayContent=function(){$(this.contentContainerId).style.backgroundImage="url("+this.card.getImages()[0]+")";$(this.contentContainerId).style.height="126px";$(this.contentContainerId).style.padding="0"};gpureview.OptionsSectionDisplay=function(b,a,d,e,c){gpureview.SectionDisplay.call(this,a,gpureview.OptionsSectionDisplay.TITLE,false,c);this.card=b;this.glanceCallback=d;this.detailsCallback=e;this.self=gpureview.OptionsSectionDisplay};gpureview.OptionsSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.OptionsSectionDisplay.TITLE="Advanced Options";gpureview.OptionsSectionDisplay.STEP=5;gpureview.OptionsSectionDisplay.BAR_WIDTH=76;gpureview.OptionsSectionDisplay.MAX_OVERCLOCK=15;gpureview.OptionsSectionDisplay.CSS_CLASSES={OUTER_BAR:"gpureview-card-options-bar-outer",INNER_BAR:"gpureview-card-options-bar-inner",TABLE:"gpureview-card-options-table"};gpureview.OptionsSectionDisplay.prototype.displayContent=function(){var l=gpureview.ElementIdGenerator.getId();var a=gpureview.ElementIdGenerator.getId();var d=gpureview.ElementIdGenerator.getId();var e=gpureview.ElementIdGenerator.getId();var f=gpureview.ElementIdGenerator.getId();var g=gpureview.ElementIdGenerator.getId();var j=gpureview.ElementIdGenerator.getId();var c=gpureview.ElementIdGenerator.getId();var k=gpureview.ElementIdGenerator.getId();var i=gpureview.ElementIdGenerator.getId();var h=gpureview.ElementIdGenerator.getId();var b=gpureview.ElementIdGenerator.getId();$(this.contentContainerId).innerHTML=['<table cellspacing="0" class="',this.self.CSS_CLASSES.TABLE,'">',"<tbody>","<tr>","<th>Core Clock:&nbsp;</th>",'<td id="',a,'">','<div class="gpureview-icons-minus"></div></td>','<td><div class="',this.self.CSS_CLASSES.OUTER_BAR,'">','<div id="',i,'" class="',this.self.CSS_CLASSES.INNER_BAR,'"></div>',"</div></td>",'<td id="',l,'">','<div class="gpureview-icons-plus"></div></td>','<td id="',d,'">','<div class="gpureview-icons-reset"></div></td>',"<tr>","<tr>","<th>Shader Clock:&nbsp;</th>",'<td id="',f,'">','<div class="gpureview-icons-minus"></div></td>','<td><div class="',this.self.CSS_CLASSES.OUTER_BAR,'">','<div id="',h,'" class="',this.self.CSS_CLASSES.INNER_BAR,'"></div>',"</div></td>",'<td id="',e,'">','<div class="gpureview-icons-plus"></div></td>','<td id="',g,'">','<div class="gpureview-icons-reset"></div></td>',"<tr>","<tr>","<th>Memory Clock:&nbsp;</th>",'<td id="',c,'">','<div class="gpureview-icons-minus"></div></td>','<td><div class="',this.self.CSS_CLASSES.OUTER_BAR,'">','<div id="',b,'" class="',this.self.CSS_CLASSES.INNER_BAR,'"></div>',"</div></td>",'<td id="',j,'">','<div class="gpureview-icons-plus"></div></td>','<td id="',k,'">','<div class="gpureview-icons-reset"></div></td>',"<tr>","</tbody>","</table>"].join("");$(l).onclick=this.incrementCoreClock.bind(this,i);$(a).onclick=this.decrementCoreClock.bind(this,i);$(d).onclick=this.resetCoreClock.bind(this,i);$(e).onclick=this.incrementShaderClock.bind(this,h);$(f).onclick=this.decrementShaderClock.bind(this,h);$(g).onclick=this.resetShaderClock.bind(this,h);$(j).onclick=this.incrementMemoryClock.bind(this,b);$(c).onclick=this.decrementMemoryClock.bind(this,b);$(k).onclick=this.resetMemoryClock.bind(this,b)};gpureview.OptionsSectionDisplay.prototype.resizeBar=function(d,e,a){var c=a/e*100-100;var b=c/this.self.MAX_OVERCLOCK*this.self.BAR_WIDTH;b=Math.round(b);b=Math.max(b,0);b=Math.min(b,this.self.BAR_WIDTH);$(d).style.width=b+"px"};gpureview.OptionsSectionDisplay.prototype.incrementCoreClock=function(a){this.card.incrementCoreClock(gpureview.OptionsSectionDisplay.STEP);this.glanceCallback();this.resizeBar(a,this.card.getDefaultCoreClock(),this.card.getCoreClock())};gpureview.OptionsSectionDisplay.prototype.decrementCoreClock=function(a){this.card.incrementCoreClock(-1*gpureview.OptionsSectionDisplay.STEP);this.glanceCallback();this.resizeBar(a,this.card.getDefaultCoreClock(),this.card.getCoreClock())};gpureview.OptionsSectionDisplay.prototype.resetCoreClock=function(a){this.card.resetCoreClock();this.glanceCallback();this.resizeBar(a,this.card.getDefaultCoreClock(),this.card.getCoreClock())};gpureview.OptionsSectionDisplay.prototype.incrementShaderClock=function(a){this.card.incrementShaderClock(gpureview.OptionsSectionDisplay.STEP);this.glanceCallback();this.resizeBar(a,this.card.getDefaultShaderClock(),this.card.getShaderClock())};gpureview.OptionsSectionDisplay.prototype.decrementShaderClock=function(a){this.card.incrementShaderClock(-1*gpureview.OptionsSectionDisplay.STEP);this.glanceCallback();this.resizeBar(a,this.card.getDefaultShaderClock(),this.card.getShaderClock())};gpureview.OptionsSectionDisplay.prototype.resetShaderClock=function(a){this.card.resetShaderClock();this.glanceCallback();this.resizeBar(a,this.card.getDefaultShaderClock(),this.card.getShaderClock())};gpureview.OptionsSectionDisplay.prototype.incrementMemoryClock=function(a){this.card.incrementMemoryClock(gpureview.OptionsSectionDisplay.STEP);this.glanceCallback();this.resizeBar(a,this.card.getDefaultMemoryClock(),this.card.getMemoryClock())};gpureview.OptionsSectionDisplay.prototype.decrementMemoryClock=function(a){this.card.incrementMemoryClock(-1*gpureview.OptionsSectionDisplay.STEP);this.glanceCallback();this.resizeBar(a,this.card.getDefaultMemoryClock(),this.card.getMemoryClock())};gpureview.OptionsSectionDisplay.prototype.resetMemoryClock=function(a){this.card.resetMemoryClock();this.glanceCallback();this.resizeBar(a,this.card.getDefaultMemoryClock(),this.card.getMemoryClock())};gpureview.PopularitySectionDisplay=function(b,a,c){gpureview.SectionDisplay.call(this,a,gpureview.PopularitySectionDisplay.TITLE,false,c);this.card=b};gpureview.PopularitySectionDisplay.inherits(gpureview.SectionDisplay);gpureview.PopularitySectionDisplay.TITLE="Popularity";gpureview.PopularitySectionDisplay.prototype.displayContent=function(){var a=new gpureview.GoogleChart([this.card.popularity]);a.setSize(220,75);a.setType(gpureview.GoogleChart.TYPE.LINE_SPARK);a.setEncoding(gpureview.GoogleChart.ENCODING.SIMPLE);a.setMaxValue(500);a.setChartColors("34AA34");a.setSolidFill("222222");a.setFillAreas("34AA3499");$(this.contentContainerId).style.backgroundImage="url("+a.buildUrl()+")";$(this.contentContainerId).style.height="75px";$(this.contentContainerId).style.padding="0"};gpureview.PricingSectionDisplay=function(c,a,b,d){gpureview.SectionDisplay.call(this,a,gpureview.PricingSectionDisplay.TITLE,false,d);this.card=c};gpureview.PricingSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.PricingSectionDisplay.TITLE="Pricing";gpureview.PricingSectionDisplay.prototype.displayContent=function(){var a=[];$(this.contentContainerId).innerHTML=a.join("")};gpureview.RankingSectionDisplay=function(c,a,b,d){gpureview.SectionDisplay.call(this,a,gpureview.RankingSectionDisplay.TITLE,false,d);this.card=c};gpureview.RankingSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.RankingSectionDisplay.TITLE="Ranking";gpureview.RankingSectionDisplay.prototype.displayContent=function(){var a=[];$(this.contentContainerId).innerHTML=a.join("")};gpureview.RetailSectionDisplay=function(b,a,c){gpureview.SectionDisplay.call(this,a,b.getRetailCards().length+" "+gpureview.RetailSectionDisplay.TITLE,true,c);this.card=b;this.self=gpureview.RetailSectionDisplay};gpureview.RetailSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.RetailSectionDisplay.TITLE="Retail Versions Of This Card";gpureview.RetailSectionDisplay.CSS_CLASSES={LINK:"gpureview-card-retail-link",DEFAULT_SPEC:"gpureview-card-retail-spec-default",ABOVE_SPEC:"gpureview-card-retail-spec-high",BELOW_SPEC:"gpureview-card-retail-spec-low"};gpureview.RetailSectionDisplay.MESSAGES={DEFAULT_SPEC:"Data not available, assuming reference card value",ABOVE_SPEC:"Higher than reference card specification",BELOW_SPEC:"Lower than reference card specification"};gpureview.RetailSectionDisplay.POPUP_ID="gpureview-card-retail-popup";gpureview.RetailSectionDisplay.prototype.displayContent=function(){var f=this.card.getRetailCards();if(f.length==0){$(this.contentContainerId).innerHTML="No retail cards found";return}var h=new gpureview.SortedTable(this.contentContainerId);h.addColumn("price","Price",gpureview.SortedTable.SORT_TYPE.NUMERIC,gpureview.SortedTable.SORT_DIRECTION.ASC);h.addColumn("name","Name",gpureview.SortedTable.SORT_TYPE.STRING,gpureview.SortedTable.SORT_DIRECTION.ASC);h.addColumn("core_clock","Core Clock",gpureview.SortedTable.SORT_TYPE.STRING,gpureview.SortedTable.SORT_DIRECTION.DESC);h.addColumn("shader_clock","Shader Clock",gpureview.SortedTable.SORT_TYPE.STRING,gpureview.SortedTable.SORT_DIRECTION.DESC);h.addColumn("memory_clock","Memory Clock",gpureview.SortedTable.SORT_TYPE.STRING,gpureview.SortedTable.SORT_DIRECTION.DESC);h.addColumn("memory","Memory",gpureview.SortedTable.SORT_TYPE.STRING,gpureview.SortedTable.SORT_DIRECTION.DESC);h.addColumn("buswidth","Buswidth",gpureview.SortedTable.SORT_TYPE.STRING,gpureview.SortedTable.SORT_DIRECTION.DESC);h.setSort(0);var d=[];var j=gpureview.EventDispatcher.getInstance();for(var e=0;e<f.length;e++){var a=f[e];var c=a.getManufacturer().getDisplayName()+" "+a.getName();var g=this.getAffiliateLink(a.getId());var b=gpureview.ElementIdGenerator.getId();j.addHandler(b,this.showRetailPopup.bind(this,b,a));d.push([[(g)?g.getPriceFinal():gpureview.SortedTable.UNSORTED_VALUE,(g)?this.formatAffiliateLink(g):""],[c.toLowerCase(),'<span class="'+this.self.CSS_CLASSES.LINK+'" id="'+b+'" title="Click For Details">'+c+"</span>"],[a.getCoreClock()||this.card.getCoreClock()/1000000-1,this.formatRetailSpec(this.card.getCoreClock()/1000000,a.getCoreClock(),"MHz")],[a.getShaderClock()||this.card.getShaderClock()/1000000-1,this.formatRetailSpec(this.card.getShaderClock()/1000000,a.getShaderClock(),"MHz")],[a.getMemoryClock()||this.card.getMemoryClock()/1000000-1,this.formatRetailSpec(this.card.getMemoryClock()/1000000,a.getMemoryClock(),"MHz")],[a.getMemorySize(),this.formatRetailSpec(this.card.getMemorySize(),a.getMemorySize(),"MB")],[a.getMemoryBus().getWidth(),this.formatRetailSpec(this.card.getMemoryBus().getWidth(),a.getMemoryBus().getWidth(),"bit")]])}h.setData(d);h.display()};gpureview.RetailSectionDisplay.prototype.getAffiliateLink=function(b){var d=this.card.getAffiliateLinksForRetailCard(b);var c=d[0];for(var a=1;a<d.length;a++){if(d[a].getPrice()<c.getPrice()){c=d[a]}}return c};gpureview.RetailSectionDisplay.prototype.formatAffiliateLink=function(a){if(a.getPrice()==a.getPriceFinal()){return'<a href="'+a.getUrl()+'" target="_blank" title="Buy from Newegg.com">$'+Math.ceil(a.getPriceFinal())+"</a>"}else{return'<a href="'+a.getUrl()+'" target="_blank" title="Buy from Newegg.com" style="color: #999;">$'+Math.ceil(a.getPriceFinal())+"</a>"}};gpureview.RetailSectionDisplay.prototype.formatRetailSpec=function(c,a,b){if(a===0){return'<span class="'+this.self.CSS_CLASSES.DEFAULT_SPEC+'" title="'+this.self.MESSAGES.DEFAULT_SPEC+'">'+c+" "+b+"</span>"}if(a<c){return'<span class="'+this.self.CSS_CLASSES.BELOW_SPEC+'" title="'+this.self.MESSAGES.BELOW_SPEC+'">'+a+" "+b+"</span>"}if(a>c){return'<span class="'+this.self.CSS_CLASSES.ABOVE_SPEC+'" title="'+this.self.MESSAGES.ABOVE_SPEC+'">'+a+" "+b+"</span>"}return a+" "+b};gpureview.RetailSectionDisplay.prototype.showRetailPopup=function(b,c){var g=gpureview.RetailCardDisplayUtil.getImageUrl(c);var f=gpureview.ElementIdGenerator.getId();var e=['<div id="',gpureview.RetailSectionDisplay.POPUP_ID,'">','<p style="font-size: 14px; font-weight: bold">',c.getTitle(),"</p>","<p>Model #: ",c.getModel(),"</p>",'<p>Manufacturer: <a href="',c.getUrl(),'">',c.getManufacturer().getDisplayName(),"</a></p>",'<p><img src="'+g+'"></p>','<table cellpadding="0" cellspacing="0" style="width: 100%">','<tbody><tr><td style="width: 50%">',"<p>Core Clock: ",c.getCoreClock(),"</p>","<p>Shader Clock: ",c.getShaderClock(),"</p>","<p>Memory Clock: ",c.getMemoryClock(),"</p>","<p>Framebuffer: ",c.getMemorySize(),"</p>","<p>Displays: ",c.getDisplay1()," / ",c.getDisplay2(),"</p>","<p>TV Out: ",c.getTvOut(),"</p>",'</td><td style="width: 50%">',"<p>VIVO: ",c.getVivo(),"</p>","<p>HD Out: ",c.getHdOut(),"</p>","<p>HDCP: ",c.getHdcp(),"</p>","<p>Power Plugs: ",c.getPowerPlugs(),"</p>","<p>Dual Slot: ",c.getDualSlot(),"</p>","<p>Noise: ",c.getNoise(),"</p>","</td></tr></tbody></table>",'<p style="text-align: center; margin: 10px;">','<input type="button" id="',f,'" value="Close" /></p>','<p style="font-size: 11px">Want to compare multiple retail cards? Try ','our <a href="#">Advanced Search</a>.</p>',"</div>"].join("");var d=new gpureview.ModalDialog();d.displayMask();var a=new gpureview.ImagePreloader(g,this.showDialog.bind(this,d,e,f));a.load()};gpureview.RetailSectionDisplay.prototype.showDialog=function(b,a,c){b.display(a);$(c).onclick=b.close.bind(b)};gpureview.ReviewsSectionDisplay=function(c,a,b,d){var e=c.getReviews().length+" "+gpureview.ReviewsSectionDisplay.TITLE;gpureview.SectionDisplay.call(this,a,e,true,d);this.card=c;this.numColumns=b||2};gpureview.ReviewsSectionDisplay.inherits(gpureview.SectionDisplay);gpureview.ReviewsSectionDisplay.TITLE="Reviews";gpureview.ReviewsSectionDisplay.sortByType=function(d,c){return c.getType()-d.getType()};gpureview.ReviewsSectionDisplay.prototype.displayContent=function(){var d=this.card.getReviews().sort(gpureview.ReviewsSectionDisplay.sortByType);var e=100/this.numColumns;var c=[];var g;for(var b=0;b<d.length;b++){var a=d[b];if(d[b].getType()==gpureview.Review.TYPE.RETAIL){var f=this.card.getRetailCard(a.getRetailCardId());if(f){g=f.getTitle()}}else{if(d[b].getType()==gpureview.Review.TYPE.REFERENCE){g=this.card.getTitle()+" [reference card]"}else{if(d[b].getType()==gpureview.Review.TYPE.ROUNDUP){g=this.card.getTitle()+" [roundup]"}else{if(d[b].getType()==gpureview.Review.TYPE.PREVIEW){g=this.card.getTitle()+" [preview]"}}}}c.push(['<div class="gpureview-card-reviews-container gpureview-inline-block" ','style="width: ',e,'%">',"<div>",'<a href="',a.getUrl(),'" target="_blank">',g,"</a>","</div>",'<div class="gpureview-card-reviews-domain">',"(",this.getDomain(a.getUrl()),")","</div>","</div>"].join(""))}$(this.contentContainerId).innerHTML=c.join("")};gpureview.ReviewsSectionDisplay.prototype.getDomain=function(a){return a.split("/")[2]};gpureview.SmallRetailSectionDisplay=function(b,a,c){gpureview.RetailSectionDisplay.call(this,b,a,c)};gpureview.SmallRetailSectionDisplay.inherits(gpureview.RetailSectionDisplay);gpureview.SmallRetailSectionDisplay.prototype.displayContent=function(){var e=new gpureview.SortedTable(this.contentContainerId);e.addColumn("price","Price",gpureview.SortedTable.SORT_TYPE.NUMERIC,gpureview.SortedTable.SORT_DIRECTION.ASC);e.addColumn("name","Name",gpureview.SortedTable.SORT_TYPE.STRING,gpureview.SortedTable.SORT_DIRECTION.ASC);e.addColumn("core_clock","Core Clock",gpureview.SortedTable.SORT_TYPE.STRING,gpureview.SortedTable.SORT_DIRECTION.DESC);e.setSort(1);var f=[];var b=this.card.getRetailCards();for(var d=0;d<b.length;d++){var c=b[d];var g=c.getManufacturer().getDisplayName()+" "+c.getName();var a=[0,10,20,30,40];var h=a[Math.round(Math.random()*a.length)];f.push([[(h)?h:gpureview.SortedTable.UNSORTED_VALUE,(h)?"$"+h:""],[g.toLowerCase(),'<span title="'+g+'">'+g.truncate(38,true)+"</span>"],[c.getCoreClock()||this.card.getCoreClock()/1000000-1,this.formatRetailSpec(this.card.getCoreClock()/1000000,c.getCoreClock(),"MHz")]])}e.setData(f);e.display()};gpureview.LegacyReferenceCard=function(q,x,w,n,g,t,l,k,c,e,s,p,j,f,u,v,m,a,d,o,h,i,r,b){gpureview.ReferenceCard.call(this,q,x,w,n,g,t,l,k,c,e,s,p,j,f,u,v,m,a,d,o,h,b);this.vertexPipelines=i;this.pixelPipelines=r};gpureview.LegacyReferenceCard.inherits(gpureview.ReferenceCard);gpureview.LegacyReferenceCard.prototype.getVertexPipelines=function(){return this.vertexPipelines||this.getChip().getVertexPipelines()};gpureview.LegacyReferenceCard.prototype.getVertexShaderOps=function(){return this.getVertexPipelines()*this.getCoreClock()/4};gpureview.LegacyReferenceCard.prototype.getPixelPipelines=function(){return this.pixelPipelines||this.getChip().getPixelPipelines()};gpureview.LegacyReferenceCard.prototype.getPixelShaderOps=function(){return this.getPixelPipelines()*this.getCoreClock()};gpureview.CompareReferenceCardDisplay=function(a,b){this.card=a;this.cardNum=b};gpureview.CompareReferenceCardDisplay.CSS_PREFIX="gpureview-card-compare";gpureview.CompareReferenceCardDisplay.SECTION_ID={IMAGES:"images",PRICING:"pricing",OPTIONS:"options",RANKING:"ranking",GLANCE:"glance",DETAILS:"details",RETAIL:"retail",REVIEWS:"reviews"};gpureview.CompareReferenceCardDisplay.prototype.display=function(){var a=gpureview.CompareReferenceCardDisplay.SECTION_ID;this.imagesSection=new gpureview.ImagesSectionDisplay(card,this.getSectionId(a.IMAGES));this.pricingSection=new gpureview.PricingSectionDisplay(card,this.getSectionId(a.PRICING));this.rankingSection=new gpureview.RankingSectionDisplay(card,this.getSectionId(a.RANKING));this.glanceSection=new gpureview.GlanceSectionDisplay(card,this.getSectionId(a.GLANCE));this.detailsSection=new gpureview.DetailsSectionDisplay(card,this.getSectionId(a.DETAILS));this.retailSection=new gpureview.SmallRetailSectionDisplay(card,this.getSectionId(a.RETAIL));this.reviewsSection=new gpureview.ReviewsSectionDisplay(card,this.getSectionId(a.REVIEWS),1);this.optionsSection=new gpureview.OptionsSectionDisplay(card,this.getSectionId(a.OPTIONS),this.glanceSection.display.bind(this.glanceSection),this.detailsSection.display.bind(this.detailsSection));this.imagesSection.display();this.pricingSection.display();this.optionsSection.display();this.rankingSection.display();this.glanceSection.display();this.detailsSection.display();this.retailSection.display();this.reviewsSection.display()};gpureview.CompareReferenceCardDisplay.prototype.refreshSpecs=function(){this.glanceSection.display();this.detailsSection.display()};gpureview.CompareReferenceCardDisplay.prototype.getSectionId=function(a){return[gpureview.CompareReferenceCardDisplay.CSS_PREFIX,a,this.cardNum].join("-")};gpureview.SingleReferenceCardDisplay=function(a){this.card=a;this.glanceSection=null;this.detailsSection=null;this.imagesSection=null};gpureview.SingleReferenceCardDisplay.prototype.display=function(){this.glanceSection=new gpureview.GlanceSectionDisplay(card,gpureview.ReferenceCardDisplayUtil.GLANCE_SECTION_ID);this.detailsSection=new gpureview.DetailsSectionDisplay(card,gpureview.ReferenceCardDisplayUtil.DETAILS_SECTION_ID);this.imagesSection=new gpureview.ImagesSectionDisplay(card,gpureview.ReferenceCardDisplayUtil.IMAGES_SECTION_ID);this.optionsSection=new gpureview.OptionsSectionDisplay(card,gpureview.ReferenceCardDisplayUtil.OPTIONS_SECTION_ID,this.glanceSection.display.bind(this.glanceSection),this.detailsSection.display.bind(this.detailsSection));this.popularitySection=new gpureview.PopularitySectionDisplay(card,gpureview.ReferenceCardDisplayUtil.POPULARITY_SECTION_ID);this.comparedSection=new gpureview.ComparedSectionDisplay(card,gpureview.ReferenceCardDisplayUtil.COMPARED_SECTION_ID);this.adsSection=new gpureview.AdsSectionDisplay(card,gpureview.ReferenceCardDisplayUtil.ADS_SECTION_ID);this.retailSection=new gpureview.RetailSectionDisplay(card,gpureview.ReferenceCardDisplayUtil.RETAIL_SECTION_ID);this.reviewsSection=new gpureview.ReviewsSectionDisplay(card,gpureview.ReferenceCardDisplayUtil.REVIEWS_SECTION_ID);this.commentsSection=new gpureview.CommentsSectionDisplay(card,gpureview.ReferenceCardDisplayUtil.COMMENTS_SECTION_ID);this.glanceSection.display();this.detailsSection.display();this.imagesSection.display();this.optionsSection.display();this.popularitySection.display();this.comparedSection.display();this.adsSection.display();this.retailSection.display();this.reviewsSection.display();this.commentsSection.display()};gpureview.SingleReferenceCardDisplay.prototype.refreshSpecs=function(){this.glanceSection.display();this.detailsSection.display()};
