function popupDiv(id,logo,imprimir,top,left,width,height,url){ //id= es el id galeria var anchoPantalla=screen.width; var altoPantalla=screen.height; var x=(anchoPantalla - parseFloat(width))/2; var y=(altoPantalla - parseFloat(height))/2; if (url=='seccion'){ window.open('http://www.cosquin.argentina.ar/popup_recomendar.php?id_seccion='+id,'','width='+width+',height='+height+',top='+y+',left='+x+',toolbar=no,directories=no,resizable=no,location=no,status=no,menubar=no,border=no'); } else{ window.open('http://www.cosquin.argentina.ar'+'/'+url+id,'','width='+width+',height='+height+',top='+y+',left='+x+',toolbar=no,directories=no,resizable=no,location=no,status=no,menubar=no'); } } function popupPrint(id,es_seccion){ var width=536; var height=500; var anchoPantalla=screen.width; var altoPantalla=screen.height; var x=(anchoPantalla - parseFloat(width))/2; var y=(altoPantalla - parseFloat(height))/2; if (es_seccion == 0){ window.open('http://www.cosquin.argentina.ar/popup_imprimir.php?id='+id,'','width='+width+',height='+height+',top='+y+',left='+x+',toolbar=no,directories=no,resizable=no,location=no,status=no,menubar=no,scrollbars=yes,dependent=yes'); }else{ window.open('http://www.cosquin.argentina.ar/popup_imprimir.php?id_seccion='+id,'','width='+width+',height='+height+',top='+y+',left='+x+',toolbar=no,directories=no,resizable=no,location=no,status=no,menubar=no,scrollbars=yes,dependent=yes'); } } function mover_scroll(){ if (document.getElementById("content").style.display == 'inline'){ var contenPopup = document.getElementById("content"); var tableContent = document.getElementById("tableContent"); var yValor = contenPopup.style.left.replace("px",""); //contenPopup.style.top = '150px' ; xMoveTo("content",yValor,parseInt(xScrollTop()) + 40); } } function OcultarDivPopup(){ objeto = document.getElementById('ContenPage'); objeto.style.display = 'none'; objeto = document.getElementById('content'); objeto.style.display = 'none'; objeto = document.getElementById('iframe_popup'); objeto.src = ''; } function HomePage(a){ if (navigator.appVersion.indexOf("MSIE") != -1){ a.style.behavior='url(#default#homepage)';a.setHomePage('/index.php'); } } /* function resifr() { document.getElementById('content').height=ifr_jugadores.document.getElementById("tableContent").offsetHeight + 50; window.scroll(0,0); }*/ function addBookmark(titulo, url) { if (window.sidebar) { window.sidebar.addPanel(titulo, url,""); } else if( document.all ) { window.external.AddFavorite(url, titulo); } else if( window.opera && window.print ) { return true; } } function printFrames(){ window.iframe_popup.focus(); parent.window.print(); } function verVideo(objeto,video,preview){ var VS = { movie: "http://www.cosquin.argentina.ar/includes/flvplayer/flvplayer.swf", wmode: "transparent", width: "320", height: "264", majorversion: "7", build: "0", bgcolor: "#FFFFFF", flashvars: "file="+video+"&showdigits=true&image="+preview+"&showicons=true&volume=100" } UFO.create(VS, objeto); } /*/Cambia el tamaņo de estilo, pasar el regla:nobre del estilo; valor: entero INC/DEC; decrementar(-) incrementar (+)*/ function cambiarPropiedad(intStyle,regla,valor,action) { var limiteSup=16; var limiteInf=11; if (document.all) miRegla = document.styleSheets[intStyle].rules; else miRegla = document.styleSheets[intStyle].cssRules; for (i=0; reg=miRegla[i]; i++) { if (reg.selectorText.toLowerCase() == regla.toLowerCase() ){ size = reg.style.fontSize; sizeActual=parseFloat(size); if (sizeActual!='') { switch(action) { case '+': if (sizeActual < limiteSup){ size=sizeActual+valor+'px'; } break; case '-': if (sizeActual > limiteInf) { size=sizeActual-valor+'px'; } break; } reg.style.fontSize=size; } } } } function changedFont(action) { var intStyle = 7; if (document.all){ cambiarPropiedad(intStyle,'div.texto p',2,action); }else{ cambiarPropiedad(intStyle,'div.texto p, div.texto',2,action); } cambiarPropiedad(intStyle,'div.caja_introduccion div.subsecion_fecha',2,action); cambiarPropiedad(intStyle,'div.caja_introduccion div.subsecion_fecha span.seccion',2,action); cambiarPropiedad(intStyle,'div.caja_introduccion p',2,action); cambiarPropiedad(intStyle,'div.caja_introduccion h2',1,action); } function playVideoNot(video, preview) { var VS = { movie: "/includes/flvplayer/flvplayer.swf", wmode: "transparent", width: "320", height: "264", majorversion: "7", build: "0", bgcolor: "#FFFFFF", flashvars: "file=/" + video + "&showdigits=true&image=/" + preview + "&showicons=true&volume=100" } UFO.create(VS, "videoPlayer"); } function validarFormLog(){ if (trim(document.getElementById('email').value)=="" || trim(document.getElementById('password').value)==""){ alert ('ERROR_LOGUIN'); return false; }else { return true; } } function validarFormComCine(){ var comentario = trim(document.getElementById('txt_comentario').value); if (comentario == "" && comentario.length < 5){ alert ('ERROR_COMENTARIO_NULO'); return false; }else { return true; } } function habilitar_mi(seleccionado,bloque,cuantos,suf_mas_info){ for (i=0; i