//destacadas
function stopFlash(){cancelFlash=true}function nextFlash(){indiceNoticiaFlash++;if(indiceNoticiaFlash>=noticias_flash.length){indiceNoticiaFlash=0}cargarFlash(indiceNoticiaFlash)}function prevFlash(){indiceNoticiaFlash--;if(indiceNoticiaFlash<0){indiceNoticiaFlash=noticias_flash.length-1}cargarFlash(indiceNoticiaFlash)}function cargarFlash(a){$("#titular_flash_informativo").css("left","0px");$("#titular_flash_informativo").html("<p>"+noticias_flash[a]+"</p>")}function mostrar_pestania_grande(a,b){var c=1;while($("#pestania_"+a+"_"+c).html()!=null){if(c==b){$("#pestania_"+a+"_"+c).show();$("#pestania_"+a+"_"+c).removeClass("hide");$("#pestania_titulo_"+a+"_"+c).removeClass("solapa_abajo_grande");$("#pestania_titulo_"+a+"_"+c).addClass("solapa_arriba_grande")}else{$("#pestania_"+a+"_"+c).hide();$("#pestania_titulo_"+a+"_"+c).removeClass("solapa_arriba_grande");$("#pestania_titulo_"+a+"_"+c).addClass("solapa_abajo_grande")}c++}}function mostrar_pestania(a,b){var c=1;while($("#pestania_"+a+"_"+c).html()!=null){if(c==b){$("#pestania_"+a+"_"+c).show();$("#pestania_"+a+"_"+c).removeClass("hide");$("#pestania_titulo_"+a+"_"+c).removeClass("solapa_abajo");$("#pestania_titulo_"+a+"_"+c).addClass("solapa_arriba")}else{$("#pestania_"+a+"_"+c).hide();$("#pestania_titulo_"+a+"_"+c).removeClass("solapa_arriba");$("#pestania_titulo_"+a+"_"+c).addClass("solapa_abajo")}c++}}function ant_contenido(a,b){var c=indice[a];$("#foto_"+a+c).hide();indice[a]--;if(indice[a]<1){indice[a]=b.length}cargar_contenido(indice[a]-1,a,b)}function sig_contenido(a,b){var c=indice[a];$("#foto_"+a+c).hide();indice[a]++;if(indice[a]>b.length){indice[a]=1}cargar_contenido(indice[a]-1,a,b)}function cargar_contenido(a,b,c){var d=c[a];var e=indice[b];$("#numero_"+b).html(a+1);$("#seccion_"+b).html("<a href='"+d[4]+"' >"+d[1]+"</a>");$("#texto_"+b).html(d[2]);$("#foto_"+b+e).fadeIn()}var indiceNoticiaFlash=0;var cancelFlash=false;var indice=new Array;indice["momento"]=1;indice["foto"]=1;indice["florynata"]=1;indice["sanvalentin"]=1
//solapita_logica
function Tab(a,b,c){this.tabId=a;this.contentId=b;this.tabState=c}function _TabsManagerShowTab(a){for(i=0;i<this.tabArray.length;i++){if(this.tabArray[i].tabId==a){document.getElementById(this.tabArray[i].tabId).className=this.tabClassOn;document.getElementById(this.tabArray[i].contentId).className=this.contentClassOn}else{document.getElementById(this.tabArray[i].tabId).className=this.tabClassOff;document.getElementById(this.tabArray[i].contentId).className=this.contentClassOff}}}function _TabsManagerSetTab(a,b,c){var d=new Tab(a,b,c);this.tabArray.push(d);switch(c){case"on":document.getElementById(a).className=this.tabClassOn;document.getElementById(b).className=this.contentClassOn;break;case"off":document.getElementById(a).className=this.tabClassOff;document.getElementById(b).className=this.contentClassOff;break}}function TabsManager(){this.tabArray=new Array;this.tabClassOn="activo";this.tabClassOff="inactivo";this.contentClassOn="contenidoOn";this.contentClassOff="contenidoOff"}TabsManager.prototype.setTab=_TabsManagerSetTab;TabsManager.prototype.showTab=_TabsManagerShowTab
//popup.js
function comprobar_encuesta(ide){voto=0;opciones=eval("window.document.enc_form"+ide+".opcion.length");for(var i=0;i<opciones;i++){if(eval("window.document.enc_form"+ide+".opcion["+i+"].checked")==true){voto=1;radio=eval("window.document.enc_form"+ide+".opcion["+i+"].value")}}if(voto==0){alert("Debe seleccionar una opción para participar.");return false}else{window.open("/encuestas/encuesta_resultado.php?ide="+ide+"&radio="+radio,"encuestas","height=450,width=400,left=170,top=150,status=no,toolbar=no,menubar=no,location=no, directories=no,scrollbars=1,resizable=1")}}function ocultar(a){objeto=document.getElementById(a);objeto.style.visibility="hidden"}function mostrar(a){objeto=document.getElementById(a);objeto.style.visibility="visible"}function Scroll(){if(window.innerHeight){pos=window.pageYOffset}else if(document.documentElement&&document.documentElement.scrollTop){pos=document.documentElement.scrollTop}else if(document.body){pos=document.body.scrollTop}return pos}function traerObjeto(a){if(navigator.appName.indexOf("Microsoft")!=-1)return window[a];else return document.getElementById(a)}function limpiarString(a){while(a.indexOf('"')!="-1"){a=a.replace('"',"&quot;")}return a}function PopupVideo(a,b,c,d,e){var f=document.getElementById("popUpVideo");if(e){f.innerHTML='<div id="barraAdMotion"><a href="javascript:PopupVideo();">[X]</a> </div><br clear="all" />';f.innerHTML+=b;f.style.top=Scroll()+80+"px";f.style.left=130+"px";f.style.display="block"}else{f.innerHTML="";f.style.display="none";f.style.width=""}}function Popup(a,b,c,d,e,f){var g=new Object;g.width=c;g.height=d;g.left=(screen.width-g.width)/2;g.top=(screen.height-g.height)/2;var h="left="+g.left+",top="+g.top+",resizable="+e+",width="+g.width+",height="+g.height+",scrollbars="+f+",menubar=no,location=no,toolbar=no,status=no,directories=no";ventana=window.open(a,b,h);if(parseInt(navigator.appVersion)>=4){ventana.window.focus()}}var dragobject={z:0,x:0,y:0,offsetx:null,offsety:null,targetobj:null,dragapproved:0,initialize:function(){document.onmousedown=this.dragAdMotion;document.onmouseup=function(){this.dragapproved=0}},dragAdMotion:function(a){var b=window.event?window.event:a;this.targetobj=window.event?event.srcElement:a.target;if(this.targetobj.className=="dragAdMotion"){this.dragapproved=1;this.offsetx=parseInt(this.targetobj.style.left);this.offsety=parseInt(this.targetobj.style.top);this.x=b.clientX;this.y=b.clientY;if(b.preventDefault)b.preventDefault();document.onmousemove=dragobject.moveit}},moveit:function(a){var b=window.event?window.event:a;if(this.dragapproved==1){if(this.offsetx+b.clientX-this.x>0)this.targetobj.style.left=this.offsetx+b.clientX-this.x+"px";else this.targetobj.style.left=0+"px";if(this.offsety+b.clientY-this.y>0)this.targetobj.style.top=this.offsety+b.clientY-this.y+"px";else this.targetobj.style.top=0+"px";return false}}};dragobject.initialize()
