$(document).ready(function() {
		var w = screen.width;
		if(w < 1280){
			w = 1024;}
		else if(w >= 1280 && w < 1440){
			w = 1280;}
		else { w = 1440;}
		var h_div = w*(196/1440);
		var w2 = (150*w)/1440;
		var h2  = (34*w)/1440;
		var top = (164*w)/1440;
		
		if(w < 1024){
			$("html").css('overflow-x','auto');
		}
		else {
			$("html").css('overflow-x','hidden');
		}
		
		$(".active").click(function() {
			$(this).css('visibility','hidden');
			$(this).parent().next(".expand").animate({
				height: 'show',
				opacity: '100%'
			}, 'slow');
			$(this).parent().parent().find(".active2").css('visibility','visible');
		});
		$(".active2").click(function() {
			$(this).css('visibility','hidden');
			$(this).parent().animate({
				height: 'hide'
			}, 'slow');
			$(this).parent().parent().find(".active").css('visibility','visible');
		});
		
		$("#topo").css('height', h_div).css('background-image', 'url(imagens/header/'+w+'/'+imagem+')');
		$("#home").css('height', h_div);
		$("#artista_topo").css('height', h2).css('width', w2).css('top', top);
		$("#principal").css('top', h_div+158);
});