altosnwini="";
totnoticias="";
sipane1=0;
sipane2=0;

function cl(cual){
			$("#subnoticias").load("snews.php?lg=<?php echo $lg;?>&id="+cual.split("_")[1]);
			$("#subnoticias").show();
		}
		function mover(cual){
			$("#"+cual).css('background','#fff')
		}
		function mout(cual){
			$("#"+cual).css('background','none')
			
		}
		
function ponnews(resultHeight){
		var notidiv = document.getElementById('noticias');
		var snotidiv = document.getElementById('subnoticias');
		
		espacionw=resultHeight-120
		espaciosnw=resultHeight-120
		
		altonw=((totnoticias*135)+30)
		if (altonw<espacionw){
			espacionw=altonw
		}
		$("#noticias").css("height",(espacionw)+"px");
		$(".scroll-pane").css('height',(espacionw-20)+"px");
		
		if (altosnwini<espaciosnw-40){
			espaciosnw=altosnwini+40
		}
		
		$(".scroll-pane2").css('height',(espaciosnw-40)+"px");
		if (document.getElementById("tot")){
			$(function() { $('.scroll-pane').jScrollPane(); });
			
		}
		if (document.getElementById("stot")){
			$(function() { $('.scroll-pane2').jScrollPane(); });
		}
}	
