elementos_por_ul = 3;
cont = 1;
$(document).ready(function(){
						   
	//$(".current").css({"opacity": 0.2});
	
  //$(".menu ul li a").textShadow();
   
  //$(".destacados span").textShadow();
  
  $(".menu ul li .subnav li a").textShadowRemove();
  $(".attcliente span").textShadowRemove();
  $(".calidad span").textShadowRemove();
  //$(".submenu").css({"height": "0px"});



	//$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
	
	
	
	$(".menu ul li").hover(
		function() {
			$(this).children("a").textShadowRemove();
			  $(".menu ul li .subnav li a").textShadowRemove();
		},
		function() { 
									  
			var option = {
			  x:      0, 
			  y:      0, 
			  radius: 3,
			  color:  "#6d6d6d"
			}
		  
			//$(this).children("a").textShadow( option );
			$(".menu ul li .subnav li a").textShadowRemove();
		
		})
	
	;

	$(".menu ul li a").hover(function() { //When trigger is clicked...
									  
		
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.subnav9").slideDown('fast').show(); //Drop down the subnav on click
		$(this).parent().hover(function() {
		}, function(){	
			$(this).parent().find("ul.subnav9").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up
		});

		
	});
	
$(".columna-12 .leermas").click(
	function(){
	$(".columna-12 .noticias div.texto2").css({"height": "0px"});
	$(".columna-12 .noticias li").css({"background": "#FFFFFF"});
	$(".leermas").css({"display": "block"});
	$(this).parent().find("div.texto2").css({"height": "auto"});
	$(this).parent().css({"background": "#F5F5F5"});
	$(this).css({"display": "none"});
	return false;
	}

);
$(".columna-12 .noticias li").click(
	function(){
	$(".columna-12 .noticias li div.texto2").css({"height": "0px"});
	$(".columna-12 .noticias li").css({"background": "#FFFFFF"});
	$(".leermas").css({"display": "block"});
	$("div.texto2", this).css({"height": "auto"});
	$(this).css({"background": "#F5F5F5"});
	$(".leermas", this).css({"display": "none"});
	return false;
	}

);


	$('.columna-123 .destacados li').each(function(i){
		if (cont%elementos_por_ul == 0)
			$(this).addClass('right');
		cont ++;
	});	


});
