$(function(){
	var url = window.location.href;
	var index = url.indexOf('index');
	var feder = url.indexOf('federacion');
	
	if(index != -1){
		equalHeight($(".semiblanco"));
		$('#photogallery a').lightBox();
	}
	
	$("#slidertop").innerfade({
		speed: 500,
		timeout: 4500,
		type: 'sequence',
		containerheight: '142px'
	});
	
	if(feder != -1){
		$("#federacion").parent().next().slideDown(0);
	}
	
	$("#federacion").click(function(){
		$(this).parent().next().slideToggle(200);
		return false;
	});


	// Use this example, or... 
	$('#gallery a').lightBox({ fixedNavigation: true });

	
	
/*	DD_belatedPNG.fix('.semiblanco');*/
});



function equalHeight(group) {
    tallest = 0;
    group.each(function() {
        thisHeight = $(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}


