/* --------------------------- Inicializa Scripts --------------------------- */

$(document).ready(function() {
	identifyBrowser();
	//anima();
	
	hoverLogo();
});


/* ----------------------Anima-------------------*/
function identifyBrowser() {
    var ua = navigator.userAgent.toLowerCase();
    if (ua.indexOf("opera") != -1) {
        browserName = "opera";
		anima();
        return 1;
    } else if (ua.indexOf("msie") != -1) {
        browserName = "msie";
        return 2;
    } else if (ua.indexOf("safari") != -1) {
        browserName = "safari";
		anima();
        return 3;
    } else if (ua.indexOf("mozilla") != -1) {
        if (ua.indexOf("firefox") != -1) {
            browserName = "firefox";
			anima();
            return 4;
        } else {
            browserName = "mozilla";
			anima();
            return 5;
        }
    }
}

function anima(){
	
	$(".interna").hide();
	$(".interna").animate( { opacity:"0"});
	anima02();

}

function anima02() {			
	//$(".interna").animate( { opacity:"1"}, 2000, function() {$(".interna").show();}); 												 
	$(".interna").show(1000, function() {	
		$(".interna").animate( { opacity:"1"}, 1000);
	});															
}

/*---------------------------- Função Hover Logo --------------------------------*/

function hoverLogo() {
	
	$("address").animate({width: "20"}, "slow");

	$("address").hover(function() {
		$(this).animate({width: "100"}, "slow");
		//$(this).hide('slow');
	}, function() {
		$(this).animate({width: "20"}, "slow");
	});	

	
}


