// JavaScript Document

$(document).ready(function(){
	
 $("#not1").css("width","272px");

 lastBlock = $("#not1"); seletor = '#listaLinks a'; maxWidth = 272; minWidth = 87;
 $(seletor).hover(function(){$(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:400 }); $(this).animate({width: maxWidth+"px"}, { queue:false, duration:400}); lastBlock = this; });
 
 $('a[href^=http]').click( function() { window.open(this.href); return false; });

 trocarOpcaoOn(1);
 trocarOpcaoOff(1);


	$(window).load(function(){
	$(".fade").fadeOut(600);
	});

 
});

function trocarOpcaoOn(numero){	
 $("#porton"+numero).css("display","block");
 if(numero != 1){ $("#porton1").css("display","none"); }
 if(numero != 2){ $("#porton2").css("display","none"); }
 if(numero != 3){ $("#porton3").css("display","none"); }
}

function trocarOpcaoOff(numero){
 $("#portoff"+numero).css("display","block");
 if(numero != 1){ $("#portoff1").css("display","none"); }
 if(numero != 2){ $("#portoff2").css("display","none"); }
 if(numero != 3){ $("#portoff3").css("display","none"); }
}

