// Asynchronous JavaScript Extensible var IFrameObj; var IFrameDoc; Media.prototype.showPreviewSound = function(){ document.getElementById('lightBoxSound:information').innerHTML = '   descarga esta melodía a tu móvil'; var fF = document.frm; var objF = document.flyBoxSound; var showObject = document.getElementById('lightBoxSound:images'); var title = eval('document.getElementById(\'show:textSound'+arguments[0]+'\')'); var description = eval('document.getElementById(\'show:descriptionSound'+arguments[0]+'\')'); var objTitle = eval('document.getElementById(\'lightBoxSound:title\')'); var objDescription = eval('document.getElementById(\'lightBoxSound:description\')'); objTitle.innerText = title.innerText; objDescription.innerText = description.innerText; if(spUserAgent)objF.arg0.value = eval('fF.p'+arguments[0]+'.value'); lightBox = document.getElementById('lightBoxSound'); lightBox.style.visibility='visible'; lightBox.style.top = (coorY-50)+'px'; lightBox.style.left = (coorX-90)+'px'; document.flyBoxSound.titleC.value=title.innerHTML; } Media.prototype.listenPlay = function(){ var fileToPlay = ((eval('document.frm.sound'+arguments[0])!=null)?eval('document.frm.sound'+arguments[0]).value:null); this.player('RSIFrame',fileToPlay); if(IFrameDoc){ IFrameDoc.open(); IFrameDoc.write(createBodySound(fileToPlay)); IFrameDoc.close(); } } Media.prototype.listenStop = function(){ var fileToPlay = ((eval('document.frm.sound'+arguments[0])!=null)?eval('document.frm.sound'+arguments[0]).value:null); this.player('RSIFrame',fileToPlay); if(IFrameDoc){ IFrameDoc.open(); IFrameDoc.write(eraseBodySound(fileToPlay)); IFrameDoc.close(); } } Media.prototype.player = function(){ var extension = arguments[1].substring((arguments[1].length-3),arguments[1].length); var trueExtension = true; switch(extension){ case 'jpg': trueExtension = false;break; case 'gif': trueExtension = false;break; case 'png': trueExtension = false;break; case 'wma': trueExtension = true;break; case 'mp3': trueExtension = true;break; } if(trueExtension){ if (!IFrameObj && document.createElement) { try { var tempIFrame=document.createElement('iframe'); tempIFrame.setAttribute('id',arguments[0]); tempIFrame.style.border='0px'; tempIFrame.style.width='0px'; tempIFrame.style.height='0px'; IFrameObj = document.body.appendChild(tempIFrame); if (document.frames) { IFrameObj = document.frames[arguments[0]]; } }catch(exception) { iframeHTML='