var vinLoopCount = 0; var vinInterval = setInterval(function(){ vinLoopCount++; var elements = []; for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_1G1RB6S58JU155573_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_1G1RB6S58JU155573_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4CJASBXKB725766_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4CJASBXKB725766_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_3GNKBBRA7KS683196_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_3GNKBBRA7KS683196_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_3GNKBBRA1KS685817_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_3GNKBBRA1KS685817_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_1GCGTDEN4K1315835_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_1GCGTDEN4K1315835_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_3G1BE6SMXKS582643_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_3G1BE6SMXKS582643_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_1GCPWAEF0KZ277729_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_1GCPWAEF0KZ277729_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_1GCPWAEF4KZ270511_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_1GCPWAEF4KZ270511_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_3GNCJPSB4KL252932_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_3GNCJPSB4KL252932_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_1GKS2DKC3KR300149_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_1GKS2DKC3KR300149_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_5GAEVAKW9LJ141289_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_5GAEVAKW9LJ141289_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_5GAEVAKW0LJ143559_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_5GAEVAKW0LJ143559_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_5GAEVAKW0LJ132089_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_5GAEVAKW0LJ132089_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4CJASB8LB054244_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4CJASB8LB054244_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4CJASB6LB014390_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4CJASB6LB014390_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4CJESB3LB336301_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4CJESB3LB336301_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4CJESB4LB335965_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4CJESB4LB335965_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4CJESB9LB336271_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4CJESB9LB336271_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4CJESB4LB336176_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4CJESB4LB336176_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4CJ2SB6LB014590_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4CJ2SB6LB014590_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4MMBS23LB117445_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4MMBS23LB117445_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4MMBS21LB107674_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4MMBS21LB107674_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4MMBS23LB109751_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4MMBS23LB109751_"+i)); } } for (i = 0; i < 24; i++) { if(document.getElementById("dvs_vin_btn_KL4MMBS24LB117096_"+i) != null){ elements.push(document.getElementById("dvs_vin_btn_KL4MMBS24LB117096_"+i)); } } if(elements != null && elements.length > 0) { for(var k = 0; k < elements.length; k++) { if(elements[k] != null) { clearInterval(vinInterval); for(var i=0; i < elements[k].childNodes.length; i++) { if(elements[k].childNodes[i].tagName == "DIV") { var loadingElement = elements[k].childNodes[i]; } if(elements[k].childNodes[i].tagName == "A") { var urlElement = elements[k].childNodes[i]; } } if(('1G1RB6S58JU155573' == elements[k].getAttribute("vin")) || ('1G1RB6S58JU155573' == elements[k].getAttribute("edstyleid"))) { } if(('KL4CJASBXKB725766' == elements[k].getAttribute("vin")) || ('KL4CJASBXKB725766' == elements[k].getAttribute("edstyleid"))) { } if(('3GNKBBRA7KS683196' == elements[k].getAttribute("vin")) || ('3GNKBBRA7KS683196' == elements[k].getAttribute("edstyleid"))) { } if(('3GNKBBRA1KS685817' == elements[k].getAttribute("vin")) || ('3GNKBBRA1KS685817' == elements[k].getAttribute("edstyleid"))) { } if(('1GCGTDEN4K1315835' == elements[k].getAttribute("vin")) || ('1GCGTDEN4K1315835' == elements[k].getAttribute("edstyleid"))) { } if(('3G1BE6SMXKS582643' == elements[k].getAttribute("vin")) || ('3G1BE6SMXKS582643' == elements[k].getAttribute("edstyleid"))) { } if(('1GCPWAEF0KZ277729' == elements[k].getAttribute("vin")) || ('1GCPWAEF0KZ277729' == elements[k].getAttribute("edstyleid"))) { } if(('1GCPWAEF4KZ270511' == elements[k].getAttribute("vin")) || ('1GCPWAEF4KZ270511' == elements[k].getAttribute("edstyleid"))) { } if(('3GNCJPSB4KL252932' == elements[k].getAttribute("vin")) || ('3GNCJPSB4KL252932' == elements[k].getAttribute("edstyleid"))) { } if(('1GKS2DKC3KR300149' == elements[k].getAttribute("vin")) || ('1GKS2DKC3KR300149' == elements[k].getAttribute("edstyleid"))) { } if(('5GAEVAKW9LJ141289' == elements[k].getAttribute("vin")) || ('5GAEVAKW9LJ141289' == elements[k].getAttribute("edstyleid"))) { } if(('5GAEVAKW0LJ143559' == elements[k].getAttribute("vin")) || ('5GAEVAKW0LJ143559' == elements[k].getAttribute("edstyleid"))) { } if(('5GAEVAKW0LJ132089' == elements[k].getAttribute("vin")) || ('5GAEVAKW0LJ132089' == elements[k].getAttribute("edstyleid"))) { } if(('KL4CJASB8LB054244' == elements[k].getAttribute("vin")) || ('KL4CJASB8LB054244' == elements[k].getAttribute("edstyleid"))) { } if(('KL4CJASB6LB014390' == elements[k].getAttribute("vin")) || ('KL4CJASB6LB014390' == elements[k].getAttribute("edstyleid"))) { } if(('KL4CJESB3LB336301' == elements[k].getAttribute("vin")) || ('KL4CJESB3LB336301' == elements[k].getAttribute("edstyleid"))) { } if(('KL4CJESB4LB335965' == elements[k].getAttribute("vin")) || ('KL4CJESB4LB335965' == elements[k].getAttribute("edstyleid"))) { } if(('KL4CJESB9LB336271' == elements[k].getAttribute("vin")) || ('KL4CJESB9LB336271' == elements[k].getAttribute("edstyleid"))) { } if(('KL4CJESB4LB336176' == elements[k].getAttribute("vin")) || ('KL4CJESB4LB336176' == elements[k].getAttribute("edstyleid"))) { } if(('KL4CJ2SB6LB014590' == elements[k].getAttribute("vin")) || ('KL4CJ2SB6LB014590' == elements[k].getAttribute("edstyleid"))) { } if(('KL4MMBS23LB117445' == elements[k].getAttribute("vin")) || ('KL4MMBS23LB117445' == elements[k].getAttribute("edstyleid"))) { } if(('KL4MMBS21LB107674' == elements[k].getAttribute("vin")) || ('KL4MMBS21LB107674' == elements[k].getAttribute("edstyleid"))) { } if(('KL4MMBS23LB109751' == elements[k].getAttribute("vin")) || ('KL4MMBS23LB109751' == elements[k].getAttribute("edstyleid"))) { } if(('KL4MMBS24LB117096' == elements[k].getAttribute("vin")) || ('KL4MMBS24LB117096' == elements[k].getAttribute("edstyleid"))) { } loadingElement.style.display = 'none'; } } } if(vinLoopCount >= 10) { clearInterval(vinInterval); } }, 2000);