$(document).ready(function() {
	
/* Using multiple unit types within one animation. */

/*
if ( $.browser.msie ) { }else{ 
	
$('header nav a, footer nav a').hover(function() { 
    $(this).stop().animate({"opacity": 0.5}, { duration: 300}); 
},function() { 
    $(this).stop().animate({"opacity": 1}, { duration: 800}); 
});

}
*/

$('footer nav nav').fadeIn(150);


	jQuery("<div/>", 
	{
		id: "rellena", css: 
		{
			
			
			
			
			
			
		}
	}).prependTo(".bottom");
	
	
	

var wi = $(window).width();
var wi2 = (wi - 960 ) / 2; 


//$("#rellena").css("width", wi2 );
$("#rellena").css("width", wi2 + 1);

//
$("#rellena").css("margin-right", -wi2);

$(window).resize(function() {

var wi = $(window).width();

var wi2 = (wi - 960 ) / 2; 


//$("#rellena").css("width", wi2 );

$("#rellena").css("width", wi2 + 1);
//
$("#rellena").css("margin-right", -wi2);

});



});

    $(function() {
                $(".scrolltotop").scrollToTop({speed:800,ease:"jswing"});
            });
			

function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}


$(document).ready(function() {
	var hei = $(".textcontent").height();
	
	var hei2 = $(".bottom nav").height();
	
	if (hei > hei2) {
		
		
	$(".bottom nav").css( "height", hei - 30);
	$("#rellena").css( "height", hei - 10);
	
	}else{
	
	$(".textcontent").css( "height", hei2 - 30);
	$("#rellena").css( "height", hei2 + 20);
	}
	//alert(hei);
});

