// JavaScript Document function loadMenuContents(section, subs) { if (section == 'video') { _gaq.push(['_trackEvent', 'Videos', 'Abrir', subs]); $('#btnVideos').click(); $("#menuContents").html('
'); } } function openMenuBar() { $('html,body').animate({scrollTop: 0}, 150); $('#menuBar').show(); } function closeMenuBar() { $('#menuBar').hide(); } function btnInicio_click() { _gaq.push(['_trackEvent', 'Menu Principal', 'Inicio']); closeMenuBar(); } function btnProgra_click(obj) { _gaq.push(['_trackEvent', 'Menu Principal', 'Programacion']); closeMMixBar(); openMenuBar(); $('#menuContents').html(''); } function btnNoticias_click(obj) { _gaq.push(['_trackEvent', 'Menu Principal', 'Noticias']); closeMMixBar(); openMenuBar(); $('#menuContents').html('
' + noticiasHTML + '

Haz clic en una noticia para abrirla

'); } function modMenu_displayNoticia(n) { _gaq.push(['_trackEvent', 'Noticias', 'Abrir', noticiasData[n].tituloDeNoticia]); document.getElementById('modMenu_noticia_info').innerHTML = '

' + noticiasData[n].tituloDeNoticia + '

' + noticiasData[n].textoDeNoticia + '

'; } function btnVideos_click(obj) { _gaq.push(['_trackEvent', 'Menu Principal', 'Videos']); closeMMixBar(); openMenuBar(); $('#menuContents').html('

Para ver los videos, hace clic en la imagen del que quieras ver en el modulo de videos que esta encima del chat.

'); } function btnFotos_click(obj) { _gaq.push(['_trackEvent', 'Menu Principal', 'Fotos']); closeMMixBar(); openMenuBar(); $('#menuContents').html('

En construcción

'); } function btnBandas_click(obj) { _gaq.push(['_trackEvent', 'Menu Principal', 'Bandas']); closeMMixBar(); openMenuBar(); $('#menuContents').html( "
" + '
T
' + "
\n" + "\n" + "

Contrataciones

\n" + "

