Special Calendario de vacaciones 2024 Notice:
EVGA tiene un horario de atención limitado en conmemoración de las próximas festividades de Navidad y Año Nuevo.
Las oficinas de EVGA y el servicio de atención al cliente estarán cerrados del 25/12/24 al 1/1/25 y volverán a abrir el 2/1/25.
Los servicios de RMA estarán cerrados del 20/12/24 al 3/1/25 y volverán a abrir el 6/1/25 (los envíos programados durante este período se mantendrán hasta la reapertura el 6/1/25 o después)
HORARIO DE DÍAS FESTIVOS (EE. UU. y CA) : Haga clic aquí
');
}
}
$.fn.extend({
setCookie: function(cookieName, cookieVal) {
var dt = new Date();
dt.setDate(dt.getDate() + 365 * 36);
$.cookie(cookieName, cookieVal, { path: '/', expires: dt });
},
clsCookie: function(cookieName) {
$.cookie(cookieName, null);
}
});
initCompareList();
});
function pageLoad() {
$('#ctl00_LFrame_prdList_tblSearchMain a[title!=""]').each(function() {
$(this).hover(function() {
$(this).css('color', '#777');
}, function() {
$(this).css('color', '#000000');
}
);
$(this).css('color', '#000000');
});
if (location.href.indexOf("&ShowAdvMark=") > -1) showAdvanced();
var w = $('body').innerWidth();
var _w = Math.round(w * 0.9);
var _left = $(".bodyLeftArea").css("width");
if (_left != undefined)
$("#cont").css("width", _w - _left.replace("px", "") + "px");
}
function initCompareList() {
$("input[type=checkbox]:checked").each(
function() {
if (this.name.indexOf("chkOnlyInStock") < 0)
this.checked = false;
}
);
var str = $.cookie('EVGA_ComparePrd');
if (str == "undefined") {
$(document).setCookie('EVGA_ComparePrd', "");
str = "";
}
setCompareList(str);
}
function canCompare() {
var str = $.cookie('EVGA_ComparePrd');
if (str != null)
goPage("/Products/Compare.aspx");
return str != null;
}
function goCompare(pn, tn) {
if (!addCompareItem(pn, tn))
return false;
if ($('input[name$="hidCompareItem"]').val() < 2) {
alert("Puede seleccionar al menos 2 artículos para la comparación.");
return false;
}
goPage("/Products/Compare.aspx");
return true;
}
function addclsItem(pn, tn, ctl) {
if (ctl.checked)
return addCompareItem(pn, tn);
else
return removeCompareItem(pn, tn);
}
function addCompareItem(pn, tn) {
if ($('input[name$="hidCompareItem"]').val() == 5) {
alert("Usted puede seleccionar sólo hasta 5 elementos a la vez para comparar.");
return false;
}
var str = $.cookie('EVGA_ComparePrd');
var newStr = "EVGA" + pn;
/* set grouping cookie */
var grp = $.cookie('EVGA_GroupPrd');
if (grp != null && grp != '') {
if (grp != tn) {
alert("No se puede comparar este artículo con su selección comparar actual. Elimine los artículos en su selección si desea comparar de esta familia.");
return false;
}
}
$(document).setCookie('EVGA_GroupPrd', tn);
if (str != null) {
if (str.indexOf(newStr) < 0)
newStr = str + "|" + newStr;
else
newStr = str;
}
$(document).setCookie('EVGA_ComparePrd', newStr);
setCompareList(newStr);
return true;
}
function removeCompareItem(pn) {
var str = $.cookie('EVGA_ComparePrd');
var oldLen = str.replace(/EVGA/g, "").split('|').length - 1;
if (str != null) {
var newStr = str.replace("EVGA" + pn + "|", "").replace("|EVGA" + pn, "").replace("EVGA" + pn, "").replace("||", "|");
setCompareList(newStr);
$(document).setCookie('EVGA_ComparePrd', newStr);
clsCompareItem(oldLen);
$('input[name$="hidCompareItem"]').val(newStr.split('|').length);
$('#' + pn).prop('checked', false);
if (newStr == '') $(document).setCookie('EVGA_GroupPrd', '');
}
else {
$(document).setCookie('EVGA_GroupPrd', '');
}
return true;
}
function setCompareList(str) {
if (str != null && str.toString().length > 0) {
var list = str.replace(/EVGA/g, "").split('|');
var i = 1;
for (var key in list) {
if (list[key].length == 0) continue;
if (i > 5) break;
clsCompareItem(i);
setCompare(i, list[key]);
$('#' + list[key]).prop('checked', true);
++i;
}
$('input[name$="hidCompareItem"]').val(i - 1);
}
}
function clsCompareItem(intIndex) {
$("#li" + intIndex).find("span").remove();
$("#compare" + intIndex).find("img").remove();
$("#compare" + intIndex).css("title", "").css("cursor", "default");
}
function removeCompare(intIndex) {
var pn = $("#compare" + intIndex).find("img").attr("alt");
if (pn != undefined) {
removeCompareItem(pn);
}
}
function setCompare(intIndex, pn) {
var div = $("#compare" + intIndex);
var img2 = $("
").attr("src", "https://images.evga.com/products/gallery/" + pn + "_sm_1.jpg").attr("alt", pn).addClass("compareImg");
div.append(img2);
var imgOver = $("
").attr("src", "https://www.evga.com/Products/App_Themes/images/compare_box_active.png").attr("alt", "Remove Item").attr("title", "Remove Item").addClass("compare-hover");
div.append(imgOver);
div.css("cursor", "pointer").css("title", "Remove Item");
/*var li = $("#li" + intIndex);
var img = $("
").attr("src", "/Products/App_Themes/Images/removeCompare.gif").attr("alt", "Remove Item").attr("title", "Remove Item").css("width", "10px").css("height", "10px");
var spn = $("
").addClass("removeCompare");
spn.append(img);
li.append(spn);*/
}
function replaceCtl(ctl, urlParam) {
var strParam = "&" + urlParam + "=";
var o = $('input:hidden[name$="' + ctl + '"]').val();
if (o == "") return;
$(".SearchMainCont a").each(function(i) {
var link = $(this).attr("onclick");
var loAryM = link.toString().split(strParam);
var loAryD = loAryM[1].split("&");
loAryD[0] = o;
loAryM[1] = loAryD.join("&");
var newClick = new Function(loAryM.join(strParam).split("{")[1].replace("}", ""));
$(this).attr("onclick", "").click(newClick);
});
if ($(".btnOn").length > 0) {
var link = $(".btnOn").attr("onclick");
var loAry = link.toString().split("\n")[2].split(strParam);
loAry[1] = o;
var newClick = new Function(loAry.join(strParam) + "')");
$(".btnOn").attr("onclick", "").click(newClick);
}
}
function replaceOrder() {
replaceCtl("lblOrder", "Order");
}
function replaceOnly() {
replaceCtl("lblOnlyIn", "Only");
}
function strAdv() {
var t = $('input:hidden[name$="lblProductType"]').val();
var f = $('input:hidden[name$="lblFamily"]').val();
var c = $('input:hidden[name$="lblChipset"]').val();
var o = $('input:hidden[name$="lblOrder"]').val();
var oi = $('input:hidden[name$="lblOnlyIn"]').val();
if (t == "" && f == "" && c == "")
return "";
srcParam = "/Products/ProductList.aspx?type=" + encodeURIComponent(t);
if (f != "") srcParam += "&family=" + encodeURIComponent(f);
if (c != "") srcParam += "&Chipset=" + encodeURIComponent(c);
if (o != "") srcParam += "&Order=" + encodeURIComponent(o);
if (oi != "") srcParam += "&Only=" + encodeURIComponent(oi);
return srcParam;
}
function dropAdv(obj) {
var a = $('input:hidden[name$="lblAdv"]').val();
srcParam = strAdv();
if (srcParam == "" && a == "")
return;
if (a == "") {
location.href = srcParam;
return;
}
var aryObj = obj.split("+");
for (i = 0; i < aryObj.length; i++) {
a = a.replace(aryObj[i], "");
}
if (a.substring(0, 1) == "+")
a = a.substring(1, a.length);
if (a.charAt(a.length - 1) == "+")
a = a.substring(0, a.length - 1);
if (a != "")
srcParam += "&Adv=" + encodeURIComponent(a);
location.href = srcParam;
}
function showGuided() {
//$("#imgGuided").attr("src", "/Products/App_Themes/Images/Guided_cur.png");
//$("#imgGuided").css("background-position", "0 -24px");
//$("#imgAdvanced").attr("src", "/Products/App_Themes/Images/btn-Advanced.png");
//$("#imgAdvanced").css("background-position", "0 0");
$("#nav").css("background-position", "0 0");
$("#spnGuided").css("display", "block");
$('#spnAdvanced').css("display", "none");
}
function showAdvanced() {
//$("#imgGuided").attr("src", "/Products/App_Themes/Images/btn-Guided.png");
//$("#imgGuided").css("background-position", "0 0");
//$("#imgAdvanced").attr("src", "/Products/App_Themes/Images/btn-Advanced-cur.png");
//$("#imgAdvanced").css("background-position", "0 -24px");
$("#nav").css("background-position", "0 -30px");
$("#spnGuided").css("display", "none");
$('#spnAdvanced').css("display", "block");
}
function advSearch() {
var t = $('select[name$="advUseful"]').val();
var m = $('select[name$="advPrice"]').val();
srcParam = strAdv();
var a = $('input:hidden[name$="lblAdv"]').val();
if (srcParam == "") return false;
if (t != "" || m != "") {
if (a != "")
srcParam += "&Adv=" + a;
if (t != "") {
if (srcParam.indexOf("&Adv") > -1 && t != "")
srcParam += encodeURIComponent("+" + t);
else
srcParam += "&Adv=" + encodeURIComponent(t);
}
if (m != "") {
if (srcParam.indexOf("&Adv") > -1 && m != "")
srcParam += encodeURIComponent("+" + m);
else
srcParam += "&Adv=" + encodeURIComponent(m);
}
srcParam += "&ShowAdvMark=";
location.href = srcParam;
return true;
} else
return false;
}
function openAutoNotifyWin(pn)
{
var wnd = window.radopen("/Products/autoNotify.aspx?pn=" + pn , "OnhandWin");
wnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move);
var args = new Object();
wnd.argument = args;
}
function openPicWin(pn) {
var wnd = window.radopen("/Products/PicDialog.aspx?pn=" + pn, "priceincart");
wnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Default);
var args = new Object();
wnd.argument = args;
}
function OnClientClose(sender,args)
{
var arg = args.get_argument();
if (arg)
{
var iCell = sender.argument.Cell;
var iRegion = sender.argument.Region;
var iType = arg.Type;
var iAlert = arg.AlertType;
if (iType=="Alert")
{
var iLevel = arg.AlertLevel;
if (iAlert=="Chipset")
iCell.style.setAttribute("backgroundColor","red");
else
iCell.style.setAttribute("color","red");
iCell.title=iLevel + " in [" + iRegion + "] ";
}
else
{
if (iAlert=="Chipset")
iCell.style.setAttribute("backgroundColor","black");
else
iCell.style.setAttribute("color","black");
iCell.title = "";
}
}
}
/*
function OnClientPageLoad(sender, args)
{
setTimeout(function(){
sender.set_status(""); sender.set_title("");},0);
}
*/