var min=8;var max=18;var tab=0;var c_name="referer_url";function increaseFontSize(){var b=$(".article-text");for(i=0;i<b.length;i++){if(b[i].style.fontSize){var a=parseInt(b[i].style.fontSize.replace("px",""))}else{var a=14}if(a!=max){a+=1}b[i].style.fontSize=a+"px"}}function decreaseFontSize(){var b=$(".article-text");for(i=0;i<b.length;i++){if(b[i].style.fontSize){var a=parseInt(b[i].style.fontSize.replace("px",""))}else{var a=14}if(a!=min){a-=1}b[i].style.fontSize=a+"px"}}function go_saveas(){if(!!window.ActiveXObject){document.execCommand("SaveAs")}else{if(!!window.netscape){var a=document.createRange();a.setStartBefore(document.getElementsByTagName("head")[0]);var c=a.createContextualFragment('<script id="scriptid" type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"><\/script>');document.body.appendChild(c);a=null;try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");saveDocument(document)}catch(b){}finally{var c=document.getElementById("scriptid");c.parentNode.removeChild(c)}}}}$(document).ready(function(){if(document.getElementById("videoGalleryTab")){if(tab&&tab!=0){$("ul.MainTabs li").removeClass("active");$("div.MainTabContent").hide();$("#tab"+tab).addClass("active").show();$("#Mtab"+tab).show()}}});function listBusy(c,a){var b=document.getElementById(c);if(b){if(a){b.style.cursor="wait"}else{b.style.cursor="default"}}}function ajaxGet(c,d){var a="/apps/pbcs.dll/section";try{$("body").ajaxError(function(g,f,e,h){alert("Ajax error: "+f.statusText+" ("+f.status+")\nRequesting page:"+e.url);window.location.reload()});if(typeof(d)=="undefined"){d=dummyCallback}$.get(a,c,d,"html")}catch(b){alert("Error: ajaxGet: "+b.message)}}function vote(a,b){$.ajax({url:a,success:function(c){$("#"+b).html(parseInt($("#"+b).html())+parseInt(c))}})}function do_paginate(a,b){$.ajax({url:a,success:function(c){$("#"+b).html(c)}})}function validate_blank(a){if(a==""){return 0}return 1}function validate_email(c,a){if(!a&&!validate_blank(c)){return 0}var b=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(!b.test(c)){return 0}return 1}function submit_form_ajax(b,a,c){$.ajax({type:"POST",url:a,data:$("#"+b).serialize(),success:function(){alert(c);$("#"+b).get(0).reset()}})}function validate_required(field,alerttxt){with(field){if(value==null||value==""){alert(alerttxt);return false}else{return true}}}function mm_bindSyndiVideo(b,a){if(a==""){a="10522"}ajaxGet({category:"mm",template:"syndivideo",playlist:b,wpid:a},getRssVideo)}function getRssVideo(b){var d=b;var c=d.split("*_*");var e="";var e='<ul id="MaxTvSliderVideo" class="jcarousel-skin-tango">';document.getElementById("ActiveVideoDetailHeading").innerHTML="";document.getElementById("ActiveVideoDetailDetail").innerHTML="";document.getElementById("ActiveVideo").innerHTML="";if(c.length>1){for(i=0;i<c.length-1;i++){parsedString=c[i].split("~");if(i==0){document.getElementById("ActiveVideoDetailHeading").innerHTML=parsedString[0];cdate=getZoneDate(parsedString[3]);var a='<span class="date">'+parsedString[3]+"</span>";document.getElementById("ActiveVideoDetailDetail").innerHTML=parsedString[1]+a;document.getElementById("ActiveVideo").innerHTML='<iframe id="syndiplayvideo" frameborder="0" scrolling="no" src="'+parsedString[4]+'" width="320" height="280"></iframe>'}e+="<li onClick='javascript:playVideo(\""+escape(c[i])+"\")'>";e+='<img src="'+parsedString[5]+'" />';e+="</li>";parsedString=""}}else{e+="<li>No hay vídeo disponible</li>"}e+="</ul>";document.getElementById("MiniSliderVideoTab").innerHTML="";document.getElementById("MiniSliderVideoTab").innerHTML=e;if(document.getElementById("MaxTvSliderVideo")){jQuery("#MaxTvSliderVideo").jcarousel({scroll:4})}}function playVideo(b){parsedString=unescape(b).split("~");document.getElementById("ActiveVideoDetailHeading").innerHTML=parsedString[0];cdate=getZoneDate(parsedString[3]);var a='<span class="date">'+parsedString[3]+"</span>";document.getElementById("ActiveVideoDetailDetail").innerHTML=parsedString[1]+a;document.getElementById("ActiveVideo").innerHTML='<iframe  id="syndiplayvideo" frameborder="0" scrolling="no" src="'+parsedString[4]+'" width="320" height="280"></iframe>'}function FooterShowHide(a){if(a==null){a="laopinion"}if(document.getElementById("FooterMapaDelSitioNavigation").style.display=="block"){$("#FooterMapaDelSitioNavigation").hide(700);document.getElementById("MapaDelSitioImg").src="/images/"+a+"/MapaDelSitio-DownArrow.png"}else{if(document.getElementById("FooterMapaDelSitioNavigation").style.display==""||document.getElementById("FooterMapaDelSitioNavigation").style.display=="none"){$("#FooterMapaDelSitioNavigation").show(700);document.getElementById("MapaDelSitioImg").src="/images/"+a+"/MapaDelSitio-UpArrow.png"}}}function ExpandCollapseImg(a){if(a=="ArticleImg"){if(document.getElementById("Image").src.indexOf("exactW=310")>0){document.getElementById("Image").src=document.getElementById("Image").src.replace("exactW=310","exactW=640");document.getElementById(a).style.width="640px";document.getElementById("OverlapContentContainer").style.width="620px";document.getElementById("ImgExpandCollapse").style.marginLeft="615px";document.getElementById("ActionIcon").src="/images/laopinion/Collapse-Icon.png"}else{if(document.getElementById("Image").src.indexOf("exactW=640")>0){document.getElementById("Image").src=document.getElementById("Image").src.replace("exactW=640","exactW=310");document.getElementById(a).style.width="310px";document.getElementById("OverlapContentContainer").style.width="290px";document.getElementById("ImgExpandCollapse").style.marginLeft="285px";document.getElementById("ActionIcon").src="/images/laopinion/Expand-Icon.png"}}}if(a=="ArticleMap"){if(document.getElementById(a).style.width=="310px"){document.getElementById(a).style.width="640px";document.getElementById("Map").width="630";document.getElementById("Map").height="360";document.getElementById("MapExpandCollapse").style.marginLeft="605px";document.getElementById("MapActionIcon").src="/images/laopinion/Collapse-Icon.png"}else{if(document.getElementById(a).style.width=="640px"){document.getElementById(a).style.width="310px";document.getElementById("Map").width="300";document.getElementById("Map").height="210";document.getElementById("MapExpandCollapse").style.marginLeft="275px";document.getElementById("MapActionIcon").src="/images/laopinion/Expand-Icon.png"}}}}function getZoneDate(j){var n=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");var a=new Array("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado");var f=new Date();utc=f.getTime()+(f.getTimezoneOffset()*60000);nd=new Date(utc+(3600000*parseInt(j)));var g=a[nd.getDay()];var h=nd.getDate();var e=n[nd.getMonth()];var k=nd.getHours();var b=nd.getMinutes();var l=nd.getSeconds();if(k>=12){if(k==12){k=12}else{k=k-12}zone="pm"}else{if(k<12){if(k==0){k=12}zone="am"}}if(b<10){b="0"+b}if(l<10){l="0"+l}if(k<10){k="0"+k}var c=new Array(g,h,e,k,b,zone);return c}function IsEmail(a){var b=/^[\w]+(\.[\w]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;a=a.split(" ").join("");if(a!=""&&!b.test(a)){return false}return true}function setToEmail(){return document.getElementById("byline_email").value}function byline_parse_blog(a){parsedString=a.split("/");if(parsedString[1]!=""){parsedEmail=parsedString[1].replace(/^\s+|\s+$/g,"");if(IsEmail(parsedEmail)){document.getElementById("byline_txt").innerHTML='<span class="gallery clearfix"><a rel="prettyPhoto[iframe]" href="/section/bylineEmail?iframe=true&amp;width=300&amp;height=300&toEmail='+parsedEmail+'">'+parsedString[0]+"</a></span>";document.getElementById("byline_email").value=parsedEmail}}}function mm_bindInfographics(){ajaxGet({category:"mm",template:"infographics"},getInfographics)}function getInfographics(b){var d=b;var c=d.split("*_*");var e="";var e='<ul id="MaxTvSliderIG" class="jcarousel-skin-tango">';document.getElementById("ActiveIGDetailHeading").innerHTML="";document.getElementById("ActiveIGDetail").innerHTML="";document.getElementById("ActiveInfographics").innerHTML="";if(c.length>1){for(i=0;i<c.length-1;i++){parsedString=c[i].split("~");if(i==0){document.getElementById("ActiveIGDetailHeading").innerHTML=parsedString[0];var a='<span class="date">'+parsedString[1]+"</span>";document.getElementById("ActiveIGDetail").innerHTML=a;document.getElementById("ActiveInfographics").innerHTML='<img id="syndiplayvideo" src="'+parsedString[2]+'" width="320" height="280">'}e+="<li onClick='javascript:displayInfographics(\""+escape(c[i])+"\")'>";e+='<img src="'+parsedString[2]+'" />';e+="</li>";parsedString=""}}else{e+="<li>No hay vídeo disponible</li>"}e+="</ul>";document.getElementById("MiniSliderIGTab").innerHTML="";document.getElementById("MiniSliderIGTab").innerHTML=e;if(document.getElementById("MaxTvSliderIG")){jQuery("#MaxTvSliderIG").jcarousel({scroll:4})}}function displayInfographics(b){parsedString=unescape(b).split("~");document.getElementById("ActiveIGDetailHeading").innerHTML=parsedString[0];cdate=getZoneDate(parsedString[3]);var a='<span class="date">'+parsedString[3]+"</span>";document.getElementById("ActiveIGDetail").innerHTML=parsedString[1]+a;document.getElementById("ActiveInfographics").innerHTML='<iframe  id="syndiplayvideo" frameborder="0" scrolling="no" src="'+parsedString[4]+'" width="320" height="280"></iframe>'}function playSWF(c,b,a){if(b!=""){b=580}if(a!=""){a=400}document.getElementById("ActiveInfographics").innerHTML='<object id="mmigswf" width="'+b+'" height="'+a+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value='+c+' name="movie"><embed id="mmigswf" type="application/x-shockwave-flash" width="'+b+'" height="'+a+'" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="'+c+'">	<param value="high" name="quality">	</object>'}function closePreetyPopup(){$.prettyPhoto.close()}function popupHandler(c){var b=c;var a=false;if(b!=""){if($.cookie("cCategory")==null){a=true}else{var d=$.cookie("cCategory");cCatAr=d.split(",");if(cCatAr.indexOf(b)<0){a=true}}if(a){window.open("/section/popupwin/?tags="+b,"Welcome","location=no,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=1050,height=800,left=190,top=162")}}}function setCookie(a,c,b){$.cookie(a,null);$.cookie(a,c,{path:"/"})}function getCookie(a){if($.cookie(a)!=null){return $.cookie(a)}};
