gbo.website = {
	init: function() {
		// Cria os efeitos dos menus
		$("#topnav li").prepend("<span></span>"); // Adiciona as tags "<span class='nav'></span>" dentro das tags 'li.root'
		$("#topnav li").each(function() { // Para cada 'li.root'...
			var linkText = $(this).find("a").html(); // Acha o texto dentro da tag '<a>'
			$(this).find("span").show().html(linkText); // Adiciona o texto dentro das tags '<span>'
		});
		$("#topnav li").hover(
			function() {	// Hover in...
				$(this).find("span").stop().animate({
					marginTop: "-30" // Acha a tag '<span>' e move 30 pixels para cima
				}, 250);
			},
			function() { // Hover out...
				$(this).find("span").stop().animate({
					marginTop: "0"  // Move a tag '<span>' para a posição inicial (0px)
				}, 250
			);
		});

		// SWFObject
		var cabecalhoFlashVars = [{
				banner: "http://www.gbonet.com.br/swf/website/banner/motowheeling.swf"
			},{
				banner: "http://www.gbonet.com.br/swf/website/banner/18festivalcaminhoneiro.swf"
		}];
		var cabecalhoParams     = {
			wmode: "opaque"
		};
		var cabecalhoAttributes = {};
		swfobject.embedSWF("/swf/website/cabecalho.swf", "cabecalho", "980", "250", "9.0.0", "/swf/expressInstall.swf", cabecalhoFlashVars[gbo.randomico(2)-1], cabecalhoParams, cabecalhoAttributes);		
	}
}; // runs immediately after parsing: () after the function definition