Saltar menú de navegación
Teclas de acceso rápido
ELECCION DEPORTISTA DEL AÑO
";
return bannerHTML;
}
function renderBannerHTML(bannerFile, contentID) {
if (bannerFile.file == '') {
bannerHTML = atob(bannerFile.html);
bannerHTML+= "";
setInnerHTML(document.getElementById(contentID), bannerHTML);
} else {
bannerHTML = renderBannerIMG(bannerFile);
$("#" + contentID).html(bannerHTML);
}
}
function renderBanner(zoneName,bannerSize,contentID,bannerShow,onEnded) {
if ( bannersData[zoneName] != undefined
&& bannersData[zoneName][bannerSize] != undefined
&& bannersData[zoneName][bannerSize].length > 0) {
myBanner = bannersData[zoneName][bannerSize];
n = bannersPointer[zoneName][bannerSize];
if (bannerShow) {
$("#" + contentID).parent().show();
}
if (n == myBanner.length) {
n = 0;
}
bannerFile = bannersIDs[myBanner[n]];
bannersID+= ',' + bannerFile.id;
console.log("Banner #"+contentID+":" + bannerSize);
renderBannerHTML(bannerFile,contentID);
n++;
if (n == myBanner.length) {
n = 0;
}
bannersPointer[zoneName][bannerSize] = n;
if (onEnded){
window[onEnded]();
}
} else {
$("#"+contentID).parent().hide();
console.log("bannersData."+zoneName+" no existe o no posee datos");
}
}
var bannerPathFile = '';
var bannersBySize = [];
var bannersData = {"home3":{"970x90":["298"],"728x90":["48"]},"homederecha10":{"300x250":["73"]},"home7":{"970x90":["214","292"],"300x250":["291","215"]},"homederecha1":{"300x250":["255","254"]},"home1":{"970x90":["284","262"]},"homederecha11":{"300x250":["228"]},"home2":{"300x250":["300","288","287","289"],"970x90":["299","308","286","285"]},"homederecha12":{"300x250":["283"]},"homederecha14":{"300x250":["260","259","261"]},"homederecha15":{"300x250":["263"]},"homederecha17":{"300x250":["215"]},"homederecha19":{"300x250":["54"]},"homederecha2":{"300x250":["243"]},"homederecha4":{"300x250":["264","265"]},"homederecha6":{"300x250":["258","257","256"]},"interior1":{"970x90":["262"]},"interior4":{"300x250":["73"],"728x90":["48"]},"interior5":{"300x250":["215","300"],"970x90":["299","214"]},"interiorerecha1":{"300x250":["258","257","261","256","254","259","255","260"]},"interiorerecha3":{"300x250":["54"]},"intersitial":{"320x480":["307","291","306","302","215"],"900x500":["290","301","305","304"]}};
var bannersPointer = {"home3":{"970x90":0,"728x90":0},"homederecha10":{"300x250":0},"home7":{"970x90":0,"300x250":0},"homederecha1":{"300x250":0},"home1":{"970x90":0},"homederecha11":{"300x250":0},"home2":{"300x250":0,"970x90":0},"homederecha12":{"300x250":0},"homederecha14":{"300x250":0},"homederecha15":{"300x250":0},"homederecha17":{"300x250":0},"homederecha19":{"300x250":0},"homederecha2":{"300x250":0},"homederecha4":{"300x250":0},"homederecha6":{"300x250":0},"interior1":{"970x90":0},"interior4":{"300x250":0,"728x90":0},"interior5":{"300x250":0,"970x90":0},"interiorerecha1":{"300x250":0},"interiorerecha3":{"300x250":0},"intersitial":{"320x480":0,"900x500":0}};
var bannersIDs = {"298":{"id":"298","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1727830264.png","link":"https:\/\/www.campolimpio.org.ar\/","width":"970","height":"90"},"48":{"id":"48","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1648847477.gif","link":"https:\/\/www.facebook.com\/hieloCristalcil\/","width":"728","height":"90"},"73":{"id":"73","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1662953629.gif","link":"","width":"300","height":"250"},"214":{"id":"214","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1699533354.jpg","link":"https:\/\/www.instagram.com\/remisesstylorenovado\/","width":"970","height":"90"},"292":{"id":"292","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1732565909.gif","link":"https:\/\/www.instagram.com\/p\/DCsB3Sdtmkz\/","width":"970","height":"90"},"255":{"id":"255","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1713182281.jpg","link":"","width":"300","height":"533"},"254":{"id":"254","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1713182249.jpg","link":"","width":"300","height":"533"},"284":{"id":"284","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1730225591.png","link":"https:\/\/www.loteriasantafe.gov.ar\/","width":"970","height":"90"},"262":{"id":"262","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1713274014.gif","link":"","width":"970","height":"90"},"228":{"id":"228","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1697032842.jpg","link":"https:\/\/viviendassion.com\/","width":"300","height":"300"},"300":{"id":"300","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1730975768.png","link":"https:\/\/wa.link\/45v1hf","width":"300","height":"250"},"288":{"id":"288","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1727830489.png","link":"www.loteriasantafe.gov.ar","width":"300","height":"250"},"287":{"id":"287","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1730225612.png","link":"www.loteriasantafe.gov.ar","width":"301","height":"250"},"289":{"id":"289","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1727830421.gif","link":"www.loteriasantafe.gov.ar","width":"300","height":"250"},"283":{"id":"283","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1731696563.gif","link":"https:\/\/marketing.montironi.com\/peugeot\/?utm_source=MULTIMEDIO+RAFAELA+250X250PX&utm_medium=Agosto+2024","width":"300","height":"300"},"299":{"id":"299","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1730975744.png","link":"https:\/\/wa.link\/45v1hf","width":"970","height":"90"},"308":{"id":"308","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1732717023.png","link":"www.loteriasantafe.gov.ar","width":"970","height":"90"},"286":{"id":"286","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1730225599.png","link":"www.loteriasantafe.gov.ar","width":"970","height":"91"},"285":{"id":"285","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1730225580.png","link":"https:\/\/www.loteriasantafe.gov.ar\/","width":"970","height":"90"},"260":{"id":"260","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1713182376.jpg","link":"","width":"300","height":"533"},"259":{"id":"259","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1713182359.jpg","link":"","width":"300","height":"533"},"261":{"id":"261","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1713182401.jpg","link":"","width":"300","height":"533"},"263":{"id":"263","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1714060254.jpg","link":"https:\/\/www.menaracorralon.com.ar\/productos\/","width":"300","height":"250"},"215":{"id":"215","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1699533396.jpg","link":"https:\/\/www.instagram.com\/remisesstylorenovado\/","width":"300","height":"300"},"291":{"id":"291","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1730225606.png","link":"www.loteriasantafe.gov.ar","width":"300","height":"250"},"54":{"id":"54","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1662603673.png","link":"https:\/\/www.gomplastica.com.ar\/\/","width":"300","height":"250"},"243":{"id":"243","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1708901202.gif","link":"https:\/\/www.instagram.com\/marargentinorafaela\/","width":"300","height":"300"},"264":{"id":"264","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1714060713.jpg","link":"","width":"300","height":"533"},"265":{"id":"265","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1714060737.jpg","link":"","width":"300","height":"533"},"258":{"id":"258","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1713182340.jpg","link":"","width":"300","height":"533"},"257":{"id":"257","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1713182841.jpg","link":"","width":"300","height":"533"},"256":{"id":"256","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1713182299.jpg","link":"","width":"300","height":"533"},"307":{"id":"307","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1731697013.png","link":"www.loteriasantafe.gov.ar","width":"300","height":"250"},"306":{"id":"306","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1731696999.png","link":"www.loteriasantafe.gov.ar","width":"300","height":"250"},"302":{"id":"302","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1730975784.png","link":"https:\/\/wa.link\/45v1hf","width":"300","height":"450"},"290":{"id":"290","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1727830589.png","link":"https:\/\/www.loteriasantafe.gov.ar\/","width":"800","height":"600"},"301":{"id":"301","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1730975777.png","link":"https:\/\/wa.link\/45v1hf","width":"700","height":"525"},"305":{"id":"305","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1731696904.png","link":"https:\/\/www.loteriasantafe.gov.ar\/","width":"800","height":"600"},"304":{"id":"304","file":"https:\/\/radiorafaela.com.ar\/galeria\/publicidad\/1731696857.png","link":"https:\/\/www.loteriasantafe.gov.ar\/","width":"800","height":"600"}};
// Banner banner-zocalo ----------------------------------------
if ( $('#banner-zocalo').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-zocalo").attr("data-slot", "zocalo");
function showBannerc53a43636cd9cfbe67a3e70fc44c0be7(firstRender) {
gAdvWidth = [320,50];
if ($(window).width() > 767 ) {
gAdvWidth = [970,90];
}
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('zocalo',gAdvSize,'banner-zocalo',1,'showBannerZocalo');
} else {
$("#banner-zocalo").parent().hide();
console.log("Oculto div #banner-zocalo");
}
}
showBannerc53a43636cd9cfbe67a3e70fc44c0be7(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-zocalo FAIL. Zona not found.");
}
// Banner banner-intersitial ----------------------------------------
if ( $('#banner-intersitial').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-intersitial").attr("data-slot", "intersitial");
function showBannerea6d9155d705c107ea7d204cc4b42a44(firstRender) {
gAdvWidth = [320,480];
if ($(window).width() > 767 ) {
gAdvWidth = [900,500];
}
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('intersitial',gAdvSize,'banner-intersitial',1,'showBannerIntersitial');
} else {
$("#banner-intersitial").parent().hide();
console.log("Oculto div #banner-intersitial");
}
}
showBannerea6d9155d705c107ea7d204cc4b42a44(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-intersitial FAIL. Zona not found.");
}
// Banner banner-ad-interior-1 ----------------------------------------
if ( $('#banner-ad-interior-1').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-ad-interior-1").attr("data-slot", "interior1");
function showBanner41146eccc8e5cb5e9f5fb9827afbfd64(firstRender) {
gAdvWidth = [300,250];
if ($(window).width() > 767 ) {
gAdvWidth = [728,90];
}
if ($(window).width() > 1023 ) {
gAdvWidth = [970,90];
}
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('interior1',gAdvSize,'banner-ad-interior-1',1,'');
} else {
$("#banner-ad-interior-1").parent().hide();
console.log("Oculto div #banner-ad-interior-1");
}
}
showBanner41146eccc8e5cb5e9f5fb9827afbfd64(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-ad-interior-1 FAIL. Zona not found.");
}
// Banner banner-ad-interior-2 ----------------------------------------
if ( $('#banner-ad-interior-2').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-ad-interior-2").attr("data-slot", "interior2");
function showBanner64397a7999a24700ec5ea6c86c7120ea(firstRender) {
gAdvWidth = [300,250];
if ($(window).width() > 767 ) {
gAdvWidth = [728,90];
}
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('interior2',gAdvSize,'banner-ad-interior-2',1,'');
} else {
$("#banner-ad-interior-2").parent().hide();
console.log("Oculto div #banner-ad-interior-2");
}
}
showBanner64397a7999a24700ec5ea6c86c7120ea(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-ad-interior-2 FAIL. Zona not found.");
}
// Banner banner-ad-interior-3 ----------------------------------------
if ( $('#banner-ad-interior-3').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-ad-interior-3").attr("data-slot", "interior3");
function showBannerca16aca2de4946603d99f839c6ca9172(firstRender) {
gAdvWidth = [300,250];
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('interior3',gAdvSize,'banner-ad-interior-3',1,'');
} else {
$("#banner-ad-interior-3").parent().hide();
console.log("Oculto div #banner-ad-interior-3");
}
}
showBannerca16aca2de4946603d99f839c6ca9172(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-ad-interior-3 FAIL. Zona not found.");
}
// Banner banner-ad-interior-4 ----------------------------------------
if ( $('#banner-ad-interior-4').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-ad-interior-4").attr("data-slot", "interior4");
function showBanner6ecf4a3fa05cb7a4a77d46cc9d13e75d(firstRender) {
gAdvWidth = [300,250];
if ($(window).width() > 767 ) {
gAdvWidth = [728,90];
}
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('interior4',gAdvSize,'banner-ad-interior-4',1,'');
} else {
$("#banner-ad-interior-4").parent().hide();
console.log("Oculto div #banner-ad-interior-4");
}
}
showBanner6ecf4a3fa05cb7a4a77d46cc9d13e75d(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-ad-interior-4 FAIL. Zona not found.");
}
// Banner banner-ad-interior-5 ----------------------------------------
if ( $('#banner-ad-interior-5').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-ad-interior-5").attr("data-slot", "interior5");
function showBanner6619dccb5fc80379feaee3db7c2c6b6a(firstRender) {
gAdvWidth = [300,250];
if ($(window).width() > 767 ) {
gAdvWidth = [728,90];
}
if ($(window).width() > 1023 ) {
gAdvWidth = [970,90];
}
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('interior5',gAdvSize,'banner-ad-interior-5',1,'');
} else {
$("#banner-ad-interior-5").parent().hide();
console.log("Oculto div #banner-ad-interior-5");
}
}
showBanner6619dccb5fc80379feaee3db7c2c6b6a(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-ad-interior-5 FAIL. Zona not found.");
}
// Banner banner-ad-interior-derecha-1 ----------------------------------------
if ( $('#banner-ad-interior-derecha-1').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-ad-interior-derecha-1").attr("data-slot", "interiorerecha1");
function showBanner4e303ce866d576083f4cf905b4a85e5b(firstRender) {
gAdvWidth = [300,250];
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('interiorerecha1',gAdvSize,'banner-ad-interior-derecha-1',1,'');
} else {
$("#banner-ad-interior-derecha-1").parent().hide();
console.log("Oculto div #banner-ad-interior-derecha-1");
}
}
showBanner4e303ce866d576083f4cf905b4a85e5b(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-ad-interior-derecha-1 FAIL. Zona not found.");
}
// Banner banner-ad-interior-derecha-2 ----------------------------------------
if ( $('#banner-ad-interior-derecha-2').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-ad-interior-derecha-2").attr("data-slot", "interiorerecha2");
function showBanner8320631bfbfb1f86550757fcd77139da(firstRender) {
gAdvWidth = [300,250];
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('interiorerecha2',gAdvSize,'banner-ad-interior-derecha-2',1,'');
} else {
$("#banner-ad-interior-derecha-2").parent().hide();
console.log("Oculto div #banner-ad-interior-derecha-2");
}
}
showBanner8320631bfbfb1f86550757fcd77139da(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-ad-interior-derecha-2 FAIL. Zona not found.");
}
// Banner banner-ad-interior-derecha-3 ----------------------------------------
if ( $('#banner-ad-interior-derecha-3').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-ad-interior-derecha-3").attr("data-slot", "interiorerecha3");
function showBanner91d32c57ddb6ddee643982479a2b447f(firstRender) {
gAdvWidth = [300,250];
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('interiorerecha3',gAdvSize,'banner-ad-interior-derecha-3',1,'');
} else {
$("#banner-ad-interior-derecha-3").parent().hide();
console.log("Oculto div #banner-ad-interior-derecha-3");
}
}
showBanner91d32c57ddb6ddee643982479a2b447f(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-ad-interior-derecha-3 FAIL. Zona not found.");
}
// Banner banner-ad-interior-derecha-4 ----------------------------------------
if ( $('#banner-ad-interior-derecha-4').length ) { // consulto si existe la div antes de generar la publicidad
// para test
$("#banner-ad-interior-derecha-4").attr("data-slot", "interiorerecha4");
function showBanner6b2b88e0463df0ee1ddc97b959ad2509(firstRender) {
gAdvWidth = [300,250];
if (gAdvWidth[0] && gAdvWidth[1]) {
gAdvSize = gAdvWidth[0] + 'x' + gAdvWidth[1];
renderBanner('interiorerecha4',gAdvSize,'banner-ad-interior-derecha-4',1,'');
} else {
$("#banner-ad-interior-derecha-4").parent().hide();
console.log("Oculto div #banner-ad-interior-derecha-4");
}
}
showBanner6b2b88e0463df0ee1ddc97b959ad2509(true);
} else {// End if si existe la div contenedora
console.log("Banner #banner-ad-interior-derecha-4 FAIL. Zona not found.");
}
if (bannersID != '') {
$.ajax({
"method": "post",
"url": "/extras/publicidad.php",
"dataType": "json",
"data": {id: bannersID},
"success": function (e) {
},
"error": function (e) {
console.log(e);
console.log('Error');
}
}).always(function (jqXHR, textStatus, jqXHR2) {
});
$("[data-banner-id]").click(function() {
bannerID = $(this).attr("data-banner-id");
$.ajax({
"method": "post",
"url": "/extras/publicidad.php?click=true",
"dataType": "json",
"data": {id: bannerID},
"success": function (e) {
},
"error": function (e) {
console.log(e);
console.log('Error');
}
}).always(function (jqXHR, textStatus, jqXHR2) {
});
return true;
});
}
$(document).ready(function () {
if (bannersData.sponsor['200x100'].length) {
$(".banner-auspicios").removeClass("banner-auspicios-hide");
for (i=0; i";
$(".banner-auspicios").append(bannerHTML);
}
// Si posee menos de 5 sponsor y estoy en desktop no cargo owl
var loadOwl = true;
if ($(document).width() > 727 && $(document).width() < 1024 && bannersData.sponsor['200x100'].length < 4) {
loadOwl = false;
}
if ($(document).width() > 1023 && bannersData.sponsor['200x100'].length < 6) {
loadOwl = false;
}
if (loadOwl) {
$('.banner-auspicios').owlCarousel({
loop: true,
center:true,
margin:30,
//autoWidth:true,
responsive: {
0: {
items: 1,
margin:0,
nav: false,
slideBy: 1,
smartSpeed: 1350,
autoplay:true,
autoplayTimeout:2500,
fluidSpeed: 100,
center:true,
dragEndSpeed:100
},
768:{
items: 3,
slideBy: 1,
smartSpeed: 1350,
autoplay:true,
autoplayTimeout:2500,
fluidSpeed: 100,
dragEndSpeed:100
},
1023:{
items: 5,
slideBy: 1,
smartSpeed: 1350,
autoplay:true,
autoplayTimeout:2500,
fluidSpeed: 100,
dragEndSpeed:100
}
}
});
} // end if loadOwl
}
});
-->