$j=jQuery.noConflict();
$j(document).ready(function (){

	var menu = new Array();
	var destacado = new Array();
	var info = new Array();

	// Solo necesitamos los primeros items de la lista
	$j('ul#main-menu > li.page_item').each(function(){
		menu.push($j(this));
	});

	$j('div.destacado').each(function(){
		destacado.push($j(this));
		$j(this).css({opacity: 0});
	});
	
	$j('div.info').each(function(){
		info.push($j(this));
		$j(this).css({opacity: 0});
	});

	$j.each(menu, function(i, val) {
		val.mouseover(function() {
			destacado[i].stop(true, false).animate({opacity: 1},500);
			info[i].stop(true, false).animate({opacity: 1, filter:''},500);
		});
	
		val.mouseleave(function() {
			destacado[i].stop(true, false).animate({opacity: 0}, 500);
			info[i].stop(true, false).animate({opacity: 0}, 500);
		});
	}); 
	
	var footer = new Array();
	var content = new Array();

	// Solo necesitamos los primeros items de la lista
	$j('div#logos img').each(function(){
		footer.push($j(this));
	});

	$j('div#right-aside div.aside-content').each(function(){
		content.push($j(this));
		$j(this).css({opacity: 0});
	});

	$j.each(footer, function(i, val) {
		val.mouseover(function() {
			content[i].stop(true, false).animate({opacity: 1, 'bottom': '0px'},500);
		});
	
		val.mouseleave(function() {
			content[i].stop(true, false).animate({opacity: 0, 'bottom': '0px'}, 500)
		});
	}); 
}); 

$j(document).ready(function (){
    $j(".scroller").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev"
    });
});
