');jQuery.each(val['copies'], function (key, value) {var keyArray = key.split('_');key = keyArray[0];if (key != '' && value[lang] != '') {var url = value['link']['link'];if (value['link']['categoryId'] != '' && value['link']['categoryId'] !=undefined) {/*Si es el primer h2, le aplicamos la clase custom */if (keyArray.length > 0 && keyArray[1] == '1') {var $elto = jQuery('' + '<' +key + '>' + value[lang] + '' + key + '>');} else {var $elto = jQuery('' + '<' + key + '>' +value[lang] + '' + key + '>');}} else {var $elto = jQuery('<' + key + '>' + value[lang] + '' + key + '>');}$divTitleBox.append($elto);}});var $img = createImage(i, val);var sizeImg = val['img']['size'];var sizeCopy = 12 - sizeImg;/*Invertimos el orden: order copy - imagen, imagen - copy */var $colCpy = jQuery('
');var $colImg = jQuery('
');if (paisesSlideDerecha.indexOf(country) != -1) {var $colCpy = jQuery('
');var $colImg = jQuery('
');}/*if (country === "CL") {var $colCpy = jQuery('
');var $colImg = jQuery('
');}*/if ((STLCustom.getBreakpoint() == 'smartphone')) {/*para foto con 2 links *//*if (country === "ES") { */var imgLinks = val['img']['links'];var numImg = val['img']['number'];var altImg = val['img']['alt'][lang];jQuery.each(imgLinks, function (i, val) {if (i == 0 && country == 'CO') {}else {console.log("IMG: " + i + "LINKS: " + imgLinks.length)var $link = jQuery('');$colImg.append($link);}});/* } else {var $link = jQuery('');$colImg.append($link);}*/} else {var altImg = val['img']['alt'][lang];var imgLinks = val['img']['links'];jQuery.each(imgLinks, function (i, val) {ele += iif (country == 'US') {var $link = jQuery('' + $img + '');} else /*if (country == 'US') { var $link = jQuery('
');} else */ {var $link = jQuery('');}$colImg.append($link);});}$colCpy.append($divTitleBox);if ((STLCustom.getBreakpoint() == 'smartphone') || (country != 'US')) {$colImg.append($img);}var $row = jQuery('
');/*Determinamos order: copy - imagen, imagen - copy */if (((i + 1) % 2 != 0)) { /*!=0 => Copy-Imagen y ==0 Imagen-Copy*/if ((sizeCopy != 0)) {$row.append($colCpy);}$row.append($colImg);} else {$row.append($colImg);if ((sizeCopy != 0)) {$row.append($colCpy);}}if (paisesSlideDerecha.indexOf(country) != -1) {if (((i + 1) % 2 == 0)) { /*!=0 => Copy-Imagen y ==0 Imagen-Copy */if ((sizeCopy != 0)) {$row.append($colCpy);}$row.append($colImg);} else {$row.append($colImg);if ((sizeCopy != 0)) {$row.append($colCpy);}}}if ((sizeCopy != 12)) {if (country === "US") {var $link = jQuery('');} else {var $link = jQuery('');}$link.append($row);jQuery('.homePage').append($link);} else {jQuery('.homePage').append($row);}});/*FOTO REBAJAS 2020_05*/jQuery('#linkGiftGuide1').attr("style", "width:0%;left:0%;z-index: 1; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:0%;left:0%;z-index: 1; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:0%;left:0%;z-index: 1; height: 100%");jQuery('#linkGiftGuide4').attr("style", "width:0%;left:0%;z-index: 1; height: 100%");jQuery('#linkGiftGuide5').attr("style", "width:0%;left:0%;z-index: 1; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:0%;left:0%;z-index: 1; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:0%;left:0%;z-index: 1; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:0%;left:0%;z-index: 1; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:0%;left:0%;z-index: 1; height: 100%");/*if (country == 'PL' || country == 'GR' ){jQuery('#linkGiftGuide1').attr("style", "width:50%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:50%;left:50%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:22%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:78%;left:22%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");}*//*if ( country == 'IT' ){jQuery('#linkGiftGuide1').attr("style", "width:50%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:50%;left:50%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%"); if(STLCustom.getBreakpoint() == 'smartphone'){jQuery('#linkGiftGuide6').attr("style", "width:50%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:50%;left:50%;z-index: 1;position: absolute; height: 100%"); }else{jQuery('#linkGiftGuide6').attr("style", "width:26%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%");} } /*if (country === 'MX'){jQuery('#linkGiftGuide1').attr("style", "width:50%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:50%;left:50%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:22%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:78%;left:22%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");} *//* if (country == 'MC' || country == 'FR'){jQuery('#linkGiftGuide1').attr("style", "width:50%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:50%;left:50%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:0%;left:72%;z-index: 1;position: absolute; height: 100%");} *//* if (country == 'ES' || country == '00') {jQuery('#linkGiftGuide1').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:76%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide4').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:26%;left:74%;z-index: 1;position: absolute; height: 100%");} *//*if(country == 'CO'){ if ((STLCustom.getBreakpoint() == 'smartphone')) { jQuery('.homePage').children('a').first().removeAttr("href"); }else{ var fotoSinLink=jQuery('#linkGiftGuide1').parent().parent().parent().html(); console.log(fotoSinLink); jQuery('#linkGiftGuide1').parent().parent().parent().remove(); jQuery('.homePage').prepend(fotoSinLink); jQuery('#linkGiftGuide1').remove(); }*//* var fotoSinLink=jQuery('#linkGiftGuide1').parent().parent().parent().removeAttr("href"); jQuery('#linkGiftGuide1').remove();*//*} */if (country == 'ES' || country == 'PT') {/*jQuery('#linkGiftGuide1').attr("style", "width:50%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:50%;left:50%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide5').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide5').attr("style", "width:50%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:50%;left:50%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:26%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%"); */}/*if (country == "MX" || country == "US") {jQuery('#linkGiftGuide1').attr("style", "width:50%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:50%;left:50%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide5').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:26%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%"); }*/if (country == "CO" || country == "MX" || country == 'CL' || country == 'GR' || country == 'FR' || country == 'MC' || country == 'IT' || country == 'BE' || country == 'PL' || country == 'GB' || country == 'DE' || country == 'AT' || country == 'IE' || country == 'SE' || country == 'FI' || country == 'DK' || country == 'LU' || country == 'NL' || country == 'ES' || country == 'PT') {/*jQuery('#linkGiftGuide1').attr("style", "width:75%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:25%;left:75%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:74%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:26%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:26%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%"); */}if (country == "MX" || country == "CO" || country == "CL" | country == "DE" || country == "AT" || country == "SE" || country == "FI" || country == "DK" || country == "IE" || country == "LU" || country == "GB"|| country == "PL" || country == "NL" || country == "PT" || country == "ES" || country == "MC"|| country == "FR") {/*jQuery('#linkGiftGuide1').attr("style", "width:23%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:77%;left:23%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:75%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide4').attr("style", "width:25%;left:75%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide5').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:0%;left:23%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:26%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%"); */}if (country == "MX") {/*jQuery('#linkGiftGuide1').attr("style", "width:77%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:23%;left:77%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:75%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide4').attr("style", "width:25%;left:75%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide5').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:26%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%"); */}if (country == "CO" || country == "CL") {/*jQuery('#linkGiftGuide1').attr("style", "width:75%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:25%;left:75%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide3').attr("style", "width:75%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide4').attr("style", "width:25%;left:75%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:75%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:25%;left:75%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide5').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide6').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:0%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide8').attr("style", "width:26%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide9').attr("style", "width:74%;left:26%;z-index: 1;position: absolute; height: 100%"); */}if (country == "CL") {jQuery('#linkGiftGuide6').attr("style", "width:50%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:50%;left:50%;z-index: 1;position: absolute; height: 100%");}if (country == "MX" || country == "FR" || country == "GR" || country == "MC" || country == "CO" || country == "AE" || country == "AT" || country == "BE" || country == "DE" || country == "DK" || country == "ES" || country == "FI"|| country == "GB" || country == "IE" || country == "IT" || country == "LU" || country == "NL" || country == "PT"|| country == "SE" || country == "PL") {jQuery('#linkGiftGuide6').attr("style", "width:77%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide7').attr("style", "width:23%;left:77%;z-index: 1;position: absolute; height: 100%");}/* todos menos usa *//*if (country == "MX" || country == "CO" || country == "CL" | country == "DE" || country == "AT" || country == "SE" || country == "FI" || country == "DK" || country == "IE" || country == "LU" || country == "GB"|| country == "PL" || country == "NL" || country == "PT" || country == "BE" || country == "IT" || country == "ES" || country == "GR" || country == "MC" || country == "FR" || country == "00" || country == '01') {if ( ('MX','DE','AT','SE','FI','DK','IE','LU','GB','PL','NL','PT','BE','IT','ES','GR','MC','FR','CO','CL','AE','00').includes(country)) {jQuery('#linkGiftGuide1').attr("style", "width:76%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:24%;left:76%;z-index: 1;position: absolute; height: 100%");}*//* rebajas (todos menos 00) if ( ('MX','DE','AT','SE','FI','DK','IE','LU','GB','PL','NL','PT','BE','IT','ES','GR','MC','FR','CO','CL','AE').includes(country)) {jQuery('#linkGiftGuide1').attr("style", "width:67%;left:0%;z-index: 1;position: absolute; height: 100%");jQuery('#linkGiftGuide2').attr("style", "width:33%;left:67%;z-index: 1;position: absolute; height: 100%");}*//* AÑADE AL ESTILO UN CURSOR VINCULO PARA USA */if (country == "US") {jQuery('#linkGiftGuide1').attr("style", jQuery('#linkGiftGuide1').attr("style") + "; cursor: pointer;");jQuery('#linkGiftGuide2').attr("style", jQuery('#linkGiftGuide2').attr("style") + "; cursor: pointer;");}resizeWindow(STLCustom.getBreakpoint() == 'smartphone');});$(window).resize(function () {resizeWindow(STLCustom.getBreakpoint() == 'smartphone');}).resize();/* var boton = function (link1, link2, posicionCentral) { } */