var params = { };
		swfobject.embedSWF("swf/topo.swf", "flashtopo", "960", "238", "10.0.0", "js/expressInstall.swf", {}, { scale:'noScale', salign:'lt', menu:'false', wmode:'transparent' }, {} );

$(function(){
	
	/*  Carrega Páginas  */
	DivDeCarregamento = ".container";
	PastaPaginas = "paginas";
	
	
    load = function(num) {
		 $("#carregando").show('fast');
		$(DivDeCarregamento).stop().animate({opacity:0},
			function(){
				CarregaPagina(num);
		});
    }

	CarregaPagina = function(num){
 		var quebra=num.split(",");
			num = quebra[0];
            $('.container').load(PastaPaginas +"/"+ num + ".aspx", AposCarregamento);
 	}

    AposCarregamento = function() {
		$(DivDeCarregamento).animate({opacity:1},function(){
			$("#carregando").hide('normal');
		});
    }

    CarregaLink =  function (url) {
        url = url.replace(/^.*#/, '');
        $.history.load(url);
    }

    $.history.init(function (url) {
        load(url == "" ? "inicial" : url);
    });

});
