	function sizeContent(){
		var hH	= ( ( $("#header").size() <= 0 ) ? 0 : 179 );
		if( $("#content").height() < 650 ){
			if($(window).height() > 650){
				$("#content").height($(window).height()-33-hH);
			} else {
				$("#content").height(650);
			}
		}
	}

	$(document).ready(function(){
		$('.content-folder').hide();
		
		var hH	= ( ( $("#header").size() <= 0 ) ? 0 : 179 );
		if( $("#content").height() < 650 ){
			if($(window).height() > 650){
				$("#content").height($(window).height()-33-hH);
				$(".menu").height(($(window).height()-33-hH)-$('.footer').height()-18);
			} else {
				$("#content").height(650);
				$(".menu").height(650-$('.footer').height()-14);
			}
		}
		
		$('.title-folder').click(function(){
			var acordeon_height = 0;
			var el = $(this);
			var type = el.attr('rel');
			var hidden = $('.content-folder[rel='+type+']:hidden').size();
			
			if (hidden > 0) {
				$('.content-folder').hide();
				$('.content-folder[rel='+type+']').show();
			}else{
				$('.content-folder[rel='+type+']').hide();
			}
			
			acordeon_height = $('#acordeon-container').height()
			if (acordeon_height >= 650)
				$("#content").height(acordeon_height+30);
			else
				$("#content").height(650);
		});
		
		$("#header .bill").simpleSlide();
		$("#inner-bill").simpleSlide();
		
		$(document).pngFix();
		
	});
	
	jQuery.fn.simpleSlide = function(a){
		
		a = a || {};
		a.duration = a.duration || 5000;
		a.transition = a.transition || 1000;
		
		var c = $(this);
		
		$(c).css("position","relative");
		
		$("img",$(c))
			.css({
				'position'	: 'absolute',
				'top'		: '0px',
				'left'		: '0px',
				'z-index'	: '8'
				})
			.find(":first")
				.addClass("slide-active")
				.css('z-index','10');
		
		setInterval(function(){
				
				var $active = $("img.slide-active",$(c));
		
				if($active.length == 0) $active = $("img:last",$(c));
		
				var $next	= $active.next().length ? $active.next() : $("img:first",$(c));
		
				$active
					.addClass("slide-last-active")
					.css('z-index','9');
		
				$next
					.css({opacity: 0.0})
					.addClass("slide-active")
					.css('z-index','10')
					.animate({opacity: 1.0}, a.transition, function(){
						$active
							.removeClass('slide-active slide-last-active')
							.css('z-index','8');
					});
			}, a.duration);
		
	}
