function acontece(){}acontece.init = function(n){	if(acontece.initialized)		return;	acontece.initialized = true;	acontece.nslides     = n;	acontece.slide_atual = 1;	acontece.status      = 'play';	acontece.timer       = false;}acontece.setPage = function(pg, pause){	acontece.init();	for(var i = 1; i <= acontece.nslides; i++){		document.getElementById('acontece-'+(i-1)).style.display = (pg == i)?'block':'none';	}	acontece.slide_atual = pg;		pause?		acontece.pause():		acontece.startTimer();		acontece.refreshControls();}acontece.hitTimer   = function(){	acontece.init();	if(acontece.status == 'play'){		var gp = acontece.slide_atual+1;		if(gp > acontece.nslides)			gp = 1;				acontece.setPage(gp);	}}acontece.stopTimer  = function(){	clearTimeout(acontece.timer);	acontece.status = 'paused';}acontece.startTimer = function(){	acontece.init();		acontece.stopTimer();	acontece.timer = setTimeout('acontece.hitTimer()', 8000);	acontece.status = 'play';}acontece.pause    = function(){	acontece.stopTimer();	acontece.status = 'paused';	acontece.refreshControls();}acontece.unpause  = function(){	acontece.startTimer();	acontece.status = 'play';	acontece.refreshControls();}acontece.tgPause  = function(){	if(acontece.status == 'play')		acontece.pause();	else		acontece.unpause();}acontece.goPrev   = function(){	var gp = acontece.slide_atual-1;	if(gp < 1)		gp = acontece.nslides;		acontece.setPage(gp);}acontece.goNext   = function(){	var gp = acontece.slide_atual+1;	if(gp > acontece.nslides)		gp = 1;		acontece.setPage(gp);}acontece.MOnOut   = function(inside){	if(inside){		acontece._lastStatus = acontece.status;		acontece.pause();	}	else{		if(acontece._lastStatus == 'play')			acontece.unpause();	}}acontece.refreshControls = function(){	acontece.init();	var ns = document.getElementById('acontece_ns');	var bt = document.getElementById('acontece_buttons');		bt.src = "images/"+((acontece.status=='play')?'novo_controle_play.gif':'novo_controle_pause.gif');		var ht = "<font size='1'>";	for(var i = 1; i <= acontece.nslides; i++){		if(i == acontece.slide_atual)			ht += "<b style='color: #4693F9'>"+i+"</b>";		else			ht += "<a href='#' style='color: #333; text-decoration: none; font-weight: bold' onclick='acontece.setPage("+i+", true); return false;'>"+i+"</a>";		if(i != acontece.nslides)			ht += " | ";	}	ht += "</font>";	ns.innerHTML = ht;}