contacto@movidamix.com
096 011 019
096 278 190" + "
" + '
' + '
' + "' ); } function btnStaff_click(obj) { _gaq.push(['_trackEvent', 'Menu Principal', 'Staff']); closeMMixBar(); openMenuBar(); $('#menuContents').html( "" + "" + "" + "" + "" + "
\n" + "

Haga clic en un rostro

\n" + '
' ); } var informacion_staff = []; informacion_staff[0] = {'nombre': 'Federico Croccano (dj fede)', 'texto': 'Fecha de Nacimiento: 15 de Setiembre 1987.
Ubicacion: Montevideo, Los Bulevares.
Hincha de: Clúb atlético peñarol.
Profesión: Dj, Estudiante , Diseñador grafico, Apicultor.
Bandas que Escucha: Alex Gaudino, Armandinho, y Dale maraca maraca.
Un Tema: Los Fatales - Moviendo La Cabeza.
Altura: 1.80 CM.
Peso: 60 KG.
Orientacion Sexual: Super recontra macho.
Comida preferida: Pizza muzzarella, Milanesas a la napolitana.
Frase que lo caracteriza: Non calentarum largum vivirum, El poder es tuyo planetario.'}; informacion_staff[1] = {'nombre': 'Alex Sebastian Miraballes (dj alex)', 'texto': 'Fecha de Nacimiento: 15 de febrero de 1990.
Ubicacion: Montevideo, Colón.
Hincha de: Clúb atlético peñarol.
Profesión: Vividor de mis papás, Dj.
Bandas que Escucha: Nestor en bloque, Supermerk2, Maria marta serra lima, amboe.
Un Tema: El original - La batidora.
Altura: 1.95 CM.
Peso: 75 KG.
Orientacion Sexual: Hombrecito.
Comida preferida: Las albóndigas de mamá pero con puré sino no.
Frase que lo caracteriza: Vos acordate, mientras tenga agujero, una tortafrita.'}; informacion_staff[2] = {'nombre': 'Gustavo Tagliabue (el violeta)', 'texto': 'Fecha de Nacimiento: 1 de noviembre 1985.
Ubicacion: Montevideo, Parque Batlle.
Hincha de: Defensor Sporting Club.
Profesión: Fotógrafo, Locutor.
Bandas que Escucha: Muchas, sobre todo de Cumbia y Reggaeton.
Un Tema: El Megablock - Movidamix.
Altura: 1.68 CM.
Peso: 60 KG.
Orientacion Sexual: Hombrecito diría Alex.
Comida preferida: Mc Pollo.
Frase que lo caracteriza: N/S N/C.'}; informacion_staff[3] = {'nombre': 'Christian Vazquez (dj facha)', 'texto': 'Fecha de Nacimiento: 18 de Junio de 1989
Ubicación: Colinas de Solymar (Ciudad de la Costa) Canelones
Hincha de: Club atlético peñarol.
Profesión: Estudiante de Periodismo
Bandas que Escucha: Todas las que estén buenas
Un Tema: Yo no se Mañana de Luís Enrique
Altura: 1,74 cm
Peso: 87kg
Orientación Sexual: Hombre se sabe
Comida preferida: Los Canelones de mi vieja
Frase que lo caracteriza: Hay que mirar el bosque y no el árbol'}; function modMenu_displayStaff(n) { _gaq.push(['_trackEvent', 'Staff', informacion_staff[n].nombre]); document.getElementById('modMenu_staff_info').innerHTML = '

' + informacion_staff[n].nombre + '

' + informacion_staff[n].texto + '

'; } function modMenu_swapBands(o, d) { _gaq.push(['_trackEvent', 'Bandas', 'Cambiar']); $('#' + o).fadeOut(400, function (){ $('#' + d).fadeIn(); }); } function modMenu_moverPelota(obj, c) { $('#pelotitaFlotante').animate({marginLeft: (c + 50 + 21 + ($(obj).width()/2))}); } var modMenu_init = function($) { $('#menuBar').hide(); var botonera = $("#barraDeBotones>div"); var cw = 0; botonera.each(function(k,i) { var myCw = cw; $.preLoadImages('imagenes/modMenu/' + i.id + 'Ac.png'); $(i).css('background', 'url(imagenes/modMenu/' + i.id + 'In.png)'); $(i).mouseenter(function() { $(i).clone().css('position', 'absolute').css('background', 'url(imagenes/modMenu/' + i.id + 'Ac.png)').css('margin', '0 0 0 0').mouseenter(function(){}).fadeIn(200).prependTo(i); }); $(i).mouseleave(function() { $($(i).children()[0]).fadeOut(150, function(){ $($(i).children()[0]).remove()}); }); i.onclick = function() { $(i).addClass('opened'); eval(i.id + '_click();' + 'modMenu_moverPelota(this, ' + myCw + ');')}; cw = cw + $(i).width(); }); modMenu_moverPelota($("#barraDeBotones>div")[0], 0); }// JavaScript Document var modProg_lista = ['100.jpg', 'nightmix.jpg', 'electro.jpg', 'top17.jpg', 'noche.jpg', 'correcaminos.jpg']; var modProg_selected = null; var modProg_init = function($) { var progPos = 0; var i = $('#btnProgIzq'); $(i).mouseenter(function() { $(i).clone().css('background', 'url(imagenes/modProg/izqAc.png)').css('margin', '0 0 0 0').mouseenter(function(){}).fadeIn(200).prependTo(i); }); $(i).mouseleave(function() { $($(i).children()[0]).remove(); }); var j = $('#btnProgDer'); $(j).mouseenter(function() { $(j).clone().css('background', 'url(imagenes/modProg/derAc.png)').css('margin', '0 0 0 0').mouseenter(function(){}).fadeIn(200).prependTo(j); }); $(j).mouseleave(function() { $($(j).children()[0]).remove(); }); $target = $('#modProg #modProgSafeScroll #modProgContenido'); for (var k = modProg_lista.length; k--;) { var e = document.createElement('img'); e.src = 'imagenes/modProg/prog/' + modProg_lista[k]; $target.append( $(e).css('height', 210).css('float', 'left') ); // .css('width', 0) } //modProg_selected = $($('#modProgContenido').children()[0]); var modProg_pos = 0; $('#btnProgIzq').click( function() { //var $no = null; //if (typeof(modProg_selected.next().get(0)) == 'undefined') { // $no = $(modProg_selected.siblings().get(-1)); //} //else { // $no = modProg_selected.next(); //} //resizerDiv($no, modProg_selected, 604); //$('#modProgSafeScroll').animate({scrollLeft: $no.position().left}); //modProg_selected = $no; --modProg_pos; if (modProg_pos < 0) modProg_pos = modProg_lista.length - 1; $('#modProgSafeScroll').animate({scrollLeft: modProg_pos * 604}); } ); $('#btnProgDer').click( function() { /* var $no = null; if (typeof(modProg_selected.prev().get(0)) == 'undefined') { $no = $(modProg_selected.siblings().get(0)); } else { $no = modProg_selected.prev(); }*/ // resizerDiv($no, modProg_selected, 604); // $('#modProgSafeScroll').animate({scrollLeft: $no.position().left});//}); // modProg_selected = $no; modProg_pos = (modProg_pos + 1) % modProg_lista.length; $('#modProgSafeScroll').animate({scrollLeft: modProg_pos * 604}); } ); setInterval("$('#btnProgDer').click();", 8000); } resizerDiv = function(a, b, px) { this.i = 0; this.move = function() { if (i/px < 0.1) i = i + 6; else if (i/px < 0.25) i = i + 12; else if (i/px > 0.9) i = i + 4; else if (i/px > 0.8) i = i + 8; else i = i + 20; if (a) a.css('width', Math.min(i, px) + 'px'); if (b) b.css('width', (px - Math.min(i, px)) + 'px'); if (i <= px) setTimeout("this.move()", 20); else inactiveMenuClicks = false; } inactiveMenuClicks = true; this.move(); }// JavaScript Document var modCont_init = function($) { modCont_timer(); setInterval('modCont_time();', 900000); } function modCont_timer() { makeHttpRequest('/programa.next', '_modCont_refresh', false); } function _modCont_refresh(data) { eval('data = ' + data + ';'); if (data.pic != null) { document.getElementById('modContImg').src = 'imagenes/modCont/' + data.pic; } }// JavaScript Document var modNoti_init = function($) { $.preLoadImages('imagenes/modNotBtnAc.png'); var noticiasBtn = $("#modNoti .noticia"); noticiasBtn.each(function(k,i) { $(i).mouseenter(function() { $($(i).children()[0]).before( $(i).clone().css('position', 'absolute').css('background', 'url(imagenes/modNotBtnAc.png)').css('margin', '0 0 0 0').mouseenter(function(){}).fadeIn(200) ); }); $(i).mouseleave(function() { $($(i).children()[0]).fadeOut(150, function(){ $($(i).children()[0]).remove()}); }); }); }// JavaScript Document function stripShit(d) { a = d.split('-'); var b = []; var t; for (i = 0; i < a.length; i++) { a[i] = a[i].replace(/([\(\[].*?[\)\]])/im, ''); a[i] = a[i].replace(/[0-9]{1,2}\./, ''); t = a[i].trim(); if ((t.match(new RegExp('(dj|mix|rmx)', 'i'))) || (t.match(new RegExp('[^a-z]{' + t.length + '}','i')))) { } else if (!b.in_array(t)) { b.push(t); } } return b.join(' - '); } function _top17(data) { eval ('data = ' + data + ';'); $('#modRankCont').html(''); var cl = null; for (var i = 1; i <= 17; i++) { var cl = (i % 2) == 0 ? 'p' : 'i'; var cl2 = (i % 2) == 0 ? 'p' : (i == 1 ? 'f' : 'i'); songName = data.votacion[i-1].nombreDeTema; rSongName = stripShit(songName); if (rSongName.length > 40) { a = rSongName.split(' - '); for (var j = 0; j < a.length; j++) { if (a[j].length > Math.floor(40/a.length)) { a[j] = a[j].substr(0, Math.floor(40/a.length) - 2) + '...'; } } rSongName = a.join(' - '); } songF = data.votacion[i-1].votosFDeTema; songC = data.votacion[i-1].votosCDeTema; $( '
' + '
' + i + '
' + '
' + rSongName + '
' + '' + '
' + songF + '
' + '' + '
'+ songC +'
' + '
').appendTo($('#modRankCont')); } } function refreshTop17() { makeHttpRequest('getTop17', '_top17', false); } function modTop17_init(jQuery) { refreshTop17(); setTimeout('refreshTop17();', 600000); }// JavaScript Document function pad(n, p) { n = n.toString(); while (n.length < p) { n = '0' + n; } return n; } function secToMin(int, m) { d = ''; pred = ''; if (int > 86400) { pred = Math.floor(int / 86400) + 'd '; int = int % 86400; } while (int >= 60) { if (m > 0) { m--; } else { d = ':' + pad(int % 60, 2) + d; } int = Math.floor(int / 60); } d = pred + (int % 60) + d; return d; } var tiempoPrueba = 3615; var tiempoPruebaTO = null; function mod100_updateTimer() { var $m; if (tiempoPrueba < 0) { clearInterval(tiempoPruebaTO); return false; } if (tiempoPrueba >= 3600) { $m = 1; } else { $m = 0; } // $('#mod100Timer').html(secToMin(tiempoPrueba,$m)); /// DESCOMENTAR PARA ACTIVAR CONTADOR DE 100% tiempoPrueba--; } // JavaScript Document var modVid_init = function($) { var vidPos = 0; var vidElem = $('#listaDeVideos>div'); var vidElemN = []; vidElem.each(function(k,e) { vidElemN.push(e); }); $('#btnVidIzq').click( function() { if ((vidElemN.length - 3) > 0) { vidPos--; if (vidPos < 0) { vidPos = (vidElemN.length - 3); } // $('#modVid .contenido').animate({scrollLeft: (parseInt($(vidElemN[vidPos]).position().left, 10) + 55)}, 100); $('#modVid .contenido').animate({scrollLeft: vidPos * 175}); } } ); $('#btnVidDer').click( function() { if ((vidElemN.length - 3) > 0) { vidPos++; vidPos = vidPos % (vidElemN.length - 2); // alert(vidPos); // $('#modVid .contenido').animate({scrollLeft: (parseInt($(vidElemN[vidPos]).position().left, 10) + 55)}, 100); $('#modVid .contenido').animate({scrollLeft: vidPos * 175}); } } ); }// JavaScript Document var modFol_init = function($) { $('#modFolTwit').mouseenter(function(e) {this.src = 'imagenes/modFol/twitterAc.png';} ).mouseleave( function(e) {this.src = 'imagenes/modFol/twitterIn.png'}); // $('#modFolFoto').mouseenter(function(e) {this.src = 'imagenes/modFol/fotoAc.png';} ).mouseleave( // function(e) {this.src = 'imagenes/modFol/fotoIn.png'}); // $('#modFolMetr').mouseenter(function(e) {this.src = 'imagenes/modFol/metroAc.png';} ).mouseleave( // function(e) {this.src = 'imagenes/modFol/metroIn.png'}); $('#modFolFace').mouseenter(function(e) {this.src = 'imagenes/modFol/facebookAc.png';} ).mouseleave( function(e) {this.src = 'imagenes/modFol/facebookIn.png'}); $.preLoadImages('imagenes/modFol/twitterAc.png', 'imagenes/modFol/fotoAc.png', 'imagenes/modFol/metroAc.png', 'imagenes/modFol/facebookAc.png'); $.preLoadImages('imagenes/modFooter/makuAc.png', 'imagenes/modFooter/fotoAc.png', 'imagenes/modFooter/agiteAc.png', 'imagenes/modFooter/menkerAc.png'); }// JavaScript Document var modBanner_lista = new Array(); //modBanner_lista.push({/*items: ['banner1.jpg', 'banner2.jpg']*/}); modBanner_lista.push({items: ['banner3.jpg']}); modBanner_lista.push({items: ['fblogin.png'], 'click': function(){ FB.login(function() {}, {perms:'read_stream,publish_stream,offline_access'})}}); var modBanner_id_offset = 1; var modBanner_init = function() { var cBanner = modBanner_lista.length; var b; for (var i = 0; i < cBanner; i++) { b = modBanner_lista[i]; b.current = 0; $('#banner' + (i*1 + modBanner_id_offset*1)).children()[0].src = 'banners/' + b.items[0]; } setInterval('modBanner_refresh();', 10000); } function modBanner_refresh() { var cBanner = modBanner_lista.length; var cLista = 0; var b; for (var i = 0; i < cBanner; i++) { b = modBanner_lista[i]; cLista = b.items.length; b.current = (b.current + 1) % cLista; $('#banner' + (i + modBanner_id_offset)).children()[0].src = 'banners/' + b.items[b.current]; if (typeof(b.click) == 'function') $('#banner' + (i + modBanner_id_offset)).children()[0].onclick = b.click; } } FB.Event.subscribe('auth.login', function(response) { // do something with response //d = ''; //for (i in response.session) { // d = d + ' ' + i + ':' + response.session[i]; //} if (response.session) { } //alert(d); }); FB.init({appId: '173991733711', status: true, cookie: true, xfbml: true}); //FB.init({appId: '127642327248309', status: true, cookie: true, xfbml: true}); FB.getLoginStatus(function(response) { if (response.session && response.status) { // FB.api('/me', function(r){document.getElementById('connectLogin').innerHTML = r.name}); } }); var $p; function get_perms(perm) { $p = false; if ($p) alert('GRANT out'); if (!$p) alert('DENIED out'); return $p; } function loginAndPublish(msg) { FB.login(function(response) { if (response.session && response.perms) { FB.api('/me/feed', 'post', {'message': msg}, function(r) { if (!r || r.error) { alert('Error al publicar'); } else { _gaq.push(['_trackEvent', 'Botonera Roja', 'Facebook', 'Publicado']); alert('Se publico la entrada en tu muro'); } }); } }, {perms:'read_stream,publish_stream,offline_access'}); } function pushFB() { _gaq.push(['_trackEvent', 'Botonera Roja', 'Facebook', 'Pre-confirmado']); FB.getLoginStatus(function(response) { if (response.session && response.status) { perm = 'publish_stream'; query = FB.Data.query('select {0} FROM permissions WHERE uid={1}', perm, FB.getSession().uid); query.wait(function(rows) { var $p = (rows[0][perm] == 1); if ($p) { FB.api('/me/feed', 'post', {'message': 'Escuchando ' + document.getElementById('nowPlaying').innerHTML + ' en www.movidamix.com, sumate!'}, function(r) { // alert('fbpost return'); if (!r || r.error) { alert('Error al publicar'); } else { _gaq.push(['_trackEvent', 'Botonera Roja', 'Facebook', 'Publicado']); alert('Se publico la entrada en tu muro'); } }); } else { loginAndPublish('Escuchando ' + document.getElementById('nowPlaying').innerHTML + ' en www.movidamix.com, sumate!'); } }); } else { loginAndPublish('Escuchando ' + document.getElementById('nowPlaying').innerHTML + ' en www.movidamix.com, sumate!'); } }); }